diff --git a/packages/@azure/arm-containerservice/lib/models/agentPoolsMappers.ts b/packages/@azure/arm-containerservice/lib/models/agentPoolsMappers.ts index e1ed37d2764b..5fe8a6e4920e 100644 --- a/packages/@azure/arm-containerservice/lib/models/agentPoolsMappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/agentPoolsMappers.ts @@ -47,6 +47,7 @@ export { ManagedClusterAddonProfile, ContainerServiceNetworkProfile, ManagedClusterAADProfile, + ManagedClusterIdentity, ManagedClusterAccessProfile } from "../models/mappers"; diff --git a/packages/@azure/arm-containerservice/lib/models/containerServicesMappers.ts b/packages/@azure/arm-containerservice/lib/models/containerServicesMappers.ts index 02bcadb6f373..2587ee4d6f78 100644 --- a/packages/@azure/arm-containerservice/lib/models/containerServicesMappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/containerServicesMappers.ts @@ -50,6 +50,7 @@ export { ManagedClusterAddonProfile, ContainerServiceNetworkProfile, ManagedClusterAADProfile, + ManagedClusterIdentity, ManagedClusterAccessProfile } from "../models/mappers"; diff --git a/packages/@azure/arm-containerservice/lib/models/index.ts b/packages/@azure/arm-containerservice/lib/models/index.ts index 6eeef2e4102b..4e9c93f37001 100644 --- a/packages/@azure/arm-containerservice/lib/models/index.ts +++ b/packages/@azure/arm-containerservice/lib/models/index.ts @@ -1308,6 +1308,38 @@ export interface ManagedClusterAADProfile { tenantID?: string; } +/** + * @interface + * An interface representing ManagedClusterIdentity. + * Identity for the managed cluster. + * + */ +export interface ManagedClusterIdentity { + /** + * @member {string} [principalId] The principal id of the system assigned + * identity which is used by master components. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly principalId?: string; + /** + * @member {string} [tenantId] The tenant id of the system assigned identity + * which is used by master components. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tenantId?: string; + /** + * @member {ResourceIdentityType} [type] The type of identity used for the + * managed cluster. Type 'SystemAssigned' will use an implicitly created + * identity in master components and an auto-created user assigned identity + * in MC_ resource group in agent nodes. Type 'None' will not use MSI for the + * managed cluster, service principal will be used instead. Possible values + * include: 'SystemAssigned', 'None' + */ + type?: ResourceIdentityType; +} + /** * @interface * An interface representing ManagedCluster. @@ -1404,6 +1436,11 @@ export interface ManagedCluster extends Resource { * Ranges to kubernetes API server. */ apiServerAuthorizedIPRanges?: string[]; + /** + * @member {ManagedClusterIdentity} [identity] The identity of the managed + * cluster, if configured. + */ + identity?: ManagedClusterIdentity; } /** @@ -1834,6 +1871,14 @@ export type NetworkPolicy = 'calico' | 'azure'; */ export type LoadBalancerSku = 'standard' | 'basic'; +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'None'; + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-containerservice/lib/models/managedClustersMappers.ts b/packages/@azure/arm-containerservice/lib/models/managedClustersMappers.ts index ab51fe0c5b88..bf1998c5cac5 100644 --- a/packages/@azure/arm-containerservice/lib/models/managedClustersMappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/managedClustersMappers.ts @@ -24,6 +24,7 @@ export { ManagedClusterAddonProfile, ContainerServiceNetworkProfile, ManagedClusterAADProfile, + ManagedClusterIdentity, CloudError, ManagedClusterUpgradeProfile, ManagedClusterPoolUpgradeProfile, diff --git a/packages/@azure/arm-containerservice/lib/models/mappers.ts b/packages/@azure/arm-containerservice/lib/models/mappers.ts index 235128b7326d..7b5eb9fb33c7 100644 --- a/packages/@azure/arm-containerservice/lib/models/mappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/mappers.ts @@ -1414,6 +1414,40 @@ export const ManagedClusterAADProfile: msRest.CompositeMapper = { } }; +export const ManagedClusterIdentity: msRest.CompositeMapper = { + serializedName: "ManagedClusterIdentity", + type: { + name: "Composite", + className: "ManagedClusterIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "None" + ] + } + } + } + } +}; + export const ManagedCluster: msRest.CompositeMapper = { serializedName: "ManagedCluster", type: { @@ -1542,6 +1576,13 @@ export const ManagedCluster: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedClusterIdentity" + } } } } diff --git a/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts b/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts index 1ee9b30d7368..e5f00ed7751a 100644 --- a/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts @@ -48,6 +48,7 @@ export { ManagedClusterAddonProfile, ContainerServiceNetworkProfile, ManagedClusterAADProfile, + ManagedClusterIdentity, ManagedClusterAccessProfile } from "../models/mappers";