diff --git a/sdk/containerservice/arm-containerservice/README.md b/sdk/containerservice/arm-containerservice/README.md index 9a050d1be830..ba129c1f3b94 100644 --- a/sdk/containerservice/arm-containerservice/README.md +++ b/sdk/containerservice/arm-containerservice/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-containerservice ### How to use -#### nodejs - Authentication, client creation and list openShiftManagedClusters as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,16 +26,15 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ContainerServiceClient, ContainerServiceModels, ContainerServiceMappers } from "@azure/arm-containerservice"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { ContainerServiceClient } = require("@azure/arm-containerservice"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new ContainerServiceClient(creds, subscriptionId); - client.openShiftManagedClusters.list().then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }); @@ -44,7 +43,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and list openShiftManagedClusters as an example written in JavaScript. +#### browser - Authentication, client creation and list operations as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -78,7 +77,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmContainerservice.ContainerServiceClient(res.creds, subscriptionId); - client.openShiftManagedClusters.list().then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index c6e7247530ba..e3fd43f2f11a 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-containerservice", "author": "Microsoft Corporation", "description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.", - "version": "11.2.0", + "version": "12.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/containerservice/arm-containerservice/rollup.config.js b/sdk/containerservice/arm-containerservice/rollup.config.js index c52bc37c54ed..22715637a94f 100644 --- a/sdk/containerservice/arm-containerservice/rollup.config.js +++ b/sdk/containerservice/arm-containerservice/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 1dbcf82fdbf8..7664ed93d07c 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,12 +16,12 @@ import { ContainerServiceClientContext } from "./containerServiceClientContext"; class ContainerServiceClient extends ContainerServiceClientContext { // Operation groups - openShiftManagedClusters: operations.OpenShiftManagedClusters; - containerServices: operations.ContainerServices; operations: operations.Operations; managedClusters: operations.ManagedClusters; agentPools: operations.AgentPools; privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; + resolvePrivateLinkServiceId: operations.ResolvePrivateLinkServiceId; /** * Initializes a new instance of the ContainerServiceClient class. @@ -33,12 +32,12 @@ class ContainerServiceClient extends ContainerServiceClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerServiceClientOptions) { super(credentials, subscriptionId, options); - this.openShiftManagedClusters = new operations.OpenShiftManagedClusters(this); - this.containerServices = new operations.ContainerServices(this); this.operations = new operations.Operations(this); this.managedClusters = new operations.ManagedClusters(this); this.agentPools = new operations.AgentPools(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.resolvePrivateLinkServiceId = new operations.ResolvePrivateLinkServiceId(this); } } diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts index 094f7fe03b6b..0a7ba1dc85b2 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,11 +12,12 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-containerservice"; -const packageVersion = "11.2.0"; +const packageVersion = "12.0.0"; export class ContainerServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; subscriptionId: string; + apiVersion?: string; /** * Initializes a new instance of the ContainerServiceClient class. @@ -37,13 +37,14 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); + this.apiVersion = '2020-12-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -51,10 +52,10 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts index 62cdcb830b7d..acb08b6c65d1 100644 --- a/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/agentPoolsMappers.ts @@ -1,13 +1,12 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - discriminators, AgentPool, AgentPoolAvailableVersions, AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem, @@ -17,20 +16,12 @@ export { AgentPoolUpgradeSettings, BaseResource, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, ContainerServiceNetworkProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, ContainerServiceSshConfiguration, ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, - KeyVaultSecretRef, + KubeletConfig, + LinuxOSConfig, ManagedCluster, ManagedClusterAADProfile, ManagedClusterAccessProfile, @@ -39,32 +30,29 @@ export { ManagedClusterAgentPoolProfile, ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, + ManagedClusterAutoUpgradeProfile, ManagedClusterIdentity, ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, ManagedClusterLoadBalancerProfileOutboundIPs, + ManagedClusterPodIdentity, + ManagedClusterPodIdentityException, + ManagedClusterPodIdentityProfile, + ManagedClusterPodIdentityProvisioningInfo, ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, ManagedClusterSKU, ManagedClusterWindowsProfile, - NetworkProfile, - OpenShiftManagedCluster, - OpenShiftManagedClusterAADIdentityProvider, - OpenShiftManagedClusterAgentPoolProfile, - OpenShiftManagedClusterAuthProfile, - OpenShiftManagedClusterBaseIdentityProvider, - OpenShiftManagedClusterIdentityProvider, - OpenShiftManagedClusterMasterPoolProfile, - OpenShiftRouterProfile, + PowerState, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, - PurchasePlan, Resource, ResourceReference, SubResource, + SysctlConfig, UserAssignedIdentity } from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts b/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts index 67faee88ab17..a6d81b2e9332 100644 --- a/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/containerServicesMappers.ts @@ -58,6 +58,7 @@ export { OrchestratorProfile, OrchestratorVersionProfile, OrchestratorVersionProfileListResult, + PowerState, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index e9b76961ba3f..baba33a31c76 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,6 +11,42 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * Describes the properties of a Compute Operation value. + */ +export interface OperationValue { + /** + * The origin of the compute operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: string; + /** + * The name of the compute operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The display name of the compute operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The display name of the resource the operation applies to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The resource provider for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; +} + /** * The Resource model definition. */ @@ -41,344 +77,342 @@ export interface Resource extends BaseResource { } /** - * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + * Reference to another subresource. */ -export interface PurchasePlan { - /** - * The plan ID. - */ - name?: string; +export interface SubResource extends BaseResource { /** - * Specifies the product of the image from the marketplace. This is the same value as Offer under - * the imageReference element. + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - product?: string; + readonly id?: string; /** - * The promotion code. + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - promotionCode?: string; + readonly name?: string; /** - * The plan ID. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publisher?: string; + readonly type?: string; } /** - * Represents an OpenShift router + * Tags object for patch operations. */ -export interface OpenShiftRouterProfile { +export interface TagsObject { /** - * Name of the router profile. + * Resource tags. */ - name?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * Information about a service principal identity for the cluster to use for manipulating Azure + * APIs. + */ +export interface ManagedClusterServicePrincipalProfile { /** - * DNS subdomain for OpenShift router. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The ID for the service principal. */ - readonly publicSubdomain?: string; + clientId: string; /** - * Auto-allocated FQDN for the OpenShift router. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The secret password associated with the service principal in plain text. */ - readonly fqdn?: string; + secret?: string; } /** - * Represents the OpenShift networking configuration + * Profile for the container service master. */ -export interface NetworkProfile { +export interface ContainerServiceMasterProfile { /** - * CIDR for the OpenShift Vnet. Default value: '10.0.0.0/8'. + * Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The + * default value is 1. Default value: 1. + */ + count?: number; + /** + * DNS prefix to be used to create the FQDN for the master pool. */ - vnetCidr?: string; + dnsPrefix: string; /** - * CIDR of the Vnet to peer. + * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', + * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + * 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', 'Standard_A6', + * 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', 'Standard_A8m_v2', 'Standard_A9', + * 'Standard_B2ms', 'Standard_B2s', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', + * 'Standard_D11', 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', 'Standard_D12_v2', + * 'Standard_D12_v2_Promo', 'Standard_D13', 'Standard_D13_v2', 'Standard_D13_v2_Promo', + * 'Standard_D14', 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + * 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', 'Standard_D2_v2', + * 'Standard_D2_v2_Promo', 'Standard_D2_v3', 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', + * 'Standard_D32s_v3', 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + * 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', 'Standard_D5_v2', + * 'Standard_D5_v2_Promo', 'Standard_D64_v3', 'Standard_D64s_v3', 'Standard_D8_v3', + * 'Standard_D8s_v3', 'Standard_DS1', 'Standard_DS11', 'Standard_DS11_v2', + * 'Standard_DS11_v2_Promo', 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + * 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', 'Standard_DS13_v2', + * 'Standard_DS13_v2_Promo', 'Standard_DS14', 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', + * 'Standard_DS14_v2', 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + * 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', 'Standard_DS3', 'Standard_DS3_v2', + * 'Standard_DS3_v2_Promo', 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + * 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', 'Standard_E16s_v3', + * 'Standard_E2_v3', 'Standard_E2s_v3', 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', + * 'Standard_E32_v3', 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + * 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', 'Standard_E64s_v3', + * 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', 'Standard_F16', 'Standard_F16s', + * 'Standard_F16s_v2', 'Standard_F1s', 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', + * 'Standard_F32s_v2', 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + * 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', 'Standard_G1', + * 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', + * 'Standard_GS3', 'Standard_GS4', 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', + * 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + * 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', 'Standard_L32s', + * 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', 'Standard_M128-64ms', 'Standard_M128ms', + * 'Standard_M128s', 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', 'Standard_M64s', + * 'Standard_NC12', 'Standard_NC12s_v2', 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + * 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', 'Standard_NC24s_v3', + * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', + * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' */ - peerVnetId?: string; + vmSize: ContainerServiceVMSizeTypes; /** - * ID of the Vnet created for OSA cluster. + * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent + * pool. If you specify 0, it will apply the default osDisk size according to the vmSize + * specified. */ - vnetId?: string; -} - -/** - * OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift master VMs. - */ -export interface OpenShiftManagedClusterMasterPoolProfile { + osDiskSizeGB?: number; /** - * Unique name of the master pool profile in the context of the subscription and resource group. + * VNet SubnetID specifies the VNet's subnet identifier. */ - name?: string; + vnetSubnetID?: string; /** - * Number of masters (VMs) to host docker containers. The default value is 3. + * FirstConsecutiveStaticIP used to specify the first static ip of masters. Default value: + * '10.240.255.5'. */ - count: number; + firstConsecutiveStaticIP?: string; /** - * Size of agent VMs. Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', - * 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', - * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', - * 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', - * 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', - * 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - * 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', - * 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' + * Storage profile specifies what kind of storage used. Choose from StorageAccount and + * ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. + * Possible values include: 'StorageAccount', 'ManagedDisks' */ - vmSize: OpenShiftContainerServiceVMSize; + storageProfile?: ContainerServiceStorageProfileTypes; /** - * Subnet CIDR for the peering. + * FQDN for the master pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - subnetCidr?: string; + readonly fqdn?: string; +} + +/** + * Settings for upgrading an agentpool + */ +export interface AgentPoolUpgradeSettings { /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + * Count or percentage of additional nodes to be added during upgrade. If empty uses AKS default */ - osType?: OSType; + maxSurge?: string; } /** - * Defines the configuration of the OpenShift cluster VMs. + * Describes the Power State of the cluster */ -export interface OpenShiftManagedClusterAgentPoolProfile { +export interface PowerState { /** - * Unique name of the pool profile in the context of the subscription and resource group. + * Tells whether the cluster is Running or Stopped. Possible values include: 'Running', 'Stopped' */ - name: string; + code?: Code; +} + +/** + * Kubelet configurations of agent nodes. + */ +export interface KubeletConfig { /** - * Number of agents (VMs) to host docker containers. + * CPU Manager policy to use. */ - count: number; + cpuManagerPolicy?: string; /** - * Size of agent VMs. Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', - * 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', - * 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', - * 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', - * 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', - * 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', - * 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', - * 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' + * Enable CPU CFS quota enforcement for containers that specify CPU limits. */ - vmSize: OpenShiftContainerServiceVMSize; + cpuCfsQuota?: boolean; /** - * Subnet CIDR for the peering. Default value: '10.0.0.0/24'. + * Sets CPU CFS quota period value. */ - subnetCidr?: string; + cpuCfsQuotaPeriod?: string; /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + * The percent of disk usage after which image garbage collection is always run. */ - osType?: OSType; + imageGcHighThreshold?: number; /** - * Define the role of the AgentPoolProfile. Possible values include: 'compute', 'infra' + * The percent of disk usage before which image garbage collection is never run. */ - role?: OpenShiftAgentPoolProfileRole; -} - -/** - * Contains the possible cases for OpenShiftManagedClusterBaseIdentityProvider. - */ -export type OpenShiftManagedClusterBaseIdentityProviderUnion = OpenShiftManagedClusterBaseIdentityProvider | OpenShiftManagedClusterAADIdentityProvider; - -/** - * Structure for any Identity provider. - */ -export interface OpenShiftManagedClusterBaseIdentityProvider { + imageGcLowThreshold?: number; /** - * Polymorphic Discriminator + * Topology Manager policy to use. */ - kind: "OpenShiftManagedClusterBaseIdentityProvider"; -} - -/** - * Defines the configuration of the identity providers to be used in the OpenShift cluster. - */ -export interface OpenShiftManagedClusterIdentityProvider { + topologyManagerPolicy?: string; /** - * Name of the provider. + * Allowlist of unsafe sysctls or unsafe sysctl patterns (ending in `*`). */ - name?: string; + allowedUnsafeSysctls?: string[]; /** - * Configuration of the provider. + * If set to true it will make the Kubelet fail to start if swap is enabled on the node. */ - provider?: OpenShiftManagedClusterBaseIdentityProviderUnion; + failSwapOn?: boolean; } /** - * Defines all possible authentication profiles for the OpenShift cluster. + * Sysctl settings for Linux agent nodes. */ -export interface OpenShiftManagedClusterAuthProfile { +export interface SysctlConfig { /** - * Type of authentication profile to use. + * Sysctl setting net.core.somaxconn. */ - identityProviders?: OpenShiftManagedClusterIdentityProvider[]; -} - -/** - * OpenShift Managed cluster. - */ -export interface OpenShiftManagedCluster extends Resource { + netCoreSomaxconn?: number; /** - * Define the resource plan as required by ARM for billing purposes + * Sysctl setting net.core.netdev_max_backlog. */ - plan?: PurchasePlan; + netCoreNetdevMaxBacklog?: number; /** - * The current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sysctl setting net.core.rmem_max. */ - readonly provisioningState?: string; + netCoreRmemMax?: number; /** - * Version of OpenShift specified when creating the cluster. + * Sysctl setting net.core.wmem_max. */ - openShiftVersion: string; + netCoreWmemMax?: number; /** - * Version of OpenShift specified when creating the cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sysctl setting net.core.optmem_max. */ - readonly clusterVersion?: string; + netCoreOptmemMax?: number; /** - * Service generated FQDN for OpenShift API server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sysctl setting net.ipv4.tcp_max_syn_backlog. */ - readonly publicHostname?: string; + netIpv4TcpMaxSynBacklog?: number; /** - * Service generated FQDN for OpenShift API server loadbalancer internal hostname. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sysctl setting net.ipv4.tcp_max_tw_buckets. */ - readonly fqdn?: string; + netIpv4TcpMaxTwBuckets?: number; /** - * Configuration for OpenShift networking. + * Sysctl setting net.ipv4.tcp_fin_timeout. */ - networkProfile?: NetworkProfile; + netIpv4TcpFinTimeout?: number; /** - * Configuration for OpenShift router(s). + * Sysctl setting net.ipv4.tcp_keepalive_time. */ - routerProfiles?: OpenShiftRouterProfile[]; + netIpv4TcpKeepaliveTime?: number; /** - * Configuration for OpenShift master VMs. + * Sysctl setting net.ipv4.tcp_keepalive_probes. */ - masterPoolProfile?: OpenShiftManagedClusterMasterPoolProfile; + netIpv4TcpKeepaliveProbes?: number; /** - * Configuration of OpenShift cluster VMs. + * Sysctl setting net.ipv4.tcp_keepalive_intvl. */ - agentPoolProfiles?: OpenShiftManagedClusterAgentPoolProfile[]; + netIpv4TcpkeepaliveIntvl?: number; /** - * Configures OpenShift authentication. + * Sysctl setting net.ipv4.tcp_rmem. */ - authProfile?: OpenShiftManagedClusterAuthProfile; -} - -/** - * Defines the Identity provider for MS AAD. - */ -export interface OpenShiftManagedClusterAADIdentityProvider { + netIpv4TcpRmem?: number; /** - * Polymorphic Discriminator + * Sysctl setting net.ipv4.tcp_wmem. */ - kind: "AADIdentityProvider"; + netIpv4TcpWmem?: number; /** - * The clientId password associated with the provider. + * Sysctl setting net.ipv4.tcp_tw_reuse. */ - clientId?: string; + netIpv4TcpTwReuse?: boolean; /** - * The secret password associated with the provider. + * Sysctl setting net.ipv4.ip_local_port_range. */ - secret?: string; + netIpv4IpLocalPortRange?: string; /** - * The tenantId associated with the provider. + * Sysctl setting net.ipv4.neigh.default.gc_thresh1. */ - tenantId?: string; + netIpv4NeighDefaultGcThresh1?: number; /** - * The groupId to be granted cluster admin role. + * Sysctl setting net.ipv4.neigh.default.gc_thresh2. */ - customerAdminGroupId?: string; -} - -/** - * Tags object for patch operations. - */ -export interface TagsObject { + netIpv4NeighDefaultGcThresh2?: number; /** - * Resource tags. + * Sysctl setting net.ipv4.neigh.default.gc_thresh3. */ - tags?: { [propertyName: string]: string }; -} - -/** - * Properties to configure a custom container service cluster. - */ -export interface ContainerServiceCustomProfile { + netIpv4NeighDefaultGcThresh3?: number; /** - * The name of the custom orchestrator to use. + * Sysctl setting net.netfilter.nf_conntrack_max. */ - orchestrator: string; -} - -/** - * Reference to a secret stored in Azure Key Vault. - */ -export interface KeyVaultSecretRef { + netNetfilterNfConntrackMax?: number; /** - * Key vault identifier. + * Sysctl setting net.netfilter.nf_conntrack_buckets. */ - vaultID: string; + netNetfilterNfConntrackBuckets?: number; /** - * The secret name. + * Sysctl setting fs.inotify.max_user_watches. */ - secretName: string; + fsInotifyMaxUserWatches?: number; /** - * The secret version. + * Sysctl setting fs.file-max. */ - version?: string; -} - -/** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. Either secret or keyVaultSecretRef must be specified. - */ -export interface ContainerServiceServicePrincipalProfile { + fsFileMax?: number; /** - * The ID for the service principal. + * Sysctl setting fs.aio-max-nr. */ - clientId: string; + fsAioMaxNr?: number; /** - * The secret password associated with the service principal in plain text. + * Sysctl setting fs.nr_open. */ - secret?: string; + fsNrOpen?: number; + /** + * Sysctl setting kernel.threads-max. + */ + kernelThreadsMax?: number; + /** + * Sysctl setting vm.max_map_count. + */ + vmMaxMapCount?: number; /** - * Reference to a secret stored in Azure Key Vault. + * Sysctl setting vm.swappiness. */ - keyVaultSecretRef?: KeyVaultSecretRef; + vmSwappiness?: number; + /** + * Sysctl setting vm.vfs_cache_pressure. + */ + vmVfsCachePressure?: number; } /** - * Profile for the container service orchestrator. + * OS configurations of Linux agent nodes. */ -export interface ContainerServiceOrchestratorProfile { +export interface LinuxOSConfig { /** - * The orchestrator to use to manage container service cluster resources. Valid values are - * Kubernetes, Swarm, DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', - * 'DCOS', 'DockerCE', 'Custom' + * Sysctl settings for Linux agent nodes. */ - orchestratorType: ContainerServiceOrchestratorTypes; + sysctls?: SysctlConfig; /** - * The version of the orchestrator to use. You can specify the major.minor.patch part of the - * actual version.For example, you can specify version as "1.6.11". + * Transparent Huge Page enabled configuration. */ - orchestratorVersion?: string; + transparentHugePageEnabled?: string; + /** + * Transparent Huge Page defrag configuration. + */ + transparentHugePageDefrag?: string; + /** + * SwapFileSizeMB specifies size in MB of a swap file will be created on each node. + */ + swapFileSizeMB?: number; } /** - * Profile for the container service master. + * Properties for the container service agent pool profile. */ -export interface ContainerServiceMasterProfile { +export interface ManagedClusterAgentPoolProfileProperties { /** - * Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The - * default value is 1. Default value: 1. + * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to + * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The + * default value is 1. */ count?: number; - /** - * DNS prefix to be used to create the FQDN for the master pool. - */ - dnsPrefix: string; /** * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', @@ -419,7 +453,7 @@ export interface ContainerServiceMasterProfile { * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' */ - vmSize: ContainerServiceVMSizeTypes; + vmSize?: ContainerServiceVMSizeTypes; /** * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent * pool. If you specify 0, it will apply the default osDisk size according to the vmSize @@ -427,38 +461,146 @@ export interface ContainerServiceMasterProfile { */ osDiskSizeGB?: number; /** - * VNet SubnetID specifies the VNet's subnet identifier. + * OS disk type to be used for machines in a given agent pool. Allowed values are 'Ephemeral' and + * 'Managed'. Defaults to 'Managed'. May not be changed after creation. Possible values include: + * 'Managed', 'Ephemeral' + */ + osDiskType?: OSDiskType; + /** + * VNet SubnetID specifies the VNet's subnet identifier for nodes and maybe pods */ vnetSubnetID?: string; /** - * FirstConsecutiveStaticIP used to specify the first static ip of masters. Default value: - * '10.240.255.5'. + * Pod SubnetID specifies the VNet's subnet identifier for pods. */ - firstConsecutiveStaticIP?: string; + podSubnetID?: string; /** - * Storage profile specifies what kind of storage used. Choose from StorageAccount and - * ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. - * Possible values include: 'StorageAccount', 'ManagedDisks' + * Maximum number of pods that can run on a node. */ - storageProfile?: ContainerServiceStorageProfileTypes; + maxPods?: number; /** - * FQDN for the master pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. */ - readonly fqdn?: string; -} + osType?: OSType; + /** + * Maximum number of nodes for auto-scaling + */ + maxCount?: number; + /** + * Minimum number of nodes for auto-scaling + */ + minCount?: number; + /** + * Whether to enable auto-scaler + */ + enableAutoScaling?: boolean; + /** + * AgentPoolType represents types of an agent pool. Possible values include: + * 'VirtualMachineScaleSets', 'AvailabilitySet' + */ + type?: AgentPoolType; + /** + * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' + */ + mode?: AgentPoolMode; + /** + * Version of orchestrator specified when creating the managed cluster. + */ + orchestratorVersion?: string; + /** + * Version of node image + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nodeImageVersion?: string; + /** + * Settings for upgrading the agentpool + */ + upgradeSettings?: AgentPoolUpgradeSettings; + /** + * The current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Describes whether the Agent Pool is Running or Stopped + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly powerState?: PowerState; + /** + * Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. + */ + availabilityZones?: string[]; + /** + * Enable public IP for nodes + */ + enableNodePublicIP?: boolean; + /** + * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. + * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. + */ + scaleSetPriority?: ScaleSetPriority; + /** + * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale + * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: + * 'Delete'. + */ + scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; + /** + * SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. + * Possible values are any decimal value greater than zero or -1 which indicates default price to + * be up-to on-demand. + */ + spotMaxPrice?: number; + /** + * Agent pool tags to be persisted on the agent pool virtual machine scale set. + */ + tags?: { [propertyName: string]: string }; + /** + * Agent pool node labels to be persisted across all nodes in agent pool. + */ + nodeLabels?: { [propertyName: string]: string }; + /** + * Taints added to new nodes during node pool create and scale. For example, + * key=value:NoSchedule. + */ + nodeTaints?: string[]; + /** + * The ID for Proximity Placement Group. + */ + proximityPlacementGroupID?: string; + /** + * KubeletConfig specifies the configuration of kubelet on agent nodes. + */ + kubeletConfig?: KubeletConfig; + /** + * LinuxOSConfig specifies the OS configuration of linux agent nodes. + */ + linuxOSConfig?: LinuxOSConfig; + /** + * Whether to enable EncryptionAtHost + */ + enableEncryptionAtHost?: boolean; +} /** * Profile for the container service agent pool. */ -export interface ContainerServiceAgentPoolProfile { +export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { /** * Unique name of the agent pool profile in the context of the subscription and resource group. */ name: string; +} + +/** + * Agent Pool. + */ +export interface AgentPool extends SubResource { /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to - * 100 (inclusive). The default value is 1. Default value: 1. + * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to + * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The + * default value is 1. */ count?: number; /** @@ -501,7 +643,7 @@ export interface ContainerServiceAgentPoolProfile { * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' */ - vmSize: ContainerServiceVMSizeTypes; + vmSize?: ContainerServiceVMSizeTypes; /** * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent * pool. If you specify 0, it will apply the default osDisk size according to the vmSize @@ -509,48 +651,155 @@ export interface ContainerServiceAgentPoolProfile { */ osDiskSizeGB?: number; /** - * DNS prefix to be used to create the FQDN for the agent pool. + * OS disk type to be used for machines in a given agent pool. Allowed values are 'Ephemeral' and + * 'Managed'. Defaults to 'Managed'. May not be changed after creation. Possible values include: + * 'Managed', 'Ephemeral' */ - dnsPrefix?: string; - /** - * FQDN for the agent pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fqdn?: string; + osDiskType?: OSDiskType; /** - * Ports number array used to expose on this agent pool. The default opened ports are different - * based on your choice of orchestrator. + * VNet SubnetID specifies the VNet's subnet identifier for nodes and maybe pods */ - ports?: number[]; + vnetSubnetID?: string; /** - * Storage profile specifies what kind of storage used. Choose from StorageAccount and - * ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. - * Possible values include: 'StorageAccount', 'ManagedDisks' + * Pod SubnetID specifies the VNet's subnet identifier for pods. */ - storageProfile?: ContainerServiceStorageProfileTypes; + podSubnetID?: string; /** - * VNet SubnetID specifies the VNet's subnet identifier. + * Maximum number of pods that can run on a node. */ - vnetSubnetID?: string; + maxPods?: number; /** * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. */ osType?: OSType; + /** + * Maximum number of nodes for auto-scaling + */ + maxCount?: number; + /** + * Minimum number of nodes for auto-scaling + */ + minCount?: number; + /** + * Whether to enable auto-scaler + */ + enableAutoScaling?: boolean; + /** + * AgentPoolType represents types of an agent pool. Possible values include: + * 'VirtualMachineScaleSets', 'AvailabilitySet' + */ + agentPoolType?: AgentPoolType; + /** + * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' + */ + mode?: AgentPoolMode; + /** + * Version of orchestrator specified when creating the managed cluster. + */ + orchestratorVersion?: string; + /** + * Version of node image + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nodeImageVersion?: string; + /** + * Settings for upgrading the agentpool + */ + upgradeSettings?: AgentPoolUpgradeSettings; + /** + * The current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Describes whether the Agent Pool is Running or Stopped + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly powerState?: PowerState; + /** + * Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. + */ + availabilityZones?: string[]; + /** + * Enable public IP for nodes + */ + enableNodePublicIP?: boolean; + /** + * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. + * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. + */ + scaleSetPriority?: ScaleSetPriority; + /** + * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale + * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: + * 'Delete'. + */ + scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; + /** + * SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. + * Possible values are any decimal value greater than zero or -1 which indicates default price to + * be up-to on-demand. + */ + spotMaxPrice?: number; + /** + * Agent pool tags to be persisted on the agent pool virtual machine scale set. + */ + tags?: { [propertyName: string]: string }; + /** + * Agent pool node labels to be persisted across all nodes in agent pool. + */ + nodeLabels?: { [propertyName: string]: string }; + /** + * Taints added to new nodes during node pool create and scale. For example, + * key=value:NoSchedule. + */ + nodeTaints?: string[]; + /** + * The ID for Proximity Placement Group. + */ + proximityPlacementGroupID?: string; + /** + * KubeletConfig specifies the configuration of kubelet on agent nodes. + */ + kubeletConfig?: KubeletConfig; + /** + * LinuxOSConfig specifies the OS configuration of linux agent nodes. + */ + linuxOSConfig?: LinuxOSConfig; + /** + * Whether to enable EncryptionAtHost + */ + enableEncryptionAtHost?: boolean; } /** * Profile for Windows VMs in the container service cluster. */ -export interface ContainerServiceWindowsProfile { +export interface ManagedClusterWindowsProfile { /** - * The administrator username to use for Windows VMs. + * Specifies the name of the administrator account.

