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..f9c6706d6d76 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -478,6 +478,13 @@ export interface ManagedClusterAgentPoolProfileProperties { * Possible values include: 'OCIContainer', 'WasmWasi' */ workloadRuntime?: WorkloadRuntime; + /** + * Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be + * written to /etc/motd after decoding. This allows customization of the message of the day for + * Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., + * will be printed raw and not be executed as a script). + */ + messageOfTheDay?: string; /** * The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is @@ -691,6 +698,13 @@ export interface AgentPool extends SubResource { * Possible values include: 'OCIContainer', 'WasmWasi' */ workloadRuntime?: WorkloadRuntime; + /** + * Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be + * written to /etc/motd after decoding. This allows customization of the message of the day for + * Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., + * will be printed raw and not be executed as a script). + */ + messageOfTheDay?: string; /** * The ID of the subnet which agent pool nodes and optionally pods will join on startup. If this * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is @@ -1573,6 +1587,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. @@ -1869,13 +1898,18 @@ export interface ManagedCluster extends Resource { */ readonly maxAgentPools?: number; /** - * The version of Kubernetes the Managed Cluster is running. When you upgrade a supported AKS - * cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed - * sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x - * -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS - * cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. + * The version of Kubernetes the Managed Cluster is requested to run. When you upgrade a + * supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be + * performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x + * or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an + * AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details. */ kubernetesVersion?: string; + /** + * The version of Kubernetes the Managed Cluster is running. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentKubernetesVersion?: string; /** * The DNS prefix of the Managed Cluster. This cannot be updated once the Managed Cluster has * been created. @@ -1932,6 +1966,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 +1983,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..b5cf9a5e0486 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -638,6 +638,12 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = name: "String" } }, + messageOfTheDay: { + serializedName: "messageOfTheDay", + type: { + name: "String" + } + }, vnetSubnetID: { serializedName: "vnetSubnetID", type: { @@ -934,6 +940,12 @@ export const AgentPool: msRest.CompositeMapper = { name: "String" } }, + messageOfTheDay: { + serializedName: "properties.messageOfTheDay", + type: { + name: "String" + } + }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { @@ -2324,6 +2336,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: { @@ -2740,6 +2775,13 @@ export const ManagedCluster: msRest.CompositeMapper = { name: "String" } }, + currentKubernetesVersion: { + readOnly: true, + serializedName: "properties.currentKubernetesVersion", + type: { + name: "String" + } + }, dnsPrefix: { serializedName: "properties.dnsPrefix", type: { @@ -2825,6 +2867,13 @@ export const ManagedCluster: msRest.CompositeMapper = { className: "ManagedClusterPodIdentityProfile" } }, + oidcIssuerProfile: { + serializedName: "properties.oidcIssuerProfile", + type: { + name: "Composite", + className: "ManagedClusterOIDCIssuerProfile" + } + }, nodeResourceGroup: { serializedName: "properties.nodeResourceGroup", type: { @@ -2843,6 +2892,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,