From 5f1ef929df70064245c2e92f68812c694f92a855 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 29 Nov 2021 10:16:07 +0000 Subject: [PATCH] CodeGen from PR 16895 in Azure/azure-rest-api-specs Merge b3d484163e638f336b882c590230204405df6d12 into 07dd23b7e3f8736ce717524ff6678a841005c397 --- .../arm-containerservice/package.json | 2 +- .../src/containerServiceClientContext.ts | 2 +- .../src/models/agentPoolsMappers.ts | 1 + .../arm-containerservice/src/models/index.ts | 26 ++++++++++++++ .../maintenanceConfigurationsMappers.ts | 1 + .../src/models/managedClustersMappers.ts | 1 + .../src/models/mappers.ts | 36 +++++++++++++++++++ .../privateEndpointConnectionsMappers.ts | 1 + .../src/models/snapshotsMappers.ts | 1 + 9 files changed, 69 insertions(+), 2 deletions(-) diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 5cb507073cd2..ecb4a96e9c36 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerservice/arm-containerservice", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts index c9b075b22be7..f347f8ad6a9d 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts @@ -50,7 +50,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien super(credentials, options); - this.apiVersion = '2021-10-01'; + this.apiVersion = '2021-11-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts index e2ae80b24eeb..6b12bd37cb54 100644 --- a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts @@ -44,6 +44,7 @@ export { ManagedClusterLoadBalancerProfileOutboundIPs, ManagedClusterManagedOutboundIPProfile, ManagedClusterNATGatewayProfile, + ManagedClusterOIDCIssuerProfile, ManagedClusterPodIdentity, ManagedClusterPodIdentityException, ManagedClusterPodIdentityProfile, diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 1d560c276e17..1820c6f9bb70 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -1573,6 +1573,21 @@ export interface ManagedClusterPodIdentityProfile { userAssignedIdentityExceptions?: ManagedClusterPodIdentityException[]; } +/** + * The OIDC issuer profile of the Managed Cluster. + */ +export interface ManagedClusterOIDCIssuerProfile { + /** + * The OIDC issuer url of the Managed Cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issuerURL?: string; + /** + * Whether the OIDC issuer is enabled. + */ + enabled?: boolean; +} + /** * For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad). * @summary AADProfile specifies attributes for Azure Active Directory integration. @@ -1932,6 +1947,10 @@ export interface ManagedCluster extends Resource { * AAD pod identity integration. */ podIdentityProfile?: ManagedClusterPodIdentityProfile; + /** + * The OIDC issuer profile of the Managed Cluster. + */ + oidcIssuerProfile?: ManagedClusterOIDCIssuerProfile; /** * The name of the resource group containing agent pool nodes. */ @@ -1945,6 +1964,13 @@ export interface ManagedCluster extends Resource { * for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. */ enablePodSecurityPolicy?: boolean; + /** + * Enable namespace as Azure resource. The default value is false. It can be enabled/disabled on + * creation and updation of the managed cluster. See + * [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on + * Namespace as a ARM Resource. + */ + enableNamespaceResources?: boolean; /** * The network configuration profile. */ diff --git a/sdk/containerservice/arm-containerservice/src/models/maintenanceConfigurationsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/maintenanceConfigurationsMappers.ts index bc6a0db3a342..2a6259c83f78 100644 --- a/sdk/containerservice/arm-containerservice/src/models/maintenanceConfigurationsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/maintenanceConfigurationsMappers.ts @@ -39,6 +39,7 @@ export { ManagedClusterLoadBalancerProfileOutboundIPs, ManagedClusterManagedOutboundIPProfile, ManagedClusterNATGatewayProfile, + ManagedClusterOIDCIssuerProfile, ManagedClusterPodIdentity, ManagedClusterPodIdentityException, ManagedClusterPodIdentityProfile, diff --git a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts index 64d7644642cc..384d37b795a3 100644 --- a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts @@ -43,6 +43,7 @@ export { ManagedClusterLoadBalancerProfileOutboundIPs, ManagedClusterManagedOutboundIPProfile, ManagedClusterNATGatewayProfile, + ManagedClusterOIDCIssuerProfile, ManagedClusterPodIdentity, ManagedClusterPodIdentityException, ManagedClusterPodIdentityProfile, diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 5532e32b4647..9747c988ca9a 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -2324,6 +2324,29 @@ export const ManagedClusterPodIdentityProfile: msRest.CompositeMapper = { } }; +export const ManagedClusterOIDCIssuerProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterOIDCIssuerProfile", + type: { + name: "Composite", + className: "ManagedClusterOIDCIssuerProfile", + modelProperties: { + issuerURL: { + readOnly: true, + serializedName: "issuerURL", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + export const ManagedClusterAADProfile: msRest.CompositeMapper = { serializedName: "ManagedClusterAADProfile", type: { @@ -2825,6 +2848,13 @@ export const ManagedCluster: msRest.CompositeMapper = { className: "ManagedClusterPodIdentityProfile" } }, + oidcIssuerProfile: { + serializedName: "properties.oidcIssuerProfile", + type: { + name: "Composite", + className: "ManagedClusterOIDCIssuerProfile" + } + }, nodeResourceGroup: { serializedName: "properties.nodeResourceGroup", type: { @@ -2843,6 +2873,12 @@ export const ManagedCluster: msRest.CompositeMapper = { name: "Boolean" } }, + enableNamespaceResources: { + serializedName: "properties.enableNamespaceResources", + type: { + name: "Boolean" + } + }, networkProfile: { serializedName: "properties.networkProfile", type: { diff --git a/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts index ecda0015c55c..b4b34044d4fc 100644 --- a/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts @@ -38,6 +38,7 @@ export { ManagedClusterLoadBalancerProfileOutboundIPs, ManagedClusterManagedOutboundIPProfile, ManagedClusterNATGatewayProfile, + ManagedClusterOIDCIssuerProfile, ManagedClusterPodIdentity, ManagedClusterPodIdentityException, ManagedClusterPodIdentityProfile, diff --git a/sdk/containerservice/arm-containerservice/src/models/snapshotsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/snapshotsMappers.ts index 7bb5e76fbe04..00d00b3c3012 100644 --- a/sdk/containerservice/arm-containerservice/src/models/snapshotsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/snapshotsMappers.ts @@ -38,6 +38,7 @@ export { ManagedClusterLoadBalancerProfileOutboundIPs, ManagedClusterManagedOutboundIPProfile, ManagedClusterNATGatewayProfile, + ManagedClusterOIDCIssuerProfile, ManagedClusterPodIdentity, ManagedClusterPodIdentityException, ManagedClusterPodIdentityProfile,