**restriction:** Cannot end in "." + *

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", + * "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", + * "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", + * "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length:** 1 + * character

**Max-length:** 20 characters */ adminUsername: string; /** - * The administrator password to use for Windows VMs. + * Specifies the password of the administrator account.

**Minimum-length:** 8 characters + *

**Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 + * conditions below need to be fulfilled
Has lower characters
Has upper characters
+ * Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** + * "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", + * "Password1", "Password22", "iloveyou!" + */ + adminPassword?: string; + /** + * The licenseType to use for Windows VMs. Windows_Server is used to enable Azure Hybrid User + * Benefits for Windows VMs. Possible values include: 'None', 'Windows_Server' */ - adminPassword: string; + licenseType?: LicenseType; } /** @@ -590,1340 +839,895 @@ export interface ContainerServiceLinuxProfile { } /** - * Profile for diagnostics on the container service VMs. + * Desired managed outbound IPs for the cluster load balancer. */ -export interface ContainerServiceVMDiagnostics { +export interface ManagedClusterLoadBalancerProfileManagedOutboundIPs { /** - * Whether the VM diagnostic agent is provisioned on the VM. + * Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed + * values must be in the range of 1 to 100 (inclusive). The default value is 1. Default value: 1. */ - enabled: boolean; + count?: number; +} + +/** + * A reference to an Azure resource. + */ +export interface ResourceReference { /** - * The URI of the storage account where diagnostics are stored. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The fully qualified Azure resource id. */ - readonly storageUri?: string; + id?: string; } /** - * Profile for diagnostics on the container service cluster. + * Desired outbound IP Prefix resources for the cluster load balancer. */ -export interface ContainerServiceDiagnosticsProfile { +export interface ManagedClusterLoadBalancerProfileOutboundIPPrefixes { /** - * Profile for diagnostics on the container service VMs. + * A list of public IP prefix resources. */ - vmDiagnostics: ContainerServiceVMDiagnostics; + publicIPPrefixes?: ResourceReference[]; } /** - * Container service. + * Desired outbound IP resources for the cluster load balancer. */ -export interface ContainerService extends Resource { +export interface ManagedClusterLoadBalancerProfileOutboundIPs { /** - * The current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of public IP resources. */ - readonly provisioningState?: string; + publicIPs?: ResourceReference[]; +} + +/** + * Profile of the managed cluster load balancer. + */ +export interface ManagedClusterLoadBalancerProfile { /** - * Profile for the container service orchestrator. - */ - orchestratorProfile: ContainerServiceOrchestratorProfile; - /** - * Properties to configure a custom container service cluster. - */ - customProfile?: ContainerServiceCustomProfile; - /** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. Exact one of secret or keyVaultSecretRef need to be specified. + * Desired managed outbound IPs for the cluster load balancer. */ - servicePrincipalProfile?: ContainerServiceServicePrincipalProfile; + managedOutboundIPs?: ManagedClusterLoadBalancerProfileManagedOutboundIPs; /** - * Profile for the container service master. + * Desired outbound IP Prefix resources for the cluster load balancer. */ - masterProfile: ContainerServiceMasterProfile; + outboundIPPrefixes?: ManagedClusterLoadBalancerProfileOutboundIPPrefixes; /** - * Properties of the agent pool. + * Desired outbound IP resources for the cluster load balancer. */ - agentPoolProfiles?: ContainerServiceAgentPoolProfile[]; + outboundIPs?: ManagedClusterLoadBalancerProfileOutboundIPs; /** - * Profile for Windows VMs in the container service cluster. + * The effective outbound IP resources of the cluster load balancer. */ - windowsProfile?: ContainerServiceWindowsProfile; + effectiveOutboundIPs?: ResourceReference[]; /** - * Profile for Linux VMs in the container service cluster. + * Desired number of allocated SNAT ports per VM. Allowed values must be in the range of 0 to + * 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports. + * Default value: 0. */ - linuxProfile: ContainerServiceLinuxProfile; + allocatedOutboundPorts?: number; /** - * Profile for diagnostics in the container service cluster. + * Desired outbound flow idle timeout in minutes. Allowed values must be in the range of 4 to 120 + * (inclusive). The default value is 30 minutes. Default value: 30. */ - diagnosticsProfile?: ContainerServiceDiagnosticsProfile; + idleTimeoutInMinutes?: number; } /** - * Contains information about orchestrator. + * Profile of network configuration. */ -export interface OrchestratorProfile { +export interface ContainerServiceNetworkProfile { /** - * Orchestrator type. + * Network plugin used for building Kubernetes network. Possible values include: 'azure', + * 'kubenet'. Default value: 'kubenet'. */ - orchestratorType?: string; + networkPlugin?: NetworkPlugin; /** - * Orchestrator version (major, minor, patch). + * Network policy used for building Kubernetes network. Possible values include: 'calico', + * 'azure' */ - orchestratorVersion: string; + networkPolicy?: NetworkPolicy; /** - * Whether Kubernetes version is currently in preview. + * Network mode used for building Kubernetes network. Possible values include: 'transparent', + * 'bridge' */ - isPreview?: boolean; -} - -/** - * The profile of an orchestrator and its available versions. - */ -export interface OrchestratorVersionProfile { + networkMode?: NetworkMode; + /** + * A CIDR notation IP range from which to assign pod IPs when kubenet is used. Default value: + * '10.244.0.0/16'. + */ + podCidr?: string; + /** + * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with + * any Subnet IP ranges. Default value: '10.0.0.0/16'. + */ + serviceCidr?: string; /** - * Orchestrator type. + * An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service + * address range specified in serviceCidr. Default value: '10.0.0.10'. */ - orchestratorType: string; + dnsServiceIP?: string; /** - * Orchestrator version (major, minor, patch). + * A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any + * Subnet IP ranges or the Kubernetes service address range. Default value: '172.17.0.1/16'. */ - orchestratorVersion: string; + dockerBridgeCidr?: string; /** - * Installed by default if version is not specified. + * The outbound (egress) routing method. Possible values include: 'loadBalancer', + * 'userDefinedRouting'. Default value: 'loadBalancer'. */ - default?: boolean; + outboundType?: OutboundType; /** - * Whether Kubernetes version is currently in preview. + * The load balancer sku for the managed cluster. Possible values include: 'standard', 'basic' */ - isPreview?: boolean; + loadBalancerSku?: LoadBalancerSku; /** - * The list of available upgrade versions. + * Profile of the cluster load balancer. */ - upgrades?: OrchestratorProfile[]; + loadBalancerProfile?: ManagedClusterLoadBalancerProfile; } /** - * The list of versions for supported orchestrators. + * Profile for diagnostics on the container service VMs. */ -export interface OrchestratorVersionProfileListResult { - /** - * Id of the orchestrator version profile list result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; +export interface ContainerServiceVMDiagnostics { /** - * Name of the orchestrator version profile list result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether the VM diagnostic agent is provisioned on the VM. */ - readonly name?: string; + enabled: boolean; /** - * Type of the orchestrator version profile list result. + * The URI of the storage account where diagnostics are stored. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly storageUri?: string; +} + +/** + * Profile for diagnostics on the container service cluster. + */ +export interface ContainerServiceDiagnosticsProfile { /** - * List of orchestrator version profiles. + * Profile for diagnostics on the container service VMs. */ - orchestrators: OrchestratorVersionProfile[]; + vmDiagnostics: ContainerServiceVMDiagnostics; } /** - * Describes the properties of a Compute Operation value. + * An interface representing UserAssignedIdentity. */ -export interface OperationValue { +export interface UserAssignedIdentity { /** - * The origin of the compute operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource id of the user assigned identity. */ - readonly origin?: string; + resourceId?: string; /** - * The name of the compute operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The client id of the user assigned identity. */ - readonly name?: string; + clientId?: string; /** - * The display name of the compute operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The object id of the user assigned identity. */ - readonly operation?: string; + objectId?: string; +} + +/** + * Information of user assigned identity used by this add-on. + */ +export interface ManagedClusterAddonProfileIdentity extends UserAssignedIdentity { +} + +/** + * A Kubernetes add-on profile for a managed cluster. + */ +export interface ManagedClusterAddonProfile { /** - * The display name of the resource the operation applies to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether the add-on is enabled or not. */ - readonly resource?: string; + enabled: boolean; /** - * The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Key-value pairs for configuring an add-on. */ - readonly description?: string; + config?: { [propertyName: string]: string }; /** - * The resource provider for the operation. + * Information of user assigned identity used by this add-on. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + readonly identity?: ManagedClusterAddonProfileIdentity; } /** - * Reference to another subresource. + * An interface representing ManagedClusterPodIdentityProvisioningInfo. */ -export interface SubResource extends BaseResource { +export interface ManagedClusterPodIdentityProvisioningInfo { /** - * Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Pod identity assignment error (if any). */ - readonly id?: string; + error?: CloudError; +} + +/** + * An interface representing ManagedClusterPodIdentity. + */ +export interface ManagedClusterPodIdentity { /** - * The name of the resource that is unique within a resource group. This name can be used to - * access the resource. + * Name of the pod identity. + */ + name: string; + /** + * Namespace of the pod identity. + */ + namespace: string; + /** + * Information of the user assigned identity. + */ + identity: UserAssignedIdentity; + /** + * The current provisioning state of the pod identity. Possible values include: 'Assigned', + * 'Updating', 'Deleting', 'Failed' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly provisioningState?: ManagedClusterPodIdentityProvisioningState; /** - * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly provisioningInfo?: ManagedClusterPodIdentityProvisioningInfo; } /** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. + * An interface representing ManagedClusterPodIdentityException. */ -export interface ManagedClusterServicePrincipalProfile { +export interface ManagedClusterPodIdentityException { /** - * The ID for the service principal. + * Name of the pod identity exception. */ - clientId: string; + name: string; /** - * The secret password associated with the service principal in plain text. + * Namespace of the pod identity exception. */ - secret?: string; -} - -/** - * Settings for upgrading an agentpool - */ -export interface AgentPoolUpgradeSettings { + namespace: string; /** - * Count or percentage of additional nodes to be added during upgrade. If empty uses AKS default + * Pod labels to match. */ - maxSurge?: string; + podLabels: { [propertyName: string]: string }; } /** - * Properties for the container service agent pool profile. + * An interface representing ManagedClusterPodIdentityProfile. */ -export interface ManagedClusterAgentPoolProfileProperties { +export interface ManagedClusterPodIdentityProfile { /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to - * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The - * default value is 1. + * Whether the pod identity addon is enabled. */ - count?: number; + enabled?: boolean; /** - * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', - * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', - * 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', 'Standard_A6', - * 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', 'Standard_A8m_v2', 'Standard_A9', - * 'Standard_B2ms', 'Standard_B2s', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', - * 'Standard_D11', 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', 'Standard_D12_v2', - * 'Standard_D12_v2_Promo', 'Standard_D13', 'Standard_D13_v2', 'Standard_D13_v2_Promo', - * 'Standard_D14', 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', - * 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', 'Standard_D2_v2', - * 'Standard_D2_v2_Promo', 'Standard_D2_v3', 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', - * 'Standard_D32s_v3', 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', - * 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', 'Standard_D5_v2', - * 'Standard_D5_v2_Promo', 'Standard_D64_v3', 'Standard_D64s_v3', 'Standard_D8_v3', - * 'Standard_D8s_v3', 'Standard_DS1', 'Standard_DS11', 'Standard_DS11_v2', - * 'Standard_DS11_v2_Promo', 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', - * 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', 'Standard_DS13_v2', - * 'Standard_DS13_v2_Promo', 'Standard_DS14', 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', - * 'Standard_DS14_v2', 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', - * 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', 'Standard_DS3', 'Standard_DS3_v2', - * 'Standard_DS3_v2_Promo', 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', - * 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', 'Standard_E16s_v3', - * 'Standard_E2_v3', 'Standard_E2s_v3', 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', - * 'Standard_E32_v3', 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', - * 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', 'Standard_E64s_v3', - * 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', 'Standard_F16', 'Standard_F16s', - * 'Standard_F16s_v2', 'Standard_F1s', 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', - * 'Standard_F32s_v2', 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', - * 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', 'Standard_G1', - * 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', - * 'Standard_GS3', 'Standard_GS4', 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', - * 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', - * 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', 'Standard_L32s', - * 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', 'Standard_M128-64ms', 'Standard_M128ms', - * 'Standard_M128s', 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', 'Standard_M64s', - * 'Standard_NC12', 'Standard_NC12s_v2', 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', - * 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', 'Standard_NC24s_v3', - * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', - * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + * User assigned pod identity settings. */ - vmSize?: ContainerServiceVMSizeTypes; + userAssignedIdentities?: ManagedClusterPodIdentity[]; /** - * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent - * pool. If you specify 0, it will apply the default osDisk size according to the vmSize - * specified. + * User assigned pod identity exception settings. */ - osDiskSizeGB?: number; + userAssignedIdentityExceptions?: ManagedClusterPodIdentityException[]; +} + +/** + * AADProfile specifies attributes for Azure Active Directory integration. + */ +export interface ManagedClusterAADProfile { /** - * VNet SubnetID specifies the VNet's subnet identifier. + * Whether to enable managed AAD. */ - vnetSubnetID?: string; + managed?: boolean; /** - * Maximum number of pods that can run on a node. + * Whether to enable Azure RBAC for Kubernetes authorization. */ - maxPods?: number; + enableAzureRBAC?: boolean; /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + * AAD group object IDs that will have admin role of the cluster. */ - osType?: OSType; + adminGroupObjectIDs?: string[]; /** - * Maximum number of nodes for auto-scaling + * The client AAD application ID. */ - maxCount?: number; + clientAppID?: string; /** - * Minimum number of nodes for auto-scaling + * The server AAD application ID. */ - minCount?: number; + serverAppID?: string; /** - * Whether to enable auto-scaler + * The server AAD application secret. */ - enableAutoScaling?: boolean; + serverAppSecret?: string; /** - * AgentPoolType represents types of an agent pool. Possible values include: - * 'VirtualMachineScaleSets', 'AvailabilitySet' + * The AAD tenant ID to use for authentication. If not specified, will use the tenant of the + * deployment subscription. */ - type?: AgentPoolType; - /** - * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' - */ - mode?: AgentPoolMode; - /** - * Version of orchestrator specified when creating the managed cluster. - */ - orchestratorVersion?: string; - /** - * Version of node image - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeImageVersion?: string; + tenantID?: string; +} + +/** + * Auto upgrade profile for a managed cluster. + */ +export interface ManagedClusterAutoUpgradeProfile { /** - * Settings for upgrading the agentpool + * upgrade channel for auto upgrade. Possible values include: 'rapid', 'stable', 'patch', 'none' */ - upgradeSettings?: AgentPoolUpgradeSettings; + upgradeChannel?: UpgradeChannel; +} + +/** + * Parameters to be applied to the cluster-autoscaler when enabled + */ +export interface ManagedClusterPropertiesAutoScalerProfile { + balanceSimilarNodeGroups?: string; /** - * The current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Possible values include: 'least-waste', 'most-pods', 'priority', 'random' */ - readonly provisioningState?: string; + expander?: Expander; + maxEmptyBulkDelete?: string; + maxGracefulTerminationSec?: string; + maxNodeProvisionTime?: string; + maxTotalUnreadyPercentage?: string; + newPodScaleUpDelay?: string; + okTotalUnreadyCount?: string; + scanInterval?: string; + scaleDownDelayAfterAdd?: string; + scaleDownDelayAfterDelete?: string; + scaleDownDelayAfterFailure?: string; + scaleDownUnneededTime?: string; + scaleDownUnreadyTime?: string; + scaleDownUtilizationThreshold?: string; + skipNodesWithLocalStorage?: string; + skipNodesWithSystemPods?: string; +} + +/** + * Access profile for managed cluster API server. + */ +export interface ManagedClusterAPIServerAccessProfile { /** - * Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. + * Authorized IP Ranges to kubernetes API server. */ - availabilityZones?: string[]; + authorizedIPRanges?: string[]; /** - * Enable public IP for nodes + * Whether to create the cluster as a private cluster or not. */ - enableNodePublicIP?: boolean; + enablePrivateCluster?: boolean; /** - * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. - * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. + * Private dns zone mode for private cluster. */ - scaleSetPriority?: ScaleSetPriority; + privateDNSZone?: string; +} + +/** + * An interface representing ManagedClusterPropertiesIdentityProfileValue. + */ +export interface ManagedClusterPropertiesIdentityProfileValue extends UserAssignedIdentity { +} + +/** + * An interface representing ManagedClusterIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedClusterIdentityUserAssignedIdentitiesValue { /** - * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale - * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: - * 'Delete'. + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; + readonly principalId?: string; /** - * SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. - * Possible values are any decimal value greater than zero or -1 which indicates default price to - * be up-to on-demand. + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - spotMaxPrice?: number; + readonly clientId?: string; +} + +/** + * Identity for the managed cluster. + */ +export interface ManagedClusterIdentity { /** - * Agent pool tags to be persisted on the agent pool virtual machine scale set. + * 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.** */ - tags?: { [propertyName: string]: string }; + readonly principalId?: string; /** - * Agent pool node labels to be persisted across all nodes in agent pool. + * 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.** */ - nodeLabels?: { [propertyName: string]: string }; + readonly tenantId?: string; /** - * Taints added to new nodes during node pool create and scale. For example, - * key=value:NoSchedule. + * 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', + * 'UserAssigned', 'None' */ - nodeTaints?: string[]; + type?: ResourceIdentityType; /** - * The ID for Proximity Placement Group. + * The user identity associated with the managed cluster. This identity will be used in control + * plane and only one user assigned identity is allowed. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - proximityPlacementGroupID?: string; + userAssignedIdentities?: { [propertyName: string]: ManagedClusterIdentityUserAssignedIdentitiesValue }; } /** - * Profile for the container service agent pool. + * An interface representing ManagedClusterSKU. */ -export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { +export interface ManagedClusterSKU { /** - * Unique name of the agent pool profile in the context of the subscription and resource group. + * Name of a managed cluster SKU. Possible values include: 'Basic' */ - name: string; + name?: ManagedClusterSKUName; + /** + * Tier of a managed cluster SKU. Possible values include: 'Paid', 'Free' + */ + tier?: ManagedClusterSKUTier; } /** - * Agent Pool. + * Managed cluster. */ -export interface AgentPool extends SubResource { +export interface ManagedCluster extends Resource { /** - * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to - * 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The - * default value is 1. + * The current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - count?: number; + readonly provisioningState?: string; /** - * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', - * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', - * 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', 'Standard_A6', - * 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', 'Standard_A8m_v2', 'Standard_A9', - * 'Standard_B2ms', 'Standard_B2s', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', - * 'Standard_D11', 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', 'Standard_D12_v2', - * 'Standard_D12_v2_Promo', 'Standard_D13', 'Standard_D13_v2', 'Standard_D13_v2_Promo', - * 'Standard_D14', 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', - * 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', 'Standard_D2_v2', - * 'Standard_D2_v2_Promo', 'Standard_D2_v3', 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', - * 'Standard_D32s_v3', 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', - * 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', 'Standard_D5_v2', - * 'Standard_D5_v2_Promo', 'Standard_D64_v3', 'Standard_D64s_v3', 'Standard_D8_v3', - * 'Standard_D8s_v3', 'Standard_DS1', 'Standard_DS11', 'Standard_DS11_v2', - * 'Standard_DS11_v2_Promo', 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', - * 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', 'Standard_DS13_v2', - * 'Standard_DS13_v2_Promo', 'Standard_DS14', 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', - * 'Standard_DS14_v2', 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', - * 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', 'Standard_DS3', 'Standard_DS3_v2', - * 'Standard_DS3_v2_Promo', 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', - * 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', 'Standard_E16s_v3', - * 'Standard_E2_v3', 'Standard_E2s_v3', 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', - * 'Standard_E32_v3', 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', - * 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', 'Standard_E64s_v3', - * 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', 'Standard_F16', 'Standard_F16s', - * 'Standard_F16s_v2', 'Standard_F1s', 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', - * 'Standard_F32s_v2', 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', - * 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', 'Standard_G1', - * 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', - * 'Standard_GS3', 'Standard_GS4', 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', - * 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', - * 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', 'Standard_L32s', - * 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', 'Standard_M128-64ms', 'Standard_M128ms', - * 'Standard_M128s', 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', 'Standard_M64s', - * 'Standard_NC12', 'Standard_NC12s_v2', 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', - * 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', 'Standard_NC24s_v3', - * 'Standard_NC6', 'Standard_NC6s_v2', 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', - * 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + * Represents the Power State of the cluster + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vmSize?: ContainerServiceVMSizeTypes; + readonly powerState?: PowerState; /** - * OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent - * pool. If you specify 0, it will apply the default osDisk size according to the vmSize - * specified. + * The max number of agent pools for the managed cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osDiskSizeGB?: number; + readonly maxAgentPools?: number; /** - * VNet SubnetID specifies the VNet's subnet identifier. + * Version of Kubernetes specified when creating the managed cluster. */ - vnetSubnetID?: string; + kubernetesVersion?: string; /** - * Maximum number of pods that can run on a node. + * DNS prefix specified when creating the managed cluster. */ - maxPods?: number; + dnsPrefix?: string; /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + * FQDN for the master pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - osType?: OSType; + readonly fqdn?: string; /** - * Maximum number of nodes for auto-scaling + * FQDN of private cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxCount?: number; + readonly privateFQDN?: string; /** - * Minimum number of nodes for auto-scaling + * Properties of the agent pool. */ - minCount?: number; + agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; /** - * Whether to enable auto-scaler + * Profile for Linux VMs in the container service cluster. */ - enableAutoScaling?: boolean; + linuxProfile?: ContainerServiceLinuxProfile; /** - * AgentPoolType represents types of an agent pool. Possible values include: - * 'VirtualMachineScaleSets', 'AvailabilitySet' + * Profile for Windows VMs in the container service cluster. */ - agentPoolType?: AgentPoolType; + windowsProfile?: ManagedClusterWindowsProfile; /** - * AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User' + * Information about a service principal identity for the cluster to use for manipulating Azure + * APIs. */ - mode?: AgentPoolMode; + servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; /** - * Version of orchestrator specified when creating the managed cluster. + * Profile of managed cluster add-on. */ - orchestratorVersion?: string; + addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile }; /** - * Version of node image - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Profile of managed cluster pod identity. */ - readonly nodeImageVersion?: string; + podIdentityProfile?: ManagedClusterPodIdentityProfile; /** - * Settings for upgrading the agentpool + * Name of the resource group containing agent pool nodes. */ - upgradeSettings?: AgentPoolUpgradeSettings; + nodeResourceGroup?: string; /** - * The current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to enable Kubernetes Role-Based Access Control. */ - readonly provisioningState?: string; + enableRBAC?: boolean; /** - * Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType. + * (DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set + * for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. */ - availabilityZones?: string[]; + enablePodSecurityPolicy?: boolean; /** - * Enable public IP for nodes + * Profile of network configuration. */ - enableNodePublicIP?: boolean; + networkProfile?: ContainerServiceNetworkProfile; /** - * ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. - * Possible values include: 'Spot', 'Regular'. Default value: 'Regular'. + * Profile of Azure Active Directory configuration. */ - scaleSetPriority?: ScaleSetPriority; + aadProfile?: ManagedClusterAADProfile; /** - * ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale - * set. Default to Delete. Possible values include: 'Delete', 'Deallocate'. Default value: - * 'Delete'. + * Profile of auto upgrade configuration. */ - scaleSetEvictionPolicy?: ScaleSetEvictionPolicy; + autoUpgradeProfile?: ManagedClusterAutoUpgradeProfile; /** - * SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. - * Possible values are any decimal value greater than zero or -1 which indicates default price to - * be up-to on-demand. + * Parameters to be applied to the cluster-autoscaler when enabled */ - spotMaxPrice?: number; - /** - * Agent pool tags to be persisted on the agent pool virtual machine scale set. - */ - tags?: { [propertyName: string]: string }; - /** - * Agent pool node labels to be persisted across all nodes in agent pool. - */ - nodeLabels?: { [propertyName: string]: string }; + autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; /** - * Taints added to new nodes during node pool create and scale. For example, - * key=value:NoSchedule. + * Access profile for managed cluster API server. */ - nodeTaints?: string[]; + apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; /** - * The ID for Proximity Placement Group. + * ResourceId of the disk encryption set to use for enabling encryption at rest. */ - proximityPlacementGroupID?: string; -} - -/** - * Profile for Windows VMs in the container service cluster. - */ -export interface ManagedClusterWindowsProfile { + diskEncryptionSetID?: string; /** - * The administrator username to use for Windows VMs. + * Identities associated with the cluster. */ - adminUsername: string; + identityProfile?: { [propertyName: string]: ManagedClusterPropertiesIdentityProfileValue }; /** - * The administrator password to use for Windows VMs. + * The identity of the managed cluster, if configured. */ - adminPassword?: string; + identity?: ManagedClusterIdentity; /** - * The licenseType to use for Windows VMs. Windows_Server is used to enable Azure Hybrid User - * Benefits for Windows VMs. Possible values include: 'None', 'Windows_Server' + * The managed cluster SKU. */ - licenseType?: LicenseType; + sku?: ManagedClusterSKU; } /** - * Desired managed outbound IPs for the cluster load balancer. + * Managed cluster Access Profile. */ -export interface ManagedClusterLoadBalancerProfileManagedOutboundIPs { +export interface ManagedClusterAccessProfile extends Resource { /** - * Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed - * values must be in the range of 1 to 100 (inclusive). The default value is 1. Default value: 1. + * Base64-encoded Kubernetes configuration file. */ - count?: number; + kubeConfig?: Uint8Array; } /** - * A reference to an Azure resource. + * An interface representing ManagedClusterPoolUpgradeProfileUpgradesItem. */ -export interface ResourceReference { +export interface ManagedClusterPoolUpgradeProfileUpgradesItem { /** - * The fully qualified Azure resource id. + * Kubernetes version (major, minor, patch). */ - id?: string; -} - -/** - * Desired outbound IP Prefix resources for the cluster load balancer. - */ -export interface ManagedClusterLoadBalancerProfileOutboundIPPrefixes { + kubernetesVersion?: string; /** - * A list of public IP prefix resources. + * Whether Kubernetes version is currently in preview. */ - publicIPPrefixes?: ResourceReference[]; + isPreview?: boolean; } /** - * Desired outbound IP resources for the cluster load balancer. + * The list of available upgrade versions. */ -export interface ManagedClusterLoadBalancerProfileOutboundIPs { +export interface ManagedClusterPoolUpgradeProfile { /** - * A list of public IP resources. + * Kubernetes version (major, minor, patch). */ - publicIPs?: ResourceReference[]; + kubernetesVersion: string; + /** + * Pool name. + */ + name?: string; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + */ + osType: OSType; + /** + * List of orchestrator types and versions available for upgrade. + */ + upgrades?: ManagedClusterPoolUpgradeProfileUpgradesItem[]; } /** - * Profile of the managed cluster load balancer. + * The list of available upgrades for compute pools. */ -export interface ManagedClusterLoadBalancerProfile { - /** - * Desired managed outbound IPs for the cluster load balancer. - */ - managedOutboundIPs?: ManagedClusterLoadBalancerProfileManagedOutboundIPs; +export interface ManagedClusterUpgradeProfile { /** - * Desired outbound IP Prefix resources for the cluster load balancer. + * Id of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - outboundIPPrefixes?: ManagedClusterLoadBalancerProfileOutboundIPPrefixes; + readonly id?: string; /** - * Desired outbound IP resources for the cluster load balancer. + * Name of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - outboundIPs?: ManagedClusterLoadBalancerProfileOutboundIPs; + readonly name?: string; /** - * The effective outbound IP resources of the cluster load balancer. + * Type of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - effectiveOutboundIPs?: ResourceReference[]; + readonly type?: string; /** - * Desired number of allocated SNAT ports per VM. Allowed values must be in the range of 0 to - * 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports. - * Default value: 0. + * The list of available upgrade versions for the control plane. */ - allocatedOutboundPorts?: number; + controlPlaneProfile: ManagedClusterPoolUpgradeProfile; /** - * Desired outbound flow idle timeout in minutes. Allowed values must be in the range of 4 to 120 - * (inclusive). The default value is 30 minutes. Default value: 30. + * The list of available upgrade versions for agent pools. */ - idleTimeoutInMinutes?: number; + agentPoolProfiles: ManagedClusterPoolUpgradeProfile[]; } /** - * Profile of network configuration. + * An interface representing AgentPoolUpgradeProfilePropertiesUpgradesItem. */ -export interface ContainerServiceNetworkProfile { - /** - * Network plugin used for building Kubernetes network. Possible values include: 'azure', - * 'kubenet'. Default value: 'kubenet'. - */ - networkPlugin?: NetworkPlugin; +export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { /** - * Network policy used for building Kubernetes network. Possible values include: 'calico', - * 'azure' + * Kubernetes version (major, minor, patch). */ - networkPolicy?: NetworkPolicy; + kubernetesVersion?: string; /** - * Network mode used for building Kubernetes network. Possible values include: 'transparent', - * 'bridge' + * Whether Kubernetes version is currently in preview. */ - networkMode?: NetworkMode; + isPreview?: boolean; +} + +/** + * The list of available upgrades for an agent pool. + */ +export interface AgentPoolUpgradeProfile { /** - * A CIDR notation IP range from which to assign pod IPs when kubenet is used. Default value: - * '10.244.0.0/16'. + * Id of the agent pool upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - podCidr?: string; + readonly id?: string; /** - * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with - * any Subnet IP ranges. Default value: '10.0.0.0/16'. + * Name of the agent pool upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serviceCidr?: string; + readonly name?: string; /** - * An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service - * address range specified in serviceCidr. Default value: '10.0.0.10'. + * Type of the agent pool upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dnsServiceIP?: string; + readonly type?: string; /** - * A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any - * Subnet IP ranges or the Kubernetes service address range. Default value: '172.17.0.1/16'. + * Kubernetes version (major, minor, patch). */ - dockerBridgeCidr?: string; + kubernetesVersion: string; /** - * The outbound (egress) routing method. Possible values include: 'loadBalancer', - * 'userDefinedRouting'. Default value: 'loadBalancer'. + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. */ - outboundType?: OutboundType; + osType: OSType; /** - * The load balancer sku for the managed cluster. Possible values include: 'standard', 'basic' + * List of orchestrator types and versions available for upgrade. */ - loadBalancerSku?: LoadBalancerSku; + upgrades?: AgentPoolUpgradeProfilePropertiesUpgradesItem[]; /** - * Profile of the cluster load balancer. + * LatestNodeImageVersion is the latest AKS supported node image version. */ - loadBalancerProfile?: ManagedClusterLoadBalancerProfile; + latestNodeImageVersion?: string; } /** - * An interface representing UserAssignedIdentity. + * An interface representing AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem. */ -export interface UserAssignedIdentity { +export interface AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem { /** - * The resource id of the user assigned identity. + * Whether this version is the default agent pool version. */ - resourceId?: string; + default?: boolean; /** - * The client id of the user assigned identity. + * Kubernetes version (major, minor, patch). */ - clientId?: string; + kubernetesVersion?: string; /** - * The object id of the user assigned identity. + * Whether Kubernetes version is currently in preview. */ - objectId?: string; -} - -/** - * Information of user assigned identity used by this add-on. - */ -export interface ManagedClusterAddonProfileIdentity extends UserAssignedIdentity { + isPreview?: boolean; } /** - * A Kubernetes add-on profile for a managed cluster. + * The list of available versions for an agent pool. */ -export interface ManagedClusterAddonProfile { +export interface AgentPoolAvailableVersions { /** - * Whether the add-on is enabled or not. + * Id of the agent pool available versions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enabled: boolean; + readonly id?: string; /** - * Key-value pairs for configuring an add-on. + * Name of the agent pool available versions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - config?: { [propertyName: string]: string }; + readonly name?: string; /** - * Information of user assigned identity used by this add-on. + * Type of the agent pool available versions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly identity?: ManagedClusterAddonProfileIdentity; + readonly type?: string; + /** + * List of versions available for agent pool. + */ + agentPoolVersions?: AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem[]; } /** - * AADProfile specifies attributes for Azure Active Directory integration. + * The credential result response. */ -export interface ManagedClusterAADProfile { +export interface CredentialResult { /** - * Whether to enable managed AAD. + * The name of the credential. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - managed?: boolean; + readonly name?: string; /** - * Whether to enable Azure RBAC for Kubernetes authorization. + * Base64-encoded Kubernetes configuration file. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableAzureRBAC?: boolean; + readonly value?: Uint8Array; +} + +/** + * The list of credential result response. + */ +export interface CredentialResults { /** - * AAD group object IDs that will have admin role of the cluster. + * Base64-encoded Kubernetes configuration file. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - adminGroupObjectIDs?: string[]; + readonly kubeconfigs?: CredentialResult[]; +} + +/** + * Private endpoint which a connection belongs to. + */ +export interface PrivateEndpoint { /** - * The client AAD application ID. - */ - clientAppID?: string; - /** - * The server AAD application ID. - */ - serverAppID?: string; - /** - * The server AAD application secret. - */ - serverAppSecret?: string; - /** - * The AAD tenant ID to use for authentication. If not specified, will use the tenant of the - * deployment subscription. + * The resource Id for private endpoint */ - tenantID?: string; -} - -/** - * Parameters to be applied to the cluster-autoscaler when enabled - */ -export interface ManagedClusterPropertiesAutoScalerProfile { - balanceSimilarNodeGroups?: string; - scanInterval?: string; - scaleDownDelayAfterAdd?: string; - scaleDownDelayAfterDelete?: string; - scaleDownDelayAfterFailure?: string; - scaleDownUnneededTime?: string; - scaleDownUnreadyTime?: string; - scaleDownUtilizationThreshold?: string; - maxGracefulTerminationSec?: string; + id?: string; } /** - * Access profile for managed cluster API server. + * The state of a private link service connection. */ -export interface ManagedClusterAPIServerAccessProfile { +export interface PrivateLinkServiceConnectionState { /** - * Authorized IP Ranges to kubernetes API server. + * The private link service connection status. Possible values include: 'Pending', 'Approved', + * 'Rejected', 'Disconnected' */ - authorizedIPRanges?: string[]; + status?: ConnectionStatus; /** - * Whether to create the cluster as a private cluster or not. + * The private link service connection description. */ - enablePrivateCluster?: boolean; -} - -/** - * An interface representing ManagedClusterPropertiesIdentityProfileValue. - */ -export interface ManagedClusterPropertiesIdentityProfileValue extends UserAssignedIdentity { + description?: string; } /** - * An interface representing ManagedClusterIdentityUserAssignedIdentitiesValue. + * A private endpoint connection */ -export interface ManagedClusterIdentityUserAssignedIdentitiesValue { +export interface PrivateEndpointConnection extends BaseResource { /** - * The principal id of user assigned identity. + * The ID of the private endpoint connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly principalId?: string; + readonly id?: string; /** - * The client id of user assigned identity. + * The name of the private endpoint connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly clientId?: string; -} - -/** - * Identity for the managed cluster. - */ -export interface ManagedClusterIdentity { + readonly name?: string; /** - * The principal id of the system assigned identity which is used by master components. + * The resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly principalId?: string; + readonly type?: string; /** - * The tenant id of the system assigned identity which is used by master components. + * The current provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', + * 'Failed' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tenantId?: string; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; /** - * 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', - * 'UserAssigned', 'None' + * The resource of private endpoint. */ - type?: ResourceIdentityType; + privateEndpoint?: PrivateEndpoint; /** - * The user identity associated with the managed cluster. This identity will be used in control - * plane and only one user assigned identity is allowed. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * A collection of information about the state of the connection between service consumer and + * provider. */ - userAssignedIdentities?: { [propertyName: string]: ManagedClusterIdentityUserAssignedIdentitiesValue }; + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; } /** - * An interface representing ManagedClusterSKU. + * A list of private endpoint connections */ -export interface ManagedClusterSKU { - /** - * Name of a managed cluster SKU. Possible values include: 'Basic' - */ - name?: ManagedClusterSKUName; +export interface PrivateEndpointConnectionListResult { /** - * Tier of a managed cluster SKU. Possible values include: 'Paid', 'Free' + * The collection value. */ - tier?: ManagedClusterSKUTier; + value?: PrivateEndpointConnection[]; } /** - * Managed cluster. + * A private link resource */ -export interface ManagedCluster extends Resource { +export interface PrivateLinkResource { /** - * The current deployment or provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The ID of the private link resource. */ - readonly provisioningState?: string; + id?: string; /** - * The max number of agent pools for the managed cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the private link resource. */ - readonly maxAgentPools?: number; + name?: string; /** - * Version of Kubernetes specified when creating the managed cluster. + * The resource type. */ - kubernetesVersion?: string; + type?: string; /** - * DNS prefix specified when creating the managed cluster. + * The group ID of the resource. */ - dnsPrefix?: string; + groupId?: string; /** - * FQDN for the master pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * RequiredMembers of the resource */ - readonly fqdn?: string; + requiredMembers?: string[]; /** - * FQDN of private cluster. + * The private link service ID of the resource, this field is exposed only to NRP internally. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly privateFQDN?: string; - /** - * Properties of the agent pool. - */ - agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; - /** - * Profile for Linux VMs in the container service cluster. - */ - linuxProfile?: ContainerServiceLinuxProfile; - /** - * Profile for Windows VMs in the container service cluster. - */ - windowsProfile?: ManagedClusterWindowsProfile; - /** - * Information about a service principal identity for the cluster to use for manipulating Azure - * APIs. - */ - servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; - /** - * Profile of managed cluster add-on. - */ - addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile }; - /** - * Name of the resource group containing agent pool nodes. - */ - nodeResourceGroup?: string; - /** - * Whether to enable Kubernetes Role-Based Access Control. - */ - enableRBAC?: boolean; - /** - * (DEPRECATING) Whether to enable Kubernetes pod security policy (preview). This feature is set - * for removal on October 15th, 2020. Learn more at aka.ms/aks/azpodpolicy. - */ - enablePodSecurityPolicy?: boolean; - /** - * Profile of network configuration. - */ - networkProfile?: ContainerServiceNetworkProfile; - /** - * Profile of Azure Active Directory configuration. - */ - aadProfile?: ManagedClusterAADProfile; - /** - * Parameters to be applied to the cluster-autoscaler when enabled - */ - autoScalerProfile?: ManagedClusterPropertiesAutoScalerProfile; - /** - * Access profile for managed cluster API server. - */ - apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; - /** - * ResourceId of the disk encryption set to use for enabling encryption at rest. - */ - diskEncryptionSetID?: string; - /** - * Identities associated with the cluster. - */ - identityProfile?: { [propertyName: string]: ManagedClusterPropertiesIdentityProfileValue }; - /** - * The identity of the managed cluster, if configured. - */ - identity?: ManagedClusterIdentity; - /** - * The managed cluster SKU. - */ - sku?: ManagedClusterSKU; + readonly privateLinkServiceID?: string; } /** - * Managed cluster Access Profile. + * A list of private link resources */ -export interface ManagedClusterAccessProfile extends Resource { +export interface PrivateLinkResourcesListResult { /** - * Base64-encoded Kubernetes configuration file. + * The collection value. */ - kubeConfig?: Uint8Array; + value?: PrivateLinkResource[]; } /** - * An interface representing ManagedClusterPoolUpgradeProfileUpgradesItem. + * An interface representing ContainerServiceClientOptions. */ -export interface ManagedClusterPoolUpgradeProfileUpgradesItem { - /** - * Kubernetes version (major, minor, patch). - */ - kubernetesVersion?: string; - /** - * Whether Kubernetes version is currently in preview. - */ - isPreview?: boolean; +export interface ContainerServiceClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** - * The list of available upgrade versions. + * @interface + * The List Compute Operation operation response. + * @extends Array */ -export interface ManagedClusterPoolUpgradeProfile { - /** - * Kubernetes version (major, minor, patch). - */ - kubernetesVersion: string; - /** - * Pool name. - */ - name?: string; - /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. - */ - osType: OSType; - /** - * List of orchestrator types and versions available for upgrade. - */ - upgrades?: ManagedClusterPoolUpgradeProfileUpgradesItem[]; +export interface OperationListResult extends Array { } /** - * The list of available upgrades for compute pools. + * @interface + * The response from the List Managed Clusters operation. + * @extends Array */ -export interface ManagedClusterUpgradeProfile { +export interface ManagedClusterListResult extends Array { /** - * Id of upgrade profile. + * The URL to get the next set of managed cluster results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly nextLink?: string; +} + +/** + * @interface + * The response from the List Agent Pools operation. + * @extends Array + */ +export interface AgentPoolListResult extends Array { /** - * Name of upgrade profile. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Type of upgrade profile. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The list of available upgrade versions for the control plane. - */ - controlPlaneProfile: ManagedClusterPoolUpgradeProfile; - /** - * The list of available upgrade versions for agent pools. - */ - agentPoolProfiles: ManagedClusterPoolUpgradeProfile[]; -} - -/** - * An interface representing AgentPoolUpgradeProfilePropertiesUpgradesItem. - */ -export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { - /** - * Kubernetes version (major, minor, patch). - */ - kubernetesVersion?: string; - /** - * Whether Kubernetes version is currently in preview. - */ - isPreview?: boolean; -} - -/** - * The list of available upgrades for an agent pool. - */ -export interface AgentPoolUpgradeProfile { - /** - * Id of the agent pool upgrade profile. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Name of the agent pool upgrade profile. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Type of the agent pool upgrade profile. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Kubernetes version (major, minor, patch). - */ - kubernetesVersion: string; - /** - * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. - * Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. - */ - osType: OSType; - /** - * List of orchestrator types and versions available for upgrade. - */ - upgrades?: AgentPoolUpgradeProfilePropertiesUpgradesItem[]; - /** - * LatestNodeImageVersion is the latest AKS supported node image version. - */ - latestNodeImageVersion?: string; -} - -/** - * An interface representing AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem. - */ -export interface AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem { - /** - * Whether this version is the default agent pool version. - */ - default?: boolean; - /** - * Kubernetes version (major, minor, patch). - */ - kubernetesVersion?: string; - /** - * Whether Kubernetes version is currently in preview. - */ - isPreview?: boolean; -} - -/** - * The list of available versions for an agent pool. - */ -export interface AgentPoolAvailableVersions { - /** - * Id of the agent pool available versions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Name of the agent pool available versions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Type of the agent pool available versions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * List of versions available for agent pool. - */ - agentPoolVersions?: AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem[]; -} - -/** - * The credential result response. - */ -export interface CredentialResult { - /** - * The name of the credential. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Base64-encoded Kubernetes configuration file. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: Uint8Array; -} - -/** - * The list of credential result response. - */ -export interface CredentialResults { - /** - * Base64-encoded Kubernetes configuration file. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kubeconfigs?: CredentialResult[]; -} - -/** - * Private endpoint which a connection belongs to. - */ -export interface PrivateEndpoint { - /** - * The resource Id for private endpoint - */ - id?: string; -} - -/** - * The state of a private link service connection. - */ -export interface PrivateLinkServiceConnectionState { - /** - * The private link service connection status. Possible values include: 'Pending', 'Approved', - * 'Rejected', 'Disconnected' - */ - status?: ConnectionStatus; - /** - * The private link service connection description. - */ - description?: string; -} - -/** - * A private endpoint connection - */ -export interface PrivateEndpointConnection extends BaseResource { - /** - * The ID of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The current provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', - * 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; - /** - * The resource of private endpoint. - */ - privateEndpoint?: PrivateEndpoint; - /** - * A collection of information about the state of the connection between service consumer and - * provider. - */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; -} - -/** - * A list of private endpoint connections - */ -export interface PrivateEndpointConnectionListResult { - /** - * The collection value. - */ - value?: PrivateEndpointConnection[]; -} - -/** - * Optional Parameters. - */ -export interface ContainerServicesListOrchestratorsOptionalParams extends msRest.RequestOptionsBase { - /** - * resource type for which the list of orchestrators needs to be returned - */ - resourceType?: string; -} - -/** - * An interface representing ContainerServiceClientOptions. - */ -export interface ContainerServiceClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * @interface - * The response from the List OpenShift Managed Clusters operation. - * @extends Array - */ -export interface OpenShiftManagedClusterListResult extends Array { - /** - * The URL to get the next set of OpenShift managed cluster results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - -/** - * @interface - * The response from the List Container Services operation. - * @extends Array - */ -export interface ContainerServiceListResult extends Array { - /** - * The URL to get the next set of container service results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - -/** - * @interface - * The List Compute Operation operation response. - * @extends Array - */ -export interface OperationListResult extends Array { -} - -/** - * @interface - * The response from the List Managed Clusters operation. - * @extends Array - */ -export interface ManagedClusterListResult extends Array { - /** - * The URL to get the next set of managed cluster results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - -/** - * @interface - * The response from the List Agent Pools operation. - * @extends Array - */ -export interface AgentPoolListResult extends Array { - /** - * The URL to get the next set of agent pool results. + * The URL to get the next set of agent pool results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } -/** - * Defines values for OSType. - * Possible values include: 'Linux', 'Windows' - * @readonly - * @enum {string} - */ -export type OSType = 'Linux' | 'Windows'; - -/** - * Defines values for OpenShiftContainerServiceVMSize. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', - * 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2', - * 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', - * 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', - * 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', 'Standard_E32s_v3', - * 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', - * 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', - * 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' - * @readonly - * @enum {string} - */ -export type OpenShiftContainerServiceVMSize = 'Standard_D2s_v3' | 'Standard_D4s_v3' | 'Standard_D8s_v3' | 'Standard_D16s_v3' | 'Standard_D32s_v3' | 'Standard_D64s_v3' | 'Standard_DS4_v2' | 'Standard_DS5_v2' | 'Standard_F8s_v2' | 'Standard_F16s_v2' | 'Standard_F32s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_F8s' | 'Standard_F16s' | 'Standard_E4s_v3' | 'Standard_E8s_v3' | 'Standard_E16s_v3' | 'Standard_E20s_v3' | 'Standard_E32s_v3' | 'Standard_E64s_v3' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5' | 'Standard_DS12_v2' | 'Standard_DS13_v2' | 'Standard_DS14_v2' | 'Standard_DS15_v2' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_L16s' | 'Standard_L32s'; - -/** - * Defines values for OpenShiftAgentPoolProfileRole. - * Possible values include: 'compute', 'infra' - * @readonly - * @enum {string} - */ -export type OpenShiftAgentPoolProfileRole = 'compute' | 'infra'; - /** * Defines values for ContainerServiceStorageProfileTypes. * Possible values include: 'StorageAccount', 'ManagedDisks' @@ -1975,15 +1779,23 @@ export type ContainerServiceStorageProfileTypes = 'StorageAccount' | 'ManagedDis * @readonly * @enum {string} */ -export type ContainerServiceVMSizeTypes = 'Standard_A1' | 'Standard_A10' | 'Standard_A11' | 'Standard_A1_v2' | 'Standard_A2' | 'Standard_A2_v2' | 'Standard_A2m_v2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A4_v2' | 'Standard_A4m_v2' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A8_v2' | 'Standard_A8m_v2' | 'Standard_A9' | 'Standard_B2ms' | 'Standard_B2s' | 'Standard_B4ms' | 'Standard_B8ms' | 'Standard_D1' | 'Standard_D11' | 'Standard_D11_v2' | 'Standard_D11_v2_Promo' | 'Standard_D12' | 'Standard_D12_v2' | 'Standard_D12_v2_Promo' | 'Standard_D13' | 'Standard_D13_v2' | 'Standard_D13_v2_Promo' | 'Standard_D14' | 'Standard_D14_v2' | 'Standard_D14_v2_Promo' | 'Standard_D15_v2' | 'Standard_D16_v3' | 'Standard_D16s_v3' | 'Standard_D1_v2' | 'Standard_D2' | 'Standard_D2_v2' | 'Standard_D2_v2_Promo' | 'Standard_D2_v3' | 'Standard_D2s_v3' | 'Standard_D3' | 'Standard_D32_v3' | 'Standard_D32s_v3' | 'Standard_D3_v2' | 'Standard_D3_v2_Promo' | 'Standard_D4' | 'Standard_D4_v2' | 'Standard_D4_v2_Promo' | 'Standard_D4_v3' | 'Standard_D4s_v3' | 'Standard_D5_v2' | 'Standard_D5_v2_Promo' | 'Standard_D64_v3' | 'Standard_D64s_v3' | 'Standard_D8_v3' | 'Standard_D8s_v3' | 'Standard_DS1' | 'Standard_DS11' | 'Standard_DS11_v2' | 'Standard_DS11_v2_Promo' | 'Standard_DS12' | 'Standard_DS12_v2' | 'Standard_DS12_v2_Promo' | 'Standard_DS13' | 'Standard_DS13-2_v2' | 'Standard_DS13-4_v2' | 'Standard_DS13_v2' | 'Standard_DS13_v2_Promo' | 'Standard_DS14' | 'Standard_DS14-4_v2' | 'Standard_DS14-8_v2' | 'Standard_DS14_v2' | 'Standard_DS14_v2_Promo' | 'Standard_DS15_v2' | 'Standard_DS1_v2' | 'Standard_DS2' | 'Standard_DS2_v2' | 'Standard_DS2_v2_Promo' | 'Standard_DS3' | 'Standard_DS3_v2' | 'Standard_DS3_v2_Promo' | 'Standard_DS4' | 'Standard_DS4_v2' | 'Standard_DS4_v2_Promo' | 'Standard_DS5_v2' | 'Standard_DS5_v2_Promo' | 'Standard_E16_v3' | 'Standard_E16s_v3' | 'Standard_E2_v3' | 'Standard_E2s_v3' | 'Standard_E32-16s_v3' | 'Standard_E32-8s_v3' | 'Standard_E32_v3' | 'Standard_E32s_v3' | 'Standard_E4_v3' | 'Standard_E4s_v3' | 'Standard_E64-16s_v3' | 'Standard_E64-32s_v3' | 'Standard_E64_v3' | 'Standard_E64s_v3' | 'Standard_E8_v3' | 'Standard_E8s_v3' | 'Standard_F1' | 'Standard_F16' | 'Standard_F16s' | 'Standard_F16s_v2' | 'Standard_F1s' | 'Standard_F2' | 'Standard_F2s' | 'Standard_F2s_v2' | 'Standard_F32s_v2' | 'Standard_F4' | 'Standard_F4s' | 'Standard_F4s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_F8' | 'Standard_F8s' | 'Standard_F8s_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS4-4' | 'Standard_GS4-8' | 'Standard_GS5' | 'Standard_GS5-16' | 'Standard_GS5-8' | 'Standard_H16' | 'Standard_H16m' | 'Standard_H16mr' | 'Standard_H16r' | 'Standard_H8' | 'Standard_H8m' | 'Standard_L16s' | 'Standard_L32s' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_M128-32ms' | 'Standard_M128-64ms' | 'Standard_M128ms' | 'Standard_M128s' | 'Standard_M64-16ms' | 'Standard_M64-32ms' | 'Standard_M64ms' | 'Standard_M64s' | 'Standard_NC12' | 'Standard_NC12s_v2' | 'Standard_NC12s_v3' | 'Standard_NC24' | 'Standard_NC24r' | 'Standard_NC24rs_v2' | 'Standard_NC24rs_v3' | 'Standard_NC24s_v2' | 'Standard_NC24s_v3' | 'Standard_NC6' | 'Standard_NC6s_v2' | 'Standard_NC6s_v3' | 'Standard_ND12s' | 'Standard_ND24rs' | 'Standard_ND24s' | 'Standard_ND6s' | 'Standard_NV12' | 'Standard_NV24' | 'Standard_NV6'; +export type ContainerServiceVMSizeTypes = 'Standard_A1' | 'Standard_A10' | 'Standard_A11' | 'Standard_A1_v2' | 'Standard_A2' | 'Standard_A2_v2' | 'Standard_A2m_v2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A4_v2' | 'Standard_A4m_v2' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A8_v2' | 'Standard_A8m_v2' | 'Standard_A9' | 'Standard_B2ms' | 'Standard_B2s' | 'Standard_B4ms' | 'Standard_B8ms' | 'Standard_D1' | 'Standard_D11' | 'Standard_D11_v2' | 'Standard_D11_v2_Promo' | 'Standard_D12' | 'Standard_D12_v2' | 'Standard_D12_v2_Promo' | 'Standard_D13' | 'Standard_D13_v2' | 'Standard_D13_v2_Promo' | 'Standard_D14' | 'Standard_D14_v2' | 'Standard_D14_v2_Promo' | 'Standard_D15_v2' | 'Standard_D16_v3' | 'Standard_D16s_v3' | 'Standard_D1_v2' | 'Standard_D2' | 'Standard_D2_v2' | 'Standard_D2_v2_Promo' | 'Standard_D2_v3' | 'Standard_D2s_v3' | 'Standard_D3' | 'Standard_D32_v3' | 'Standard_D32s_v3' | 'Standard_D3_v2' | 'Standard_D3_v2_Promo' | 'Standard_D4' | 'Standard_D4_v2' | 'Standard_D4_v2_Promo' | 'Standard_D4_v3' | 'Standard_D4s_v3' | 'Standard_D5_v2' | 'Standard_D5_v2_Promo' | 'Standard_D64_v3' | 'Standard_D64s_v3' | 'Standard_D8_v3' | 'Standard_D8s_v3' | 'Standard_DS1' | 'Standard_DS11' | 'Standard_DS11_v2' | 'Standard_DS11_v2_Promo' | 'Standard_DS12' | 'Standard_DS12_v2' | 'Standard_DS12_v2_Promo' | 'Standard_DS13' | 'Standard_DS13-2_v2' | 'Standard_DS13-4_v2' | 'Standard_DS13_v2' | 'Standard_DS13_v2_Promo' | 'Standard_DS14' | 'Standard_DS14-4_v2' | 'Standard_DS14-8_v2' | 'Standard_DS14_v2' | 'Standard_DS14_v2_Promo' | 'Standard_DS15_v2' | 'Standard_DS1_v2' | 'Standard_DS2' | 'Standard_DS2_v2' | 'Standard_DS2_v2_Promo' | 'Standard_DS3' | 'Standard_DS3_v2' | 'Standard_DS3_v2_Promo' | 'Standard_DS4' | 'Standard_DS4_v2' | 'Standard_DS4_v2_Promo' | 'Standard_DS5_v2' | 'Standard_DS5_v2_Promo' | 'Standard_E16_v3' | 'Standard_E16s_v3' | 'Standard_E2_v3' | 'Standard_E2s_v3' | 'Standard_E32-16s_v3' | 'Standard_E32-8s_v3' | 'Standard_E32_v3' | 'Standard_E32s_v3' | 'Standard_E4_v3' | 'Standard_E4s_v3' | 'Standard_E64-16s_v3' | 'Standard_E64-32s_v3' | 'Standard_E64_v3' | 'Standard_E64s_v3' | 'Standard_E8_v3' | 'Standard_E8s_v3' | 'Standard_F1' | 'Standard_F16' | 'Standard_F16s' | 'Standard_F16s_v2' | 'Standard_F1s' | 'Standard_F2' | 'Standard_F2s' | 'Standard_F2s_v2' | 'Standard_F32s_v2' | 'Standard_F4' | 'Standard_F4s' | 'Standard_F4s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_F8' | 'Standard_F8s' | 'Standard_F8s_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS4-4' | 'Standard_GS4-8' | 'Standard_GS5' | 'Standard_GS5-16' | 'Standard_GS5-8' | 'Standard_H16' | 'Standard_H16m' | 'Standard_H16mr' | 'Standard_H16r' | 'Standard_H8' | 'Standard_H8m' | 'Standard_L16s' | 'Standard_L32s' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_M128-32ms' | 'Standard_M128-64ms' | 'Standard_M128ms' | 'Standard_M128s' | 'Standard_M64-16ms' | 'Standard_M64-32ms' | 'Standard_M64ms' | 'Standard_M64s' | 'Standard_NC12' | 'Standard_NC12s_v2' | 'Standard_NC12s_v3' | 'Standard_NC24' | 'Standard_NC24r' | 'Standard_NC24rs_v2' | 'Standard_NC24rs_v3' | 'Standard_NC24s_v2' | 'Standard_NC24s_v3' | 'Standard_NC6' | 'Standard_NC6s_v2' | 'Standard_NC6s_v3' | 'Standard_ND12s' | 'Standard_ND24rs' | 'Standard_ND24s' | 'Standard_ND6s' | 'Standard_NV12' | 'Standard_NV24' | 'Standard_NV6'; + +/** + * Defines values for OSDiskType. + * Possible values include: 'Managed', 'Ephemeral' + * @readonly + * @enum {string} + */ +export type OSDiskType = 'Managed' | 'Ephemeral'; /** - * Defines values for ContainerServiceOrchestratorTypes. - * Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom' + * Defines values for OSType. + * Possible values include: 'Linux', 'Windows' * @readonly * @enum {string} */ -export type ContainerServiceOrchestratorTypes = 'Kubernetes' | 'Swarm' | 'DCOS' | 'DockerCE' | 'Custom'; +export type OSType = 'Linux' | 'Windows'; /** * Defines values for AgentPoolType. @@ -2001,6 +1813,14 @@ export type AgentPoolType = 'VirtualMachineScaleSets' | 'AvailabilitySet'; */ export type AgentPoolMode = 'System' | 'User'; +/** + * Defines values for Code. + * Possible values include: 'Running', 'Stopped' + * @readonly + * @enum {string} + */ +export type Code = 'Running' | 'Stopped'; + /** * Defines values for ScaleSetPriority. * Possible values include: 'Spot', 'Regular' @@ -2037,413 +1857,97 @@ export type NetworkPlugin = 'azure' | 'kubenet'; * Defines values for NetworkPolicy. * Possible values include: 'calico', 'azure' * @readonly - * @enum {string} - */ -export type NetworkPolicy = 'calico' | 'azure'; - -/** - * Defines values for NetworkMode. - * Possible values include: 'transparent', 'bridge' - * @readonly - * @enum {string} - */ -export type NetworkMode = 'transparent' | 'bridge'; - -/** - * Defines values for OutboundType. - * Possible values include: 'loadBalancer', 'userDefinedRouting' - * @readonly - * @enum {string} - */ -export type OutboundType = 'loadBalancer' | 'userDefinedRouting'; - -/** - * Defines values for LoadBalancerSku. - * Possible values include: 'standard', 'basic' - * @readonly - * @enum {string} - */ -export type LoadBalancerSku = 'standard' | 'basic'; - -/** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'None' - * @readonly - * @enum {string} - */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'None'; - -/** - * Defines values for ManagedClusterSKUName. - * Possible values include: 'Basic' - * @readonly - * @enum {string} - */ -export type ManagedClusterSKUName = 'Basic'; - -/** - * Defines values for ManagedClusterSKUTier. - * Possible values include: 'Paid', 'Free' - * @readonly - * @enum {string} - */ -export type ManagedClusterSKUTier = 'Paid' | 'Free'; - -/** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} - */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; - -/** - * Defines values for ConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' - * @readonly - * @enum {string} - */ -export type ConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; - -/** - * Contains response data for the list operation. - */ -export type OpenShiftManagedClustersListResponse = OpenShiftManagedClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedClusterListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type OpenShiftManagedClustersListByResourceGroupResponse = OpenShiftManagedClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedClusterListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type OpenShiftManagedClustersGetResponse = OpenShiftManagedCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedCluster; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type OpenShiftManagedClustersCreateOrUpdateResponse = OpenShiftManagedCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedCluster; - }; -}; - -/** - * Contains response data for the updateTags operation. - */ -export type OpenShiftManagedClustersUpdateTagsResponse = OpenShiftManagedCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedCluster; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type OpenShiftManagedClustersBeginCreateOrUpdateResponse = OpenShiftManagedCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedCluster; - }; -}; - -/** - * Contains response data for the beginUpdateTags operation. - */ -export type OpenShiftManagedClustersBeginUpdateTagsResponse = OpenShiftManagedCluster & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedCluster; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type OpenShiftManagedClustersListNextResponse = OpenShiftManagedClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedClusterListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type OpenShiftManagedClustersListByResourceGroupNextResponse = OpenShiftManagedClusterListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OpenShiftManagedClusterListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ContainerServicesListResponse = ContainerServiceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerServiceListResult; - }; -}; + * @enum {string} + */ +export type NetworkPolicy = 'calico' | 'azure'; /** - * Contains response data for the createOrUpdate operation. + * Defines values for NetworkMode. + * Possible values include: 'transparent', 'bridge' + * @readonly + * @enum {string} */ -export type ContainerServicesCreateOrUpdateResponse = ContainerService & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerService; - }; -}; +export type NetworkMode = 'transparent' | 'bridge'; /** - * Contains response data for the get operation. + * Defines values for OutboundType. + * Possible values include: 'loadBalancer', 'userDefinedRouting' + * @readonly + * @enum {string} */ -export type ContainerServicesGetResponse = ContainerService & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerService; - }; -}; +export type OutboundType = 'loadBalancer' | 'userDefinedRouting'; /** - * Contains response data for the listByResourceGroup operation. + * Defines values for LoadBalancerSku. + * Possible values include: 'standard', 'basic' + * @readonly + * @enum {string} */ -export type ContainerServicesListByResourceGroupResponse = ContainerServiceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerServiceListResult; - }; -}; +export type LoadBalancerSku = 'standard' | 'basic'; /** - * Contains response data for the listOrchestrators operation. + * Defines values for ManagedClusterPodIdentityProvisioningState. + * Possible values include: 'Assigned', 'Updating', 'Deleting', 'Failed' + * @readonly + * @enum {string} */ -export type ContainerServicesListOrchestratorsResponse = OrchestratorVersionProfileListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ManagedClusterPodIdentityProvisioningState = 'Assigned' | 'Updating' | 'Deleting' | 'Failed'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrchestratorVersionProfileListResult; - }; -}; +/** + * Defines values for UpgradeChannel. + * Possible values include: 'rapid', 'stable', 'patch', 'none' + * @readonly + * @enum {string} + */ +export type UpgradeChannel = 'rapid' | 'stable' | 'patch' | 'none'; /** - * Contains response data for the beginCreateOrUpdate operation. + * Defines values for Expander. + * Possible values include: 'least-waste', 'most-pods', 'priority', 'random' + * @readonly + * @enum {string} */ -export type ContainerServicesBeginCreateOrUpdateResponse = ContainerService & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type Expander = 'least-waste' | 'most-pods' | 'priority' | 'random'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerService; - }; -}; +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'None'; /** - * Contains response data for the listNext operation. + * Defines values for ManagedClusterSKUName. + * Possible values include: 'Basic' + * @readonly + * @enum {string} */ -export type ContainerServicesListNextResponse = ContainerServiceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ManagedClusterSKUName = 'Basic'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerServiceListResult; - }; -}; +/** + * Defines values for ManagedClusterSKUTier. + * Possible values include: 'Paid', 'Free' + * @readonly + * @enum {string} + */ +export type ManagedClusterSKUTier = 'Paid' | 'Free'; /** - * Contains response data for the listByResourceGroupNext operation. + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} */ -export type ContainerServicesListByResourceGroupNextResponse = ContainerServiceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ContainerServiceListResult; - }; -}; +/** + * Defines values for ConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type ConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; /** * Contains response data for the list operation. @@ -2666,9 +2170,9 @@ export type ManagedClustersUpdateTagsResponse = ManagedCluster & { }; /** - * Contains response data for the upgradeNodeImageVersion operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedClustersUpgradeNodeImageVersionResponse = AgentPool & { +export type ManagedClustersBeginCreateOrUpdateResponse = ManagedCluster & { /** * The underlying HTTP response. */ @@ -2681,14 +2185,14 @@ export type ManagedClustersUpgradeNodeImageVersionResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: ManagedCluster; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdateTags operation. */ -export type ManagedClustersBeginCreateOrUpdateResponse = ManagedCluster & { +export type ManagedClustersBeginUpdateTagsResponse = ManagedCluster & { /** * The underlying HTTP response. */ @@ -2706,9 +2210,9 @@ export type ManagedClustersBeginCreateOrUpdateResponse = ManagedCluster & { }; /** - * Contains response data for the beginUpdateTags operation. + * Contains response data for the listNext operation. */ -export type ManagedClustersBeginUpdateTagsResponse = ManagedCluster & { +export type ManagedClustersListNextResponse = ManagedClusterListResult & { /** * The underlying HTTP response. */ @@ -2721,14 +2225,14 @@ export type ManagedClustersBeginUpdateTagsResponse = ManagedCluster & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedCluster; + parsedBody: ManagedClusterListResult; }; }; /** - * Contains response data for the beginUpgradeNodeImageVersion operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClustersBeginUpgradeNodeImageVersionResponse = AgentPool & { +export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListResult & { /** * The underlying HTTP response. */ @@ -2741,14 +2245,14 @@ export type ManagedClustersBeginUpgradeNodeImageVersionResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: ManagedClusterListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ManagedClustersListNextResponse = ManagedClusterListResult & { +export type AgentPoolsListResponse = AgentPoolListResult & { /** * The underlying HTTP response. */ @@ -2761,14 +2265,14 @@ export type ManagedClustersListNextResponse = ManagedClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedClusterListResult; + parsedBody: AgentPoolListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListResult & { +export type AgentPoolsGetResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -2781,14 +2285,14 @@ export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListR /** * The response body as parsed JSON or XML */ - parsedBody: ManagedClusterListResult; + parsedBody: AgentPool; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type AgentPoolsListResponse = AgentPoolListResult & { +export type AgentPoolsCreateOrUpdateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -2801,14 +2305,14 @@ export type AgentPoolsListResponse = AgentPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolListResult; + parsedBody: AgentPool; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getUpgradeProfile operation. */ -export type AgentPoolsGetResponse = AgentPool & { +export type AgentPoolsGetUpgradeProfileResponse = AgentPoolUpgradeProfile & { /** * The underlying HTTP response. */ @@ -2821,14 +2325,14 @@ export type AgentPoolsGetResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: AgentPoolUpgradeProfile; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the getAvailableAgentPoolVersions operation. */ -export type AgentPoolsCreateOrUpdateResponse = AgentPool & { +export type AgentPoolsGetAvailableAgentPoolVersionsResponse = AgentPoolAvailableVersions & { /** * The underlying HTTP response. */ @@ -2841,14 +2345,14 @@ export type AgentPoolsCreateOrUpdateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: AgentPoolAvailableVersions; }; }; /** - * Contains response data for the getUpgradeProfile operation. + * Contains response data for the upgradeNodeImageVersion operation. */ -export type AgentPoolsGetUpgradeProfileResponse = AgentPoolUpgradeProfile & { +export type AgentPoolsUpgradeNodeImageVersionResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -2861,14 +2365,14 @@ export type AgentPoolsGetUpgradeProfileResponse = AgentPoolUpgradeProfile & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolUpgradeProfile; + parsedBody: AgentPool; }; }; /** - * Contains response data for the getAvailableAgentPoolVersions operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type AgentPoolsGetAvailableAgentPoolVersionsResponse = AgentPoolAvailableVersions & { +export type AgentPoolsBeginCreateOrUpdateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -2881,14 +2385,14 @@ export type AgentPoolsGetAvailableAgentPoolVersionsResponse = AgentPoolAvailable /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolAvailableVersions; + parsedBody: AgentPool; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpgradeNodeImageVersion operation. */ -export type AgentPoolsBeginCreateOrUpdateResponse = AgentPool & { +export type AgentPoolsBeginUpgradeNodeImageVersionResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -2984,3 +2488,43 @@ export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection parsedBody: PrivateEndpointConnection; }; }; + +/** + * Contains response data for the list operation. + */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourcesListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourcesListResult; + }; +}; + +/** + * Contains response data for the pOST operation. + */ +export type ResolvePrivateLinkServiceIdPOSTResponse = PrivateLinkResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResource; + }; +}; diff --git a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts index b16ddcf75f19..1e657cd55461 100644 --- a/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/managedClustersMappers.ts @@ -1,33 +1,24 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - discriminators, AgentPool, AgentPoolUpgradeSettings, BaseResource, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, ContainerServiceNetworkProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, ContainerServiceSshConfiguration, ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, CredentialResult, CredentialResults, - KeyVaultSecretRef, + KubeletConfig, + LinuxOSConfig, ManagedCluster, ManagedClusterAADProfile, ManagedClusterAccessProfile, @@ -36,6 +27,7 @@ export { ManagedClusterAgentPoolProfile, ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, + ManagedClusterAutoUpgradeProfile, ManagedClusterIdentity, ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterListResult, @@ -43,6 +35,10 @@ export { ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, ManagedClusterLoadBalancerProfileOutboundIPs, + ManagedClusterPodIdentity, + ManagedClusterPodIdentityException, + ManagedClusterPodIdentityProfile, + ManagedClusterPodIdentityProvisioningInfo, ManagedClusterPoolUpgradeProfile, ManagedClusterPoolUpgradeProfileUpgradesItem, ManagedClusterPropertiesAutoScalerProfile, @@ -51,22 +47,14 @@ export { ManagedClusterSKU, ManagedClusterUpgradeProfile, ManagedClusterWindowsProfile, - NetworkProfile, - OpenShiftManagedCluster, - OpenShiftManagedClusterAADIdentityProvider, - OpenShiftManagedClusterAgentPoolProfile, - OpenShiftManagedClusterAuthProfile, - OpenShiftManagedClusterBaseIdentityProvider, - OpenShiftManagedClusterIdentityProvider, - OpenShiftManagedClusterMasterPoolProfile, - OpenShiftRouterProfile, + PowerState, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, - PurchasePlan, Resource, ResourceReference, SubResource, + SysctlConfig, TagsObject, UserAssignedIdentity } from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 23fafe415798..ffb8946e1f20 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,15 +12,15 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const OperationValue: msRest.CompositeMapper = { + serializedName: "OperationValue", type: { name: "Composite", - className: "Resource", + className: "OperationValue", modelProperties: { - id: { + origin: { readOnly: true, - serializedName: "id", + serializedName: "origin", type: { name: "String" } @@ -32,91 +32,110 @@ export const Resource: msRest.CompositeMapper = { name: "String" } }, - type: { + operation: { readOnly: true, - serializedName: "type", + serializedName: "display.operation", type: { name: "String" } }, - location: { - required: true, - serializedName: "location", + resource: { + readOnly: true, + serializedName: "display.resource", type: { name: "String" } }, - tags: { - serializedName: "tags", + description: { + readOnly: true, + serializedName: "display.description", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" + } + }, + provider: { + readOnly: true, + serializedName: "display.provider", + type: { + name: "String" } } } } }; -export const PurchasePlan: msRest.CompositeMapper = { - serializedName: "PurchasePlan", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "PurchasePlan", + className: "Resource", modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, name: { + readOnly: true, serializedName: "name", type: { name: "String" } }, - product: { - serializedName: "product", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - publisher: { - serializedName: "publisher", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const OpenShiftRouterProfile: msRest.CompositeMapper = { - serializedName: "OpenShiftRouterProfile", +export const SubResource: msRest.CompositeMapper = { + serializedName: "SubResource", type: { name: "Composite", - className: "OpenShiftRouterProfile", + className: "SubResource", modelProperties: { - name: { - serializedName: "name", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - publicSubdomain: { + name: { readOnly: true, - serializedName: "publicSubdomain", + serializedName: "name", type: { name: "String" } }, - fqdn: { + type: { readOnly: true, - serializedName: "fqdn", + serializedName: "type", type: { name: "String" } @@ -125,70 +144,42 @@ export const OpenShiftRouterProfile: msRest.CompositeMapper = { } }; -export const NetworkProfile: msRest.CompositeMapper = { - serializedName: "NetworkProfile", +export const TagsObject: msRest.CompositeMapper = { + serializedName: "TagsObject", type: { name: "Composite", - className: "NetworkProfile", + className: "TagsObject", modelProperties: { - vnetCidr: { - serializedName: "vnetCidr", - defaultValue: '10.0.0.0/8', - type: { - name: "String" - } - }, - peerVnetId: { - serializedName: "peerVnetId", - type: { - name: "String" - } - }, - vnetId: { - serializedName: "vnetId", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const OpenShiftManagedClusterMasterPoolProfile: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterMasterPoolProfile", +export const ManagedClusterServicePrincipalProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterServicePrincipalProfile", type: { name: "Composite", - className: "OpenShiftManagedClusterMasterPoolProfile", + className: "ManagedClusterServicePrincipalProfile", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - count: { - required: true, - serializedName: "count", - type: { - name: "Number" - } - }, - vmSize: { + clientId: { required: true, - serializedName: "vmSize", - type: { - name: "String" - } - }, - subnetCidr: { - serializedName: "subnetCidr", + serializedName: "clientId", type: { name: "String" } }, - osType: { - serializedName: "osType", - defaultValue: 'Linux', + secret: { + serializedName: "secret", type: { name: "String" } @@ -197,24 +188,24 @@ export const OpenShiftManagedClusterMasterPoolProfile: msRest.CompositeMapper = } }; -export const OpenShiftManagedClusterAgentPoolProfile: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterAgentPoolProfile", +export const ContainerServiceMasterProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceMasterProfile", type: { name: "Composite", - className: "OpenShiftManagedClusterAgentPoolProfile", + className: "ContainerServiceMasterProfile", modelProperties: { - name: { - required: true, - serializedName: "name", + count: { + serializedName: "count", + defaultValue: 1, type: { - name: "String" + name: "Number" } }, - count: { + dnsPrefix: { required: true, - serializedName: "count", + serializedName: "dnsPrefix", type: { - name: "Number" + name: "String" } }, vmSize: { @@ -224,44 +215,34 @@ export const OpenShiftManagedClusterAgentPoolProfile: msRest.CompositeMapper = { name: "String" } }, - subnetCidr: { - serializedName: "subnetCidr", - defaultValue: '10.0.0.0/24', + osDiskSizeGB: { + serializedName: "osDiskSizeGB", + type: { + name: "Number" + } + }, + vnetSubnetID: { + serializedName: "vnetSubnetID", type: { name: "String" } }, - osType: { - serializedName: "osType", - defaultValue: 'Linux', + firstConsecutiveStaticIP: { + serializedName: "firstConsecutiveStaticIP", + defaultValue: '10.240.255.5', type: { name: "String" } }, - role: { - serializedName: "role", + storageProfile: { + serializedName: "storageProfile", type: { name: "String" } - } - } - } -}; - -export const OpenShiftManagedClusterBaseIdentityProvider: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterBaseIdentityProvider", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "OpenShiftManagedClusterBaseIdentityProvider", - className: "OpenShiftManagedClusterBaseIdentityProvider", - modelProperties: { - kind: { - required: true, - serializedName: "kind", + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", type: { name: "String" } @@ -270,914 +251,309 @@ export const OpenShiftManagedClusterBaseIdentityProvider: msRest.CompositeMapper } }; -export const OpenShiftManagedClusterIdentityProvider: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterIdentityProvider", +export const AgentPoolUpgradeSettings: msRest.CompositeMapper = { + serializedName: "AgentPoolUpgradeSettings", type: { name: "Composite", - className: "OpenShiftManagedClusterIdentityProvider", + className: "AgentPoolUpgradeSettings", modelProperties: { - name: { - serializedName: "name", + maxSurge: { + serializedName: "maxSurge", type: { name: "String" } - }, - provider: { - serializedName: "provider", - type: { - name: "Composite", - className: "OpenShiftManagedClusterBaseIdentityProvider" - } } } } }; -export const OpenShiftManagedClusterAuthProfile: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterAuthProfile", +export const PowerState: msRest.CompositeMapper = { + serializedName: "PowerState", type: { name: "Composite", - className: "OpenShiftManagedClusterAuthProfile", + className: "PowerState", modelProperties: { - identityProviders: { - serializedName: "identityProviders", + code: { + serializedName: "code", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OpenShiftManagedClusterIdentityProvider" - } - } + name: "String" } } } } }; -export const OpenShiftManagedCluster: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedCluster", +export const KubeletConfig: msRest.CompositeMapper = { + serializedName: "KubeletConfig", type: { name: "Composite", - className: "OpenShiftManagedCluster", + className: "KubeletConfig", modelProperties: { - ...Resource.type.modelProperties, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "PurchasePlan" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - openShiftVersion: { - required: true, - serializedName: "properties.openShiftVersion", - type: { - name: "String" - } - }, - clusterVersion: { - readOnly: true, - serializedName: "properties.clusterVersion", + cpuManagerPolicy: { + serializedName: "cpuManagerPolicy", type: { name: "String" } }, - publicHostname: { - readOnly: true, - serializedName: "properties.publicHostname", + cpuCfsQuota: { + serializedName: "cpuCfsQuota", type: { - name: "String" + name: "Boolean" } }, - fqdn: { - readOnly: true, - serializedName: "properties.fqdn", + cpuCfsQuotaPeriod: { + serializedName: "cpuCfsQuotaPeriod", type: { name: "String" } }, - networkProfile: { - serializedName: "properties.networkProfile", + imageGcHighThreshold: { + serializedName: "imageGcHighThreshold", type: { - name: "Composite", - className: "NetworkProfile" + name: "Number" } }, - routerProfiles: { - serializedName: "properties.routerProfiles", + imageGcLowThreshold: { + serializedName: "imageGcLowThreshold", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OpenShiftRouterProfile" - } - } + name: "Number" } }, - masterPoolProfile: { - serializedName: "properties.masterPoolProfile", + topologyManagerPolicy: { + serializedName: "topologyManagerPolicy", type: { - name: "Composite", - className: "OpenShiftManagedClusterMasterPoolProfile" + name: "String" } }, - agentPoolProfiles: { - serializedName: "properties.agentPoolProfiles", + allowedUnsafeSysctls: { + serializedName: "allowedUnsafeSysctls", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OpenShiftManagedClusterAgentPoolProfile" + name: "String" } } } }, - authProfile: { - serializedName: "properties.authProfile", + failSwapOn: { + serializedName: "failSwapOn", type: { - name: "Composite", - className: "OpenShiftManagedClusterAuthProfile" + name: "Boolean" } } } } }; -export const OpenShiftManagedClusterAADIdentityProvider: msRest.CompositeMapper = { - serializedName: "AADIdentityProvider", +export const SysctlConfig: msRest.CompositeMapper = { + serializedName: "SysctlConfig", type: { name: "Composite", - polymorphicDiscriminator: OpenShiftManagedClusterBaseIdentityProvider.type.polymorphicDiscriminator, - uberParent: "OpenShiftManagedClusterBaseIdentityProvider", - className: "OpenShiftManagedClusterAADIdentityProvider", + className: "SysctlConfig", modelProperties: { - ...OpenShiftManagedClusterBaseIdentityProvider.type.modelProperties, - clientId: { - serializedName: "clientId", + netCoreSomaxconn: { + serializedName: "netCoreSomaxconn", type: { - name: "String" + name: "Number" } }, - secret: { - serializedName: "secret", + netCoreNetdevMaxBacklog: { + serializedName: "netCoreNetdevMaxBacklog", type: { - name: "String" + name: "Number" } }, - tenantId: { - serializedName: "tenantId", + netCoreRmemMax: { + serializedName: "netCoreRmemMax", type: { - name: "String" + name: "Number" } }, - customerAdminGroupId: { - serializedName: "customerAdminGroupId", + netCoreWmemMax: { + serializedName: "netCoreWmemMax", type: { - name: "String" - } - } - } - } -}; - -export const TagsObject: msRest.CompositeMapper = { - serializedName: "TagsObject", - type: { - name: "Composite", - className: "TagsObject", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ContainerServiceCustomProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceCustomProfile", - type: { - name: "Composite", - className: "ContainerServiceCustomProfile", - modelProperties: { - orchestrator: { - required: true, - serializedName: "orchestrator", - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultSecretRef: msRest.CompositeMapper = { - serializedName: "KeyVaultSecretRef", - type: { - name: "Composite", - className: "KeyVaultSecretRef", - modelProperties: { - vaultID: { - required: true, - serializedName: "vaultID", - type: { - name: "String" + name: "Number" } }, - secretName: { - required: true, - serializedName: "secretName", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceServicePrincipalProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceServicePrincipalProfile", - type: { - name: "Composite", - className: "ContainerServiceServicePrincipalProfile", - modelProperties: { - clientId: { - required: true, - serializedName: "clientId", - type: { - name: "String" - } - }, - secret: { - serializedName: "secret", - type: { - name: "String" - } - }, - keyVaultSecretRef: { - serializedName: "keyVaultSecretRef", - type: { - name: "Composite", - className: "KeyVaultSecretRef" - } - } - } - } -}; - -export const ContainerServiceOrchestratorProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceOrchestratorProfile", - type: { - name: "Composite", - className: "ContainerServiceOrchestratorProfile", - modelProperties: { - orchestratorType: { - required: true, - serializedName: "orchestratorType", - type: { - name: "String" - } - }, - orchestratorVersion: { - serializedName: "orchestratorVersion", - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceMasterProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceMasterProfile", - type: { - name: "Composite", - className: "ContainerServiceMasterProfile", - modelProperties: { - count: { - serializedName: "count", - defaultValue: 1, + netCoreOptmemMax: { + serializedName: "netCoreOptmemMax", type: { name: "Number" } }, - dnsPrefix: { - required: true, - serializedName: "dnsPrefix", - type: { - name: "String" - } - }, - vmSize: { - required: true, - serializedName: "vmSize", - type: { - name: "String" - } - }, - osDiskSizeGB: { - serializedName: "osDiskSizeGB", + netIpv4TcpMaxSynBacklog: { + serializedName: "netIpv4TcpMaxSynBacklog", type: { name: "Number" } }, - vnetSubnetID: { - serializedName: "vnetSubnetID", - type: { - name: "String" - } - }, - firstConsecutiveStaticIP: { - serializedName: "firstConsecutiveStaticIP", - defaultValue: '10.240.255.5', - type: { - name: "String" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "String" - } - }, - fqdn: { - readOnly: true, - serializedName: "fqdn", - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceAgentPoolProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceAgentPoolProfile", - type: { - name: "Composite", - className: "ContainerServiceAgentPoolProfile", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - count: { - serializedName: "count", - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, + netIpv4TcpMaxTwBuckets: { + serializedName: "netIpv4TcpMaxTwBuckets", type: { name: "Number" } }, - vmSize: { - required: true, - serializedName: "vmSize", - type: { - name: "String" - } - }, - osDiskSizeGB: { - serializedName: "osDiskSizeGB", + netIpv4TcpFinTimeout: { + serializedName: "netIpv4TcpFinTimeout", type: { name: "Number" } }, - dnsPrefix: { - serializedName: "dnsPrefix", - type: { - name: "String" - } - }, - fqdn: { - readOnly: true, - serializedName: "fqdn", - type: { - name: "String" - } - }, - ports: { - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "String" - } - }, - vnetSubnetID: { - serializedName: "vnetSubnetID", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", - defaultValue: 'Linux', - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceWindowsProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceWindowsProfile", - type: { - name: "Composite", - className: "ContainerServiceWindowsProfile", - modelProperties: { - adminUsername: { - required: true, - serializedName: "adminUsername", - constraints: { - Pattern: /^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$/ - }, - type: { - name: "String" - } - }, - adminPassword: { - required: true, - serializedName: "adminPassword", - constraints: { - Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$/ - }, - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceSshPublicKey: msRest.CompositeMapper = { - serializedName: "ContainerServiceSshPublicKey", - type: { - name: "Composite", - className: "ContainerServiceSshPublicKey", - modelProperties: { - keyData: { - required: true, - serializedName: "keyData", - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceSshConfiguration: msRest.CompositeMapper = { - serializedName: "ContainerServiceSshConfiguration", - type: { - name: "Composite", - className: "ContainerServiceSshConfiguration", - modelProperties: { - publicKeys: { - required: true, - serializedName: "publicKeys", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContainerServiceSshPublicKey" - } - } - } - } - } - } -}; - -export const ContainerServiceLinuxProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceLinuxProfile", - type: { - name: "Composite", - className: "ContainerServiceLinuxProfile", - modelProperties: { - adminUsername: { - required: true, - serializedName: "adminUsername", - constraints: { - Pattern: /^[A-Za-z][-A-Za-z0-9_]*$/ - }, - type: { - name: "String" - } - }, - ssh: { - required: true, - serializedName: "ssh", - type: { - name: "Composite", - className: "ContainerServiceSshConfiguration" - } - } - } - } -}; - -export const ContainerServiceVMDiagnostics: msRest.CompositeMapper = { - serializedName: "ContainerServiceVMDiagnostics", - type: { - name: "Composite", - className: "ContainerServiceVMDiagnostics", - modelProperties: { - enabled: { - required: true, - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - storageUri: { - readOnly: true, - serializedName: "storageUri", - type: { - name: "String" - } - } - } - } -}; - -export const ContainerServiceDiagnosticsProfile: msRest.CompositeMapper = { - serializedName: "ContainerServiceDiagnosticsProfile", - type: { - name: "Composite", - className: "ContainerServiceDiagnosticsProfile", - modelProperties: { - vmDiagnostics: { - required: true, - serializedName: "vmDiagnostics", - type: { - name: "Composite", - className: "ContainerServiceVMDiagnostics" - } - } - } - } -}; - -export const ContainerService: msRest.CompositeMapper = { - serializedName: "ContainerService", - type: { - name: "Composite", - className: "ContainerService", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - orchestratorProfile: { - required: true, - serializedName: "properties.orchestratorProfile", - type: { - name: "Composite", - className: "ContainerServiceOrchestratorProfile" - } - }, - customProfile: { - serializedName: "properties.customProfile", - type: { - name: "Composite", - className: "ContainerServiceCustomProfile" - } - }, - servicePrincipalProfile: { - serializedName: "properties.servicePrincipalProfile", - type: { - name: "Composite", - className: "ContainerServiceServicePrincipalProfile" - } - }, - masterProfile: { - required: true, - serializedName: "properties.masterProfile", - type: { - name: "Composite", - className: "ContainerServiceMasterProfile" - } - }, - agentPoolProfiles: { - serializedName: "properties.agentPoolProfiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContainerServiceAgentPoolProfile" - } - } - } - }, - windowsProfile: { - serializedName: "properties.windowsProfile", - type: { - name: "Composite", - className: "ContainerServiceWindowsProfile" - } - }, - linuxProfile: { - required: true, - serializedName: "properties.linuxProfile", - type: { - name: "Composite", - className: "ContainerServiceLinuxProfile" - } - }, - diagnosticsProfile: { - serializedName: "properties.diagnosticsProfile", + netIpv4TcpKeepaliveTime: { + serializedName: "netIpv4TcpKeepaliveTime", type: { - name: "Composite", - className: "ContainerServiceDiagnosticsProfile" - } - } - } - } -}; - -export const OrchestratorProfile: msRest.CompositeMapper = { - serializedName: "OrchestratorProfile", - type: { - name: "Composite", - className: "OrchestratorProfile", - modelProperties: { - orchestratorType: { - serializedName: "orchestratorType", - type: { - name: "String" + name: "Number" } }, - orchestratorVersion: { - required: true, - serializedName: "orchestratorVersion", + netIpv4TcpKeepaliveProbes: { + serializedName: "netIpv4TcpKeepaliveProbes", type: { - name: "String" + name: "Number" } }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean" - } - } - } - } -}; - -export const OrchestratorVersionProfile: msRest.CompositeMapper = { - serializedName: "OrchestratorVersionProfile", - type: { - name: "Composite", - className: "OrchestratorVersionProfile", - modelProperties: { - orchestratorType: { - required: true, - serializedName: "orchestratorType", + netIpv4TcpkeepaliveIntvl: { + serializedName: "netIpv4TcpkeepaliveIntvl", type: { - name: "String" + name: "Number" } }, - orchestratorVersion: { - required: true, - serializedName: "orchestratorVersion", + netIpv4TcpRmem: { + serializedName: "netIpv4TcpRmem", type: { - name: "String" + name: "Number" } }, - default: { - serializedName: "default", + netIpv4TcpWmem: { + serializedName: "netIpv4TcpWmem", type: { - name: "Boolean" + name: "Number" } }, - isPreview: { - serializedName: "isPreview", + netIpv4TcpTwReuse: { + serializedName: "netIpv4TcpTwReuse", type: { name: "Boolean" } }, - upgrades: { - serializedName: "upgrades", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrchestratorProfile" - } - } - } - } - } - } -}; - -export const OrchestratorVersionProfileListResult: msRest.CompositeMapper = { - serializedName: "OrchestratorVersionProfileListResult", - type: { - name: "Composite", - className: "OrchestratorVersionProfileListResult", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", + netIpv4IpLocalPortRange: { + serializedName: "netIpv4IpLocalPortRange", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + netIpv4NeighDefaultGcThresh1: { + serializedName: "netIpv4NeighDefaultGcThresh1", type: { - name: "String" + name: "Number" } }, - type: { - readOnly: true, - serializedName: "type", + netIpv4NeighDefaultGcThresh2: { + serializedName: "netIpv4NeighDefaultGcThresh2", type: { - name: "String" + name: "Number" } }, - orchestrators: { - required: true, - serializedName: "properties.orchestrators", + netIpv4NeighDefaultGcThresh3: { + serializedName: "netIpv4NeighDefaultGcThresh3", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrchestratorVersionProfile" - } - } + name: "Number" } - } - } - } -}; - -export const OperationValue: msRest.CompositeMapper = { - serializedName: "OperationValue", - type: { - name: "Composite", - className: "OperationValue", - modelProperties: { - origin: { - readOnly: true, - serializedName: "origin", + }, + netNetfilterNfConntrackMax: { + serializedName: "netNetfilterNfConntrackMax", type: { - name: "String" + name: "Number" } }, - name: { - readOnly: true, - serializedName: "name", + netNetfilterNfConntrackBuckets: { + serializedName: "netNetfilterNfConntrackBuckets", type: { - name: "String" + name: "Number" } }, - operation: { - readOnly: true, - serializedName: "display.operation", + fsInotifyMaxUserWatches: { + serializedName: "fsInotifyMaxUserWatches", type: { - name: "String" + name: "Number" } }, - resource: { - readOnly: true, - serializedName: "display.resource", + fsFileMax: { + serializedName: "fsFileMax", type: { - name: "String" + name: "Number" } }, - description: { - readOnly: true, - serializedName: "display.description", + fsAioMaxNr: { + serializedName: "fsAioMaxNr", type: { - name: "String" + name: "Number" } }, - provider: { - readOnly: true, - serializedName: "display.provider", + fsNrOpen: { + serializedName: "fsNrOpen", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const SubResource: msRest.CompositeMapper = { - serializedName: "SubResource", - type: { - name: "Composite", - className: "SubResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", + }, + kernelThreadsMax: { + serializedName: "kernelThreadsMax", type: { - name: "String" + name: "Number" } }, - name: { - readOnly: true, - serializedName: "name", + vmMaxMapCount: { + serializedName: "vmMaxMapCount", type: { - name: "String" + name: "Number" } }, - type: { - readOnly: true, - serializedName: "type", + vmSwappiness: { + serializedName: "vmSwappiness", type: { - name: "String" + name: "Number" + } + }, + vmVfsCachePressure: { + serializedName: "vmVfsCachePressure", + type: { + name: "Number" } } } } }; -export const ManagedClusterServicePrincipalProfile: msRest.CompositeMapper = { - serializedName: "ManagedClusterServicePrincipalProfile", +export const LinuxOSConfig: msRest.CompositeMapper = { + serializedName: "LinuxOSConfig", type: { name: "Composite", - className: "ManagedClusterServicePrincipalProfile", + className: "LinuxOSConfig", modelProperties: { - clientId: { - required: true, - serializedName: "clientId", + sysctls: { + serializedName: "sysctls", type: { - name: "String" + name: "Composite", + className: "SysctlConfig" } }, - secret: { - serializedName: "secret", + transparentHugePageEnabled: { + serializedName: "transparentHugePageEnabled", type: { name: "String" } - } - } - } -}; - -export const AgentPoolUpgradeSettings: msRest.CompositeMapper = { - serializedName: "AgentPoolUpgradeSettings", - type: { - name: "Composite", - className: "AgentPoolUpgradeSettings", - modelProperties: { - maxSurge: { - serializedName: "maxSurge", + }, + transparentHugePageDefrag: { + serializedName: "transparentHugePageDefrag", type: { name: "String" } + }, + swapFileSizeMB: { + serializedName: "swapFileSizeMB", + type: { + name: "Number" + } } } } @@ -1207,12 +583,24 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = name: "Number" } }, + osDiskType: { + serializedName: "osDiskType", + type: { + name: "String" + } + }, vnetSubnetID: { serializedName: "vnetSubnetID", type: { name: "String" } }, + podSubnetID: { + serializedName: "podSubnetID", + type: { + name: "String" + } + }, maxPods: { serializedName: "maxPods", type: { @@ -1283,6 +671,14 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = name: "String" } }, + powerState: { + readOnly: true, + serializedName: "powerState", + type: { + name: "Composite", + className: "PowerState" + } + }, availabilityZones: { serializedName: "availabilityZones", type: { @@ -1358,6 +754,26 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = type: { name: "String" } + }, + kubeletConfig: { + serializedName: "kubeletConfig", + type: { + name: "Composite", + className: "KubeletConfig" + } + }, + linuxOSConfig: { + serializedName: "linuxOSConfig", + type: { + name: "Composite", + className: "LinuxOSConfig" + } + }, + enableEncryptionAtHost: { + serializedName: "enableEncryptionAtHost", + type: { + name: "Boolean" + } } } } @@ -1409,12 +825,24 @@ export const AgentPool: msRest.CompositeMapper = { name: "Number" } }, + osDiskType: { + serializedName: "properties.osDiskType", + type: { + name: "String" + } + }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { name: "String" } }, + podSubnetID: { + serializedName: "properties.podSubnetID", + type: { + name: "String" + } + }, maxPods: { serializedName: "properties.maxPods", type: { @@ -1485,6 +913,14 @@ export const AgentPool: msRest.CompositeMapper = { name: "String" } }, + powerState: { + readOnly: true, + serializedName: "properties.powerState", + type: { + name: "Composite", + className: "PowerState" + } + }, availabilityZones: { serializedName: "properties.availabilityZones", type: { @@ -1560,6 +996,26 @@ export const AgentPool: msRest.CompositeMapper = { type: { name: "String" } + }, + kubeletConfig: { + serializedName: "properties.kubeletConfig", + type: { + name: "Composite", + className: "KubeletConfig" + } + }, + linuxOSConfig: { + serializedName: "properties.linuxOSConfig", + type: { + name: "Composite", + className: "LinuxOSConfig" + } + }, + enableEncryptionAtHost: { + serializedName: "properties.enableEncryptionAtHost", + type: { + name: "Boolean" + } } } } @@ -1574,18 +1030,12 @@ export const ManagedClusterWindowsProfile: msRest.CompositeMapper = { adminUsername: { required: true, serializedName: "adminUsername", - constraints: { - Pattern: /^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$/ - }, type: { name: "String" } }, adminPassword: { serializedName: "adminPassword", - constraints: { - Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$/ - }, type: { name: "String" } @@ -1600,6 +1050,74 @@ export const ManagedClusterWindowsProfile: msRest.CompositeMapper = { } }; +export const ContainerServiceSshPublicKey: msRest.CompositeMapper = { + serializedName: "ContainerServiceSshPublicKey", + type: { + name: "Composite", + className: "ContainerServiceSshPublicKey", + modelProperties: { + keyData: { + required: true, + serializedName: "keyData", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerServiceSshConfiguration: msRest.CompositeMapper = { + serializedName: "ContainerServiceSshConfiguration", + type: { + name: "Composite", + className: "ContainerServiceSshConfiguration", + modelProperties: { + publicKeys: { + required: true, + serializedName: "publicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerServiceSshPublicKey" + } + } + } + } + } + } +}; + +export const ContainerServiceLinuxProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceLinuxProfile", + type: { + name: "Composite", + className: "ContainerServiceLinuxProfile", + modelProperties: { + adminUsername: { + required: true, + serializedName: "adminUsername", + constraints: { + Pattern: /^[A-Za-z][-A-Za-z0-9_]*$/ + }, + type: { + name: "String" + } + }, + ssh: { + required: true, + serializedName: "ssh", + type: { + name: "Composite", + className: "ContainerServiceSshConfiguration" + } + } + } + } +}; + export const ManagedClusterLoadBalancerProfileManagedOutboundIPs: msRest.CompositeMapper = { serializedName: "ManagedClusterLoadBalancerProfile_managedOutboundIPs", type: { @@ -1815,20 +1333,62 @@ export const ContainerServiceNetworkProfile: msRest.CompositeMapper = { serializedName: "outboundType", defaultValue: 'loadBalancer', type: { - name: "String" + name: "String" + } + }, + loadBalancerSku: { + serializedName: "loadBalancerSku", + type: { + name: "String" + } + }, + loadBalancerProfile: { + serializedName: "loadBalancerProfile", + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfile" + } + } + } + } +}; + +export const ContainerServiceVMDiagnostics: msRest.CompositeMapper = { + serializedName: "ContainerServiceVMDiagnostics", + type: { + name: "Composite", + className: "ContainerServiceVMDiagnostics", + modelProperties: { + enabled: { + required: true, + serializedName: "enabled", + type: { + name: "Boolean" } }, - loadBalancerSku: { - serializedName: "loadBalancerSku", + storageUri: { + readOnly: true, + serializedName: "storageUri", type: { name: "String" } - }, - loadBalancerProfile: { - serializedName: "loadBalancerProfile", + } + } + } +}; + +export const ContainerServiceDiagnosticsProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceDiagnosticsProfile", + type: { + name: "Composite", + className: "ContainerServiceDiagnosticsProfile", + modelProperties: { + vmDiagnostics: { + required: true, + serializedName: "vmDiagnostics", type: { name: "Composite", - className: "ManagedClusterLoadBalancerProfile" + className: "ContainerServiceVMDiagnostics" } } } @@ -1910,6 +1470,146 @@ export const ManagedClusterAddonProfile: msRest.CompositeMapper = { } }; +export const ManagedClusterPodIdentityProvisioningInfo: msRest.CompositeMapper = { + serializedName: "ManagedClusterPodIdentity_provisioningInfo", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningInfo", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CloudError" + } + } + } + } +}; + +export const ManagedClusterPodIdentity: msRest.CompositeMapper = { + serializedName: "ManagedClusterPodIdentity", + type: { + name: "Composite", + className: "ManagedClusterPodIdentity", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + namespace: { + required: true, + serializedName: "namespace", + type: { + name: "String" + } + }, + identity: { + required: true, + serializedName: "identity", + type: { + name: "Composite", + className: "UserAssignedIdentity" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + provisioningInfo: { + readOnly: true, + serializedName: "provisioningInfo", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningInfo" + } + } + } + } +}; + +export const ManagedClusterPodIdentityException: msRest.CompositeMapper = { + serializedName: "ManagedClusterPodIdentityException", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityException", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + namespace: { + required: true, + serializedName: "namespace", + type: { + name: "String" + } + }, + podLabels: { + required: true, + serializedName: "podLabels", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ManagedClusterPodIdentityProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterPodIdentityProfile", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProfile", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPodIdentity" + } + } + } + }, + userAssignedIdentityExceptions: { + serializedName: "userAssignedIdentityExceptions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityException" + } + } + } + } + } + } +}; + export const ManagedClusterAADProfile: msRest.CompositeMapper = { serializedName: "ManagedClusterAADProfile", type: { @@ -1967,6 +1667,22 @@ export const ManagedClusterAADProfile: msRest.CompositeMapper = { } }; +export const ManagedClusterAutoUpgradeProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterAutoUpgradeProfile", + type: { + name: "Composite", + className: "ManagedClusterAutoUpgradeProfile", + modelProperties: { + upgradeChannel: { + serializedName: "upgradeChannel", + type: { + name: "String" + } + } + } + } +}; + export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper = { serializedName: "ManagedClusterProperties_autoScalerProfile", type: { @@ -1979,6 +1695,48 @@ export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper = name: "String" } }, + expander: { + serializedName: "expander", + type: { + name: "String" + } + }, + maxEmptyBulkDelete: { + serializedName: "max-empty-bulk-delete", + type: { + name: "String" + } + }, + maxGracefulTerminationSec: { + serializedName: "max-graceful-termination-sec", + type: { + name: "String" + } + }, + maxNodeProvisionTime: { + serializedName: "max-node-provision-time", + type: { + name: "String" + } + }, + maxTotalUnreadyPercentage: { + serializedName: "max-total-unready-percentage", + type: { + name: "String" + } + }, + newPodScaleUpDelay: { + serializedName: "new-pod-scale-up-delay", + type: { + name: "String" + } + }, + okTotalUnreadyCount: { + serializedName: "ok-total-unready-count", + type: { + name: "String" + } + }, scanInterval: { serializedName: "scan-interval", type: { @@ -2021,8 +1779,14 @@ export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper = name: "String" } }, - maxGracefulTerminationSec: { - serializedName: "max-graceful-termination-sec", + skipNodesWithLocalStorage: { + serializedName: "skip-nodes-with-local-storage", + type: { + name: "String" + } + }, + skipNodesWithSystemPods: { + serializedName: "skip-nodes-with-system-pods", type: { name: "String" } @@ -2053,6 +1817,12 @@ export const ManagedClusterAPIServerAccessProfile: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + privateDNSZone: { + serializedName: "privateDNSZone", + type: { + name: "String" + } } } } @@ -2176,6 +1946,14 @@ export const ManagedCluster: msRest.CompositeMapper = { name: "String" } }, + powerState: { + readOnly: true, + serializedName: "properties.powerState", + type: { + name: "Composite", + className: "PowerState" + } + }, maxAgentPools: { readOnly: true, serializedName: "properties.maxAgentPools", @@ -2254,6 +2032,13 @@ export const ManagedCluster: msRest.CompositeMapper = { } } }, + podIdentityProfile: { + serializedName: "properties.podIdentityProfile", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProfile" + } + }, nodeResourceGroup: { serializedName: "properties.nodeResourceGroup", type: { @@ -2286,6 +2071,13 @@ export const ManagedCluster: msRest.CompositeMapper = { className: "ManagedClusterAADProfile" } }, + autoUpgradeProfile: { + serializedName: "properties.autoUpgradeProfile", + type: { + name: "Composite", + className: "ManagedClusterAutoUpgradeProfile" + } + }, autoScalerProfile: { serializedName: "properties.autoScalerProfile", type: { @@ -2787,27 +2579,50 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } }; -export const OpenShiftManagedClusterListResult: msRest.CompositeMapper = { - serializedName: "OpenShiftManagedClusterListResult", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "OpenShiftManagedClusterListResult", + className: "PrivateLinkResource", modelProperties: { - value: { - serializedName: "", + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + groupId: { + serializedName: "groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "requiredMembers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OpenShiftManagedCluster" + name: "String" } } } }, - nextLink: { + privateLinkServiceID: { readOnly: true, - serializedName: "nextLink", + serializedName: "privateLinkServiceID", type: { name: "String" } @@ -2816,30 +2631,23 @@ export const OpenShiftManagedClusterListResult: msRest.CompositeMapper = { } }; -export const ContainerServiceListResult: msRest.CompositeMapper = { - serializedName: "ContainerServiceListResult", +export const PrivateLinkResourcesListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourcesListResult", type: { name: "Composite", - className: "ContainerServiceListResult", + className: "PrivateLinkResourcesListResult", modelProperties: { value: { - serializedName: "", + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerService" + className: "PrivateLinkResource" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } @@ -2925,9 +2733,3 @@ export const AgentPoolListResult: msRest.CompositeMapper = { } } }; - -export const discriminators = { - 'OpenShiftManagedClusterBaseIdentityProvider' : OpenShiftManagedClusterBaseIdentityProvider, - 'OpenShiftManagedClusterBaseIdentityProvider.AADIdentityProvider' : OpenShiftManagedClusterAADIdentityProvider - -}; diff --git a/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts b/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts index 280e986c8c9c..822f1430853a 100644 --- a/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/openShiftManagedClustersMappers.ts @@ -55,6 +55,7 @@ export { OpenShiftManagedClusterListResult, OpenShiftManagedClusterMasterPoolProfile, OpenShiftRouterProfile, + PowerState, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, diff --git a/sdk/containerservice/arm-containerservice/src/models/operationsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/operationsMappers.ts index 5a2162d493ce..c31dc01a6669 100644 --- a/sdk/containerservice/arm-containerservice/src/models/operationsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/operationsMappers.ts @@ -1,13 +1,12 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - discriminators, CloudError, OperationListResult, OperationValue diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index cf7863ca08f0..267c873c843b 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -30,69 +29,11 @@ export const agentPoolName: msRest.OperationURLParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2019-04-30', - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-07-01', - type: { - name: "String" - } - } -}; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-08-01', - type: { - name: "String" - } - } -}; -export const apiVersion3: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2020-07-01', - type: { - name: "String" - } - } -}; -export const containerServiceName: msRest.OperationURLParameter = { - parameterPath: "containerServiceName", - mapper: { - required: true, - serializedName: "containerServiceName", - type: { - name: "String" - } - } -}; -export const location: msRest.OperationURLParameter = { - parameterPath: "location", - mapper: { - required: true, - serializedName: "location", type: { name: "String" } @@ -119,7 +60,7 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const resourceGroupName0: msRest.OperationURLParameter = { +export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, @@ -132,27 +73,7 @@ export const resourceGroupName0: msRest.OperationURLParameter = { } } }; -export const resourceGroupName1: msRest.OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - required: true, - serializedName: "resourceGroupName", - type: { - name: "String" - } - } -}; -export const resourceName0: msRest.OperationURLParameter = { - parameterPath: "resourceName", - mapper: { - required: true, - serializedName: "resourceName", - type: { - name: "String" - } - } -}; -export const resourceName1: msRest.OperationURLParameter = { +export const resourceName: msRest.OperationURLParameter = { parameterPath: "resourceName", mapper: { required: true, @@ -167,18 +88,6 @@ export const resourceName1: msRest.OperationURLParameter = { } } }; -export const resourceType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "resourceType" - ], - mapper: { - serializedName: "resource-type", - type: { - name: "String" - } - } -}; export const roleName: msRest.OperationURLParameter = { parameterPath: "roleName", mapper: { diff --git a/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts index a68d5ae6a5ed..11c2177a0cc3 100644 --- a/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/privateEndpointConnectionsMappers.ts @@ -1,31 +1,22 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - discriminators, AgentPool, AgentPoolUpgradeSettings, BaseResource, CloudError, - ContainerService, - ContainerServiceAgentPoolProfile, - ContainerServiceCustomProfile, - ContainerServiceDiagnosticsProfile, ContainerServiceLinuxProfile, - ContainerServiceMasterProfile, ContainerServiceNetworkProfile, - ContainerServiceOrchestratorProfile, - ContainerServiceServicePrincipalProfile, ContainerServiceSshConfiguration, ContainerServiceSshPublicKey, - ContainerServiceVMDiagnostics, - ContainerServiceWindowsProfile, - KeyVaultSecretRef, + KubeletConfig, + LinuxOSConfig, ManagedCluster, ManagedClusterAADProfile, ManagedClusterAccessProfile, @@ -34,33 +25,30 @@ export { ManagedClusterAgentPoolProfile, ManagedClusterAgentPoolProfileProperties, ManagedClusterAPIServerAccessProfile, + ManagedClusterAutoUpgradeProfile, ManagedClusterIdentity, ManagedClusterIdentityUserAssignedIdentitiesValue, ManagedClusterLoadBalancerProfile, ManagedClusterLoadBalancerProfileManagedOutboundIPs, ManagedClusterLoadBalancerProfileOutboundIPPrefixes, ManagedClusterLoadBalancerProfileOutboundIPs, + ManagedClusterPodIdentity, + ManagedClusterPodIdentityException, + ManagedClusterPodIdentityProfile, + ManagedClusterPodIdentityProvisioningInfo, ManagedClusterPropertiesAutoScalerProfile, ManagedClusterPropertiesIdentityProfileValue, ManagedClusterServicePrincipalProfile, ManagedClusterSKU, ManagedClusterWindowsProfile, - NetworkProfile, - OpenShiftManagedCluster, - OpenShiftManagedClusterAADIdentityProvider, - OpenShiftManagedClusterAgentPoolProfile, - OpenShiftManagedClusterAuthProfile, - OpenShiftManagedClusterBaseIdentityProvider, - OpenShiftManagedClusterIdentityProvider, - OpenShiftManagedClusterMasterPoolProfile, - OpenShiftRouterProfile, + PowerState, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateLinkServiceConnectionState, - PurchasePlan, Resource, ResourceReference, SubResource, + SysctlConfig, UserAssignedIdentity } from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/models/privateLinkResourcesMappers.ts b/sdk/containerservice/arm-containerservice/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..2319aa683ccb --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + CloudError, + PrivateLinkResource, + PrivateLinkResourcesListResult +} from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/models/resolvePrivateLinkServiceIdMappers.ts b/sdk/containerservice/arm-containerservice/src/models/resolvePrivateLinkServiceIdMappers.ts new file mode 100644 index 000000000000..568b20b5d070 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/models/resolvePrivateLinkServiceIdMappers.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + CloudError, + PrivateLinkResource +} from "../models/mappers"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index e883d6d9a83b..4b67fcdc8b5f 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -198,6 +197,20 @@ export class AgentPools { callback) as Promise; } + /** + * Upgrade node image version of an agent pool to the latest. + * @summary Upgrade node image version of an agent pool to the latest. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param [options] The optional parameters + * @returns Promise + */ + upgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpgradeNodeImageVersion(resourceGroupName,resourceName,agentPoolName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Creates or updates an agent pool in the specified managed cluster. * @summary Creates or updates an agent pool. @@ -242,6 +255,27 @@ export class AgentPools { options); } + /** + * Upgrade node image version of an agent pool to the latest. + * @summary Upgrade node image version of an agent pool to the latest. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + agentPoolName, + options + }, + beginUpgradeNodeImageVersionOperationSpec, + options); + } + /** * Gets a list of agent pools in the specified managed cluster. The operation returns properties of * each agent pool. @@ -280,11 +314,11 @@ const listOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -305,12 +339,12 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.agentPoolName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -331,12 +365,12 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.agentPoolName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -357,11 +391,11 @@ const getAvailableAgentPoolVersionsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -382,12 +416,12 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.agentPoolName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -418,12 +452,12 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.agentPoolName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -438,6 +472,33 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpgradeNodeImageVersionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.agentPoolName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: { + bodyMapper: Mappers.AgentPool + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -445,6 +506,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index 0d10279e7a1f..2c8ce272439f 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -1,16 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./openShiftManagedClusters"; -export * from "./containerServices"; export * from "./operations"; export * from "./managedClusters"; export * from "./agentPools"; export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./resolvePrivateLinkServiceId"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index e666f57fc681..a3a0ee7f1249 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -380,17 +379,29 @@ export class ManagedClusters { } /** - * Upgrade node image version of an agent pool to the latest. - * @summary Upgrade node image version of an agent pool to the latest. + * Stops a Running Managed Cluster + * @summary Stop Managed Cluster * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. * @param [options] The optional parameters - * @returns Promise + * @returns Promise + */ + stop(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Starts a Stopped Managed Cluster + * @summary Start Managed Cluster + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param [options] The optional parameters + * @returns Promise */ - upgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpgradeNodeImageVersion(resourceGroupName,resourceName,agentPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + start(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -518,23 +529,40 @@ export class ManagedClusters { } /** - * Upgrade node image version of an agent pool to the latest. - * @summary Upgrade node image version of an agent pool to the latest. + * Stops a Running Managed Cluster + * @summary Stop Managed Cluster * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. - * @param agentPoolName The name of the agent pool. * @param [options] The optional parameters * @returns Promise */ - beginUpgradeNodeImageVersion(resourceGroupName: string, resourceName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { + beginStop(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, resourceName, - agentPoolName, options }, - beginUpgradeNodeImageVersionOperationSpec, + beginStopOperationSpec, + options); + } + + /** + * Starts a Stopped Managed Cluster + * @summary Start Managed Cluster + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginStart(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + options + }, + beginStartOperationSpec, options); } @@ -608,7 +636,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -629,10 +657,10 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0 + Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,11 +681,11 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -678,12 +706,12 @@ const getAccessProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.roleName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -704,11 +732,11 @@ const listClusterAdminCredentialsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -729,11 +757,11 @@ const listClusterUserCredentialsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -754,11 +782,11 @@ const listClusterMonitoringUserCredentialsOperationSpec: msRest.OperationSpec = path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -779,11 +807,11 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -804,11 +832,11 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -839,11 +867,11 @@ const beginUpdateTagsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -871,11 +899,11 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -895,11 +923,11 @@ const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -926,11 +954,11 @@ const beginResetAADProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -957,11 +985,11 @@ const beginRotateClusterCertificatesOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -976,26 +1004,47 @@ const beginRotateClusterCertificatesOperationSpec: msRest.OperationSpec = { serializer }; -const beginUpgradeNodeImageVersionOperationSpec: msRest.OperationSpec = { +const beginStopOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, - Parameters.agentPoolName + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 202: { - bodyMapper: Mappers.AgentPool - }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginStartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -1010,6 +1059,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1031,6 +1083,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerservice/arm-containerservice/src/operations/operations.ts b/sdk/containerservice/arm-containerservice/src/operations/operations.ts index 3d409d17f22c..2d8bd37661b9 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -57,7 +56,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.ContainerService/operations", queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts index 5c4e4237a306..4da23b229813 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -182,11 +181,11 @@ const listOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1 + Parameters.resourceGroupName, + Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -207,12 +206,12 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -233,12 +232,12 @@ const updateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,12 +265,12 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName0, - Parameters.resourceName1, + Parameters.resourceGroupName, + Parameters.resourceName, Parameters.privateEndpointConnectionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..652594840b00 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: ContainerServiceClientContext; + + /** + * Create a PrivateLinkResources. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of private link resources in the specified managed cluster. The operation returns + * properties of each private link resource. + * @summary Gets a list of private link resources in the specified managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param callback The callback + */ + list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts new file mode 100644 index 000000000000..c23d10a99b32 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/resolvePrivateLinkServiceIdMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a ResolvePrivateLinkServiceId. */ +export class ResolvePrivateLinkServiceId { + private readonly client: ContainerServiceClientContext; + + /** + * Create a ResolvePrivateLinkServiceId. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets the private link service ID the specified managed cluster. + * @summary Gets the private link service ID for the specified managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters (name, groupId) supplied in order to resolve a private link service + * ID. + * @param [options] The optional parameters + * @returns Promise + */ + pOST(resourceGroupName: string, resourceName: string, parameters: Models.PrivateLinkResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters (name, groupId) supplied in order to resolve a private link service + * ID. + * @param callback The callback + */ + pOST(resourceGroupName: string, resourceName: string, parameters: Models.PrivateLinkResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters (name, groupId) supplied in order to resolve a private link service + * ID. + * @param options The optional parameters + * @param callback The callback + */ + pOST(resourceGroupName: string, resourceName: string, parameters: Models.PrivateLinkResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + pOST(resourceGroupName: string, resourceName: string, parameters: Models.PrivateLinkResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + pOSTOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const pOSTOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resolvePrivateLinkServiceId", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateLinkResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};