From 8d6ebeb491a90c316954d512e9a4b42d1edad69c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 12 Nov 2018 08:09:33 -0800 Subject: [PATCH 1/2] Generated from cbd8b32037c8d911d9c4024dd3accb02bfad8e93 (#4073) Remove readonly attribute from identities collection in users --- lib/services/apimanagement/lib/models/index.d.ts | 8 ++++---- .../apimanagement/lib/models/userContract.js | 1 - .../apimanagement/lib/models/userCreateParameters.js | 1 - .../lib/models/userEntityBaseParameters.js | 1 - .../apimanagement/lib/models/userUpdateParameters.js | 1 - lib/services/apimanagement/lib/operations/index.d.ts | 8 ++++++++ lib/services/apimanagement/lib/operations/user.js | 12 ++++++++++++ 7 files changed, 24 insertions(+), 8 deletions(-) diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index 6555a15fe6..8c3fdb2d90 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -2679,7 +2679,7 @@ export interface UserIdentityContract { export interface UserEntityBaseParameters { state?: string; note?: string; - readonly identities?: UserIdentityContract[]; + identities?: UserIdentityContract[]; } /** @@ -2706,7 +2706,7 @@ export interface UserEntityBaseParameters { export interface UserContract extends Resource { state?: string; note?: string; - readonly identities?: UserIdentityContract[]; + identities?: UserIdentityContract[]; firstName?: string; lastName?: string; email?: string; @@ -3833,7 +3833,7 @@ export interface GenerateSsoUrlResult { export interface UserCreateParameters { state?: string; note?: string; - readonly identities?: UserIdentityContract[]; + identities?: UserIdentityContract[]; email: string; firstName: string; lastName: string; @@ -3892,7 +3892,7 @@ export interface UserTokenResult { export interface UserUpdateParameters { state?: string; note?: string; - readonly identities?: UserIdentityContract[]; + identities?: UserIdentityContract[]; email?: string; password?: string; firstName?: string; diff --git a/lib/services/apimanagement/lib/models/userContract.js b/lib/services/apimanagement/lib/models/userContract.js index 417385fece..3b96123ed1 100644 --- a/lib/services/apimanagement/lib/models/userContract.js +++ b/lib/services/apimanagement/lib/models/userContract.js @@ -95,7 +95,6 @@ class UserContract extends models['Resource'] { }, identities: { required: false, - readOnly: true, serializedName: 'properties.identities', type: { name: 'Sequence', diff --git a/lib/services/apimanagement/lib/models/userCreateParameters.js b/lib/services/apimanagement/lib/models/userCreateParameters.js index b35ec3061c..67ba7f342e 100644 --- a/lib/services/apimanagement/lib/models/userCreateParameters.js +++ b/lib/services/apimanagement/lib/models/userCreateParameters.js @@ -69,7 +69,6 @@ class UserCreateParameters { }, identities: { required: false, - readOnly: true, serializedName: 'properties.identities', type: { name: 'Sequence', diff --git a/lib/services/apimanagement/lib/models/userEntityBaseParameters.js b/lib/services/apimanagement/lib/models/userEntityBaseParameters.js index 4bdb627965..dc5084f203 100644 --- a/lib/services/apimanagement/lib/models/userEntityBaseParameters.js +++ b/lib/services/apimanagement/lib/models/userEntityBaseParameters.js @@ -60,7 +60,6 @@ class UserEntityBaseParameters { }, identities: { required: false, - readOnly: true, serializedName: 'identities', type: { name: 'Sequence', diff --git a/lib/services/apimanagement/lib/models/userUpdateParameters.js b/lib/services/apimanagement/lib/models/userUpdateParameters.js index 55d918eab0..5269d46b93 100644 --- a/lib/services/apimanagement/lib/models/userUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/userUpdateParameters.js @@ -65,7 +65,6 @@ class UserUpdateParameters { }, identities: { required: false, - readOnly: true, serializedName: 'properties.identities', type: { name: 'Sequence', diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index 2ca8c1db27..2352e7b18f 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -25753,6 +25753,8 @@ export interface User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} parameters.email Email address. Must not be empty and must * be unique within the service instance. * @@ -25803,6 +25805,8 @@ export interface User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} parameters.email Email address. Must not be empty and must * be unique within the service instance. * @@ -25872,6 +25876,8 @@ export interface User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} [parameters.email] Email address. Must not be empty and must * be unique within the service instance. * @@ -25918,6 +25924,8 @@ export interface User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} [parameters.email] Email address. Must not be empty and must * be unique within the service instance. * diff --git a/lib/services/apimanagement/lib/operations/user.js b/lib/services/apimanagement/lib/operations/user.js index a279c6c018..0dac152210 100644 --- a/lib/services/apimanagement/lib/operations/user.js +++ b/lib/services/apimanagement/lib/operations/user.js @@ -594,6 +594,8 @@ function _get(resourceGroupName, serviceName, uid, options, callback) { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} parameters.email Email address. Must not be empty and must * be unique within the service instance. * @@ -843,6 +845,8 @@ function _createOrUpdate(resourceGroupName, serviceName, uid, parameters, option * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} [parameters.email] Email address. Must not be empty and must * be unique within the service instance. * @@ -2097,6 +2101,8 @@ class User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} parameters.email Email address. Must not be empty and must * be unique within the service instance. * @@ -2159,6 +2165,8 @@ class User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} parameters.email Email address. Must not be empty and must * be unique within the service instance. * @@ -2243,6 +2251,8 @@ class User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} [parameters.email] Email address. Must not be empty and must * be unique within the service instance. * @@ -2301,6 +2311,8 @@ class User { * @param {string} [parameters.note] Optional note about a user set by the * administrator. * + * @param {array} [parameters.identities] Collection of user identities. + * * @param {string} [parameters.email] Email address. Must not be empty and must * be unique within the service instance. * From 1d33f60b46e186ea2d16e0a65a1fc99b2a92e696 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Mon, 12 Nov 2018 08:42:40 -0800 Subject: [PATCH 2/2] Update azure-arm-apimanagement to 4.3.0-preview --- lib/services/apimanagement/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/apimanagement/package.json b/lib/services/apimanagement/package.json index 99adb5314a..2d2da9508b 100644 --- a/lib/services/apimanagement/package.json +++ b/lib/services/apimanagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-apimanagement", "author": "Microsoft Corporation", "description": "ApiManagementClient Library with typescript type definitions for node", - "version": "4.2.0-preview", + "version": "4.3.0-preview", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" @@ -22,4 +22,4 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}