This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3753 from Azure/restapi_auto_containerinstance/re…
…source-manager [AutoPR] containerinstance/resource-manager
- Loading branch information
Showing
14 changed files
with
771 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
lib/services/containerinstanceManagement/lib/models/containerGroupIdentity.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Identity for the container group. | ||
* | ||
*/ | ||
class ContainerGroupIdentity { | ||
/** | ||
* Create a ContainerGroupIdentity. | ||
* @member {string} [principalId] The principal id of the container group | ||
* identity. This property will only be provided for a system assigned | ||
* identity. | ||
* @member {string} [tenantId] The tenant id associated with the container | ||
* group. This property will only be provided for a system assigned identity. | ||
* @member {string} [type] The type of identity used for the container group. | ||
* The type 'SystemAssigned, UserAssigned' includes both an implicitly | ||
* created identity and a set of user assigned identities. The type 'None' | ||
* will remove any identities from the container group. Possible values | ||
* include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', | ||
* 'None' | ||
* @member {object} [userAssignedIdentities] The list of user identities | ||
* associated with the container group. The user identity dictionary key | ||
* references will be ARM resource ids in the form: | ||
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ContainerGroupIdentity | ||
* | ||
* @returns {object} metadata of ContainerGroupIdentity | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ContainerGroupIdentity', | ||
type: { | ||
name: 'Composite', | ||
className: 'ContainerGroupIdentity', | ||
modelProperties: { | ||
principalId: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'principalId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tenantId: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'tenantId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
serializedName: 'type', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' ] | ||
} | ||
}, | ||
userAssignedIdentities: { | ||
required: false, | ||
serializedName: 'userAssignedIdentities', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'ContainerGroupIdentityUserAssignedIdentitiesValueElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ContainerGroupIdentityUserAssignedIdentitiesValue' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ContainerGroupIdentity; |
61 changes: 61 additions & 0 deletions
61
...ntainerinstanceManagement/lib/models/containerGroupIdentityUserAssignedIdentitiesValue.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Class representing a ContainerGroupIdentityUserAssignedIdentitiesValue. | ||
*/ | ||
class ContainerGroupIdentityUserAssignedIdentitiesValue { | ||
/** | ||
* Create a ContainerGroupIdentityUserAssignedIdentitiesValue. | ||
* @member {string} [principalId] The principal id of user assigned identity. | ||
* @member {string} [clientId] The client id of user assigned identity. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ContainerGroupIdentityUserAssignedIdentitiesValue | ||
* | ||
* @returns {object} metadata of ContainerGroupIdentityUserAssignedIdentitiesValue | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ContainerGroupIdentity_userAssignedIdentitiesValue', | ||
type: { | ||
name: 'Composite', | ||
className: 'ContainerGroupIdentityUserAssignedIdentitiesValue', | ||
modelProperties: { | ||
principalId: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'principalId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
clientId: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'clientId', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ContainerGroupIdentityUserAssignedIdentitiesValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.