diff --git a/sdk/containerservice/arm-containerservice/lib/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/lib/containerServiceClient.ts new file mode 100644 index 000000000000..c9223ea22fc3 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/containerServiceClient.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +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; + + /** + * Initializes a new instance of the ContainerServiceClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + 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); + } +} + +// Operation Specifications + +export { + ContainerServiceClient, + ContainerServiceClientContext, + Models as ContainerServiceModels, + Mappers as ContainerServiceMappers +}; +export * from "./operations"; diff --git a/sdk/containerservice/arm-containerservice/lib/containerServiceClientContext.ts b/sdk/containerservice/arm-containerservice/lib/containerServiceClientContext.ts new file mode 100644 index 000000000000..5c42fc18d331 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/containerServiceClientContext.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-containerservice"; +const packageVersion = "7.0.1"; + +export class ContainerServiceClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + + /** + * Initializes a new instance of the ContainerServiceClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerServiceClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/containerservice/arm-containerservice/lib/models/agentPoolsMappers.ts b/sdk/containerservice/arm-containerservice/lib/models/agentPoolsMappers.ts new file mode 100644 index 000000000000..5fe8a6e4920e --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/agentPoolsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AgentPoolListResult, + AgentPool, + SubResource, + BaseResource, + CloudError, + Resource, + OpenShiftManagedCluster, + PurchasePlan, + NetworkProfile, + OpenShiftRouterProfile, + OpenShiftManagedClusterMasterPoolProfile, + OpenShiftManagedClusterAgentPoolProfile, + OpenShiftManagedClusterAuthProfile, + OpenShiftManagedClusterIdentityProvider, + OpenShiftManagedClusterBaseIdentityProvider, + OpenShiftManagedClusterAADIdentityProvider, + ContainerService, + ContainerServiceOrchestratorProfile, + ContainerServiceCustomProfile, + ContainerServiceServicePrincipalProfile, + KeyVaultSecretRef, + ContainerServiceMasterProfile, + ContainerServiceAgentPoolProfile, + ContainerServiceWindowsProfile, + ContainerServiceLinuxProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceDiagnosticsProfile, + ContainerServiceVMDiagnostics, + ManagedCluster, + ManagedClusterAgentPoolProfile, + ManagedClusterAgentPoolProfileProperties, + ManagedClusterWindowsProfile, + ManagedClusterServicePrincipalProfile, + ManagedClusterAddonProfile, + ContainerServiceNetworkProfile, + ManagedClusterAADProfile, + ManagedClusterIdentity, + ManagedClusterAccessProfile +} from "../models/mappers"; + diff --git a/sdk/containerservice/arm-containerservice/lib/models/containerServicesMappers.ts b/sdk/containerservice/arm-containerservice/lib/models/containerServicesMappers.ts new file mode 100644 index 000000000000..2587ee4d6f78 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/containerServicesMappers.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ContainerServiceListResult, + ContainerService, + Resource, + BaseResource, + ContainerServiceOrchestratorProfile, + ContainerServiceCustomProfile, + ContainerServiceServicePrincipalProfile, + KeyVaultSecretRef, + ContainerServiceMasterProfile, + ContainerServiceAgentPoolProfile, + ContainerServiceWindowsProfile, + ContainerServiceLinuxProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceDiagnosticsProfile, + ContainerServiceVMDiagnostics, + CloudError, + OrchestratorVersionProfileListResult, + OrchestratorVersionProfile, + OrchestratorProfile, + OpenShiftManagedCluster, + PurchasePlan, + NetworkProfile, + OpenShiftRouterProfile, + OpenShiftManagedClusterMasterPoolProfile, + OpenShiftManagedClusterAgentPoolProfile, + OpenShiftManagedClusterAuthProfile, + OpenShiftManagedClusterIdentityProvider, + OpenShiftManagedClusterBaseIdentityProvider, + OpenShiftManagedClusterAADIdentityProvider, + SubResource, + AgentPool, + ManagedCluster, + ManagedClusterAgentPoolProfile, + ManagedClusterAgentPoolProfileProperties, + ManagedClusterWindowsProfile, + ManagedClusterServicePrincipalProfile, + ManagedClusterAddonProfile, + ContainerServiceNetworkProfile, + ManagedClusterAADProfile, + ManagedClusterIdentity, + ManagedClusterAccessProfile +} from "../models/mappers"; + diff --git a/sdk/containerservice/arm-containerservice/lib/models/index.ts b/sdk/containerservice/arm-containerservice/lib/models/index.ts new file mode 100644 index 000000000000..165e55c32309 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/index.ts @@ -0,0 +1,2609 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing Resource. + * The Resource model definition. + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} location Resource location + */ + location: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing PurchasePlan. + * Used for establishing the purchase context of any 3rd Party artifact through + * MarketPlace. + * + */ +export interface PurchasePlan { + /** + * @member {string} [name] The plan ID. + */ + name?: string; + /** + * @member {string} [product] Specifies the product of the image from the + * marketplace. This is the same value as Offer under the imageReference + * element. + */ + product?: string; + /** + * @member {string} [promotionCode] The promotion code. + */ + promotionCode?: string; + /** + * @member {string} [publisher] The plan ID. + */ + publisher?: string; +} + +/** + * @interface + * An interface representing OpenShiftRouterProfile. + * Represents an OpenShift router + * + */ +export interface OpenShiftRouterProfile { + /** + * @member {string} [name] Name of the router profile. + */ + name?: string; + /** + * @member {string} [publicSubdomain] DNS subdomain for OpenShift router. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicSubdomain?: string; + /** + * @member {string} [fqdn] Auto-allocated FQDN for the OpenShift router. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fqdn?: string; +} + +/** + * @interface + * An interface representing NetworkProfile. + * Represents the OpenShift networking configuration + * + */ +export interface NetworkProfile { + /** + * @member {string} [vnetCidr] CIDR for the OpenShift Vnet. Default value: + * '10.0.0.0/8' . + */ + vnetCidr?: string; + /** + * @member {string} [peerVnetId] CIDR of the Vnet to peer. + */ + peerVnetId?: string; + /** + * @member {string} [vnetId] ID of the Vnet created for OSA cluster. + */ + vnetId?: string; +} + +/** + * @interface + * An interface representing OpenShiftManagedClusterMasterPoolProfile. + * OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift + * master VMs. + * + */ +export interface OpenShiftManagedClusterMasterPoolProfile { + /** + * @member {string} [name] Unique name of the master pool profile in the + * context of the subscription and resource group. + */ + name?: string; + /** + * @member {number} count Number of masters (VMs) to host docker containers. + * The default value is 3. + */ + count: number; + /** + * @member {OpenShiftContainerServiceVMSize} vmSize 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' + */ + vmSize: OpenShiftContainerServiceVMSize; + /** + * @member {string} [subnetCidr] Subnet CIDR for the peering. + */ + subnetCidr?: string; + /** + * @member {OSType} [osType] 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; +} + +/** + * @interface + * An interface representing OpenShiftManagedClusterAgentPoolProfile. + * Defines the configuration of the OpenShift cluster VMs. + * + */ +export interface OpenShiftManagedClusterAgentPoolProfile { + /** + * @member {string} name Unique name of the pool profile in the context of + * the subscription and resource group. + */ + name: string; + /** + * @member {number} count Number of agents (VMs) to host docker containers. + */ + count: number; + /** + * @member {OpenShiftContainerServiceVMSize} vmSize 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' + */ + vmSize: OpenShiftContainerServiceVMSize; + /** + * @member {string} [subnetCidr] Subnet CIDR for the peering. Default value: + * '10.0.0.0/24' . + */ + subnetCidr?: string; + /** + * @member {OSType} [osType] 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; + /** + * @member {OpenShiftAgentPoolProfileRole} [role] Define the role of the + * AgentPoolProfile. Possible values include: 'compute', 'infra' + */ + role?: OpenShiftAgentPoolProfileRole; +} + +/** + * Contains the possible cases for OpenShiftManagedClusterBaseIdentityProvider. + */ +export type OpenShiftManagedClusterBaseIdentityProviderUnion = OpenShiftManagedClusterBaseIdentityProvider | OpenShiftManagedClusterAADIdentityProvider; + +/** + * @interface + * An interface representing OpenShiftManagedClusterBaseIdentityProvider. + * Structure for any Identity provider. + * + */ +export interface OpenShiftManagedClusterBaseIdentityProvider { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "OpenShiftManagedClusterBaseIdentityProvider"; +} + +/** + * @interface + * An interface representing OpenShiftManagedClusterIdentityProvider. + * Defines the configuration of the identity providers to be used in the + * OpenShift cluster. + * + */ +export interface OpenShiftManagedClusterIdentityProvider { + /** + * @member {string} [name] Name of the provider. + */ + name?: string; + /** + * @member {OpenShiftManagedClusterBaseIdentityProviderUnion} [provider] + * Configuration of the provider. + */ + provider?: OpenShiftManagedClusterBaseIdentityProviderUnion; +} + +/** + * @interface + * An interface representing OpenShiftManagedClusterAuthProfile. + * Defines all possible authentication profiles for the OpenShift cluster. + * + */ +export interface OpenShiftManagedClusterAuthProfile { + /** + * @member {OpenShiftManagedClusterIdentityProvider[]} [identityProviders] + * Type of authentication profile to use. + */ + identityProviders?: OpenShiftManagedClusterIdentityProvider[]; +} + +/** + * @interface + * An interface representing OpenShiftManagedCluster. + * OpenShift Managed cluster. + * + * @extends Resource + */ +export interface OpenShiftManagedCluster extends Resource { + /** + * @member {PurchasePlan} [plan] Define the resource plan as required by ARM + * for billing purposes + */ + plan?: PurchasePlan; + /** + * @member {string} [provisioningState] 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; + /** + * @member {string} openShiftVersion Version of OpenShift specified when + * creating the cluster. + */ + openShiftVersion: string; + /** + * @member {string} [clusterVersion] Version of OpenShift specified when + * creating the cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly clusterVersion?: string; + /** + * @member {string} [publicHostname] Service generated FQDN for OpenShift API + * server. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicHostname?: string; + /** + * @member {string} [fqdn] 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.** + */ + readonly fqdn?: string; + /** + * @member {NetworkProfile} [networkProfile] Configuration for OpenShift + * networking. + */ + networkProfile?: NetworkProfile; + /** + * @member {OpenShiftRouterProfile[]} [routerProfiles] Configuration for + * OpenShift router(s). + */ + routerProfiles?: OpenShiftRouterProfile[]; + /** + * @member {OpenShiftManagedClusterMasterPoolProfile} [masterPoolProfile] + * Configuration for OpenShift master VMs. + */ + masterPoolProfile?: OpenShiftManagedClusterMasterPoolProfile; + /** + * @member {OpenShiftManagedClusterAgentPoolProfile[]} [agentPoolProfiles] + * Configuration of OpenShift cluster VMs. + */ + agentPoolProfiles?: OpenShiftManagedClusterAgentPoolProfile[]; + /** + * @member {OpenShiftManagedClusterAuthProfile} [authProfile] Configures + * OpenShift authentication. + */ + authProfile?: OpenShiftManagedClusterAuthProfile; +} + +/** + * @interface + * An interface representing OpenShiftManagedClusterAADIdentityProvider. + * Defines the Identity provider for MS AAD. + * + */ +export interface OpenShiftManagedClusterAADIdentityProvider { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AADIdentityProvider"; + /** + * @member {string} [clientId] The clientId password associated with the + * provider. + */ + clientId?: string; + /** + * @member {string} [secret] The secret password associated with the + * provider. + */ + secret?: string; + /** + * @member {string} [tenantId] The tenantId associated with the provider. + */ + tenantId?: string; + /** + * @member {string} [customerAdminGroupId] The groupId to be granted cluster + * admin role. + */ + customerAdminGroupId?: string; +} + +/** + * @interface + * An interface representing TagsObject. + * Tags object for patch operations. + * + */ +export interface TagsObject { + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing ContainerServiceCustomProfile. + * Properties to configure a custom container service cluster. + * + */ +export interface ContainerServiceCustomProfile { + /** + * @member {string} orchestrator The name of the custom orchestrator to use. + */ + orchestrator: string; +} + +/** + * @interface + * An interface representing KeyVaultSecretRef. + * Reference to a secret stored in Azure Key Vault. + * + */ +export interface KeyVaultSecretRef { + /** + * @member {string} vaultID Key vault identifier. + */ + vaultID: string; + /** + * @member {string} secretName The secret name. + */ + secretName: string; + /** + * @member {string} [version] The secret version. + */ + version?: string; +} + +/** + * @interface + * An interface representing ContainerServiceServicePrincipalProfile. + * 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 { + /** + * @member {string} clientId The ID for the service principal. + */ + clientId: string; + /** + * @member {string} [secret] The secret password associated with the service + * principal in plain text. + */ + secret?: string; + /** + * @member {KeyVaultSecretRef} [keyVaultSecretRef] Reference to a secret + * stored in Azure Key Vault. + */ + keyVaultSecretRef?: KeyVaultSecretRef; +} + +/** + * @interface + * An interface representing ContainerServiceOrchestratorProfile. + * Profile for the container service orchestrator. + * + */ +export interface ContainerServiceOrchestratorProfile { + /** + * @member {ContainerServiceOrchestratorTypes} orchestratorType 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' + */ + orchestratorType: ContainerServiceOrchestratorTypes; + /** + * @member {string} [orchestratorVersion] 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". + */ + orchestratorVersion?: string; +} + +/** + * @interface + * An interface representing ContainerServiceMasterProfile. + * Profile for the container service master. + * + */ +export interface ContainerServiceMasterProfile { + /** + * @member {number} [count] 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; + /** + * @member {string} dnsPrefix DNS prefix to be used to create the FQDN for + * the master pool. + */ + dnsPrefix: string; + /** + * @member {ContainerServiceVMSizeTypes} vmSize 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' + */ + vmSize: ContainerServiceVMSizeTypes; + /** + * @member {number} [osDiskSizeGB] 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. + */ + osDiskSizeGB?: number; + /** + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet + * identifier. + */ + vnetSubnetID?: string; + /** + * @member {string} [firstConsecutiveStaticIP] FirstConsecutiveStaticIP used + * to specify the first static ip of masters. Default value: '10.240.255.5' . + */ + firstConsecutiveStaticIP?: string; + /** + * @member {ContainerServiceStorageProfileTypes} [storageProfile] 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' + */ + storageProfile?: ContainerServiceStorageProfileTypes; + /** + * @member {string} [fqdn] FQDN for the master pool. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fqdn?: string; +} + +/** + * @interface + * An interface representing ContainerServiceAgentPoolProfile. + * Profile for the container service agent pool. + * + */ +export interface ContainerServiceAgentPoolProfile { + /** + * @member {string} name Unique name of the agent pool profile in the context + * of the subscription and resource group. + */ + name: string; + /** + * @member {number} [count] 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 . + */ + count?: number; + /** + * @member {ContainerServiceVMSizeTypes} vmSize 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' + */ + vmSize: ContainerServiceVMSizeTypes; + /** + * @member {number} [osDiskSizeGB] 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. + */ + osDiskSizeGB?: number; + /** + * @member {string} [dnsPrefix] DNS prefix to be used to create the FQDN for + * the agent pool. + */ + dnsPrefix?: string; + /** + * @member {string} [fqdn] FQDN for the agent pool. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fqdn?: string; + /** + * @member {number[]} [ports] Ports number array used to expose on this agent + * pool. The default opened ports are different based on your choice of + * orchestrator. + */ + ports?: number[]; + /** + * @member {ContainerServiceStorageProfileTypes} [storageProfile] 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' + */ + storageProfile?: ContainerServiceStorageProfileTypes; + /** + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet + * identifier. + */ + vnetSubnetID?: string; + /** + * @member {OSType} [osType] 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; +} + +/** + * @interface + * An interface representing ContainerServiceWindowsProfile. + * Profile for Windows VMs in the container service cluster. + * + */ +export interface ContainerServiceWindowsProfile { + /** + * @member {string} adminUsername The administrator username to use for + * Windows VMs. + */ + adminUsername: string; + /** + * @member {string} adminPassword The administrator password to use for + * Windows VMs. + */ + adminPassword: string; +} + +/** + * @interface + * An interface representing ContainerServiceSshPublicKey. + * Contains information about SSH certificate public key data. + * + */ +export interface ContainerServiceSshPublicKey { + /** + * @member {string} keyData Certificate public key used to authenticate with + * VMs through SSH. The certificate must be in PEM format with or without + * headers. + */ + keyData: string; +} + +/** + * @interface + * An interface representing ContainerServiceSshConfiguration. + * SSH configuration for Linux-based VMs running on Azure. + * + */ +export interface ContainerServiceSshConfiguration { + /** + * @member {ContainerServiceSshPublicKey[]} publicKeys The list of SSH public + * keys used to authenticate with Linux-based VMs. Only expect one key + * specified. + */ + publicKeys: ContainerServiceSshPublicKey[]; +} + +/** + * @interface + * An interface representing ContainerServiceLinuxProfile. + * Profile for Linux VMs in the container service cluster. + * + */ +export interface ContainerServiceLinuxProfile { + /** + * @member {string} adminUsername The administrator username to use for Linux + * VMs. + */ + adminUsername: string; + /** + * @member {ContainerServiceSshConfiguration} ssh SSH configuration for + * Linux-based VMs running on Azure. + */ + ssh: ContainerServiceSshConfiguration; +} + +/** + * @interface + * An interface representing ContainerServiceVMDiagnostics. + * Profile for diagnostics on the container service VMs. + * + */ +export interface ContainerServiceVMDiagnostics { + /** + * @member {boolean} enabled Whether the VM diagnostic agent is provisioned + * on the VM. + */ + enabled: boolean; + /** + * @member {string} [storageUri] 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 storageUri?: string; +} + +/** + * @interface + * An interface representing ContainerServiceDiagnosticsProfile. + * Profile for diagnostics on the container service cluster. + * + */ +export interface ContainerServiceDiagnosticsProfile { + /** + * @member {ContainerServiceVMDiagnostics} vmDiagnostics Profile for + * diagnostics on the container service VMs. + */ + vmDiagnostics: ContainerServiceVMDiagnostics; +} + +/** + * @interface + * An interface representing ContainerService. + * Container service. + * + * @extends Resource + */ +export interface ContainerService extends Resource { + /** + * @member {string} [provisioningState] 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; + /** + * @member {ContainerServiceOrchestratorProfile} orchestratorProfile Profile + * for the container service orchestrator. + */ + orchestratorProfile: ContainerServiceOrchestratorProfile; + /** + * @member {ContainerServiceCustomProfile} [customProfile] Properties to + * configure a custom container service cluster. + */ + customProfile?: ContainerServiceCustomProfile; + /** + * @member {ContainerServiceServicePrincipalProfile} + * [servicePrincipalProfile] 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. + */ + servicePrincipalProfile?: ContainerServiceServicePrincipalProfile; + /** + * @member {ContainerServiceMasterProfile} masterProfile Profile for the + * container service master. + */ + masterProfile: ContainerServiceMasterProfile; + /** + * @member {ContainerServiceAgentPoolProfile[]} [agentPoolProfiles] + * Properties of the agent pool. + */ + agentPoolProfiles?: ContainerServiceAgentPoolProfile[]; + /** + * @member {ContainerServiceWindowsProfile} [windowsProfile] Profile for + * Windows VMs in the container service cluster. + */ + windowsProfile?: ContainerServiceWindowsProfile; + /** + * @member {ContainerServiceLinuxProfile} linuxProfile Profile for Linux VMs + * in the container service cluster. + */ + linuxProfile: ContainerServiceLinuxProfile; + /** + * @member {ContainerServiceDiagnosticsProfile} [diagnosticsProfile] Profile + * for diagnostics in the container service cluster. + */ + diagnosticsProfile?: ContainerServiceDiagnosticsProfile; +} + +/** + * @interface + * An interface representing OperationValue. + * Describes the properties of a Compute Operation value. + * + */ +export interface OperationValue { + /** + * @member {string} [origin] The origin of the compute operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly origin?: string; + /** + * @member {string} [name] The name of the compute operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [operation] 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; + /** + * @member {string} [resource] 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; + /** + * @member {string} [description] The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {string} [provider] The resource provider for the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provider?: string; +} + +/** + * @interface + * An interface representing SubResource. + * Reference to another subresource. + * + * @extends BaseResource + */ +export interface SubResource extends BaseResource { + /** + * @member {string} [id] Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] 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.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing ManagedClusterServicePrincipalProfile. + * Information about a service principal identity for the cluster to use for + * manipulating Azure APIs. + * + */ +export interface ManagedClusterServicePrincipalProfile { + /** + * @member {string} clientId The ID for the service principal. + */ + clientId: string; + /** + * @member {string} [secret] The secret password associated with the service + * principal in plain text. + */ + secret?: string; +} + +/** + * @interface + * An interface representing ManagedClusterAgentPoolProfileProperties. + * Properties for the container service agent pool profile. + * + */ +export interface ManagedClusterAgentPoolProfileProperties { + /** + * @member {number} count 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 . + */ + count: number; + /** + * @member {ContainerServiceVMSizeTypes} vmSize 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' + */ + vmSize: ContainerServiceVMSizeTypes; + /** + * @member {number} [osDiskSizeGB] 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. + */ + osDiskSizeGB?: number; + /** + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet + * identifier. + */ + vnetSubnetID?: string; + /** + * @member {number} [maxPods] Maximum number of pods that can run on a node. + */ + maxPods?: number; + /** + * @member {OSType} [osType] 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; + /** + * @member {number} [maxCount] Maximum number of nodes for auto-scaling + */ + maxCount?: number; + /** + * @member {number} [minCount] Minimum number of nodes for auto-scaling + */ + minCount?: number; + /** + * @member {boolean} [enableAutoScaling] Whether to enable auto-scaler + */ + enableAutoScaling?: boolean; + /** + * @member {AgentPoolType} [type] AgentPoolType represents types of an agent + * pool. Possible values include: 'VirtualMachineScaleSets', + * 'AvailabilitySet' + */ + type?: AgentPoolType; + /** + * @member {string} [orchestratorVersion] Version of orchestrator specified + * when creating the managed cluster. + */ + orchestratorVersion?: string; + /** + * @member {string} [provisioningState] 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; + /** + * @member {string[]} [availabilityZones] (PREVIEW) Availability zones for + * nodes. Must use VirtualMachineScaleSets AgentPoolType. + */ + availabilityZones?: string[]; + /** + * @member {boolean} [enableNodePublicIP] Enable public IP for nodes + */ + enableNodePublicIP?: boolean; +} + +/** + * @interface + * An interface representing ManagedClusterAgentPoolProfile. + * Profile for the container service agent pool. + * + * @extends ManagedClusterAgentPoolProfileProperties + */ +export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties { + /** + * @member {string} name Unique name of the agent pool profile in the context + * of the subscription and resource group. + */ + name: string; +} + +/** + * @interface + * An interface representing AgentPool. + * Agent Pool. + * + * @extends SubResource + */ +export interface AgentPool extends SubResource { + /** + * @member {number} count 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 . + */ + count: number; + /** + * @member {ContainerServiceVMSizeTypes} vmSize 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' + */ + vmSize: ContainerServiceVMSizeTypes; + /** + * @member {number} [osDiskSizeGB] 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. + */ + osDiskSizeGB?: number; + /** + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet + * identifier. + */ + vnetSubnetID?: string; + /** + * @member {number} [maxPods] Maximum number of pods that can run on a node. + */ + maxPods?: number; + /** + * @member {OSType} [osType] 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; + /** + * @member {number} [maxCount] Maximum number of nodes for auto-scaling + */ + maxCount?: number; + /** + * @member {number} [minCount] Minimum number of nodes for auto-scaling + */ + minCount?: number; + /** + * @member {boolean} [enableAutoScaling] Whether to enable auto-scaler + */ + enableAutoScaling?: boolean; + /** + * @member {AgentPoolType} [agentPoolType] AgentPoolType represents types of + * an agent pool. Possible values include: 'VirtualMachineScaleSets', + * 'AvailabilitySet' + */ + agentPoolType?: AgentPoolType; + /** + * @member {string} [orchestratorVersion] Version of orchestrator specified + * when creating the managed cluster. + */ + orchestratorVersion?: string; + /** + * @member {string} [provisioningState] 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; + /** + * @member {string[]} [availabilityZones] (PREVIEW) Availability zones for + * nodes. Must use VirtualMachineScaleSets AgentPoolType. + */ + availabilityZones?: string[]; + /** + * @member {boolean} [enableNodePublicIP] Enable public IP for nodes + */ + enableNodePublicIP?: boolean; +} + +/** + * @interface + * An interface representing ManagedClusterWindowsProfile. + * Profile for Windows VMs in the container service cluster. + * + */ +export interface ManagedClusterWindowsProfile { + /** + * @member {string} adminUsername The administrator username to use for + * Windows VMs. + */ + adminUsername: string; + /** + * @member {string} [adminPassword] The administrator password to use for + * Windows VMs. + */ + adminPassword?: string; +} + +/** + * @interface + * An interface representing ContainerServiceNetworkProfile. + * Profile of network configuration. + * + */ +export interface ContainerServiceNetworkProfile { + /** + * @member {NetworkPlugin} [networkPlugin] Network plugin used for building + * Kubernetes network. Possible values include: 'azure', 'kubenet'. Default + * value: 'kubenet' . + */ + networkPlugin?: NetworkPlugin; + /** + * @member {NetworkPolicy} [networkPolicy] Network policy used for building + * Kubernetes network. Possible values include: 'calico', 'azure' + */ + networkPolicy?: NetworkPolicy; + /** + * @member {string} [podCidr] A CIDR notation IP range from which to assign + * pod IPs when kubenet is used. Default value: '10.244.0.0/16' . + */ + podCidr?: string; + /** + * @member {string} [serviceCidr] 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; + /** + * @member {string} [dnsServiceIP] 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' . + */ + dnsServiceIP?: string; + /** + * @member {string} [dockerBridgeCidr] 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' . + */ + dockerBridgeCidr?: string; + /** + * @member {LoadBalancerSku} [loadBalancerSku] The load balancer sku for the + * managed cluster. Possible values include: 'standard', 'basic' + */ + loadBalancerSku?: LoadBalancerSku; +} + +/** + * @interface + * An interface representing ManagedClusterAddonProfile. + * A Kubernetes add-on profile for a managed cluster. + * + */ +export interface ManagedClusterAddonProfile { + /** + * @member {boolean} enabled Whether the add-on is enabled or not. + */ + enabled: boolean; + /** + * @member {{ [propertyName: string]: string }} [config] Key-value pairs for + * configuring an add-on. + */ + config?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing ManagedClusterAADProfile. + * AADProfile specifies attributes for Azure Active Directory integration. + * + */ +export interface ManagedClusterAADProfile { + /** + * @member {string} clientAppID The client AAD application ID. + */ + clientAppID: string; + /** + * @member {string} serverAppID The server AAD application ID. + */ + serverAppID: string; + /** + * @member {string} [serverAppSecret] The server AAD application secret. + */ + serverAppSecret?: string; + /** + * @member {string} [tenantID] The AAD tenant ID to use for authentication. + * If not specified, will use the tenant of the deployment subscription. + */ + tenantID?: string; +} + +/** + * @interface + * An interface representing ManagedClusterIdentity. + * Identity for the managed cluster. + * + */ +export interface ManagedClusterIdentity { + /** + * @member {string} [principalId] The principal id of the system assigned + * identity which is used by master components. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly principalId?: string; + /** + * @member {string} [tenantId] The tenant id of the system assigned identity + * which is used by master components. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tenantId?: string; + /** + * @member {ResourceIdentityType} [type] The type of identity used for the + * managed cluster. Type 'SystemAssigned' will use an implicityly created + * identity in master components and an auto-created user assigned identity + * in MC_ resource group in agent nodes. Type 'None' will not use MSI for the + * managed cluster, service principal will be used instead. Possible values + * include: 'SystemAssigned', 'None' + */ + type?: ResourceIdentityType; +} + +/** + * @interface + * An interface representing ManagedCluster. + * Managed cluster. + * + * @extends Resource + */ +export interface ManagedCluster extends Resource { + /** + * @member {string} [provisioningState] 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; + /** + * @member {number} [maxAgentPools] 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.** + */ + readonly maxAgentPools?: number; + /** + * @member {string} [kubernetesVersion] Version of Kubernetes specified when + * creating the managed cluster. + */ + kubernetesVersion?: string; + /** + * @member {string} [dnsPrefix] DNS prefix specified when creating the + * managed cluster. + */ + dnsPrefix?: string; + /** + * @member {string} [fqdn] FQDN for the master pool. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fqdn?: string; + /** + * @member {ManagedClusterAgentPoolProfile[]} [agentPoolProfiles] Properties + * of the agent pool. + */ + agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; + /** + * @member {ContainerServiceLinuxProfile} [linuxProfile] Profile for Linux + * VMs in the container service cluster. + */ + linuxProfile?: ContainerServiceLinuxProfile; + /** + * @member {ManagedClusterWindowsProfile} [windowsProfile] Profile for + * Windows VMs in the container service cluster. + */ + windowsProfile?: ManagedClusterWindowsProfile; + /** + * @member {ManagedClusterServicePrincipalProfile} [servicePrincipalProfile] + * Information about a service principal identity for the cluster to use for + * manipulating Azure APIs. + */ + servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; + /** + * @member {{ [propertyName: string]: ManagedClusterAddonProfile }} + * [addonProfiles] Profile of managed cluster add-on. + */ + addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile }; + /** + * @member {string} [nodeResourceGroup] Name of the resource group containing + * agent pool nodes. + */ + nodeResourceGroup?: string; + /** + * @member {boolean} [enableRBAC] Whether to enable Kubernetes Role-Based + * Access Control. + */ + enableRBAC?: boolean; + /** + * @member {boolean} [enablePodSecurityPolicy] (PREVIEW) Whether to enable + * Kubernetes Pod security policy. + */ + enablePodSecurityPolicy?: boolean; + /** + * @member {ContainerServiceNetworkProfile} [networkProfile] Profile of + * network configuration. + */ + networkProfile?: ContainerServiceNetworkProfile; + /** + * @member {ManagedClusterAADProfile} [aadProfile] Profile of Azure Active + * Directory configuration. + */ + aadProfile?: ManagedClusterAADProfile; + /** + * @member {string[]} [apiServerAuthorizedIPRanges] (PREVIEW) Authorized IP + * Ranges to kubernetes API server. + */ + apiServerAuthorizedIPRanges?: string[]; + /** + * @member {ManagedClusterIdentity} [identity] The identity of the managed + * cluster, if configured. + */ + identity?: ManagedClusterIdentity; +} + +/** + * @interface + * An interface representing ManagedClusterAccessProfile. + * Managed cluster Access Profile. + * + * @extends Resource + */ +export interface ManagedClusterAccessProfile extends Resource { + /** + * @member {Uint8Array} [kubeConfig] Base64-encoded Kubernetes configuration + * file. + */ + kubeConfig?: Uint8Array; +} + +/** + * @interface + * An interface representing ManagedClusterPoolUpgradeProfileUpgradesItem. + */ +export interface ManagedClusterPoolUpgradeProfileUpgradesItem { + /** + * @member {string} [kubernetesVersion] Kubernetes version (major, minor, + * patch). + */ + kubernetesVersion?: string; + /** + * @member {boolean} [isPreview] Whether Kubernetes version is currently in + * preview. + */ + isPreview?: boolean; +} + +/** + * @interface + * An interface representing ManagedClusterPoolUpgradeProfile. + * The list of available upgrade versions. + * + */ +export interface ManagedClusterPoolUpgradeProfile { + /** + * @member {string} kubernetesVersion Kubernetes version (major, minor, + * patch). + */ + kubernetesVersion: string; + /** + * @member {string} [name] Pool name. + */ + name?: string; + /** + * @member {OSType} osType 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; + /** + * @member {ManagedClusterPoolUpgradeProfileUpgradesItem[]} [upgrades] List + * of orchestrator types and versions available for upgrade. + */ + upgrades?: ManagedClusterPoolUpgradeProfileUpgradesItem[]; +} + +/** + * @interface + * An interface representing ManagedClusterUpgradeProfile. + * The list of available upgrades for compute pools. + * + */ +export interface ManagedClusterUpgradeProfile { + /** + * @member {string} [id] Id of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Name of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Type of upgrade profile. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {ManagedClusterPoolUpgradeProfile} controlPlaneProfile The list of + * available upgrade versions for the control plane. + */ + controlPlaneProfile: ManagedClusterPoolUpgradeProfile; + /** + * @member {ManagedClusterPoolUpgradeProfile[]} agentPoolProfiles The list of + * available upgrade versions for agent pools. + */ + agentPoolProfiles: ManagedClusterPoolUpgradeProfile[]; +} + +/** + * @interface + * An interface representing CredentialResult. + * The credential result response. + * + */ +export interface CredentialResult { + /** + * @member {string} [name] The name of the credential. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {Uint8Array} [value] Base64-encoded Kubernetes configuration file. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly value?: Uint8Array; +} + +/** + * @interface + * An interface representing CredentialResults. + * The list of credential result response. + * + */ +export interface CredentialResults { + /** + * @member {CredentialResult[]} [kubeconfigs] Base64-encoded Kubernetes + * configuration file. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly kubeconfigs?: CredentialResult[]; +} + +/** + * @interface + * An interface representing OrchestratorProfile. + * Contains information about orchestrator. + * + */ +export interface OrchestratorProfile { + /** + * @member {string} orchestratorType Orchestrator type. + */ + orchestratorType: string; + /** + * @member {string} orchestratorVersion Orchestrator version (major, minor, + * patch). + */ + orchestratorVersion: string; +} + +/** + * @interface + * An interface representing OrchestratorVersionProfile. + * The profile of an orchestrator and its available versions. + * + */ +export interface OrchestratorVersionProfile { + /** + * @member {string} orchestratorType Orchestrator type. + */ + orchestratorType: string; + /** + * @member {string} orchestratorVersion Orchestrator version (major, minor, + * patch). + */ + orchestratorVersion: string; + /** + * @member {boolean} default Installed by default if version is not + * specified. + */ + default: boolean; + /** + * @member {OrchestratorProfile[]} upgrades The list of available upgrade + * versions. + */ + upgrades: OrchestratorProfile[]; +} + +/** + * @interface + * An interface representing OrchestratorVersionProfileListResult. + * The list of versions for supported orchestrators. + * + */ +export interface OrchestratorVersionProfileListResult { + /** + * @member {string} [id] 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; + /** + * @member {string} [name] Name of the orchestrator version profile list + * result. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Type of the orchestrator version profile list + * result. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {OrchestratorVersionProfile[]} orchestrators List of orchestrator + * version profiles. + */ + orchestrators: OrchestratorVersionProfile[]; +} + +/** + * @interface + * An interface representing ContainerServicesListOrchestratorsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ContainerServicesListOrchestratorsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [resourceType] resource type for which the list of + * orchestrators needs to be returned + */ + resourceType?: string; +} + +/** + * @interface + * An interface representing ContainerServiceClientOptions. + * @extends AzureServiceClientOptions + */ +export interface ContainerServiceClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + + +/** + * @interface + * An interface representing the OpenShiftManagedClusterListResult. + * The response from the List OpenShift Managed Clusters operation. + * + * @extends Array + */ +export interface OpenShiftManagedClusterListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the ContainerServiceListResult. + * The response from the List Container Services operation. + * + * @extends Array + */ +export interface ContainerServiceListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the OperationListResult. + * The List Compute Operation operation response. + * + * @extends Array + */ +export interface OperationListResult extends Array { +} + +/** + * @interface + * An interface representing the ManagedClusterListResult. + * The response from the List Managed Clusters operation. + * + * @extends Array + */ +export interface ManagedClusterListResult extends Array { + /** + * @member {string} [nextLink] 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 + * An interface representing the AgentPoolListResult. + * The response from the List Agent Pools operation. + * + * @extends Array + */ +export interface AgentPoolListResult extends Array { + /** + * @member {string} [nextLink] 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' + * @readonly + * @enum {string} + */ +export type ContainerServiceStorageProfileTypes = 'StorageAccount' | 'ManagedDisks'; + +/** + * Defines values for ContainerServiceVMSizeTypes. + * 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' + * @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'; + +/** + * Defines values for ContainerServiceOrchestratorTypes. + * Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom' + * @readonly + * @enum {string} + */ +export type ContainerServiceOrchestratorTypes = 'Kubernetes' | 'Swarm' | 'DCOS' | 'DockerCE' | 'Custom'; + +/** + * Defines values for AgentPoolType. + * Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet' + * @readonly + * @enum {string} + */ +export type AgentPoolType = 'VirtualMachineScaleSets' | 'AvailabilitySet'; + +/** + * Defines values for NetworkPlugin. + * Possible values include: 'azure', 'kubenet' + * @readonly + * @enum {string} + */ +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 LoadBalancerSku. + * Possible values include: 'standard', 'basic' + * @readonly + * @enum {string} + */ +export type LoadBalancerSku = 'standard' | 'basic'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'None'; + +/** + * Contains response data for the list operation. + */ +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; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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; + }; +}; + +/** + * Contains response data for the get operation. + */ +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; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +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; + }; +}; + +/** + * Contains response data for the listOrchestrators operation. + */ +export type ContainerServicesListOrchestratorsResponse = OrchestratorVersionProfileListResult & { + /** + * 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: OrchestratorVersionProfileListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ContainerServicesBeginCreateOrUpdateResponse = 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; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ContainerServicesListNextResponse = 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; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ContainerServicesListByResourceGroupNextResponse = 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; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ManagedClustersListResponse = ManagedClusterListResult & { + /** + * 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: ManagedClusterListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ManagedClustersListByResourceGroupResponse = ManagedClusterListResult & { + /** + * 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: ManagedClusterListResult; + }; +}; + +/** + * Contains response data for the getUpgradeProfile operation. + */ +export type ManagedClustersGetUpgradeProfileResponse = ManagedClusterUpgradeProfile & { + /** + * 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: ManagedClusterUpgradeProfile; + }; +}; + +/** + * Contains response data for the getAccessProfile operation. + */ +export type ManagedClustersGetAccessProfileResponse = ManagedClusterAccessProfile & { + /** + * 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: ManagedClusterAccessProfile; + }; +}; + +/** + * Contains response data for the listClusterAdminCredentials operation. + */ +export type ManagedClustersListClusterAdminCredentialsResponse = CredentialResults & { + /** + * 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: CredentialResults; + }; +}; + +/** + * Contains response data for the listClusterUserCredentials operation. + */ +export type ManagedClustersListClusterUserCredentialsResponse = CredentialResults & { + /** + * 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: CredentialResults; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ManagedClustersGetResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedClustersCreateOrUpdateResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type ManagedClustersUpdateTagsResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ManagedClustersBeginCreateOrUpdateResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type ManagedClustersBeginUpdateTagsResponse = ManagedCluster & { + /** + * 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: ManagedCluster; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ManagedClustersListNextResponse = ManagedClusterListResult & { + /** + * 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: ManagedClusterListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListResult & { + /** + * 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: ManagedClusterListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AgentPoolsListResponse = AgentPoolListResult & { + /** + * 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: AgentPoolListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AgentPoolsGetResponse = AgentPool & { + /** + * 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: AgentPool; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AgentPoolsCreateOrUpdateResponse = AgentPool & { + /** + * 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: AgentPool; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AgentPoolsBeginCreateOrUpdateResponse = AgentPool & { + /** + * 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: AgentPool; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AgentPoolsListNextResponse = AgentPoolListResult & { + /** + * 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: AgentPoolListResult; + }; +}; diff --git a/sdk/containerservice/arm-containerservice/lib/models/managedClustersMappers.ts b/sdk/containerservice/arm-containerservice/lib/models/managedClustersMappers.ts new file mode 100644 index 000000000000..4408c08db85c --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/managedClustersMappers.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ManagedClusterListResult, + ManagedCluster, + Resource, + BaseResource, + ManagedClusterAgentPoolProfile, + ManagedClusterAgentPoolProfileProperties, + ContainerServiceLinuxProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ManagedClusterWindowsProfile, + ManagedClusterServicePrincipalProfile, + ManagedClusterAddonProfile, + ContainerServiceNetworkProfile, + ManagedClusterAADProfile, + ManagedClusterIdentity, + CloudError, + ManagedClusterUpgradeProfile, + ManagedClusterPoolUpgradeProfile, + ManagedClusterPoolUpgradeProfileUpgradesItem, + ManagedClusterAccessProfile, + CredentialResults, + CredentialResult, + TagsObject, + OpenShiftManagedCluster, + PurchasePlan, + NetworkProfile, + OpenShiftRouterProfile, + OpenShiftManagedClusterMasterPoolProfile, + OpenShiftManagedClusterAgentPoolProfile, + OpenShiftManagedClusterAuthProfile, + OpenShiftManagedClusterIdentityProvider, + OpenShiftManagedClusterBaseIdentityProvider, + OpenShiftManagedClusterAADIdentityProvider, + ContainerService, + ContainerServiceOrchestratorProfile, + ContainerServiceCustomProfile, + ContainerServiceServicePrincipalProfile, + KeyVaultSecretRef, + ContainerServiceMasterProfile, + ContainerServiceAgentPoolProfile, + ContainerServiceWindowsProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceVMDiagnostics, + SubResource, + AgentPool +} from "../models/mappers"; + diff --git a/sdk/containerservice/arm-containerservice/lib/models/mappers.ts b/sdk/containerservice/arm-containerservice/lib/models/mappers.ts new file mode 100644 index 000000000000..cce44332d4da --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/mappers.ts @@ -0,0 +1,2059 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PurchasePlan: msRest.CompositeMapper = { + serializedName: "PurchasePlan", + type: { + name: "Composite", + className: "PurchasePlan", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + product: { + serializedName: "product", + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + }, + publisher: { + serializedName: "publisher", + type: { + name: "String" + } + } + } + } +}; + +export const OpenShiftRouterProfile: msRest.CompositeMapper = { + serializedName: "OpenShiftRouterProfile", + type: { + name: "Composite", + className: "OpenShiftRouterProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + publicSubdomain: { + readOnly: true, + serializedName: "publicSubdomain", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "fqdn", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkProfile: msRest.CompositeMapper = { + serializedName: "NetworkProfile", + type: { + name: "Composite", + className: "NetworkProfile", + modelProperties: { + vnetCidr: { + serializedName: "vnetCidr", + defaultValue: '10.0.0.0/8', + type: { + name: "String" + } + }, + peerVnetId: { + serializedName: "peerVnetId", + type: { + name: "String" + } + }, + vnetId: { + serializedName: "vnetId", + type: { + name: "String" + } + } + } + } +}; + +export const OpenShiftManagedClusterMasterPoolProfile: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterMasterPoolProfile", + type: { + name: "Composite", + className: "OpenShiftManagedClusterMasterPoolProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + count: { + required: true, + serializedName: "count", + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnetCidr: { + serializedName: "subnetCidr", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + } + } + } +}; + +export const OpenShiftManagedClusterAgentPoolProfile: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterAgentPoolProfile", + type: { + name: "Composite", + className: "OpenShiftManagedClusterAgentPoolProfile", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + count: { + required: true, + serializedName: "count", + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnetCidr: { + serializedName: "subnetCidr", + defaultValue: '10.0.0.0/24', + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, + role: { + serializedName: "role", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const OpenShiftManagedClusterIdentityProvider: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterIdentityProvider", + type: { + name: "Composite", + className: "OpenShiftManagedClusterIdentityProvider", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + provider: { + serializedName: "provider", + type: { + name: "Composite", + className: "OpenShiftManagedClusterBaseIdentityProvider" + } + } + } + } +}; + +export const OpenShiftManagedClusterAuthProfile: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterAuthProfile", + type: { + name: "Composite", + className: "OpenShiftManagedClusterAuthProfile", + modelProperties: { + identityProviders: { + serializedName: "identityProviders", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenShiftManagedClusterIdentityProvider" + } + } + } + } + } + } +}; + +export const OpenShiftManagedCluster: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedCluster", + type: { + name: "Composite", + className: "OpenShiftManagedCluster", + 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", + type: { + name: "String" + } + }, + publicHostname: { + readOnly: true, + serializedName: "properties.publicHostname", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + networkProfile: { + serializedName: "properties.networkProfile", + type: { + name: "Composite", + className: "NetworkProfile" + } + }, + routerProfiles: { + serializedName: "properties.routerProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenShiftRouterProfile" + } + } + } + }, + masterPoolProfile: { + serializedName: "properties.masterPoolProfile", + type: { + name: "Composite", + className: "OpenShiftManagedClusterMasterPoolProfile" + } + }, + agentPoolProfiles: { + serializedName: "properties.agentPoolProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenShiftManagedClusterAgentPoolProfile" + } + } + } + }, + authProfile: { + serializedName: "properties.authProfile", + type: { + name: "Composite", + className: "OpenShiftManagedClusterAuthProfile" + } + } + } + } +}; + +export const OpenShiftManagedClusterAADIdentityProvider: msRest.CompositeMapper = { + serializedName: "AADIdentityProvider", + type: { + name: "Composite", + polymorphicDiscriminator: OpenShiftManagedClusterBaseIdentityProvider.type.polymorphicDiscriminator, + uberParent: "OpenShiftManagedClusterBaseIdentityProvider", + className: "OpenShiftManagedClusterAADIdentityProvider", + modelProperties: { + ...OpenShiftManagedClusterBaseIdentityProvider.type.modelProperties, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + secret: { + serializedName: "secret", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + customerAdminGroupId: { + serializedName: "customerAdminGroupId", + 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" + } + }, + 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, + type: { + name: "Number" + } + }, + dnsPrefix: { + required: true, + serializedName: "dnsPrefix", + type: { + name: "String" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + osDiskSizeGB: { + serializedName: "osDiskSizeGB", + 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 + }, + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + osDiskSizeGB: { + serializedName: "osDiskSizeGB", + 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", + type: { + name: "Composite", + className: "ContainerServiceDiagnosticsProfile" + } + } + } + } +}; + +export const OperationValue: msRest.CompositeMapper = { + serializedName: "OperationValue", + type: { + name: "Composite", + className: "OperationValue", + modelProperties: { + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "display.operation", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "display.resource", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "display.description", + type: { + name: "String" + } + }, + provider: { + readOnly: true, + serializedName: "display.provider", + type: { + name: "String" + } + } + } + } +}; + +export const SubResource: msRest.CompositeMapper = { + serializedName: "SubResource", + type: { + name: "Composite", + className: "SubResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedClusterServicePrincipalProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterServicePrincipalProfile", + type: { + name: "Composite", + className: "ManagedClusterServicePrincipalProfile", + modelProperties: { + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "String" + } + }, + secret: { + serializedName: "secret", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper = { + serializedName: "ManagedClusterAgentPoolProfileProperties", + type: { + name: "Composite", + className: "ManagedClusterAgentPoolProfileProperties", + modelProperties: { + count: { + required: true, + serializedName: "count", + defaultValue: 1, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "vmSize", + type: { + name: "String" + } + }, + osDiskSizeGB: { + serializedName: "osDiskSizeGB", + type: { + name: "Number" + } + }, + vnetSubnetID: { + serializedName: "vnetSubnetID", + type: { + name: "String" + } + }, + maxPods: { + serializedName: "maxPods", + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, + maxCount: { + serializedName: "maxCount", + type: { + name: "Number" + } + }, + minCount: { + serializedName: "minCount", + type: { + name: "Number" + } + }, + enableAutoScaling: { + serializedName: "enableAutoScaling", + type: { + name: "Boolean" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + orchestratorVersion: { + serializedName: "orchestratorVersion", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + availabilityZones: { + serializedName: "availabilityZones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enableNodePublicIP: { + serializedName: "enableNodePublicIP", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedClusterAgentPoolProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterAgentPoolProfile", + type: { + name: "Composite", + className: "ManagedClusterAgentPoolProfile", + modelProperties: { + ...ManagedClusterAgentPoolProfileProperties.type.modelProperties, + name: { + required: true, + serializedName: "name", + constraints: { + Pattern: /^[a-z][a-z0-9]{0,11}$/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AgentPool: msRest.CompositeMapper = { + serializedName: "AgentPool", + type: { + name: "Composite", + className: "AgentPool", + modelProperties: { + ...SubResource.type.modelProperties, + count: { + required: true, + serializedName: "properties.count", + defaultValue: 1, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + vmSize: { + required: true, + serializedName: "properties.vmSize", + type: { + name: "String" + } + }, + osDiskSizeGB: { + serializedName: "properties.osDiskSizeGB", + type: { + name: "Number" + } + }, + vnetSubnetID: { + serializedName: "properties.vnetSubnetID", + type: { + name: "String" + } + }, + maxPods: { + serializedName: "properties.maxPods", + type: { + name: "Number" + } + }, + osType: { + serializedName: "properties.osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, + maxCount: { + serializedName: "properties.maxCount", + type: { + name: "Number" + } + }, + minCount: { + serializedName: "properties.minCount", + type: { + name: "Number" + } + }, + enableAutoScaling: { + serializedName: "properties.enableAutoScaling", + type: { + name: "Boolean" + } + }, + agentPoolType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + orchestratorVersion: { + serializedName: "properties.orchestratorVersion", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + availabilityZones: { + serializedName: "properties.availabilityZones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enableNodePublicIP: { + serializedName: "properties.enableNodePublicIP", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedClusterWindowsProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterWindowsProfile", + type: { + name: "Composite", + className: "ManagedClusterWindowsProfile", + modelProperties: { + 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" + } + } + } + } +}; + +export const ContainerServiceNetworkProfile: msRest.CompositeMapper = { + serializedName: "ContainerServiceNetworkProfile", + type: { + name: "Composite", + className: "ContainerServiceNetworkProfile", + modelProperties: { + networkPlugin: { + serializedName: "networkPlugin", + defaultValue: 'kubenet', + type: { + name: "String" + } + }, + networkPolicy: { + serializedName: "networkPolicy", + type: { + name: "String" + } + }, + podCidr: { + serializedName: "podCidr", + defaultValue: '10.244.0.0/16', + constraints: { + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ + }, + type: { + name: "String" + } + }, + serviceCidr: { + serializedName: "serviceCidr", + defaultValue: '10.0.0.0/16', + constraints: { + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ + }, + type: { + name: "String" + } + }, + dnsServiceIP: { + serializedName: "dnsServiceIP", + defaultValue: '10.0.0.10', + constraints: { + Pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ + }, + type: { + name: "String" + } + }, + dockerBridgeCidr: { + serializedName: "dockerBridgeCidr", + defaultValue: '172.17.0.1/16', + constraints: { + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ + }, + type: { + name: "String" + } + }, + loadBalancerSku: { + serializedName: "loadBalancerSku", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedClusterAddonProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterAddonProfile", + type: { + name: "Composite", + className: "ManagedClusterAddonProfile", + modelProperties: { + enabled: { + required: true, + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + config: { + serializedName: "config", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ManagedClusterAADProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterAADProfile", + type: { + name: "Composite", + className: "ManagedClusterAADProfile", + modelProperties: { + clientAppID: { + required: true, + serializedName: "clientAppID", + type: { + name: "String" + } + }, + serverAppID: { + required: true, + serializedName: "serverAppID", + type: { + name: "String" + } + }, + serverAppSecret: { + serializedName: "serverAppSecret", + type: { + name: "String" + } + }, + tenantID: { + serializedName: "tenantID", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedClusterIdentity: msRest.CompositeMapper = { + serializedName: "ManagedClusterIdentity", + type: { + name: "Composite", + className: "ManagedClusterIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "None" + ] + } + } + } + } +}; + +export const ManagedCluster: msRest.CompositeMapper = { + serializedName: "ManagedCluster", + type: { + name: "Composite", + className: "ManagedCluster", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + maxAgentPools: { + readOnly: true, + serializedName: "properties.maxAgentPools", + type: { + name: "Number" + } + }, + kubernetesVersion: { + serializedName: "properties.kubernetesVersion", + type: { + name: "String" + } + }, + dnsPrefix: { + serializedName: "properties.dnsPrefix", + type: { + name: "String" + } + }, + fqdn: { + readOnly: true, + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + agentPoolProfiles: { + serializedName: "properties.agentPoolProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterAgentPoolProfile" + } + } + } + }, + linuxProfile: { + serializedName: "properties.linuxProfile", + type: { + name: "Composite", + className: "ContainerServiceLinuxProfile" + } + }, + windowsProfile: { + serializedName: "properties.windowsProfile", + type: { + name: "Composite", + className: "ManagedClusterWindowsProfile" + } + }, + servicePrincipalProfile: { + serializedName: "properties.servicePrincipalProfile", + type: { + name: "Composite", + className: "ManagedClusterServicePrincipalProfile" + } + }, + addonProfiles: { + serializedName: "properties.addonProfiles", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedClusterAddonProfile" + } + } + } + }, + nodeResourceGroup: { + serializedName: "properties.nodeResourceGroup", + type: { + name: "String" + } + }, + enableRBAC: { + serializedName: "properties.enableRBAC", + type: { + name: "Boolean" + } + }, + enablePodSecurityPolicy: { + serializedName: "properties.enablePodSecurityPolicy", + type: { + name: "Boolean" + } + }, + networkProfile: { + serializedName: "properties.networkProfile", + type: { + name: "Composite", + className: "ContainerServiceNetworkProfile" + } + }, + aadProfile: { + serializedName: "properties.aadProfile", + type: { + name: "Composite", + className: "ManagedClusterAADProfile" + } + }, + apiServerAuthorizedIPRanges: { + serializedName: "properties.apiServerAuthorizedIPRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedClusterIdentity" + } + } + } + } +}; + +export const ManagedClusterAccessProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterAccessProfile", + type: { + name: "Composite", + className: "ManagedClusterAccessProfile", + modelProperties: { + ...Resource.type.modelProperties, + kubeConfig: { + serializedName: "properties.kubeConfig", + type: { + name: "ByteArray" + } + } + } + } +}; + +export const ManagedClusterPoolUpgradeProfileUpgradesItem: msRest.CompositeMapper = { + serializedName: "ManagedClusterPoolUpgradeProfile_upgradesItem", + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfileUpgradesItem", + modelProperties: { + kubernetesVersion: { + serializedName: "kubernetesVersion", + type: { + name: "String" + } + }, + isPreview: { + serializedName: "isPreview", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ManagedClusterPoolUpgradeProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterPoolUpgradeProfile", + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfile", + modelProperties: { + kubernetesVersion: { + required: true, + serializedName: "kubernetesVersion", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + osType: { + required: true, + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, + upgrades: { + serializedName: "upgrades", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfileUpgradesItem" + } + } + } + } + } + } +}; + +export const ManagedClusterUpgradeProfile: msRest.CompositeMapper = { + serializedName: "ManagedClusterUpgradeProfile", + type: { + name: "Composite", + className: "ManagedClusterUpgradeProfile", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + controlPlaneProfile: { + required: true, + serializedName: "properties.controlPlaneProfile", + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfile" + } + }, + agentPoolProfiles: { + required: true, + serializedName: "properties.agentPoolProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfile" + } + } + } + } + } + } +}; + +export const CredentialResult: msRest.CompositeMapper = { + serializedName: "CredentialResult", + type: { + name: "Composite", + className: "CredentialResult", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "value", + type: { + name: "ByteArray" + } + } + } + } +}; + +export const CredentialResults: msRest.CompositeMapper = { + serializedName: "CredentialResults", + type: { + name: "Composite", + className: "CredentialResults", + modelProperties: { + kubeconfigs: { + readOnly: true, + serializedName: "kubeconfigs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CredentialResult" + } + } + } + } + } + } +}; + +export const OrchestratorProfile: msRest.CompositeMapper = { + serializedName: "OrchestratorProfile", + type: { + name: "Composite", + className: "OrchestratorProfile", + modelProperties: { + orchestratorType: { + required: true, + serializedName: "orchestratorType", + type: { + name: "String" + } + }, + orchestratorVersion: { + required: true, + serializedName: "orchestratorVersion", + type: { + name: "String" + } + } + } + } +}; + +export const OrchestratorVersionProfile: msRest.CompositeMapper = { + serializedName: "OrchestratorVersionProfile", + type: { + name: "Composite", + className: "OrchestratorVersionProfile", + modelProperties: { + orchestratorType: { + required: true, + serializedName: "orchestratorType", + type: { + name: "String" + } + }, + orchestratorVersion: { + required: true, + serializedName: "orchestratorVersion", + type: { + name: "String" + } + }, + default: { + required: true, + serializedName: "default", + type: { + name: "Boolean" + } + }, + upgrades: { + required: true, + 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", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + orchestrators: { + required: true, + serializedName: "properties.orchestrators", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrchestratorVersionProfile" + } + } + } + } + } + } +}; + +export const OpenShiftManagedClusterListResult: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterListResult", + type: { + name: "Composite", + className: "OpenShiftManagedClusterListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenShiftManagedCluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerServiceListResult: msRest.CompositeMapper = { + serializedName: "ContainerServiceListResult", + type: { + name: "Composite", + className: "ContainerServiceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerService" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationValue" + } + } + } + } + } + } +}; + +export const ManagedClusterListResult: msRest.CompositeMapper = { + serializedName: "ManagedClusterListResult", + type: { + name: "Composite", + className: "ManagedClusterListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedCluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AgentPoolListResult: msRest.CompositeMapper = { + serializedName: "AgentPoolListResult", + type: { + name: "Composite", + className: "AgentPoolListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentPool" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const discriminators = { + 'OpenShiftManagedClusterBaseIdentityProvider' : OpenShiftManagedClusterBaseIdentityProvider, + 'OpenShiftManagedClusterBaseIdentityProvider.AADIdentityProvider' : OpenShiftManagedClusterAADIdentityProvider +}; diff --git a/sdk/containerservice/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts b/sdk/containerservice/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts new file mode 100644 index 000000000000..e5f00ed7751a --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + OpenShiftManagedClusterListResult, + OpenShiftManagedCluster, + Resource, + BaseResource, + PurchasePlan, + NetworkProfile, + OpenShiftRouterProfile, + OpenShiftManagedClusterMasterPoolProfile, + OpenShiftManagedClusterAgentPoolProfile, + OpenShiftManagedClusterAuthProfile, + OpenShiftManagedClusterIdentityProvider, + OpenShiftManagedClusterBaseIdentityProvider, + CloudError, + TagsObject, + OpenShiftManagedClusterAADIdentityProvider, + ContainerService, + ContainerServiceOrchestratorProfile, + ContainerServiceCustomProfile, + ContainerServiceServicePrincipalProfile, + KeyVaultSecretRef, + ContainerServiceMasterProfile, + ContainerServiceAgentPoolProfile, + ContainerServiceWindowsProfile, + ContainerServiceLinuxProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceDiagnosticsProfile, + ContainerServiceVMDiagnostics, + SubResource, + AgentPool, + ManagedCluster, + ManagedClusterAgentPoolProfile, + ManagedClusterAgentPoolProfileProperties, + ManagedClusterWindowsProfile, + ManagedClusterServicePrincipalProfile, + ManagedClusterAddonProfile, + ContainerServiceNetworkProfile, + ManagedClusterAADProfile, + ManagedClusterIdentity, + ManagedClusterAccessProfile +} from "../models/mappers"; + diff --git a/sdk/containerservice/arm-containerservice/lib/models/operationsMappers.ts b/sdk/containerservice/arm-containerservice/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..55bb08c1de34 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/operationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + OperationListResult, + OperationValue, + CloudError +} from "../models/mappers"; + diff --git a/sdk/containerservice/arm-containerservice/lib/models/parameters.ts b/sdk/containerservice/arm-containerservice/lib/models/parameters.ts new file mode 100644 index 000000000000..4ca6d80035c4 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/models/parameters.ts @@ -0,0 +1,186 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const agentPoolName: msRest.OperationURLParameter = { + parameterPath: "agentPoolName", + mapper: { + required: true, + serializedName: "agentPoolName", + type: { + name: "String" + } + } +}; +export const apiVersion0: 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: '2017-09-30', + type: { + name: "String" + } + } +}; +export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-04-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" + } + } +}; +export const managedClusterName: msRest.OperationURLParameter = { + parameterPath: "managedClusterName", + mapper: { + required: true, + serializedName: "managedClusterName", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const resourceGroupName0: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const resourceGroupName1: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const resourceName: msRest.OperationURLParameter = { + parameterPath: "resourceName", + mapper: { + required: true, + serializedName: "resourceName", + type: { + name: "String" + } + } +}; +export const resourceType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "resourceType" + ], + mapper: { + serializedName: "resource-type", + type: { + name: "String" + } + } +}; +export const roleName: msRest.OperationURLParameter = { + parameterPath: "roleName", + mapper: { + required: true, + serializedName: "roleName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/lib/operations/agentPools.ts new file mode 100644 index 000000000000..81678dd2b7b4 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/agentPools.ts @@ -0,0 +1,338 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/agentPoolsMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a AgentPools. */ +export class AgentPools { + private readonly client: ContainerServiceClientContext; + + /** + * Create a AgentPools. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of agent pools in the specified managed cluster. The operation returns properties of + * each agent pool. + * @summary Gets a list of agent pools in the specified managed cluster. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, managedClusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param callback The callback + */ + list(resourceGroupName: string, managedClusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, managedClusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, managedClusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedClusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the agent pool by managed cluster and resource group. + * @summary Gets the agent pool. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedClusterName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param callback The callback + */ + get(resourceGroupName: string, managedClusterName: string, agentPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedClusterName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedClusterName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedClusterName, + agentPoolName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an agent pool in the specified managed cluster. + * @summary Creates or updates an agent pool. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters Parameters supplied to the Create or Update an agent pool operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedClusterName: string, agentPoolName: string, parameters: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedClusterName,agentPoolName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the agent pool in the specified managed cluster. + * @summary Deletes an agent pool. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, managedClusterName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,managedClusterName,agentPoolName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates or updates an agent pool in the specified managed cluster. + * @summary Creates or updates an agent pool. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters Parameters supplied to the Create or Update an agent pool operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedClusterName: string, agentPoolName: string, parameters: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedClusterName, + agentPoolName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the agent pool in the specified managed cluster. + * @summary Deletes an agent pool. + * @param resourceGroupName The name of the resource group. + * @param managedClusterName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, managedClusterName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedClusterName, + agentPoolName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of agent pools in the specified managed cluster. The operation returns properties of + * each agent pool. + * @summary Gets a list of agent pools in the specified managed cluster. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + 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/{managedClusterName}/agentPools", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.managedClusterName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AgentPoolListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{managedClusterName}/agentPools/{agentPoolName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.managedClusterName, + Parameters.agentPoolName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AgentPool + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{managedClusterName}/agentPools/{agentPoolName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.managedClusterName, + Parameters.agentPoolName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AgentPool, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AgentPool + }, + 201: { + bodyMapper: Mappers.AgentPool + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{managedClusterName}/agentPools/{agentPoolName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.managedClusterName, + Parameters.agentPoolName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AgentPoolListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/containerServices.ts b/sdk/containerservice/arm-containerservice/lib/operations/containerServices.ts new file mode 100644 index 000000000000..732f0d25f119 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/containerServices.ts @@ -0,0 +1,514 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/containerServicesMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a ContainerServices. */ +export class ContainerServices { + private readonly client: ContainerServiceClientContext; + + /** + * Create a ContainerServices. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of container services in the specified subscription. The operation returns + * properties of each container service including state, orchestrator, number of masters and + * agents, and FQDNs of masters and agents. + * @summary Gets a list of container services in the specified subscription. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a container service with the specified configuration of orchestrator, + * masters, and agents. + * @summary Creates or updates a container service. + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param parameters Parameters supplied to the Create or Update a Container Service operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,containerServiceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the properties of the specified container service in the specified subscription and + * resource group. The operation returns the properties including state, orchestrator, number of + * masters and agents, and FQDNs of masters and agents. + * @summary Gets the properties of the specified container service. + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + get(resourceGroupName: string, containerServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + get(resourceGroupName: string, containerServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + containerServiceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified container service in the specified subscription and resource group. The + * operation does not delete other resources created as part of creating a container service, + * including storage accounts, VMs, and availability sets. All the other resources created with the + * container service are part of the same resource group and can be deleted individually. + * @summary Deletes the specified container service. + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,containerServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a list of container services in the specified subscription and resource group. The + * operation returns properties of each container service including state, orchestrator, number of + * masters and agents, and FQDNs of masters and agents. + * @summary Gets a list of container services in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of supported orchestrators in the specified subscription. The operation returns + * properties of each orchestrator including version and available upgrades. + * @summary Gets a list of supported orchestrators in the specified subscription. + * @param location The name of a supported Azure region. + * @param [options] The optional parameters + * @returns Promise + */ + listOrchestrators(location: string, options?: Models.ContainerServicesListOrchestratorsOptionalParams): Promise; + /** + * @param location The name of a supported Azure region. + * @param callback The callback + */ + listOrchestrators(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location The name of a supported Azure region. + * @param options The optional parameters + * @param callback The callback + */ + listOrchestrators(location: string, options: Models.ContainerServicesListOrchestratorsOptionalParams, callback: msRest.ServiceCallback): void; + listOrchestrators(location: string, options?: Models.ContainerServicesListOrchestratorsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOrchestratorsOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a container service with the specified configuration of orchestrator, + * masters, and agents. + * @summary Creates or updates a container service. + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param parameters Parameters supplied to the Create or Update a Container Service operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, containerServiceName: string, parameters: Models.ContainerService, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + containerServiceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the specified container service in the specified subscription and resource group. The + * operation does not delete other resources created as part of creating a container service, + * including storage accounts, VMs, and availability sets. All the other resources created with the + * container service are part of the same resource group and can be deleted individually. + * @summary Deletes the specified container service. + * @param resourceGroupName The name of the resource group. + * @param containerServiceName The name of the container service in the specified subscription and + * resource group. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + containerServiceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of container services in the specified subscription. The operation returns + * properties of each container service including state, orchestrator, number of masters and + * agents, and FQDNs of masters and agents. + * @summary Gets a list of container services in the specified subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of container services in the specified subscription and resource group. The + * operation returns properties of each container service including state, orchestrator, number of + * masters and agents, and FQDNs of masters and agents. + * @summary Gets a list of container services in the specified resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", + urlParameters: [ + Parameters.resourceGroupName1, + Parameters.containerServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", + urlParameters: [ + Parameters.resourceGroupName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOrchestratorsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.resourceType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OrchestratorVersionProfileListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", + urlParameters: [ + Parameters.resourceGroupName1, + Parameters.containerServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ContainerService, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ContainerService + }, + 201: { + bodyMapper: Mappers.ContainerService + }, + 202: { + bodyMapper: Mappers.ContainerService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", + urlParameters: [ + Parameters.resourceGroupName1, + Parameters.containerServiceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ContainerServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/index.ts b/sdk/containerservice/arm-containerservice/lib/operations/index.ts new file mode 100644 index 000000000000..8d5b6c7986df --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/index.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./openShiftManagedClusters"; +export * from "./containerServices"; +export * from "./operations"; +export * from "./managedClusters"; +export * from "./agentPools"; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/lib/operations/managedClusters.ts new file mode 100644 index 000000000000..31cb5bfd718e --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/managedClusters.ts @@ -0,0 +1,862 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedClustersMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a ManagedClusters. */ +export class ManagedClusters { + private readonly client: ContainerServiceClientContext; + + /** + * Create a ManagedClusters. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of managed clusters in the specified subscription. The operation returns properties + * of each managed cluster. + * @summary Gets a list of managed clusters in the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists managed clusters in the specified subscription and resource group. The operation returns + * properties of each managed cluster. + * @summary Lists managed clusters in the specified subscription and resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the upgrade profile for a managed cluster with a specified resource group + * and name. + * @summary Gets upgrade profile for a 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 + */ + getUpgradeProfile(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 + */ + getUpgradeProfile(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 + */ + getUpgradeProfile(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + getUpgradeProfileOperationSpec, + callback) as Promise; + } + + /** + * Gets the accessProfile for the specified role name of the managed cluster with a specified + * resource group and name. + * @summary Gets an access profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param roleName The name of the role for managed cluster accessProfile resource. + * @param [options] The optional parameters + * @returns Promise + */ + getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param roleName The name of the role for managed cluster accessProfile resource. + * @param callback The callback + */ + getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param roleName The name of the role for managed cluster accessProfile resource. + * @param options The optional parameters + * @param callback The callback + */ + getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + roleName, + options + }, + getAccessProfileOperationSpec, + callback) as Promise; + } + + /** + * Gets cluster admin credential of the managed cluster with a specified resource group and name. + * @summary Gets cluster admin credential of a 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 + */ + listClusterAdminCredentials(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 + */ + listClusterAdminCredentials(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 + */ + listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listClusterAdminCredentials(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + listClusterAdminCredentialsOperationSpec, + callback) as Promise; + } + + /** + * Gets cluster user credential of the managed cluster with a specified resource group and name. + * @summary Gets cluster user credential of a 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 + */ + listClusterUserCredentials(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 + */ + listClusterUserCredentials(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 + */ + listClusterUserCredentials(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listClusterUserCredentials(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + listClusterUserCredentialsOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the managed cluster with a specified resource group and name. + * @summary Gets a 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 + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a managed cluster with the specified configuration for agents and Kubernetes + * version. + * @summary Creates or updates a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Create or Update a Managed Cluster operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.ManagedCluster, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a managed cluster with the specified tags. + * @summary Updates tags on a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the managed cluster with a specified resource group and name. + * @summary Deletes a 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 + */ + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetServicePrincipalProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetAADProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates or updates a managed cluster with the specified configuration for agents and Kubernetes + * version. + * @summary Creates or updates a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Create or Update a Managed Cluster operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.ManagedCluster, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a managed cluster with the specified tags. + * @summary Updates tags on a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Deletes the managed cluster with a specified resource group and name. + * @summary Deletes a 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 + */ + beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetServicePrincipalProfileOperationSpec, + options); + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetAADProfileOperationSpec, + options); + } + + /** + * Gets a list of managed clusters in the specified subscription. The operation returns properties + * of each managed cluster. + * @summary Gets a list of managed clusters in the specified subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Lists managed clusters in the specified subscription and resource group. The operation returns + * properties of each managed cluster. + * @summary Lists managed clusters in the specified subscription and resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getUpgradeProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterUpgradeProfile + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getAccessProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName, + Parameters.roleName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterAccessProfile + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listClusterAdminCredentialsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CredentialResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listClusterUserCredentialsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CredentialResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedCluster, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedCluster + }, + 201: { + bodyMapper: Mappers.ManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterServicePrincipalProfile, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetAADProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterAADProfile, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/openShiftManagedClusters.ts b/sdk/containerservice/arm-containerservice/lib/operations/openShiftManagedClusters.ts new file mode 100644 index 000000000000..c461f30efb7b --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/openShiftManagedClusters.ts @@ -0,0 +1,491 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/openShiftManagedClustersMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a OpenShiftManagedClusters. */ +export class OpenShiftManagedClusters { + private readonly client: ContainerServiceClientContext; + + /** + * Create a OpenShiftManagedClusters. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns + * properties of each OpenShift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists OpenShift managed clusters in the specified subscription and resource group. The operation + * returns properties of each OpenShift managed cluster. + * @summary Lists OpenShift managed clusters in the specified subscription and resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the managed OpenShift cluster with a specified resource group and name. + * @summary Gets a OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a OpenShift managed cluster with the specified configuration for agents and + * OpenShift version. + * @summary Creates or updates an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.OpenShiftManagedCluster, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates an OpenShift managed cluster with the specified tags. + * @summary Updates tags on an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the OpenShift managed cluster with a specified resource group and name. + * @summary Deletes an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates or updates a OpenShift managed cluster with the specified configuration for agents and + * OpenShift version. + * @summary Creates or updates an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.OpenShiftManagedCluster, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates an OpenShift managed cluster with the specified tags. + * @summary Updates tags on an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, resourceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Deletes the OpenShift managed cluster with a specified resource group and name. + * @summary Deletes an OpenShift managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the OpenShift managed cluster resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns + * properties of each OpenShift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Lists OpenShift managed clusters in the specified subscription and resource group. The operation + * returns properties of each OpenShift managed cluster. + * @summary Lists OpenShift managed clusters in the specified subscription and resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0 + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OpenShiftManagedCluster, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedCluster + }, + 201: { + bodyMapper: Mappers.OpenShiftManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/lib/operations/operations.ts b/sdk/containerservice/arm-containerservice/lib/operations/operations.ts new file mode 100644 index 000000000000..3d409d17f22c --- /dev/null +++ b/sdk/containerservice/arm-containerservice/lib/operations/operations.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerServiceClientContext } from "../containerServiceClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: ContainerServiceClientContext; + + /** + * Create a Operations. + * @param {ContainerServiceClientContext} client Reference to the service client. + */ + constructor(client: ContainerServiceClientContext) { + this.client = client; + } + + /** + * Gets a list of compute operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.ContainerService/operations", + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index b74cc6acca31..b00ea9795838 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -4,8 +4,8 @@ "description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.", "version": "7.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/containerservice/arm-containerservice", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -43,8 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", - "README.md", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerservice.js.map'\" -o ./dist/arm-containerservice.min.js ./dist/arm-containerservice.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false } diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] }