Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR apimanagement/resource-manager] Remove readonly attribute from identities collection in users #4073

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/services/apimanagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@ export interface UserIdentityContract {
export interface UserEntityBaseParameters {
state?: string;
note?: string;
readonly identities?: UserIdentityContract[];
identities?: UserIdentityContract[];
}

/**
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion lib/services/apimanagement/lib/models/userContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class UserContract extends models['Resource'] {
},
identities: {
required: false,
readOnly: true,
serializedName: 'properties.identities',
type: {
name: 'Sequence',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class UserCreateParameters {
},
identities: {
required: false,
readOnly: true,
serializedName: 'properties.identities',
type: {
name: 'Sequence',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class UserEntityBaseParameters {
},
identities: {
required: false,
readOnly: true,
serializedName: 'identities',
type: {
name: 'Sequence',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class UserUpdateParameters {
},
identities: {
required: false,
readOnly: true,
serializedName: 'properties.identities',
type: {
name: 'Sequence',
Expand Down
8 changes: 8 additions & 0 deletions lib/services/apimanagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down
12 changes: 12 additions & 0 deletions lib/services/apimanagement/lib/operations/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down