diff --git a/lib/services/containerservicesManagement/LICENSE.txt b/lib/services/containerservicesManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/containerservicesManagement/LICENSE.txt +++ b/lib/services/containerservicesManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/containerservicesManagement/README.md b/lib/services/containerservicesManagement/README.md index 2a1bd6ba5d..c7a8e988b2 100644 --- a/lib/services/containerservicesManagement/README.md +++ b/lib/services/containerservicesManagement/README.md @@ -3,40 +3,41 @@ uid: azure-arm-containerservice summary: *content --- -# Microsoft Azure SDK for Node.js - ContainerServiceClient +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - ContainerServiceClient + This project provides a Node.js package for accessing Azure. Right now it supports: - **Node.js version 6.x.x or higher** -## Features +### Features -## How to Install +### How to Install ```bash npm install azure-arm-containerservice ``` -## How to use +### How to use -### Authentication, client creation and get openShiftManagedClusters as an example. +#### Authentication, client creation, and list openShiftManagedClusters as an example. ```javascript const msRestAzure = require("ms-rest-azure"); const ContainerServiceClient = require("azure-arm-containerservice"); msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new ContainerServiceClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const resourceName = "testresourceName"; - return client.openShiftManagedClusters.get(resourceGroupName, resourceName).then((result) => { - console.log("The result is:"); - console.log(result); - }); + const subscriptionId = ""; + const client = new ContainerServiceClient(creds, subscriptionId); + + return client.openShiftManagedClusters.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); }).catch((err) => { console.log('An error occurred:'); console.dir(err, {depth: null, colors: true}); }); - -## Related projects +``` +### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/containerservicesManagement/lib/models/containerService.js b/lib/services/containerservicesManagement/lib/models/containerService.js index e99cae0d19..a494b73f16 100644 --- a/lib/services/containerservicesManagement/lib/models/containerService.js +++ b/lib/services/containerservicesManagement/lib/models/containerService.js @@ -20,85 +20,86 @@ const models = require('./index'); class ContainerService extends models['Resource'] { /** * Create a ContainerService. - * @member {string} [provisioningState] The current deployment or + * @property {string} [provisioningState] The current deployment or * provisioning state, which only appears in the response. - * @member {object} orchestratorProfile Profile for the container service + * @property {object} orchestratorProfile Profile for the container service * orchestrator. - * @member {string} [orchestratorProfile.orchestratorType] The orchestrator + * @property {string} [orchestratorProfile.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' - * @member {string} [orchestratorProfile.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". - * @member {object} [customProfile] Properties to configure a custom + * @property {string} [orchestratorProfile.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". + * @property {object} [customProfile] Properties to configure a custom * container service cluster. - * @member {string} [customProfile.orchestrator] The name of the custom + * @property {string} [customProfile.orchestrator] The name of the custom * orchestrator to use. - * @member {object} [servicePrincipalProfile] Information about a service + * @property {object} [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. - * @member {string} [servicePrincipalProfile.clientId] The ID for the service - * principal. - * @member {string} [servicePrincipalProfile.secret] The secret password + * @property {string} [servicePrincipalProfile.clientId] The ID for the + * service principal. + * @property {string} [servicePrincipalProfile.secret] The secret password * associated with the service principal in plain text. - * @member {object} [servicePrincipalProfile.keyVaultSecretRef] Reference to - * a secret stored in Azure Key Vault. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.vaultID] Key + * @property {object} [servicePrincipalProfile.keyVaultSecretRef] Reference + * to a secret stored in Azure Key Vault. + * @property {string} [servicePrincipalProfile.keyVaultSecretRef.vaultID] Key * vault identifier. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.secretName] + * @property {string} [servicePrincipalProfile.keyVaultSecretRef.secretName] * The secret name. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.version] The + * @property {string} [servicePrincipalProfile.keyVaultSecretRef.version] The * secret version. - * @member {object} masterProfile Profile for the container service master. - * @member {number} [masterProfile.count] Number of masters (VMs) in the + * @property {object} masterProfile Profile for the container service master. + * @property {number} [masterProfile.count] Number of masters (VMs) in the * container service cluster. Allowed values are 1, 3, and 5. The default * value is 1. - * @member {string} [masterProfile.dnsPrefix] DNS prefix to be used to create - * the FQDN for the master pool. - * @member {string} [masterProfile.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', + * @property {string} [masterProfile.dnsPrefix] DNS prefix to be used to + * create the FQDN for the master pool. + * @property {string} [masterProfile.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', @@ -107,42 +108,44 @@ class ContainerService extends models['Resource'] { * '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' - * @member {number} [masterProfile.osDiskSizeGB] OS Disk Size in GB to be + * @property {number} [masterProfile.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. - * @member {string} [masterProfile.vnetSubnetID] VNet SubnetID specifies the - * vnet's subnet identifier. - * @member {string} [masterProfile.firstConsecutiveStaticIP] + * @property {string} [masterProfile.vnetSubnetID] VNet SubnetID specifies + * the VNet's subnet identifier. + * @property {string} [masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. - * @member {string} [masterProfile.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' - * @member {string} [masterProfile.fqdn] FDQN for the master pool. - * @member {array} [agentPoolProfiles] Properties of the agent pool. - * @member {object} [windowsProfile] Profile for Windows VMs in the container - * service cluster. - * @member {string} [windowsProfile.adminUsername] The administrator username - * to use for Windows VMs. - * @member {string} [windowsProfile.adminPassword] The administrator password - * to use for Windows VMs. - * @member {object} linuxProfile Profile for Linux VMs in the container + * @property {string} [masterProfile.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' + * @property {string} [masterProfile.fqdn] FQDN for the master pool. + * @property {array} [agentPoolProfiles] Properties of the agent pool. + * @property {object} [windowsProfile] Profile for Windows VMs in the + * container service cluster. + * @property {string} [windowsProfile.adminUsername] The administrator + * username to use for Windows VMs. + * @property {string} [windowsProfile.adminPassword] The administrator + * password to use for Windows VMs. + * @property {object} linuxProfile Profile for Linux VMs in the container * service cluster. - * @member {string} [linuxProfile.adminUsername] The administrator username + * @property {string} [linuxProfile.adminUsername] The administrator username * to use for Linux VMs. - * @member {object} [linuxProfile.ssh] SSH configuration for Linux-based VMs - * running on Azure. - * @member {array} [linuxProfile.ssh.publicKeys] The list of SSH public keys - * used to authenticate with Linux-based VMs. Only expect one key specified. - * @member {object} [diagnosticsProfile] Profile for diagnostics in the + * @property {object} [linuxProfile.ssh] SSH configuration for Linux-based + * VMs running on Azure. + * @property {array} [linuxProfile.ssh.publicKeys] The list of SSH public + * keys used to authenticate with Linux-based VMs. Only expect one key + * specified. + * @property {object} [diagnosticsProfile] Profile for diagnostics in the * container service cluster. - * @member {object} [diagnosticsProfile.vmDiagnostics] Profile for + * @property {object} [diagnosticsProfile.vmDiagnostics] Profile for * diagnostics on the container service VMs. - * @member {boolean} [diagnosticsProfile.vmDiagnostics.enabled] Whether the + * @property {boolean} [diagnosticsProfile.vmDiagnostics.enabled] Whether the * VM diagnostic agent is provisioned on the VM. - * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] The URI of - * the storage account where diagnostics are stored. + * @property {string} [diagnosticsProfile.vmDiagnostics.storageUri] The URI + * of the storage account where diagnostics are stored. */ constructor() { super(); diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceAgentPoolProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceAgentPoolProfile.js index daa8d2e826..8b4a77f354 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceAgentPoolProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceAgentPoolProfile.js @@ -17,12 +17,12 @@ class ContainerServiceAgentPoolProfile { /** * Create a ContainerServiceAgentPoolProfile. - * @member {string} name Unique name of the agent pool profile in the context - * of the subscription and resource group. - * @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 . - * @member {string} vmSize Size of agent VMs. Possible values include: + * @property {string} name Unique name of the agent pool profile in the + * context of the subscription and resource group. + * @property {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 . + * @property {string} 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', @@ -73,23 +73,23 @@ class ContainerServiceAgentPoolProfile { * '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' - * @member {number} [osDiskSizeGB] OS Disk Size in GB to be used to specify + * @property {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. - * @member {string} [dnsPrefix] DNS prefix to be used to create the FQDN for - * the agent pool. - * @member {string} [fqdn] FDQN for the agent pool. - * @member {array} [ports] Ports number array used to expose on this agent + * @property {string} [dnsPrefix] DNS prefix to be used to create the FQDN + * for the agent pool. + * @property {string} [fqdn] FQDN for the agent pool. + * @property {array} [ports] Ports number array used to expose on this agent * pool. The default opened ports are different based on your choice of * orchestrator. - * @member {string} [storageProfile] Storage profile specifies what kind of + * @property {string} [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' - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {string} [osType] OsType to be used to specify os type. Choose + * @property {string} [vnetSubnetID] VNet SubnetID specifies the VNet's + * subnet identifier. + * @property {string} [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' . */ diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceCustomProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceCustomProfile.js index ddf1584f4c..4d5655b870 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceCustomProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceCustomProfile.js @@ -17,7 +17,8 @@ class ContainerServiceCustomProfile { /** * Create a ContainerServiceCustomProfile. - * @member {string} orchestrator The name of the custom orchestrator to use. + * @property {string} orchestrator The name of the custom orchestrator to + * use. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceDiagnosticsProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceDiagnosticsProfile.js index 2ba40526cb..591979ec7c 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceDiagnosticsProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceDiagnosticsProfile.js @@ -17,12 +17,12 @@ class ContainerServiceDiagnosticsProfile { /** * Create a ContainerServiceDiagnosticsProfile. - * @member {object} vmDiagnostics Profile for diagnostics on the container + * @property {object} vmDiagnostics Profile for diagnostics on the container * service VMs. - * @member {boolean} [vmDiagnostics.enabled] Whether the VM diagnostic agent - * is provisioned on the VM. - * @member {string} [vmDiagnostics.storageUri] The URI of the storage account - * where diagnostics are stored. + * @property {boolean} [vmDiagnostics.enabled] Whether the VM diagnostic + * agent is provisioned on the VM. + * @property {string} [vmDiagnostics.storageUri] The URI of the storage + * account where diagnostics are stored. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceLinuxProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceLinuxProfile.js index ccd6312a79..cb9544eb1a 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceLinuxProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceLinuxProfile.js @@ -17,11 +17,11 @@ class ContainerServiceLinuxProfile { /** * Create a ContainerServiceLinuxProfile. - * @member {string} adminUsername The administrator username to use for Linux - * VMs. - * @member {object} ssh SSH configuration for Linux-based VMs running on + * @property {string} adminUsername The administrator username to use for + * Linux VMs. + * @property {object} ssh SSH configuration for Linux-based VMs running on * Azure. - * @member {array} [ssh.publicKeys] The list of SSH public keys used to + * @property {array} [ssh.publicKeys] The list of SSH public keys used to * authenticate with Linux-based VMs. Only expect one key specified. */ constructor() { @@ -45,7 +45,7 @@ class ContainerServiceLinuxProfile { required: true, serializedName: 'adminUsername', constraints: { - Pattern: '^[A-Za-z][-A-Za-z0-9_]*$' + Pattern: /^[A-Za-z][-A-Za-z0-9_]*$/ }, type: { name: 'String' diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceListResult.js b/lib/services/containerservicesManagement/lib/models/containerServiceListResult.js index b8e37047e7..d1d885f314 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceListResult.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceListResult.js @@ -16,7 +16,7 @@ class ContainerServiceListResult extends Array { /** * Create a ContainerServiceListResult. - * @member {string} [nextLink] The URL to get the next set of container + * @property {string} [nextLink] The URL to get the next set of container * service results. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceMasterProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceMasterProfile.js index 0b3f70e99b..fc8469bf93 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceMasterProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceMasterProfile.js @@ -17,12 +17,12 @@ class ContainerServiceMasterProfile { /** * Create a 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 . - * @member {string} dnsPrefix DNS prefix to be used to create the FQDN for + * @property {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 . + * @property {string} dnsPrefix DNS prefix to be used to create the FQDN for * the master pool. - * @member {string} vmSize Size of agent VMs. Possible values include: + * @property {string} 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', @@ -73,19 +73,20 @@ class ContainerServiceMasterProfile { * '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' - * @member {number} [osDiskSizeGB] OS Disk Size in GB to be used to specify + * @property {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. - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {string} [firstConsecutiveStaticIP] FirstConsecutiveStaticIP used - * to specify the first static ip of masters. Default value: '10.240.255.5' . - * @member {string} [storageProfile] Storage profile specifies what kind of + * @property {string} [vnetSubnetID] VNet SubnetID specifies the VNet's + * subnet identifier. + * @property {string} [firstConsecutiveStaticIP] FirstConsecutiveStaticIP + * used to specify the first static ip of masters. Default value: + * '10.240.255.5' . + * @property {string} [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' - * @member {string} [fqdn] FDQN for the master pool. + * @property {string} [fqdn] FQDN for the master pool. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceNetworkProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceNetworkProfile.js index 012cd20df4..78e7f24273 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceNetworkProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceNetworkProfile.js @@ -17,20 +17,20 @@ class ContainerServiceNetworkProfile { /** * Create a ContainerServiceNetworkProfile. - * @member {string} [networkPlugin] Network plugin used for building + * @property {string} [networkPlugin] Network plugin used for building * Kubernetes network. Possible values include: 'azure', 'kubenet'. Default * value: 'kubenet' . - * @member {string} [networkPolicy] Network policy used for building + * @property {string} [networkPolicy] Network policy used for building * Kubernetes network. Possible values include: 'calico' - * @member {string} [podCidr] A CIDR notation IP range from which to assign + * @property {string} [podCidr] A CIDR notation IP range from which to assign * pod IPs when kubenet is used. Default value: '10.244.0.0/16' . - * @member {string} [serviceCidr] A CIDR notation IP range from which to + * @property {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' . - * @member {string} [dnsServiceIP] An IP address assigned to the Kubernetes + * @property {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' . - * @member {string} [dockerBridgeCidr] A CIDR notation IP range assigned to + * @property {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' . */ @@ -71,7 +71,7 @@ class ContainerServiceNetworkProfile { 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]))?$' + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ }, type: { name: 'String' @@ -82,7 +82,7 @@ class ContainerServiceNetworkProfile { 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]))?$' + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ }, type: { name: 'String' @@ -93,7 +93,7 @@ class ContainerServiceNetworkProfile { 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]?)$' + 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' @@ -104,7 +104,7 @@ class ContainerServiceNetworkProfile { 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]))?$' + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ }, type: { name: 'String' diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceOrchestratorProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceOrchestratorProfile.js index 5d41bdf57a..a5a1c99a7f 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceOrchestratorProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceOrchestratorProfile.js @@ -17,13 +17,13 @@ class ContainerServiceOrchestratorProfile { /** * Create a ContainerServiceOrchestratorProfile. - * @member {string} orchestratorType The orchestrator to use to manage + * @property {string} 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' - * @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". + * @property {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". */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceServicePrincipalProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceServicePrincipalProfile.js index 462806938f..57dd05b842 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceServicePrincipalProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceServicePrincipalProfile.js @@ -19,14 +19,14 @@ class ContainerServiceServicePrincipalProfile { /** * Create a ContainerServiceServicePrincipalProfile. - * @member {string} clientId The ID for the service principal. - * @member {string} [secret] The secret password associated with the service - * principal in plain text. - * @member {object} [keyVaultSecretRef] Reference to a secret stored in Azure - * Key Vault. - * @member {string} [keyVaultSecretRef.vaultID] Key vault identifier. - * @member {string} [keyVaultSecretRef.secretName] The secret name. - * @member {string} [keyVaultSecretRef.version] The secret version. + * @property {string} clientId The ID for the service principal. + * @property {string} [secret] The secret password associated with the + * service principal in plain text. + * @property {object} [keyVaultSecretRef] Reference to a secret stored in + * Azure Key Vault. + * @property {string} [keyVaultSecretRef.vaultID] Key vault identifier. + * @property {string} [keyVaultSecretRef.secretName] The secret name. + * @property {string} [keyVaultSecretRef.version] The secret version. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceSshConfiguration.js b/lib/services/containerservicesManagement/lib/models/containerServiceSshConfiguration.js index 51cd3fdead..3ba357cb33 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceSshConfiguration.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceSshConfiguration.js @@ -17,7 +17,7 @@ class ContainerServiceSshConfiguration { /** * Create a ContainerServiceSshConfiguration. - * @member {array} publicKeys The list of SSH public keys used to + * @property {array} publicKeys The list of SSH public keys used to * authenticate with Linux-based VMs. Only expect one key specified. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceSshPublicKey.js b/lib/services/containerservicesManagement/lib/models/containerServiceSshPublicKey.js index e6246dc5b4..b2e5bc6e41 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceSshPublicKey.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceSshPublicKey.js @@ -17,9 +17,9 @@ class ContainerServiceSshPublicKey { /** * Create a 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. + * @property {string} keyData Certificate public key used to authenticate + * with VMs through SSH. The certificate must be in PEM format with or + * without headers. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceVMDiagnostics.js b/lib/services/containerservicesManagement/lib/models/containerServiceVMDiagnostics.js index 9c10887571..22306ec296 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceVMDiagnostics.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceVMDiagnostics.js @@ -17,9 +17,9 @@ class ContainerServiceVMDiagnostics { /** * Create a ContainerServiceVMDiagnostics. - * @member {boolean} enabled Whether the VM diagnostic agent is provisioned + * @property {boolean} enabled Whether the VM diagnostic agent is provisioned * on the VM. - * @member {string} [storageUri] The URI of the storage account where + * @property {string} [storageUri] The URI of the storage account where * diagnostics are stored. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/containerServiceWindowsProfile.js b/lib/services/containerservicesManagement/lib/models/containerServiceWindowsProfile.js index 3bb3b802ca..7978a3bed3 100644 --- a/lib/services/containerservicesManagement/lib/models/containerServiceWindowsProfile.js +++ b/lib/services/containerservicesManagement/lib/models/containerServiceWindowsProfile.js @@ -17,9 +17,9 @@ class ContainerServiceWindowsProfile { /** * Create a ContainerServiceWindowsProfile. - * @member {string} adminUsername The administrator username to use for + * @property {string} adminUsername The administrator username to use for * Windows VMs. - * @member {string} adminPassword The administrator password to use for + * @property {string} adminPassword The administrator password to use for * Windows VMs. */ constructor() { @@ -43,7 +43,7 @@ class ContainerServiceWindowsProfile { required: true, serializedName: 'adminUsername', constraints: { - Pattern: '^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$' + Pattern: /^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$/ }, type: { name: 'String' @@ -53,7 +53,7 @@ class ContainerServiceWindowsProfile { required: true, serializedName: 'adminPassword', constraints: { - Pattern: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$' + Pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$/ }, type: { name: 'String' diff --git a/lib/services/containerservicesManagement/lib/models/credentialResult.js b/lib/services/containerservicesManagement/lib/models/credentialResult.js index a90d468852..18a196a4f9 100644 --- a/lib/services/containerservicesManagement/lib/models/credentialResult.js +++ b/lib/services/containerservicesManagement/lib/models/credentialResult.js @@ -17,8 +17,8 @@ class CredentialResult { /** * Create a CredentialResult. - * @member {string} [name] The name of the credential. - * @member {buffer} [value] Base64-encoded Kubernetes configuration file. + * @property {string} [name] The name of the credential. + * @property {buffer} [value] Base64-encoded Kubernetes configuration file. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/credentialResults.js b/lib/services/containerservicesManagement/lib/models/credentialResults.js index c6c3842e35..6ab4b4e400 100644 --- a/lib/services/containerservicesManagement/lib/models/credentialResults.js +++ b/lib/services/containerservicesManagement/lib/models/credentialResults.js @@ -17,7 +17,8 @@ class CredentialResults { /** * Create a CredentialResults. - * @member {array} [kubeconfigs] + * @property {array} [kubeconfigs] Base64-encoded Kubernetes configuration + * file. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/index.d.ts b/lib/services/containerservicesManagement/lib/models/index.d.ts index fd01ccbd07..6c25238f8e 100644 --- a/lib/services/containerservicesManagement/lib/models/index.d.ts +++ b/lib/services/containerservicesManagement/lib/models/index.d.ts @@ -1,1199 +1,1068 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * The Resource model definition. - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} location Resource location - * @member {object} [tags] Resource tags */ export interface Resource extends BaseResource { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; + /** + * Resource location + */ location: string; + /** + * Resource tags + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the PurchasePlan class. - * @constructor - * Used for establishing the purchase context of any 3rd Party artifact through - * MarketPlace. - * - * @member {string} [name] The plan ID. - * @member {string} [product] Specifies the product of the image from the - * marketplace. This is the same value as Offer under the imageReference - * element. - * @member {string} [promotionCode] The promotion code. - * @member {string} [publisher] The plan ID. + * Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. */ export interface PurchasePlan { + /** + * The plan ID. + */ name?: string; + /** + * Specifies the product of the image from the marketplace. This is the same value as Offer under + * the imageReference element. + */ product?: string; + /** + * The promotion code. + */ promotionCode?: string; + /** + * The plan ID. + */ publisher?: string; } /** - * @class - * Initializes a new instance of the OpenShiftRouterProfile class. - * @constructor * Represents an OpenShift router - * - * @member {string} [name] Name of the router profile. - * @member {string} [publicSubdomain] DNS subdomain for openshift router. - * @member {string} [fqdn] Auto-allocated FQDN for the OpenShift router. */ export interface OpenShiftRouterProfile { + /** + * Name of the router profile. + */ name?: string; + /** + * DNS subdomain for OpenShift router. + */ publicSubdomain?: string; + /** + * Auto-allocated FQDN for the OpenShift router. + */ readonly fqdn?: string; } /** - * @class - * Initializes a new instance of the NetworkProfile class. - * @constructor * Represents the OpenShift networking configuration - * - * @member {string} [vnetCidr] CIDR for the OpenShift Vnet. Default value: - * '10.0.0.0/8' . - * @member {string} [peerVnetId] CIDR of the Vnet to peer. */ export interface NetworkProfile { + /** + * CIDR for the OpenShift Vnet. + */ vnetCidr?: string; + /** + * CIDR of the Vnet to peer. + */ peerVnetId?: string; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterMasterPoolProfile class. - * @constructor - * OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift - * master VMs. - * - * @member {string} [name] Unique name of the master pool profile in the - * context of the subscription and resource group. - * @member {number} count Number of masters (VMs) to host docker containers. - * The default value is 3. Default value: 3 . - * @member {string} vmSize Size of agent VMs. Possible values include: - * 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [subnetCidr] Subnet CIDR for the peering. - * @member {string} [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' . + * OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift master VMs. */ export interface OpenShiftManagedClusterMasterPoolProfile { + /** + * Unique name of the master pool profile in the context of the subscription and resource group. + */ name?: string; + /** + * Number of masters (VMs) to host docker containers. The default value is 3. + */ count: number; + /** + * 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: string; + /** + * Subnet CIDR for the peering. + */ subnetCidr?: string; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows' + */ osType?: string; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterAgentPoolProfile class. - * @constructor * Defines the configuration of the OpenShift cluster VMs. - * - * @member {string} name Unique name of the pool profile in the context of the - * subscription and resource group. - * @member {number} count Number of agents (VMs) to host docker containers. - * Allowed values must be in the range of 1 to 5 (inclusive). The default value - * is 2. . Default value: 2 . - * @member {string} vmSize Size of agent VMs. Possible values include: - * 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [subnetCidr] Subnet CIDR for the peering. Default value: - * '10.0.0.0/24' . - * @member {string} [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' . - * @member {string} [role] Define the role of the AgentPoolProfile. Possible - * values include: 'compute', 'infra' */ export interface OpenShiftManagedClusterAgentPoolProfile { + /** + * Unique name of the pool profile in the context of the subscription and resource group. + */ name: string; + /** + * Number of agents (VMs) to host docker containers. + */ count: number; + /** + * 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: string; + /** + * Subnet CIDR for the peering. + */ subnetCidr?: string; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows' + */ osType?: string; + /** + * Define the role of the AgentPoolProfile. Possible values include: 'compute', 'infra' + */ role?: string; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterBaseIdentityProvider class. - * @constructor * Structure for any Identity provider. - * - * @member {string} kind Polymorphic Discriminator */ export interface OpenShiftManagedClusterBaseIdentityProvider { + /** + * Polymorphic Discriminator + */ kind: string; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterIdentityProvider class. - * @constructor - * Defines the configuration of the identity providers to be used in the - * OpenShift cluster. - * - * @member {string} [name] Name of the provider. - * @member {object} [provider] Configuration of the provider. - * @member {string} [provider.kind] Polymorphic Discriminator + * Defines the configuration of the identity providers to be used in the OpenShift cluster. */ export interface OpenShiftManagedClusterIdentityProvider { + /** + * Name of the provider. + */ name?: string; + /** + * Configuration of the provider. + */ provider?: OpenShiftManagedClusterBaseIdentityProvider; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterAuthProfile class. - * @constructor * Defines all possible authentication profiles for the OpenShift cluster. - * - * @member {array} [identityProviders] Type of authentication profile to use. */ export interface OpenShiftManagedClusterAuthProfile { + /** + * Type of authentication profile to use. + */ identityProviders?: OpenShiftManagedClusterIdentityProvider[]; } /** - * @class - * Initializes a new instance of the OpenShiftManagedCluster class. - * @constructor * OpenShift Managed cluster. - * - * @member {object} [plan] Define the resource plan as required by ARM for - * billing purposes - * @member {string} [plan.name] The plan ID. - * @member {string} [plan.product] Specifies the product of the image from the - * marketplace. This is the same value as Offer under the imageReference - * element. - * @member {string} [plan.promotionCode] The promotion code. - * @member {string} [plan.publisher] The plan ID. - * @member {string} [provisioningState] The current deployment or provisioning - * state, which only appears in the response. - * @member {string} openShiftVersion Version of OpenShift specified when - * creating the cluster. - * @member {string} [publicHostname] Optional user-specified FQDN for OpenShift - * API server. - * @member {string} [fqdn] User-specified FQDN for OpenShift API server - * loadbalancer internal hostname. - * @member {object} [networkProfile] Configuration for OpenShift networking. - * @member {string} [networkProfile.vnetCidr] CIDR for the OpenShift Vnet. - * @member {string} [networkProfile.peerVnetId] CIDR of the Vnet to peer. - * @member {array} [routerProfiles] Configuration for OpenShift router(s). - * @member {object} [masterPoolProfile] Configuration for OpenShift master VMs. - * @member {string} [masterPoolProfile.name] Unique name of the master pool - * profile in the context of the subscription and resource group. - * @member {number} [masterPoolProfile.count] Number of masters (VMs) to host - * docker containers. The default value is 3. - * @member {string} [masterPoolProfile.vmSize] Size of agent VMs. Possible - * values include: 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [masterPoolProfile.subnetCidr] Subnet CIDR for the peering. - * @member {string} [masterPoolProfile.osType] OsType to be used to specify os - * type. Choose from Linux and Windows. Default to Linux. Possible values - * include: 'Linux', 'Windows' - * @member {array} [agentPoolProfiles] Configuration of OpenShift cluster VMs. - * @member {object} [authProfile] Configures OpenShift authentication. - * @member {array} [authProfile.identityProviders] Type of authentication - * profile to use. */ export interface OpenShiftManagedCluster extends Resource { + /** + * Define the resource plan as required by ARM for billing purposes + */ plan?: PurchasePlan; + /** + * The current deployment or provisioning state, which only appears in the response. + */ readonly provisioningState?: string; + /** + * Version of OpenShift specified when creating the cluster. + */ openShiftVersion: string; + /** + * Optional user-specified FQDN for OpenShift API server. + */ publicHostname?: string; + /** + * User-specified FQDN for OpenShift API server loadbalancer internal hostname. + */ fqdn?: string; + /** + * Configuration for OpenShift networking. + */ networkProfile?: NetworkProfile; + /** + * Configuration for OpenShift router(s). + */ routerProfiles?: OpenShiftRouterProfile[]; + /** + * Configuration for OpenShift master VMs. + */ masterPoolProfile?: OpenShiftManagedClusterMasterPoolProfile; + /** + * Configuration of OpenShift cluster VMs. + */ agentPoolProfiles?: OpenShiftManagedClusterAgentPoolProfile[]; + /** + * Configures OpenShift authentication. + */ authProfile?: OpenShiftManagedClusterAuthProfile; } /** - * @class - * Initializes a new instance of the OpenShiftManagedClusterAADIdentityProvider class. - * @constructor * Defines the Identity provider for MS AAD. - * - * @member {string} [clientId] The clientId password associated with the - * provider. - * @member {string} [secret] The secret password associated with the provider. - * @member {string} [tenantId] The tenantId associated with the provider. */ export interface OpenShiftManagedClusterAADIdentityProvider extends OpenShiftManagedClusterBaseIdentityProvider { + /** + * The clientId password associated with the provider. + */ clientId?: string; + /** + * The secret password associated with the provider. + */ secret?: string; + /** + * The tenantId associated with the provider. + */ tenantId?: string; } /** - * @class - * Initializes a new instance of the TagsObject class. - * @constructor * Tags object for patch operations. - * - * @member {object} [tags] Resource tags. */ export interface TagsObject { + /** + * Resource tags. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the ContainerServiceCustomProfile class. - * @constructor * Properties to configure a custom container service cluster. - * - * @member {string} orchestrator The name of the custom orchestrator to use. */ export interface ContainerServiceCustomProfile { + /** + * The name of the custom orchestrator to use. + */ orchestrator: string; } /** - * @class - * Initializes a new instance of the KeyVaultSecretRef class. - * @constructor * Reference to a secret stored in Azure Key Vault. - * - * @member {string} vaultID Key vault identifier. - * @member {string} secretName The secret name. - * @member {string} [version] The secret version. */ export interface KeyVaultSecretRef { + /** + * Key vault identifier. + */ vaultID: string; + /** + * The secret name. + */ secretName: string; + /** + * The secret version. + */ version?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceServicePrincipalProfile class. - * @constructor - * Information about a service principal identity for the cluster to use for - * manipulating Azure APIs. Either secret or keyVaultSecretRef must be - * specified. - * - * @member {string} clientId The ID for the service principal. - * @member {string} [secret] The secret password associated with the service - * principal in plain text. - * @member {object} [keyVaultSecretRef] Reference to a secret stored in Azure - * Key Vault. - * @member {string} [keyVaultSecretRef.vaultID] Key vault identifier. - * @member {string} [keyVaultSecretRef.secretName] The secret name. - * @member {string} [keyVaultSecretRef.version] The secret version. + * 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 { + /** + * The ID for the service principal. + */ clientId: string; + /** + * The secret password associated with the service principal in plain text. + */ secret?: string; + /** + * Reference to a secret stored in Azure Key Vault. + */ keyVaultSecretRef?: KeyVaultSecretRef; } /** - * @class - * Initializes a new instance of the ContainerServiceOrchestratorProfile class. - * @constructor * Profile for the container service orchestrator. - * - * @member {string} 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' - * @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". */ export interface ContainerServiceOrchestratorProfile { + /** + * 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: string; + /** + * 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; } /** - * @class - * Initializes a new instance of the ContainerServiceMasterProfile class. - * @constructor * Profile for the container service master. - * - * @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 . - * @member {string} dnsPrefix DNS prefix to be used to create the FQDN for the - * master pool. - * @member {string} 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' - * @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. - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {string} [firstConsecutiveStaticIP] FirstConsecutiveStaticIP used to - * specify the first static ip of masters. Default value: '10.240.255.5' . - * @member {string} [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' - * @member {string} [fqdn] FDQN for the master pool. */ export interface ContainerServiceMasterProfile { + /** + * Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The + * default value is 1. + */ count?: number; + /** + * DNS prefix to be used to create the FQDN for the master pool. + */ dnsPrefix: string; + /** + * Size of agent VMs. Possible values include: 'Standard_A1', 'Standard_A10', 'Standard_A11', + * 'Standard_A1_v2', 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + * '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: string; + /** + * 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; + /** + * VNet SubnetID specifies the VNet's subnet identifier. + */ vnetSubnetID?: string; + /** + * FirstConsecutiveStaticIP used to specify the first static ip of masters. + */ firstConsecutiveStaticIP?: string; + /** + * Storage profile specifies what kind of storage used. Choose from StorageAccount and + * ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. + * Possible values include: 'StorageAccount', 'ManagedDisks' + */ storageProfile?: string; + /** + * FQDN for the master pool. + */ readonly fqdn?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceAgentPoolProfile class. - * @constructor * Profile for the container service agent pool. - * - * @member {string} name Unique name of the agent pool profile in the context - * of the subscription and resource group. - * @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 . - * @member {string} 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' - * @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. - * @member {string} [dnsPrefix] DNS prefix to be used to create the FQDN for - * the agent pool. - * @member {string} [fqdn] FDQN for the agent pool. - * @member {array} [ports] Ports number array used to expose on this agent - * pool. The default opened ports are different based on your choice of - * orchestrator. - * @member {string} [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' - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {string} [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' . */ export interface ContainerServiceAgentPoolProfile { + /** + * Unique name of the agent pool profile in the context of the subscription and resource group. + */ name: string; + /** + * 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. + */ count?: number; + /** + * 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: string; + /** + * 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; + /** + * DNS prefix to be used to create the FQDN for the agent pool. + */ dnsPrefix?: string; + /** + * FQDN for the agent pool. + */ readonly fqdn?: string; + /** + * Ports number array used to expose on this agent pool. The default opened ports are different + * based on your choice of orchestrator. + */ ports?: number[]; + /** + * 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?: string; + /** + * VNet SubnetID specifies the VNet's subnet identifier. + */ vnetSubnetID?: string; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows' + */ osType?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceWindowsProfile class. - * @constructor * Profile for Windows VMs in the container service cluster. - * - * @member {string} adminUsername The administrator username to use for Windows - * VMs. - * @member {string} adminPassword The administrator password to use for Windows - * VMs. */ export interface ContainerServiceWindowsProfile { + /** + * The administrator username to use for Windows VMs. + */ adminUsername: string; + /** + * The administrator password to use for Windows VMs. + */ adminPassword: string; } /** - * @class - * Initializes a new instance of the ContainerServiceSshPublicKey class. - * @constructor * Contains information about SSH certificate public key data. - * - * @member {string} keyData Certificate public key used to authenticate with - * VMs through SSH. The certificate must be in PEM format with or without - * headers. */ export interface ContainerServiceSshPublicKey { + /** + * Certificate public key used to authenticate with VMs through SSH. The certificate must be in + * PEM format with or without headers. + */ keyData: string; } /** - * @class - * Initializes a new instance of the ContainerServiceSshConfiguration class. - * @constructor * SSH configuration for Linux-based VMs running on Azure. - * - * @member {array} publicKeys The list of SSH public keys used to authenticate - * with Linux-based VMs. Only expect one key specified. */ export interface ContainerServiceSshConfiguration { + /** + * The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key + * specified. + */ publicKeys: ContainerServiceSshPublicKey[]; } /** - * @class - * Initializes a new instance of the ContainerServiceLinuxProfile class. - * @constructor * Profile for Linux VMs in the container service cluster. - * - * @member {string} adminUsername The administrator username to use for Linux - * VMs. - * @member {object} ssh SSH configuration for Linux-based VMs running on Azure. - * @member {array} [ssh.publicKeys] The list of SSH public keys used to - * authenticate with Linux-based VMs. Only expect one key specified. */ export interface ContainerServiceLinuxProfile { + /** + * The administrator username to use for Linux VMs. + */ adminUsername: string; + /** + * SSH configuration for Linux-based VMs running on Azure. + */ ssh: ContainerServiceSshConfiguration; } /** - * @class - * Initializes a new instance of the ContainerServiceVMDiagnostics class. - * @constructor * Profile for diagnostics on the container service VMs. - * - * @member {boolean} enabled Whether the VM diagnostic agent is provisioned on - * the VM. - * @member {string} [storageUri] The URI of the storage account where - * diagnostics are stored. */ export interface ContainerServiceVMDiagnostics { + /** + * Whether the VM diagnostic agent is provisioned on the VM. + */ enabled: boolean; + /** + * The URI of the storage account where diagnostics are stored. + */ readonly storageUri?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceDiagnosticsProfile class. - * @constructor * Profile for diagnostics on the container service cluster. - * - * @member {object} vmDiagnostics Profile for diagnostics on the container - * service VMs. - * @member {boolean} [vmDiagnostics.enabled] Whether the VM diagnostic agent is - * provisioned on the VM. - * @member {string} [vmDiagnostics.storageUri] The URI of the storage account - * where diagnostics are stored. */ export interface ContainerServiceDiagnosticsProfile { + /** + * Profile for diagnostics on the container service VMs. + */ vmDiagnostics: ContainerServiceVMDiagnostics; } /** - * @class - * Initializes a new instance of the ContainerService class. - * @constructor * Container service. - * - * @member {string} [provisioningState] The current deployment or provisioning - * state, which only appears in the response. - * @member {object} orchestratorProfile Profile for the container service - * orchestrator. - * @member {string} [orchestratorProfile.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' - * @member {string} [orchestratorProfile.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". - * @member {object} [customProfile] Properties to configure a custom container - * service cluster. - * @member {string} [customProfile.orchestrator] The name of the custom - * orchestrator to use. - * @member {object} [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. - * @member {string} [servicePrincipalProfile.clientId] The ID for the service - * principal. - * @member {string} [servicePrincipalProfile.secret] The secret password - * associated with the service principal in plain text. - * @member {object} [servicePrincipalProfile.keyVaultSecretRef] Reference to a - * secret stored in Azure Key Vault. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.vaultID] Key - * vault identifier. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.secretName] The - * secret name. - * @member {string} [servicePrincipalProfile.keyVaultSecretRef.version] The - * secret version. - * @member {object} masterProfile Profile for the container service master. - * @member {number} [masterProfile.count] Number of masters (VMs) in the - * container service cluster. Allowed values are 1, 3, and 5. The default value - * is 1. - * @member {string} [masterProfile.dnsPrefix] DNS prefix to be used to create - * the FQDN for the master pool. - * @member {string} [masterProfile.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' - * @member {number} [masterProfile.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. - * @member {string} [masterProfile.vnetSubnetID] VNet SubnetID specifies the - * vnet's subnet identifier. - * @member {string} [masterProfile.firstConsecutiveStaticIP] - * FirstConsecutiveStaticIP used to specify the first static ip of masters. - * @member {string} [masterProfile.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' - * @member {string} [masterProfile.fqdn] FDQN for the master pool. - * @member {array} [agentPoolProfiles] Properties of the agent pool. - * @member {object} [windowsProfile] Profile for Windows VMs in the container - * service cluster. - * @member {string} [windowsProfile.adminUsername] The administrator username - * to use for Windows VMs. - * @member {string} [windowsProfile.adminPassword] The administrator password - * to use for Windows VMs. - * @member {object} linuxProfile Profile for Linux VMs in the container service - * cluster. - * @member {string} [linuxProfile.adminUsername] The administrator username to - * use for Linux VMs. - * @member {object} [linuxProfile.ssh] SSH configuration for Linux-based VMs - * running on Azure. - * @member {array} [linuxProfile.ssh.publicKeys] The list of SSH public keys - * used to authenticate with Linux-based VMs. Only expect one key specified. - * @member {object} [diagnosticsProfile] Profile for diagnostics in the - * container service cluster. - * @member {object} [diagnosticsProfile.vmDiagnostics] Profile for diagnostics - * on the container service VMs. - * @member {boolean} [diagnosticsProfile.vmDiagnostics.enabled] Whether the VM - * diagnostic agent is provisioned on the VM. - * @member {string} [diagnosticsProfile.vmDiagnostics.storageUri] The URI of - * the storage account where diagnostics are stored. */ export interface ContainerService extends Resource { + /** + * The current deployment or provisioning state, which only appears in the response. + */ readonly provisioningState?: string; + /** + * Profile for the container service orchestrator. + */ orchestratorProfile: ContainerServiceOrchestratorProfile; + /** + * Properties to configure a custom container service cluster. + */ customProfile?: ContainerServiceCustomProfile; + /** + * Information about a service principal identity for the cluster to use for manipulating Azure + * APIs. Exact one of secret or keyVaultSecretRef need to be specified. + */ servicePrincipalProfile?: ContainerServiceServicePrincipalProfile; + /** + * Profile for the container service master. + */ masterProfile: ContainerServiceMasterProfile; + /** + * Properties of the agent pool. + */ agentPoolProfiles?: ContainerServiceAgentPoolProfile[]; + /** + * Profile for Windows VMs in the container service cluster. + */ windowsProfile?: ContainerServiceWindowsProfile; + /** + * Profile for Linux VMs in the container service cluster. + */ linuxProfile: ContainerServiceLinuxProfile; + /** + * Profile for diagnostics in the container service cluster. + */ diagnosticsProfile?: ContainerServiceDiagnosticsProfile; } /** - * @class - * Initializes a new instance of the OperationValue class. - * @constructor * Describes the properties of a Compute Operation value. - * - * @member {string} [origin] The origin of the compute operation. - * @member {string} [name] The name of the compute operation. - * @member {string} [operation] The display name of the compute operation. - * @member {string} [resource] The display name of the resource the operation - * applies to. - * @member {string} [description] The description of the operation. - * @member {string} [provider] The resource provider for the operation. */ export interface OperationValue { + /** + * The origin of the compute operation. + */ readonly origin?: string; + /** + * The name of the compute operation. + */ readonly name?: string; + /** + * The display name of the compute operation. + */ readonly operation?: string; + /** + * The display name of the resource the operation applies to. + */ readonly resource?: string; + /** + * The description of the operation. + */ readonly description?: string; + /** + * The resource provider for the operation. + */ readonly provider?: string; } /** - * @class - * Initializes a new instance of the ManagedClusterServicePrincipalProfile class. - * @constructor - * Information about a service principal identity for the cluster to use for - * manipulating Azure APIs. - * - * @member {string} clientId The ID for the service principal. - * @member {string} [secret] The secret password associated with the service - * principal in plain text. + * Information about a service principal identity for the cluster to use for manipulating Azure + * APIs. */ export interface ManagedClusterServicePrincipalProfile { + /** + * The ID for the service principal. + */ clientId: string; + /** + * The secret password associated with the service principal in plain text. + */ secret?: string; } /** - * @class - * Initializes a new instance of the ManagedClusterAgentPoolProfile class. - * @constructor * Profile for the container service agent pool. - * - * @member {string} name Unique name of the agent pool profile in the context - * of the subscription and resource group. - * @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 . - * @member {string} 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' - * @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. - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {number} [maxPods] Maximum number of pods that can run on a node. - * @member {string} [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' . - * @member {number} [maxCount] Maximum number of nodes for auto-scaling - * @member {number} [minCount] Minimum number of nodes for auto-scaling - * @member {boolean} [enableAutoScaling] Whether to enable auto-scaler - * @member {string} [type] AgentPoolType represents types of agentpool. - * Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet' */ export interface ManagedClusterAgentPoolProfile { + /** + * Unique name of the agent pool profile in the context of the subscription and resource group. + */ name: string; + /** + * 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. + */ count: number; + /** + * 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: string; + /** + * 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; + /** + * VNet SubnetID specifies the VNet's subnet identifier. + */ vnetSubnetID?: string; + /** + * Maximum number of pods that can run on a node. + */ maxPods?: number; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows' + */ osType?: string; + /** + * Maximum number of nodes for auto-scaling + */ maxCount?: number; + /** + * Minimum number of nodes for auto-scaling + */ minCount?: number; + /** + * Whether to enable auto-scaler + */ enableAutoScaling?: boolean; + /** + * AgentPoolType represents types of an agent pool. Possible values include: + * 'VirtualMachineScaleSets', 'AvailabilitySet' + */ type?: string; } /** - * @class - * Initializes a new instance of the ContainerServiceNetworkProfile class. - * @constructor * Profile of network configuration. - * - * @member {string} [networkPlugin] Network plugin used for building Kubernetes - * network. Possible values include: 'azure', 'kubenet'. Default value: - * 'kubenet' . - * @member {string} [networkPolicy] Network policy used for building Kubernetes - * network. Possible values include: 'calico' - * @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' . - * @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' . - * @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' . - * @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' . */ export interface ContainerServiceNetworkProfile { + /** + * Network plugin used for building Kubernetes network. Possible values include: 'azure', + * 'kubenet' + */ networkPlugin?: string; + /** + * Network policy used for building Kubernetes network. Possible values include: 'calico' + */ networkPolicy?: string; + /** + * A CIDR notation IP range from which to assign pod IPs when kubenet is used. + */ podCidr?: string; + /** + * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with + * any Subnet IP ranges. + */ serviceCidr?: string; + /** + * An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service + * address range specified in serviceCidr. + */ dnsServiceIP?: string; + /** + * A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any + * Subnet IP ranges or the Kubernetes service address range. + */ dockerBridgeCidr?: string; } /** - * @class - * Initializes a new instance of the ManagedClusterAddonProfile class. - * @constructor * A Kubernetes add-on profile for a managed cluster. - * - * @member {boolean} enabled Whether the add-on is enabled or not. - * @member {object} [config] Key-value pairs for configuring an add-on. */ export interface ManagedClusterAddonProfile { + /** + * Whether the add-on is enabled or not. + */ enabled: boolean; + /** + * Key-value pairs for configuring an add-on. + */ config?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the ManagedClusterAADProfile class. - * @constructor * AADProfile specifies attributes for Azure Active Directory integration. - * - * @member {string} clientAppID The client AAD application ID. - * @member {string} serverAppID The server AAD application ID. - * @member {string} [serverAppSecret] The server AAD application secret. - * @member {string} [tenantID] The AAD tenant ID to use for authentication. If - * not specified, will use the tenant of the deployment subscription. */ export interface ManagedClusterAADProfile { + /** + * The client AAD application ID. + */ clientAppID: string; + /** + * The server AAD application ID. + */ serverAppID: string; + /** + * The server AAD application secret. + */ serverAppSecret?: string; + /** + * The AAD tenant ID to use for authentication. If not specified, will use the tenant of the + * deployment subscription. + */ tenantID?: string; } /** - * @class - * Initializes a new instance of the ManagedCluster class. - * @constructor * Managed cluster. - * - * @member {string} [provisioningState] The current deployment or provisioning - * state, which only appears in the response. - * @member {string} [kubernetesVersion] Version of Kubernetes specified when - * creating the managed cluster. - * @member {string} [dnsPrefix] DNS prefix specified when creating the managed - * cluster. - * @member {string} [fqdn] FDQN for the master pool. - * @member {array} [agentPoolProfiles] Properties of the agent pool. - * @member {object} [linuxProfile] Profile for Linux VMs in the container - * service cluster. - * @member {string} [linuxProfile.adminUsername] The administrator username to - * use for Linux VMs. - * @member {object} [linuxProfile.ssh] SSH configuration for Linux-based VMs - * running on Azure. - * @member {array} [linuxProfile.ssh.publicKeys] The list of SSH public keys - * used to authenticate with Linux-based VMs. Only expect one key specified. - * @member {object} [servicePrincipalProfile] Information about a service - * principal identity for the cluster to use for manipulating Azure APIs. - * @member {string} [servicePrincipalProfile.clientId] The ID for the service - * principal. - * @member {string} [servicePrincipalProfile.secret] The secret password - * associated with the service principal in plain text. - * @member {object} [addonProfiles] Profile of managed cluster add-on. - * @member {string} [nodeResourceGroup] Name of the resource group containing - * agent pool nodes. - * @member {boolean} [enableRBAC] Whether to enable Kubernetes Role-Based - * Access Control. - * @member {object} [networkProfile] Profile of network configuration. - * @member {string} [networkProfile.networkPlugin] Network plugin used for - * building Kubernetes network. Possible values include: 'azure', 'kubenet' - * @member {string} [networkProfile.networkPolicy] Network policy used for - * building Kubernetes network. Possible values include: 'calico' - * @member {string} [networkProfile.podCidr] A CIDR notation IP range from - * which to assign pod IPs when kubenet is used. - * @member {string} [networkProfile.serviceCidr] A CIDR notation IP range from - * which to assign service cluster IPs. It must not overlap with any Subnet IP - * ranges. - * @member {string} [networkProfile.dnsServiceIP] An IP address assigned to the - * Kubernetes DNS service. It must be within the Kubernetes service address - * range specified in serviceCidr. - * @member {string} [networkProfile.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. - * @member {object} [aadProfile] Profile of Azure Active Directory - * configuration. - * @member {string} [aadProfile.clientAppID] The client AAD application ID. - * @member {string} [aadProfile.serverAppID] The server AAD application ID. - * @member {string} [aadProfile.serverAppSecret] The server AAD application - * secret. - * @member {string} [aadProfile.tenantID] The AAD tenant ID to use for - * authentication. If not specified, will use the tenant of the deployment - * subscription. */ export interface ManagedCluster extends Resource { + /** + * The current deployment or provisioning state, which only appears in the response. + */ readonly provisioningState?: string; + /** + * Version of Kubernetes specified when creating the managed cluster. + */ kubernetesVersion?: string; + /** + * DNS prefix specified when creating the managed cluster. + */ dnsPrefix?: string; + /** + * FQDN for the master pool. + */ readonly fqdn?: string; + /** + * Properties of the agent pool. + */ agentPoolProfiles?: ManagedClusterAgentPoolProfile[]; + /** + * Profile for Linux VMs in the container service cluster. + */ linuxProfile?: ContainerServiceLinuxProfile; + /** + * Information about a service principal identity for the cluster to use for manipulating Azure + * APIs. + */ servicePrincipalProfile?: ManagedClusterServicePrincipalProfile; + /** + * Profile of managed cluster add-on. + */ addonProfiles?: { [propertyName: string]: ManagedClusterAddonProfile }; + /** + * Name of the resource group containing agent pool nodes. + */ readonly nodeResourceGroup?: string; + /** + * Whether to enable Kubernetes Role-Based Access Control. + */ enableRBAC?: boolean; + /** + * Profile of network configuration. + */ networkProfile?: ContainerServiceNetworkProfile; + /** + * Profile of Azure Active Directory configuration. + */ aadProfile?: ManagedClusterAADProfile; } /** - * @class - * Initializes a new instance of the OrchestratorProfile class. - * @constructor * Contains information about orchestrator. - * - * @member {string} orchestratorType Orchestrator type. - * @member {string} orchestratorVersion Orchestrator version (major, minor, - * patch). */ export interface OrchestratorProfile { + /** + * Orchestrator type. + */ orchestratorType: string; + /** + * Orchestrator version (major, minor, patch). + */ orchestratorVersion: string; } /** - * @class - * Initializes a new instance of the ManagedClusterAccessProfile class. - * @constructor * Managed cluster Access Profile. - * - * @member {buffer} [kubeConfig] Base64-encoded Kubernetes configuration file. */ export interface ManagedClusterAccessProfile extends Resource { + /** + * Base64-encoded Kubernetes configuration file. + */ kubeConfig?: Buffer; } /** - * @class - * Initializes a new instance of the ManagedClusterPoolUpgradeProfile class. - * @constructor * The list of available upgrade versions. - * - * @member {string} kubernetesVersion Kubernetes version (major, minor, patch). - * @member {string} [name] Pool name. - * @member {string} 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' . - * @member {array} [upgrades] List of orchestrator types and versions available - * for upgrade. */ export interface ManagedClusterPoolUpgradeProfile { + /** + * Kubernetes version (major, minor, patch). + */ kubernetesVersion: string; + /** + * Pool name. + */ name?: string; + /** + * OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. + * Possible values include: 'Linux', 'Windows' + */ osType: string; + /** + * List of orchestrator types and versions available for upgrade. + */ upgrades?: string[]; } /** - * @class - * Initializes a new instance of the ManagedClusterUpgradeProfile class. - * @constructor * The list of available upgrades for compute pools. - * - * @member {string} [id] Id of upgrade profile. - * @member {string} [name] Name of upgrade profile. - * @member {string} [type] Type of upgrade profile. - * @member {object} controlPlaneProfile The list of available upgrade versions - * for the control plane. - * @member {string} [controlPlaneProfile.kubernetesVersion] Kubernetes version - * (major, minor, patch). - * @member {string} [controlPlaneProfile.name] Pool name. - * @member {string} [controlPlaneProfile.osType] OsType to be used to specify - * os type. Choose from Linux and Windows. Default to Linux. Possible values - * include: 'Linux', 'Windows' - * @member {array} [controlPlaneProfile.upgrades] List of orchestrator types - * and versions available for upgrade. - * @member {array} agentPoolProfiles The list of available upgrade versions for - * agent pools. */ export interface ManagedClusterUpgradeProfile { + /** + * Id of upgrade profile. + */ readonly id?: string; + /** + * Name of upgrade profile. + */ readonly name?: string; + /** + * Type of upgrade profile. + */ readonly type?: string; + /** + * The list of available upgrade versions for the control plane. + */ controlPlaneProfile: ManagedClusterPoolUpgradeProfile; + /** + * The list of available upgrade versions for agent pools. + */ agentPoolProfiles: ManagedClusterPoolUpgradeProfile[]; } /** - * @class - * Initializes a new instance of the CredentialResult class. - * @constructor * The credential result response. - * - * @member {string} [name] The name of the credential. - * @member {buffer} [value] Base64-encoded Kubernetes configuration file. */ export interface CredentialResult { + /** + * The name of the credential. + */ readonly name?: string; + /** + * Base64-encoded Kubernetes configuration file. + */ readonly value?: Buffer; } /** - * @class - * Initializes a new instance of the CredentialResults class. - * @constructor * The list of credential result response. - * - * @member {array} [kubeconfigs] */ export interface CredentialResults { + /** + * Base64-encoded Kubernetes configuration file. + */ readonly kubeconfigs?: CredentialResult[]; } /** - * @class - * Initializes a new instance of the OrchestratorVersionProfile class. - * @constructor * The profile of an orchestrator and its available versions. - * - * @member {string} orchestratorType Orchestrator type. - * @member {string} orchestratorVersion Orchestrator version (major, minor, - * patch). - * @member {boolean} default Installed by default if version is not specified. - * @member {array} upgrades The list of available upgrade versions. */ export interface OrchestratorVersionProfile { + /** + * Orchestrator type. + */ orchestratorType: string; + /** + * Orchestrator version (major, minor, patch). + */ orchestratorVersion: string; + /** + * Installed by default if version is not specified. + */ default: boolean; + /** + * The list of available upgrade versions. + */ upgrades: OrchestratorProfile[]; } /** - * @class - * Initializes a new instance of the OrchestratorVersionProfileListResult class. - * @constructor * The list of versions for supported orchestrators. - * - * @member {string} [id] Id of the orchestrator version profile list result. - * @member {string} [name] Name of the orchestrator version profile list - * result. - * @member {string} [type] Type of the orchestrator version profile list - * result. - * @member {array} orchestrators List of orchestrator version profiles. */ export interface OrchestratorVersionProfileListResult { + /** + * Id of the orchestrator version profile list result. + */ readonly id?: string; + /** + * Name of the orchestrator version profile list result. + */ readonly name?: string; + /** + * Type of the orchestrator version profile list result. + */ readonly type?: string; + /** + * List of orchestrator version profiles. + */ orchestrators: OrchestratorVersionProfile[]; } +/** + * The response from the List OpenShift Managed Clusters operation. + */ +export interface OpenShiftManagedClusterListResult extends Array { + /** + * The URL to get the next set of OpenShift managed cluster results. + */ + readonly nextLink?: string; +} /** - * @class - * Initializes a new instance of the ContainerServiceListResult class. - * @constructor * The response from the List Container Services operation. - * - * @member {string} [nextLink] The URL to get the next set of container service - * results. */ export interface ContainerServiceListResult extends Array { + /** + * The URL to get the next set of container service results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the OperationListResult class. - * @constructor * The List Compute Operation operation response. - * */ export interface OperationListResult extends Array { } /** - * @class - * Initializes a new instance of the ManagedClusterListResult class. - * @constructor * The response from the List Managed Clusters operation. - * - * @member {string} [nextLink] The URL to get the next set of managed cluster - * results. */ export interface ManagedClusterListResult extends Array { + /** + * The URL to get the next set of managed cluster results. + */ readonly nextLink?: string; } diff --git a/lib/services/containerservicesManagement/lib/models/index.js b/lib/services/containerservicesManagement/lib/models/index.js index fea896dbeb..9bf8a31aa1 100644 --- a/lib/services/containerservicesManagement/lib/models/index.js +++ b/lib/services/containerservicesManagement/lib/models/index.js @@ -58,6 +58,7 @@ exports.CredentialResult = require('./credentialResult'); exports.CredentialResults = require('./credentialResults'); exports.OrchestratorVersionProfile = require('./orchestratorVersionProfile'); exports.OrchestratorVersionProfileListResult = require('./orchestratorVersionProfileListResult'); +exports.OpenShiftManagedClusterListResult = require('./openShiftManagedClusterListResult'); exports.ContainerServiceListResult = require('./containerServiceListResult'); exports.OperationListResult = require('./operationListResult'); exports.ManagedClusterListResult = require('./managedClusterListResult'); diff --git a/lib/services/containerservicesManagement/lib/models/keyVaultSecretRef.js b/lib/services/containerservicesManagement/lib/models/keyVaultSecretRef.js index 6791b7f714..b71583aa6a 100644 --- a/lib/services/containerservicesManagement/lib/models/keyVaultSecretRef.js +++ b/lib/services/containerservicesManagement/lib/models/keyVaultSecretRef.js @@ -17,9 +17,9 @@ class KeyVaultSecretRef { /** * Create a KeyVaultSecretRef. - * @member {string} vaultID Key vault identifier. - * @member {string} secretName The secret name. - * @member {string} [version] The secret version. + * @property {string} vaultID Key vault identifier. + * @property {string} secretName The secret name. + * @property {string} [version] The secret version. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/managedCluster.js b/lib/services/containerservicesManagement/lib/models/managedCluster.js index 7d0c528534..c446a8ef5e 100644 --- a/lib/services/containerservicesManagement/lib/models/managedCluster.js +++ b/lib/services/containerservicesManagement/lib/models/managedCluster.js @@ -20,56 +20,57 @@ const models = require('./index'); class ManagedCluster extends models['Resource'] { /** * Create a ManagedCluster. - * @member {string} [provisioningState] The current deployment or + * @property {string} [provisioningState] The current deployment or * provisioning state, which only appears in the response. - * @member {string} [kubernetesVersion] Version of Kubernetes specified when - * creating the managed cluster. - * @member {string} [dnsPrefix] DNS prefix specified when creating the + * @property {string} [kubernetesVersion] Version of Kubernetes specified + * when creating the managed cluster. + * @property {string} [dnsPrefix] DNS prefix specified when creating the * managed cluster. - * @member {string} [fqdn] FDQN for the master pool. - * @member {array} [agentPoolProfiles] Properties of the agent pool. - * @member {object} [linuxProfile] Profile for Linux VMs in the container + * @property {string} [fqdn] FQDN for the master pool. + * @property {array} [agentPoolProfiles] Properties of the agent pool. + * @property {object} [linuxProfile] Profile for Linux VMs in the container * service cluster. - * @member {string} [linuxProfile.adminUsername] The administrator username + * @property {string} [linuxProfile.adminUsername] The administrator username * to use for Linux VMs. - * @member {object} [linuxProfile.ssh] SSH configuration for Linux-based VMs - * running on Azure. - * @member {array} [linuxProfile.ssh.publicKeys] The list of SSH public keys - * used to authenticate with Linux-based VMs. Only expect one key specified. - * @member {object} [servicePrincipalProfile] Information about a service + * @property {object} [linuxProfile.ssh] SSH configuration for Linux-based + * VMs running on Azure. + * @property {array} [linuxProfile.ssh.publicKeys] The list of SSH public + * keys used to authenticate with Linux-based VMs. Only expect one key + * specified. + * @property {object} [servicePrincipalProfile] Information about a service * principal identity for the cluster to use for manipulating Azure APIs. - * @member {string} [servicePrincipalProfile.clientId] The ID for the service - * principal. - * @member {string} [servicePrincipalProfile.secret] The secret password + * @property {string} [servicePrincipalProfile.clientId] The ID for the + * service principal. + * @property {string} [servicePrincipalProfile.secret] The secret password * associated with the service principal in plain text. - * @member {object} [addonProfiles] Profile of managed cluster add-on. - * @member {string} [nodeResourceGroup] Name of the resource group containing - * agent pool nodes. - * @member {boolean} [enableRBAC] Whether to enable Kubernetes Role-Based + * @property {object} [addonProfiles] Profile of managed cluster add-on. + * @property {string} [nodeResourceGroup] Name of the resource group + * containing agent pool nodes. + * @property {boolean} [enableRBAC] Whether to enable Kubernetes Role-Based * Access Control. - * @member {object} [networkProfile] Profile of network configuration. - * @member {string} [networkProfile.networkPlugin] Network plugin used for + * @property {object} [networkProfile] Profile of network configuration. + * @property {string} [networkProfile.networkPlugin] Network plugin used for * building Kubernetes network. Possible values include: 'azure', 'kubenet' - * @member {string} [networkProfile.networkPolicy] Network policy used for + * @property {string} [networkProfile.networkPolicy] Network policy used for * building Kubernetes network. Possible values include: 'calico' - * @member {string} [networkProfile.podCidr] A CIDR notation IP range from + * @property {string} [networkProfile.podCidr] A CIDR notation IP range from * which to assign pod IPs when kubenet is used. - * @member {string} [networkProfile.serviceCidr] A CIDR notation IP range + * @property {string} [networkProfile.serviceCidr] A CIDR notation IP range * from which to assign service cluster IPs. It must not overlap with any * Subnet IP ranges. - * @member {string} [networkProfile.dnsServiceIP] An IP address assigned to + * @property {string} [networkProfile.dnsServiceIP] An IP address assigned to * the Kubernetes DNS service. It must be within the Kubernetes service * address range specified in serviceCidr. - * @member {string} [networkProfile.dockerBridgeCidr] A CIDR notation IP + * @property {string} [networkProfile.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. - * @member {object} [aadProfile] Profile of Azure Active Directory + * @property {object} [aadProfile] Profile of Azure Active Directory * configuration. - * @member {string} [aadProfile.clientAppID] The client AAD application ID. - * @member {string} [aadProfile.serverAppID] The server AAD application ID. - * @member {string} [aadProfile.serverAppSecret] The server AAD application + * @property {string} [aadProfile.clientAppID] The client AAD application ID. + * @property {string} [aadProfile.serverAppID] The server AAD application ID. + * @property {string} [aadProfile.serverAppSecret] The server AAD application * secret. - * @member {string} [aadProfile.tenantID] The AAD tenant ID to use for + * @property {string} [aadProfile.tenantID] The AAD tenant ID to use for * authentication. If not specified, will use the tenant of the deployment * subscription. */ diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterAADProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterAADProfile.js index 6647d93681..26f5893964 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterAADProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterAADProfile.js @@ -17,10 +17,10 @@ class ManagedClusterAADProfile { /** * Create a ManagedClusterAADProfile. - * @member {string} clientAppID The client AAD application ID. - * @member {string} serverAppID The server AAD application ID. - * @member {string} [serverAppSecret] The server AAD application secret. - * @member {string} [tenantID] The AAD tenant ID to use for authentication. + * @property {string} clientAppID The client AAD application ID. + * @property {string} serverAppID The server AAD application ID. + * @property {string} [serverAppSecret] The server AAD application secret. + * @property {string} [tenantID] The AAD tenant ID to use for authentication. * If not specified, will use the tenant of the deployment subscription. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterAccessProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterAccessProfile.js index dc074a44a7..4343d72ce2 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterAccessProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterAccessProfile.js @@ -20,7 +20,7 @@ const models = require('./index'); class ManagedClusterAccessProfile extends models['Resource'] { /** * Create a ManagedClusterAccessProfile. - * @member {buffer} [kubeConfig] Base64-encoded Kubernetes configuration + * @property {buffer} [kubeConfig] Base64-encoded Kubernetes configuration * file. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterAddonProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterAddonProfile.js index b6a406630c..eb7b6b512d 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterAddonProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterAddonProfile.js @@ -17,8 +17,8 @@ class ManagedClusterAddonProfile { /** * Create a ManagedClusterAddonProfile. - * @member {boolean} enabled Whether the add-on is enabled or not. - * @member {object} [config] Key-value pairs for configuring an add-on. + * @property {boolean} enabled Whether the add-on is enabled or not. + * @property {object} [config] Key-value pairs for configuring an add-on. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterAgentPoolProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterAgentPoolProfile.js index b4ba2c9366..a2c20f3373 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterAgentPoolProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterAgentPoolProfile.js @@ -17,12 +17,12 @@ class ManagedClusterAgentPoolProfile { /** * Create a ManagedClusterAgentPoolProfile. - * @member {string} name Unique name of the agent pool profile in the context - * of the subscription and resource group. - * @member {number} count Number of agents (VMs) to host docker containers. + * @property {string} name Unique name of the agent pool profile in the + * context of the subscription and resource group. + * @property {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 . - * @member {string} vmSize Size of agent VMs. Possible values include: + * @property {string} 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', @@ -73,20 +73,21 @@ class ManagedClusterAgentPoolProfile { * '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' - * @member {number} [osDiskSizeGB] OS Disk Size in GB to be used to specify + * @property {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. - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet - * identifier. - * @member {number} [maxPods] Maximum number of pods that can run on a node. - * @member {string} [osType] OsType to be used to specify os type. Choose + * @property {string} [vnetSubnetID] VNet SubnetID specifies the VNet's + * subnet identifier. + * @property {number} [maxPods] Maximum number of pods that can run on a + * node. + * @property {string} [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' . - * @member {number} [maxCount] Maximum number of nodes for auto-scaling - * @member {number} [minCount] Minimum number of nodes for auto-scaling - * @member {boolean} [enableAutoScaling] Whether to enable auto-scaler - * @member {string} [type] AgentPoolType represents types of agentpool. + * @property {number} [maxCount] Maximum number of nodes for auto-scaling + * @property {number} [minCount] Minimum number of nodes for auto-scaling + * @property {boolean} [enableAutoScaling] Whether to enable auto-scaler + * @property {string} [type] AgentPoolType represents types of an agent pool. * Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet' */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterListResult.js b/lib/services/containerservicesManagement/lib/models/managedClusterListResult.js index c6eda5dcfe..fdbdab2e7e 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterListResult.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterListResult.js @@ -16,8 +16,8 @@ class ManagedClusterListResult extends Array { /** * Create a ManagedClusterListResult. - * @member {string} [nextLink] The URL to get the next set of managed cluster - * results. + * @property {string} [nextLink] The URL to get the next set of managed + * cluster results. */ constructor() { super(); diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterPoolUpgradeProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterPoolUpgradeProfile.js index fabf4379a6..24c65e374d 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterPoolUpgradeProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterPoolUpgradeProfile.js @@ -17,13 +17,13 @@ class ManagedClusterPoolUpgradeProfile { /** * Create a ManagedClusterPoolUpgradeProfile. - * @member {string} kubernetesVersion Kubernetes version (major, minor, + * @property {string} kubernetesVersion Kubernetes version (major, minor, * patch). - * @member {string} [name] Pool name. - * @member {string} 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' . - * @member {array} [upgrades] List of orchestrator types and versions + * @property {string} [name] Pool name. + * @property {string} 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' . + * @property {array} [upgrades] List of orchestrator types and versions * available for upgrade. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterServicePrincipalProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterServicePrincipalProfile.js index f9980faee0..e6f489bf9c 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterServicePrincipalProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterServicePrincipalProfile.js @@ -18,9 +18,9 @@ class ManagedClusterServicePrincipalProfile { /** * Create a ManagedClusterServicePrincipalProfile. - * @member {string} clientId The ID for the service principal. - * @member {string} [secret] The secret password associated with the service - * principal in plain text. + * @property {string} clientId The ID for the service principal. + * @property {string} [secret] The secret password associated with the + * service principal in plain text. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/managedClusterUpgradeProfile.js b/lib/services/containerservicesManagement/lib/models/managedClusterUpgradeProfile.js index 633dcbc3a2..f6a3161be9 100644 --- a/lib/services/containerservicesManagement/lib/models/managedClusterUpgradeProfile.js +++ b/lib/services/containerservicesManagement/lib/models/managedClusterUpgradeProfile.js @@ -17,20 +17,20 @@ class ManagedClusterUpgradeProfile { /** * Create a ManagedClusterUpgradeProfile. - * @member {string} [id] Id of upgrade profile. - * @member {string} [name] Name of upgrade profile. - * @member {string} [type] Type of upgrade profile. - * @member {object} controlPlaneProfile The list of available upgrade + * @property {string} [id] Id of upgrade profile. + * @property {string} [name] Name of upgrade profile. + * @property {string} [type] Type of upgrade profile. + * @property {object} controlPlaneProfile The list of available upgrade * versions for the control plane. - * @member {string} [controlPlaneProfile.kubernetesVersion] Kubernetes + * @property {string} [controlPlaneProfile.kubernetesVersion] Kubernetes * version (major, minor, patch). - * @member {string} [controlPlaneProfile.name] Pool name. - * @member {string} [controlPlaneProfile.osType] OsType to be used to specify - * os type. Choose from Linux and Windows. Default to Linux. Possible values - * include: 'Linux', 'Windows' - * @member {array} [controlPlaneProfile.upgrades] List of orchestrator types - * and versions available for upgrade. - * @member {array} agentPoolProfiles The list of available upgrade versions + * @property {string} [controlPlaneProfile.name] Pool name. + * @property {string} [controlPlaneProfile.osType] OsType to be used to + * specify os type. Choose from Linux and Windows. Default to Linux. Possible + * values include: 'Linux', 'Windows' + * @property {array} [controlPlaneProfile.upgrades] List of orchestrator + * types and versions available for upgrade. + * @property {array} agentPoolProfiles The list of available upgrade versions * for agent pools. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/networkProfile.js b/lib/services/containerservicesManagement/lib/models/networkProfile.js index 1a2216d43e..be00e08454 100644 --- a/lib/services/containerservicesManagement/lib/models/networkProfile.js +++ b/lib/services/containerservicesManagement/lib/models/networkProfile.js @@ -17,9 +17,9 @@ class NetworkProfile { /** * Create a NetworkProfile. - * @member {string} [vnetCidr] CIDR for the OpenShift Vnet. Default value: + * @property {string} [vnetCidr] CIDR for the OpenShift Vnet. Default value: * '10.0.0.0/8' . - * @member {string} [peerVnetId] CIDR of the Vnet to peer. + * @property {string} [peerVnetId] CIDR of the Vnet to peer. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedCluster.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedCluster.js index 537bfd034d..71b7db1c10 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedCluster.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedCluster.js @@ -20,43 +20,53 @@ const models = require('./index'); class OpenShiftManagedCluster extends models['Resource'] { /** * Create a OpenShiftManagedCluster. - * @member {object} [plan] Define the resource plan as required by ARM for + * @property {object} [plan] Define the resource plan as required by ARM for * billing purposes - * @member {string} [plan.name] The plan ID. - * @member {string} [plan.product] Specifies the product of the image from + * @property {string} [plan.name] The plan ID. + * @property {string} [plan.product] Specifies the product of the image from * the marketplace. This is the same value as Offer under the imageReference * element. - * @member {string} [plan.promotionCode] The promotion code. - * @member {string} [plan.publisher] The plan ID. - * @member {string} [provisioningState] The current deployment or + * @property {string} [plan.promotionCode] The promotion code. + * @property {string} [plan.publisher] The plan ID. + * @property {string} [provisioningState] The current deployment or * provisioning state, which only appears in the response. - * @member {string} openShiftVersion Version of OpenShift specified when + * @property {string} openShiftVersion Version of OpenShift specified when * creating the cluster. - * @member {string} [publicHostname] Optional user-specified FQDN for + * @property {string} [publicHostname] Optional user-specified FQDN for * OpenShift API server. - * @member {string} [fqdn] User-specified FQDN for OpenShift API server + * @property {string} [fqdn] User-specified FQDN for OpenShift API server * loadbalancer internal hostname. - * @member {object} [networkProfile] Configuration for OpenShift networking. - * @member {string} [networkProfile.vnetCidr] CIDR for the OpenShift Vnet. - * @member {string} [networkProfile.peerVnetId] CIDR of the Vnet to peer. - * @member {array} [routerProfiles] Configuration for OpenShift router(s). - * @member {object} [masterPoolProfile] Configuration for OpenShift master + * @property {object} [networkProfile] Configuration for OpenShift + * networking. + * @property {string} [networkProfile.vnetCidr] CIDR for the OpenShift Vnet. + * @property {string} [networkProfile.peerVnetId] CIDR of the Vnet to peer. + * @property {array} [routerProfiles] Configuration for OpenShift router(s). + * @property {object} [masterPoolProfile] Configuration for OpenShift master * VMs. - * @member {string} [masterPoolProfile.name] Unique name of the master pool + * @property {string} [masterPoolProfile.name] Unique name of the master pool * profile in the context of the subscription and resource group. - * @member {number} [masterPoolProfile.count] Number of masters (VMs) to host - * docker containers. The default value is 3. - * @member {string} [masterPoolProfile.vmSize] Size of agent VMs. Possible - * values include: 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [masterPoolProfile.subnetCidr] Subnet CIDR for the + * @property {number} [masterPoolProfile.count] Number of masters (VMs) to + * host docker containers. The default value is 3. + * @property {string} [masterPoolProfile.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' + * @property {string} [masterPoolProfile.subnetCidr] Subnet CIDR for the * peering. - * @member {string} [masterPoolProfile.osType] OsType to be used to specify + * @property {string} [masterPoolProfile.osType] OsType to be used to specify * os type. Choose from Linux and Windows. Default to Linux. Possible values * include: 'Linux', 'Windows' - * @member {array} [agentPoolProfiles] Configuration of OpenShift cluster + * @property {array} [agentPoolProfiles] Configuration of OpenShift cluster * VMs. - * @member {object} [authProfile] Configures OpenShift authentication. - * @member {array} [authProfile.identityProviders] Type of authentication + * @property {object} [authProfile] Configures OpenShift authentication. + * @property {array} [authProfile.identityProviders] Type of authentication * profile to use. */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAADIdentityProvider.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAADIdentityProvider.js index 9c8466fc9f..3044c9e28a 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAADIdentityProvider.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAADIdentityProvider.js @@ -20,11 +20,11 @@ const models = require('./index'); class OpenShiftManagedClusterAADIdentityProvider extends models['OpenShiftManagedClusterBaseIdentityProvider'] { /** * Create a OpenShiftManagedClusterAADIdentityProvider. - * @member {string} [clientId] The clientId password associated with the + * @property {string} [clientId] The clientId password associated with the * provider. - * @member {string} [secret] The secret password associated with the + * @property {string} [secret] The secret password associated with the * provider. - * @member {string} [tenantId] The tenantId associated with the provider. + * @property {string} [tenantId] The tenantId associated with the provider. */ constructor() { super(); diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAgentPoolProfile.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAgentPoolProfile.js index 56cc3d711a..97b58131d2 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAgentPoolProfile.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAgentPoolProfile.js @@ -17,20 +17,27 @@ class OpenShiftManagedClusterAgentPoolProfile { /** * Create a OpenShiftManagedClusterAgentPoolProfile. - * @member {string} name Unique name of the pool profile in the context of + * @property {string} name Unique name of the pool profile in the context of * the subscription and resource group. - * @member {number} count Number of agents (VMs) to host docker containers. - * Allowed values must be in the range of 1 to 5 (inclusive). The default - * value is 2. . Default value: 2 . - * @member {string} vmSize Size of agent VMs. Possible values include: - * 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [subnetCidr] Subnet CIDR for the peering. Default value: - * '10.0.0.0/24' . - * @member {string} [osType] OsType to be used to specify os type. Choose + * @property {number} count Number of agents (VMs) to host docker containers. + * @property {string} 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' + * @property {string} [subnetCidr] Subnet CIDR for the peering. Default + * value: '10.0.0.0/24' . + * @property {string} [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' . - * @member {string} [role] Define the role of the AgentPoolProfile. Possible - * values include: 'compute', 'infra' + * @property {string} [role] Define the role of the AgentPoolProfile. + * Possible values include: 'compute', 'infra' */ constructor() { } @@ -59,11 +66,6 @@ class OpenShiftManagedClusterAgentPoolProfile { count: { required: true, serializedName: 'count', - defaultValue: 2, - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, type: { name: 'Number' } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAuthProfile.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAuthProfile.js index 38dae8a61c..199a68a716 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAuthProfile.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterAuthProfile.js @@ -17,7 +17,8 @@ class OpenShiftManagedClusterAuthProfile { /** * Create a OpenShiftManagedClusterAuthProfile. - * @member {array} [identityProviders] Type of authentication profile to use. + * @property {array} [identityProviders] Type of authentication profile to + * use. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterBaseIdentityProvider.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterBaseIdentityProvider.js index 7dbbce4e19..49783d6158 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterBaseIdentityProvider.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterBaseIdentityProvider.js @@ -17,7 +17,7 @@ class OpenShiftManagedClusterBaseIdentityProvider { /** * Create a OpenShiftManagedClusterBaseIdentityProvider. - * @member {string} kind Polymorphic Discriminator + * @property {string} kind Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterIdentityProvider.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterIdentityProvider.js index a2c9c01578..179b17a88d 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterIdentityProvider.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterIdentityProvider.js @@ -18,9 +18,9 @@ class OpenShiftManagedClusterIdentityProvider { /** * Create a OpenShiftManagedClusterIdentityProvider. - * @member {string} [name] Name of the provider. - * @member {object} [provider] Configuration of the provider. - * @member {string} [provider.kind] Polymorphic Discriminator + * @property {string} [name] Name of the provider. + * @property {object} [provider] Configuration of the provider. + * @property {string} [provider.kind] Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterListResult.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterListResult.js new file mode 100644 index 0000000000..7abea47e36 --- /dev/null +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterListResult.js @@ -0,0 +1,69 @@ +/* + * 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. + */ + +'use strict'; + +/** + * The response from the List OpenShift Managed Clusters operation. + */ +class OpenShiftManagedClusterListResult extends Array { + /** + * Create a OpenShiftManagedClusterListResult. + * @property {string} [nextLink] The URL to get the next set of OpenShift + * managed cluster results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OpenShiftManagedClusterListResult + * + * @returns {object} metadata of OpenShiftManagedClusterListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'OpenShiftManagedClusterListResult', + type: { + name: 'Composite', + className: 'OpenShiftManagedClusterListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OpenShiftManagedClusterElementType', + type: { + name: 'Composite', + className: 'OpenShiftManagedCluster' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OpenShiftManagedClusterListResult; diff --git a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterMasterPoolProfile.js b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterMasterPoolProfile.js index d6785f597d..134fa60da0 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterMasterPoolProfile.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftManagedClusterMasterPoolProfile.js @@ -18,14 +18,23 @@ class OpenShiftManagedClusterMasterPoolProfile { /** * Create a OpenShiftManagedClusterMasterPoolProfile. - * @member {string} [name] Unique name of the master pool profile in the + * @property {string} [name] Unique name of the master pool profile in the * context of the subscription and resource group. - * @member {number} count Number of masters (VMs) to host docker containers. - * The default value is 3. Default value: 3 . - * @member {string} vmSize Size of agent VMs. Possible values include: - * 'Standard_D2s_v3', 'Standard_D4s_v3' - * @member {string} [subnetCidr] Subnet CIDR for the peering. - * @member {string} [osType] OsType to be used to specify os type. Choose + * @property {number} count Number of masters (VMs) to host docker + * containers. The default value is 3. + * @property {string} 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' + * @property {string} [subnetCidr] Subnet CIDR for the peering. + * @property {string} [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' . */ @@ -56,11 +65,6 @@ class OpenShiftManagedClusterMasterPoolProfile { count: { required: true, serializedName: 'count', - defaultValue: 3, - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 1 - }, type: { name: 'Number' } diff --git a/lib/services/containerservicesManagement/lib/models/openShiftRouterProfile.js b/lib/services/containerservicesManagement/lib/models/openShiftRouterProfile.js index 51296e4241..d4c3a38288 100644 --- a/lib/services/containerservicesManagement/lib/models/openShiftRouterProfile.js +++ b/lib/services/containerservicesManagement/lib/models/openShiftRouterProfile.js @@ -17,9 +17,9 @@ class OpenShiftRouterProfile { /** * Create a OpenShiftRouterProfile. - * @member {string} [name] Name of the router profile. - * @member {string} [publicSubdomain] DNS subdomain for openshift router. - * @member {string} [fqdn] Auto-allocated FQDN for the OpenShift router. + * @property {string} [name] Name of the router profile. + * @property {string} [publicSubdomain] DNS subdomain for OpenShift router. + * @property {string} [fqdn] Auto-allocated FQDN for the OpenShift router. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/operationValue.js b/lib/services/containerservicesManagement/lib/models/operationValue.js index d35c91d4eb..1cd77c298f 100644 --- a/lib/services/containerservicesManagement/lib/models/operationValue.js +++ b/lib/services/containerservicesManagement/lib/models/operationValue.js @@ -17,13 +17,13 @@ class OperationValue { /** * Create a OperationValue. - * @member {string} [origin] The origin of the compute operation. - * @member {string} [name] The name of the compute operation. - * @member {string} [operation] The display name of the compute operation. - * @member {string} [resource] The display name of the resource the operation - * applies to. - * @member {string} [description] The description of the operation. - * @member {string} [provider] The resource provider for the operation. + * @property {string} [origin] The origin of the compute operation. + * @property {string} [name] The name of the compute operation. + * @property {string} [operation] The display name of the compute operation. + * @property {string} [resource] The display name of the resource the + * operation applies to. + * @property {string} [description] The description of the operation. + * @property {string} [provider] The resource provider for the operation. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/orchestratorProfile.js b/lib/services/containerservicesManagement/lib/models/orchestratorProfile.js index a9f6da9d29..46de7d37bf 100644 --- a/lib/services/containerservicesManagement/lib/models/orchestratorProfile.js +++ b/lib/services/containerservicesManagement/lib/models/orchestratorProfile.js @@ -17,8 +17,8 @@ class OrchestratorProfile { /** * Create a OrchestratorProfile. - * @member {string} orchestratorType Orchestrator type. - * @member {string} orchestratorVersion Orchestrator version (major, minor, + * @property {string} orchestratorType Orchestrator type. + * @property {string} orchestratorVersion Orchestrator version (major, minor, * patch). */ constructor() { diff --git a/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfile.js b/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfile.js index a27be1de00..9ba9e1a1e5 100644 --- a/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfile.js +++ b/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfile.js @@ -17,12 +17,12 @@ class OrchestratorVersionProfile { /** * Create a OrchestratorVersionProfile. - * @member {string} orchestratorType Orchestrator type. - * @member {string} orchestratorVersion Orchestrator version (major, minor, + * @property {string} orchestratorType Orchestrator type. + * @property {string} orchestratorVersion Orchestrator version (major, minor, * patch). - * @member {boolean} default Installed by default if version is not + * @property {boolean} default Installed by default if version is not * specified. - * @member {array} upgrades The list of available upgrade versions. + * @property {array} upgrades The list of available upgrade versions. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfileListResult.js b/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfileListResult.js index 0aa579ef28..d6fb3220a3 100644 --- a/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfileListResult.js +++ b/lib/services/containerservicesManagement/lib/models/orchestratorVersionProfileListResult.js @@ -17,12 +17,13 @@ class OrchestratorVersionProfileListResult { /** * Create a OrchestratorVersionProfileListResult. - * @member {string} [id] Id of the orchestrator version profile list result. - * @member {string} [name] Name of the orchestrator version profile list + * @property {string} [id] Id of the orchestrator version profile list * result. - * @member {string} [type] Type of the orchestrator version profile list + * @property {string} [name] Name of the orchestrator version profile list * result. - * @member {array} orchestrators List of orchestrator version profiles. + * @property {string} [type] Type of the orchestrator version profile list + * result. + * @property {array} orchestrators List of orchestrator version profiles. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/purchasePlan.js b/lib/services/containerservicesManagement/lib/models/purchasePlan.js index 674a0f2fe5..2eeeaaff6c 100644 --- a/lib/services/containerservicesManagement/lib/models/purchasePlan.js +++ b/lib/services/containerservicesManagement/lib/models/purchasePlan.js @@ -18,12 +18,12 @@ class PurchasePlan { /** * Create a PurchasePlan. - * @member {string} [name] The plan ID. - * @member {string} [product] Specifies the product of the image from the + * @property {string} [name] The plan ID. + * @property {string} [product] Specifies the product of the image from the * marketplace. This is the same value as Offer under the imageReference * element. - * @member {string} [promotionCode] The promotion code. - * @member {string} [publisher] The plan ID. + * @property {string} [promotionCode] The promotion code. + * @property {string} [publisher] The plan ID. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/models/resource.js b/lib/services/containerservicesManagement/lib/models/resource.js index 7c1448890e..8fa3f52687 100644 --- a/lib/services/containerservicesManagement/lib/models/resource.js +++ b/lib/services/containerservicesManagement/lib/models/resource.js @@ -20,11 +20,11 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} location Resource location - * @member {object} [tags] Resource tags + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} location Resource location + * @property {object} [tags] Resource tags */ constructor() { super(); diff --git a/lib/services/containerservicesManagement/lib/models/tagsObject.js b/lib/services/containerservicesManagement/lib/models/tagsObject.js index 755b116391..a22fc07dfd 100644 --- a/lib/services/containerservicesManagement/lib/models/tagsObject.js +++ b/lib/services/containerservicesManagement/lib/models/tagsObject.js @@ -17,7 +17,7 @@ class TagsObject { /** * Create a TagsObject. - * @member {object} [tags] Resource tags. + * @property {object} [tags] Resource tags. */ constructor() { } diff --git a/lib/services/containerservicesManagement/lib/operations/containerServices.js b/lib/services/containerservicesManagement/lib/operations/containerServices.js index 8d22b81dad..00c53a7b8d 100644 --- a/lib/services/containerservicesManagement/lib/operations/containerServices.js +++ b/lib/services/containerservicesManagement/lib/operations/containerServices.js @@ -274,7 +274,7 @@ function _list(options, callback) { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -759,7 +759,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { * subscription. * * Gets a list of supported orchestrators in the specified subscription. The - * operation returns properties of each orchestrator including verison and + * operation returns properties of each orchestrator including version and * available upgrades. * * @param {string} location The name of a supported Azure region. @@ -1030,7 +1030,7 @@ function _listOrchestrators(location, options, callback) { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -1892,7 +1892,7 @@ class ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -2088,7 +2088,7 @@ class ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -2478,7 +2478,7 @@ class ContainerServices { * subscription. * * Gets a list of supported orchestrators in the specified subscription. The - * operation returns properties of each orchestrator including verison and + * operation returns properties of each orchestrator including version and * available upgrades. * * @param {string} location The name of a supported Azure region. @@ -2516,7 +2516,7 @@ class ContainerServices { * subscription. * * Gets a list of supported orchestrators in the specified subscription. The - * operation returns properties of each orchestrator including verison and + * operation returns properties of each orchestrator including version and * available upgrades. * * @param {string} location The name of a supported Azure region. @@ -2695,7 +2695,7 @@ class ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -2891,7 +2891,7 @@ class ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. diff --git a/lib/services/containerservicesManagement/lib/operations/index.d.ts b/lib/services/containerservicesManagement/lib/operations/index.d.ts index 1f60bdf48e..a519f3e4eb 100644 --- a/lib/services/containerservicesManagement/lib/operations/index.d.ts +++ b/lib/services/containerservicesManagement/lib/operations/index.d.ts @@ -22,14 +22,138 @@ export interface OpenShiftManagedClusters { /** - * @summary Gets a openshift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {OpenShiftManagedClusterListResult} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. * - * Gets the details of the managed openshift cluster with a specified resource + * @reject {Error|ServiceError} - The error object. + */ + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {OpenShiftManagedClusterListResult} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Gets a OpenShift managed cluster. + * + * Gets the details of the managed OpenShift cluster with a specified resource * group and name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -46,14 +170,14 @@ export interface OpenShiftManagedClusters { getWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Gets a openshift managed cluster. + * @summary Gets a OpenShift managed cluster. * - * Gets the details of the managed openshift cluster with a specified resource + * Gets the details of the managed OpenShift cluster with a specified resource * group and name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -90,14 +214,14 @@ export interface OpenShiftManagedClusters { /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -147,7 +271,16 @@ export interface OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -183,14 +316,14 @@ export interface OpenShiftManagedClusters { createOrUpdateWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.OpenShiftManagedCluster, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -240,7 +373,16 @@ export interface OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -296,13 +438,13 @@ export interface OpenShiftManagedClusters { /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -324,13 +466,13 @@ export interface OpenShiftManagedClusters { updateTagsWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -372,14 +514,14 @@ export interface OpenShiftManagedClusters { /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -396,14 +538,14 @@ export interface OpenShiftManagedClusters { deleteMethodWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -438,14 +580,14 @@ export interface OpenShiftManagedClusters { /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -495,7 +637,16 @@ export interface OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -531,14 +682,14 @@ export interface OpenShiftManagedClusters { beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.OpenShiftManagedCluster, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -588,7 +739,16 @@ export interface OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -644,13 +804,13 @@ export interface OpenShiftManagedClusters { /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -672,13 +832,13 @@ export interface OpenShiftManagedClusters { beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -720,14 +880,14 @@ export interface OpenShiftManagedClusters { /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -744,14 +904,14 @@ export interface OpenShiftManagedClusters { beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -783,6 +943,138 @@ export interface OpenShiftManagedClusters { beginDeleteMethod(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {OpenShiftManagedClusterListResult} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {OpenShiftManagedClusterListResult} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -977,7 +1269,7 @@ export interface ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -1161,7 +1453,7 @@ export interface ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -1455,7 +1747,7 @@ export interface ContainerServices { * subscription. * * Gets a list of supported orchestrators in the specified subscription. The - * operation returns properties of each orchestrator including verison and + * operation returns properties of each orchestrator including version and * available upgrades. * * @param {string} location The name of a supported Azure region. @@ -1481,7 +1773,7 @@ export interface ContainerServices { * subscription. * * Gets a list of supported orchestrators in the specified subscription. The - * operation returns properties of each orchestrator including verison and + * operation returns properties of each orchestrator including version and * available upgrades. * * @param {string} location The name of a supported Azure region. @@ -1645,7 +1937,7 @@ export interface ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -1829,7 +2121,7 @@ export interface ContainerServices { * the vmSize specified. * * @param {string} [parameters.masterProfile.vnetSubnetID] VNet SubnetID - * specifies the vnet's subnet identifier. + * specifies the VNet's subnet identifier. * * @param {string} [parameters.masterProfile.firstConsecutiveStaticIP] * FirstConsecutiveStaticIP used to specify the first static ip of masters. @@ -2445,9 +2737,9 @@ export interface ManagedClusters { /** - * @summary Gets clusteradmin credential of a managed cluster. + * @summary Gets cluster admin credential of a managed cluster. * - * Gets clusteradmin credential of the managed cluster with a specified + * Gets cluster admin credential of the managed cluster with a specified * resource group and name. * * @param {string} resourceGroupName The name of the resource group. @@ -2468,9 +2760,9 @@ export interface ManagedClusters { listClusterAdminCredentialsWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Gets clusteradmin credential of a managed cluster. + * @summary Gets cluster admin credential of a managed cluster. * - * Gets clusteradmin credential of the managed cluster with a specified + * Gets cluster admin credential of the managed cluster with a specified * resource group and name. * * @param {string} resourceGroupName The name of the resource group. @@ -2510,10 +2802,10 @@ export interface ManagedClusters { /** - * @summary Gets clusteruser credential of a managed cluster. + * @summary Gets cluster user credential of a managed cluster. * - * Gets clusteruser credential of the managed cluster with a specified resource - * group and name. + * Gets cluster user credential of the managed cluster with a specified + * resource group and name. * * @param {string} resourceGroupName The name of the resource group. * @@ -2533,10 +2825,10 @@ export interface ManagedClusters { listClusterUserCredentialsWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * @summary Gets clusteruser credential of a managed cluster. + * @summary Gets cluster user credential of a managed cluster. * - * Gets clusteruser credential of the managed cluster with a specified resource - * group and name. + * Gets cluster user credential of the managed cluster with a specified + * resource group and name. * * @param {string} resourceGroupName The name of the resource group. * @@ -3009,6 +3301,174 @@ export interface ManagedClusters { deleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + resetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, callback: ServiceCallback): void; + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + resetAADProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, callback: ServiceCallback): void; + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * @summary Creates or updates a managed cluster. * @@ -3379,6 +3839,174 @@ export interface ManagedClusters { beginDeleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginResetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, callback: ServiceCallback): void; + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterServicePrincipalProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginResetAADProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, callback: ServiceCallback): void; + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: models.ManagedClusterAADProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * @summary Gets a list of managed clusters in the specified subscription. * diff --git a/lib/services/containerservicesManagement/lib/operations/managedClusters.js b/lib/services/containerservicesManagement/lib/operations/managedClusters.js index 00592e6094..aebc51930a 100644 --- a/lib/services/containerservicesManagement/lib/operations/managedClusters.js +++ b/lib/services/containerservicesManagement/lib/operations/managedClusters.js @@ -196,6 +196,12 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -339,6 +345,12 @@ function _getUpgradeProfile(resourceGroupName, resourceName, options, callback) if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -489,6 +501,12 @@ function _getAccessProfile(resourceGroupName, resourceName, roleName, options, c if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -593,9 +611,9 @@ function _getAccessProfile(resourceGroupName, resourceName, roleName, options, c } /** - * @summary Gets clusteradmin credential of a managed cluster. + * @summary Gets cluster admin credential of a managed cluster. * - * Gets clusteradmin credential of the managed cluster with a specified + * Gets cluster admin credential of the managed cluster with a specified * resource group and name. * * @param {string} resourceGroupName The name of the resource group. @@ -639,6 +657,12 @@ function _listClusterAdminCredentials(resourceGroupName, resourceName, options, if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -739,10 +763,10 @@ function _listClusterAdminCredentials(resourceGroupName, resourceName, options, } /** - * @summary Gets clusteruser credential of a managed cluster. + * @summary Gets cluster user credential of a managed cluster. * - * Gets clusteruser credential of the managed cluster with a specified resource - * group and name. + * Gets cluster user credential of the managed cluster with a specified + * resource group and name. * * @param {string} resourceGroupName The name of the resource group. * @@ -785,6 +809,12 @@ function _listClusterUserCredentials(resourceGroupName, resourceName, options, c if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -931,6 +961,12 @@ function _get(resourceGroupName, resourceName, options, callback) { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -1346,6 +1382,158 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) { }); } + +/** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _resetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + + +/** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _resetAADProfile(resourceGroupName, resourceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginResetAADProfile(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + /** * @summary Creates or updates a managed cluster. * @@ -1478,6 +1666,12 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -1662,6 +1856,12 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -1823,6 +2023,12 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } @@ -1906,13 +2112,21 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) } /** - * @summary Gets a list of managed clusters in the specified subscription. + * @summary Reset Service Principal Profile of a managed cluster. * - * Gets a list of managed clusters in the specified subscription. The operation - * returns properties of each managed cluster. + * Update the service principal Profile for a managed cluster. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. * * @param {object} [options] Optional Parameters. * @@ -1925,15 +2139,13 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedClusterListResult} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listNext(nextPageLink, options, callback) { +function _beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1943,10 +2155,26 @@ function _listNext(nextPageLink, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } + let apiVersion = '2018-08-01-preview'; // Validate try { - if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { - throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { + throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -1956,12 +2184,20 @@ function _listNext(nextPageLink, options, callback) { } // Construct URL - let requestUrl = '{nextLink}'; - requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'POST'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers @@ -1979,14 +2215,28 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ManagedClusterServicePrincipalProfile']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200) { + if (statusCode !== 200 && statusCode !== 202) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -2014,37 +2264,33 @@ function _listNext(nextPageLink, options, callback) { // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['ManagedClusterListResult']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } return callback(null, result, httpRequest, response); }); } /** - * @summary Lists managed clusters in the specified subscription and resource - * group. + * @summary Reset AAD Profile of a managed cluster. * - * Lists managed clusters in the specified subscription and resource group. The - * operation returns properties of each managed cluster. + * Update the AAD Profile for a managed cluster. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. * * @param {object} [options] Optional Parameters. * @@ -2057,15 +2303,13 @@ function _listNext(nextPageLink, options, callback) { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedClusterListResult} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroupNext(nextPageLink, options, callback) { +function _beginResetAADProfile(resourceGroupName, resourceName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2075,13 +2319,297 @@ function _listByResourceGroupNext(nextPageLink, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } + let apiVersion = '2018-08-01-preview'; // Validate try { - if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { - throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { + throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['ManagedClusterAADProfile']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * @summary Gets a list of managed clusters in the specified subscription. + * + * Gets a list of managed clusters in the specified subscription. The operation + * returns properties of each managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ManagedClusterListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * @summary Lists managed clusters in the specified subscription and resource + * group. + * + * Lists managed clusters in the specified subscription and resource group. The + * operation returns properties of each managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByResourceGroupNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); @@ -2186,9 +2714,13 @@ class ManagedClusters { this._createOrUpdate = _createOrUpdate; this._updateTags = _updateTags; this._deleteMethod = _deleteMethod; + this._resetServicePrincipalProfile = _resetServicePrincipalProfile; + this._resetAADProfile = _resetAADProfile; this._beginCreateOrUpdate = _beginCreateOrUpdate; this._beginUpdateTags = _beginUpdateTags; this._beginDeleteMethod = _beginDeleteMethod; + this._beginResetServicePrincipalProfile = _beginResetServicePrincipalProfile; + this._beginResetAADProfile = _beginResetAADProfile; this._listNext = _listNext; this._listByResourceGroupNext = _listByResourceGroupNext; } @@ -2562,9 +3094,9 @@ class ManagedClusters { } /** - * @summary Gets clusteradmin credential of a managed cluster. + * @summary Gets cluster admin credential of a managed cluster. * - * Gets clusteradmin credential of the managed cluster with a specified + * Gets cluster admin credential of the managed cluster with a specified * resource group and name. * * @param {string} resourceGroupName The name of the resource group. @@ -2597,9 +3129,9 @@ class ManagedClusters { } /** - * @summary Gets clusteradmin credential of a managed cluster. + * @summary Gets cluster admin credential of a managed cluster. * - * Gets clusteradmin credential of the managed cluster with a specified + * Gets cluster admin credential of the managed cluster with a specified * resource group and name. * * @param {string} resourceGroupName The name of the resource group. @@ -2654,10 +3186,10 @@ class ManagedClusters { } /** - * @summary Gets clusteruser credential of a managed cluster. + * @summary Gets cluster user credential of a managed cluster. * - * Gets clusteruser credential of the managed cluster with a specified resource - * group and name. + * Gets cluster user credential of the managed cluster with a specified + * resource group and name. * * @param {string} resourceGroupName The name of the resource group. * @@ -2689,10 +3221,10 @@ class ManagedClusters { } /** - * @summary Gets clusteruser credential of a managed cluster. + * @summary Gets cluster user credential of a managed cluster. * - * Gets clusteruser credential of the managed cluster with a specified resource - * group and name. + * Gets cluster user credential of the managed cluster with a specified + * resource group and name. * * @param {string} resourceGroupName The name of the resource group. * @@ -3044,13 +3576,203 @@ class ManagedClusters { * @param {string} [parameters.aadProfile.serverAppSecret] The server AAD * application secret. * - * @param {string} [parameters.aadProfile.tenantID] The AAD tenant ID to use - * for authentication. If not specified, will use the tenant of the deployment - * subscription. + * @param {string} [parameters.aadProfile.tenantID] The AAD tenant ID to use + * for authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedCluster} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedCluster} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName, resourceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, resourceName, parameters, options, optionalCallback); + } + } + + /** + * @summary Updates tags on a managed cluster. + * + * Updates a managed cluster with the specified tags. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Update Managed Cluster + * Tags operation. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + updateTagsWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._updateTags(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Updates tags on a managed cluster. + * + * Updates a managed cluster with the specified tags. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Update Managed Cluster + * Tags operation. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ManagedCluster} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ManagedCluster} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + updateTags(resourceGroupName, resourceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._updateTags(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._updateTags(resourceGroupName, resourceName, parameters, options, optionalCallback); + } + } + + /** + * @summary Deletes a managed cluster. + * + * Deletes the managed cluster with a specified resource group and name. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, resourceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Deletes a managed cluster. + * + * Deletes the managed cluster with a specified resource group and name. * - * @param {string} parameters.location Resource location + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [parameters.tags] Resource tags + * @param {string} resourceName The name of the managed cluster resource. * * @param {object} [options] Optional Parameters. * @@ -3064,7 +3786,7 @@ class ManagedClusters { * * {Promise} A promise is returned * - * @resolve {ManagedCluster} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -3072,14 +3794,13 @@ class ManagedClusters { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedCluster} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName, resourceName, parameters, options, optionalCallback) { + deleteMethod(resourceGroupName, resourceName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3088,30 +3809,33 @@ class ManagedClusters { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._createOrUpdate(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._createOrUpdate(resourceGroupName, resourceName, parameters, options, optionalCallback); + return self._deleteMethod(resourceGroupName, resourceName, options, optionalCallback); } } /** - * @summary Updates tags on a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. * - * Updates a managed cluster with the specified tags. + * Update the service principal Profile for a managed cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceName The name of the managed cluster resource. * - * @param {object} parameters Parameters supplied to the Update Managed Cluster - * Tags operation. + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. * * @param {object} [options] Optional Parameters. * @@ -3120,15 +3844,15 @@ class ManagedClusters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - updateTagsWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { + resetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._updateTags(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + self._resetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3139,18 +3863,21 @@ class ManagedClusters { } /** - * @summary Updates tags on a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. * - * Updates a managed cluster with the specified tags. + * Update the service principal Profile for a managed cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceName The name of the managed cluster resource. * - * @param {object} parameters Parameters supplied to the Update Managed Cluster - * Tags operation. + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. * * @param {object} [options] Optional Parameters. * @@ -3164,7 +3891,7 @@ class ManagedClusters { * * {Promise} A promise is returned * - * @resolve {ManagedCluster} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -3172,14 +3899,13 @@ class ManagedClusters { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ManagedCluster} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - updateTags(resourceGroupName, resourceName, parameters, options, optionalCallback) { + resetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3188,26 +3914,40 @@ class ManagedClusters { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._updateTags(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + self._resetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._updateTags(resourceGroupName, resourceName, parameters, options, optionalCallback); + return self._resetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, optionalCallback); } } /** - * @summary Deletes a managed cluster. + * @summary Reset AAD Profile of a managed cluster. * - * Deletes the managed cluster with a specified resource group and name. + * Update the AAD Profile for a managed cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceName The name of the managed cluster resource. * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3219,11 +3959,11 @@ class ManagedClusters { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, resourceName, options) { + resetAADProfileWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { + self._resetAADProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3234,14 +3974,28 @@ class ManagedClusters { } /** - * @summary Deletes a managed cluster. + * @summary Reset AAD Profile of a managed cluster. * - * Deletes the managed cluster with a specified resource group and name. + * Update the AAD Profile for a managed cluster. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} resourceName The name of the managed cluster resource. * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3268,7 +4022,7 @@ class ManagedClusters { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, resourceName, options, optionalCallback) { + resetAADProfile(resourceGroupName, resourceName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3277,14 +4031,14 @@ class ManagedClusters { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { + self._resetAADProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, resourceName, options, optionalCallback); + return self._resetAADProfile(resourceGroupName, resourceName, parameters, options, optionalCallback); } } @@ -3739,6 +4493,228 @@ class ManagedClusters { } } + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginResetServicePrincipalProfileWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Reset Service Principal Profile of a managed cluster. + * + * Update the service principal Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset Service + * Principal Profile operation for a Managed Cluster. + * + * @param {string} parameters.clientId The ID for the service principal. + * + * @param {string} [parameters.secret] The secret password associated with the + * service principal in plain text. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginResetServicePrincipalProfile(resourceGroupName, resourceName, parameters, options, optionalCallback); + } + } + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginResetAADProfileWithHttpOperationResponse(resourceGroupName, resourceName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginResetAADProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Reset AAD Profile of a managed cluster. + * + * Update the AAD Profile for a managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the managed cluster resource. + * + * @param {object} parameters Parameters supplied to the Reset AAD Profile + * operation for a Managed Cluster. + * + * @param {string} parameters.clientAppID The client AAD application ID. + * + * @param {string} parameters.serverAppID The server AAD application ID. + * + * @param {string} [parameters.serverAppSecret] The server AAD application + * secret. + * + * @param {string} [parameters.tenantID] The AAD tenant ID to use for + * authentication. If not specified, will use the tenant of the deployment + * subscription. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginResetAADProfile(resourceGroupName, resourceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginResetAADProfile(resourceGroupName, resourceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginResetAADProfile(resourceGroupName, resourceName, parameters, options, optionalCallback); + } + } + /** * @summary Gets a list of managed clusters in the specified subscription. * diff --git a/lib/services/containerservicesManagement/lib/operations/openShiftManagedClusters.js b/lib/services/containerservicesManagement/lib/operations/openShiftManagedClusters.js index 5e250223a1..31e01f3057 100644 --- a/lib/services/containerservicesManagement/lib/operations/openShiftManagedClusters.js +++ b/lib/services/containerservicesManagement/lib/operations/openShiftManagedClusters.js @@ -15,15 +15,11 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * @summary Gets a openshift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. * - * Gets the details of the managed openshift cluster with a specified resource - * group and name. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} resourceName The name of the openshift managed cluster - * resource. + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. * * @param {object} [options] Optional Parameters. * @@ -37,14 +33,14 @@ const WebResource = msRest.WebResource; * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link OpenShiftManagedCluster} for more + * See {@link OpenShiftManagedClusterListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, resourceName, options, callback) { +function _list(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -60,12 +56,6 @@ function _get(resourceGroupName, resourceName, options, callback) { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { - throw new Error('resourceName cannot be null or undefined and it must be of type string.'); - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -75,10 +65,8 @@ function _get(resourceGroupName, resourceName, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); if (queryParameters.length > 0) { @@ -147,7 +135,7 @@ function _get(resourceGroupName, resourceName, options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + let resultMapper = new client.models['OpenShiftManagedClusterListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -162,87 +150,15 @@ function _get(resourceGroupName, resourceName, options, callback) { }); } - /** - * @summary Creates or updates an openshift managed cluster. + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. * - * Creates or updates a openshift managed cluster with the specified - * configuration for agents and OpenShift version. + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster - * resource. - * - * @param {object} parameters Parameters supplied to the Create or Update an - * OpenShift Managed Cluster operation. - * - * @param {object} [parameters.plan] Define the resource plan as required by - * ARM for billing purposes - * - * @param {string} [parameters.plan.name] The plan ID. - * - * @param {string} [parameters.plan.product] Specifies the product of the image - * from the marketplace. This is the same value as Offer under the - * imageReference element. - * - * @param {string} [parameters.plan.promotionCode] The promotion code. - * - * @param {string} [parameters.plan.publisher] The plan ID. - * - * @param {string} parameters.openShiftVersion Version of OpenShift specified - * when creating the cluster. - * - * @param {string} [parameters.publicHostname] Optional user-specified FQDN for - * OpenShift API server. - * - * @param {string} [parameters.fqdn] User-specified FQDN for OpenShift API - * server loadbalancer internal hostname. - * - * @param {object} [parameters.networkProfile] Configuration for OpenShift - * networking. - * - * @param {string} [parameters.networkProfile.vnetCidr] CIDR for the OpenShift - * Vnet. - * - * @param {string} [parameters.networkProfile.peerVnetId] CIDR of the Vnet to - * peer. - * - * @param {array} [parameters.routerProfiles] Configuration for OpenShift - * router(s). - * - * @param {object} [parameters.masterPoolProfile] Configuration for OpenShift - * master VMs. - * - * @param {string} [parameters.masterPoolProfile.name] Unique name of the - * master pool profile in the context of the subscription and resource group. - * - * @param {number} parameters.masterPoolProfile.count Number of masters (VMs) - * to host docker containers. The default value is 3. - * - * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' - * - * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for - * the peering. - * - * @param {string} [parameters.masterPoolProfile.osType] OsType to be used to - * specify os type. Choose from Linux and Windows. Default to Linux. Possible - * values include: 'Linux', 'Windows' - * - * @param {array} [parameters.agentPoolProfiles] Configuration of OpenShift - * cluster VMs. - * - * @param {object} [parameters.authProfile] Configures OpenShift - * authentication. - * - * @param {array} [parameters.authProfile.identityProviders] Type of - * authentication profile to use. - * - * @param {string} parameters.location Resource location - * - * @param {object} [parameters.tags] Resource tags - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -255,51 +171,119 @@ function _get(resourceGroupName, resourceName, options, callback) { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link OpenShiftManagedCluster} for more + * See {@link OpenShiftManagedClusterListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _createOrUpdate(resourceGroupName, resourceName, parameters, options, callback) { +function _listByResourceGroup(resourceGroupName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } - if (!callback) { throw new Error('callback cannot be null.'); } + let apiVersion = '2018-09-30-preview'; + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } - // Send request - this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; - - // Deserialize Response + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + let resultMapper = new client.models['OpenShiftManagedClusterListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -308,28 +292,23 @@ function _createOrUpdate(resourceGroupName, resourceName, parameters, options, c deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } + } - return callback(null, result, httpRequest, response); - }); + return callback(null, result, httpRequest, response); }); } - /** - * @summary Updates tags on an openshift managed cluster. + * @summary Gets a OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Gets the details of the managed OpenShift cluster with a specified resource + * group and name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * - * @param {object} parameters Parameters supplied to the Update OpenShift - * Managed Cluster Tags operation. - * - * @param {object} [parameters.tags] Resource tags. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -349,38 +328,110 @@ function _createOrUpdate(resourceGroupName, resourceName, parameters, options, c * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _updateTags(resourceGroupName, resourceName, parameters, options, callback) { +function _get(resourceGroupName, resourceName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } - if (!callback) { throw new Error('callback cannot be null.'); } + let apiVersion = '2018-09-30-preview'; + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { + throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } - // Send request - this.beginUpdateTags(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; - - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; - if (responseBody === '') responseBody = null; + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } - // Deserialize Response + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -395,24 +446,102 @@ function _updateTags(resourceGroupName, resourceName, parameters, options, callb deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } + } - return callback(null, result, httpRequest, response); - }); + return callback(null, result, httpRequest, response); }); } /** - * @summary Deletes an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and - * name. + * Creates or updates a OpenShift managed cluster with the specified + * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * + * @param {object} parameters Parameters supplied to the Create or Update an + * OpenShift Managed Cluster operation. + * + * @param {object} [parameters.plan] Define the resource plan as required by + * ARM for billing purposes + * + * @param {string} [parameters.plan.name] The plan ID. + * + * @param {string} [parameters.plan.product] Specifies the product of the image + * from the marketplace. This is the same value as Offer under the + * imageReference element. + * + * @param {string} [parameters.plan.promotionCode] The promotion code. + * + * @param {string} [parameters.plan.publisher] The plan ID. + * + * @param {string} parameters.openShiftVersion Version of OpenShift specified + * when creating the cluster. + * + * @param {string} [parameters.publicHostname] Optional user-specified FQDN for + * OpenShift API server. + * + * @param {string} [parameters.fqdn] User-specified FQDN for OpenShift API + * server loadbalancer internal hostname. + * + * @param {object} [parameters.networkProfile] Configuration for OpenShift + * networking. + * + * @param {string} [parameters.networkProfile.vnetCidr] CIDR for the OpenShift + * Vnet. + * + * @param {string} [parameters.networkProfile.peerVnetId] CIDR of the Vnet to + * peer. + * + * @param {array} [parameters.routerProfiles] Configuration for OpenShift + * router(s). + * + * @param {object} [parameters.masterPoolProfile] Configuration for OpenShift + * master VMs. + * + * @param {string} [parameters.masterPoolProfile.name] Unique name of the + * master pool profile in the context of the subscription and resource group. + * + * @param {number} parameters.masterPoolProfile.count Number of masters (VMs) + * to host docker containers. The default value is 3. + * + * @param {string} parameters.masterPoolProfile.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' + * + * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for + * the peering. + * + * @param {string} [parameters.masterPoolProfile.osType] OsType to be used to + * specify os type. Choose from Linux and Windows. Default to Linux. Possible + * values include: 'Linux', 'Windows' + * + * @param {array} [parameters.agentPoolProfiles] Configuration of OpenShift + * cluster VMs. + * + * @param {object} [parameters.authProfile] Configures OpenShift + * authentication. + * + * @param {array} [parameters.authProfile.identityProviders] Type of + * authentication profile to use. + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -424,13 +553,15 @@ function _updateTags(resourceGroupName, resourceName, parameters, options, callb * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedCluster} for more + * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(resourceGroupName, resourceName, options, callback) { +function _createOrUpdate(resourceGroupName, resourceName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -443,7 +574,7 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) { } // Send request - this.beginDeleteMethod(resourceGroupName, resourceName, options, (err, parsedResult, httpRequest, response) => { + this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -462,71 +593,248 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) { if (responseBody === '') responseBody = null; // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } return callback(null, result, httpRequest, response); }); }); } + /** - * @summary Creates or updates an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified - * configuration for agents and OpenShift version. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * - * @param {object} parameters Parameters supplied to the Create or Update an - * OpenShift Managed Cluster operation. + * @param {object} parameters Parameters supplied to the Update OpenShift + * Managed Cluster Tags operation. * - * @param {object} [parameters.plan] Define the resource plan as required by - * ARM for billing purposes + * @param {object} [parameters.tags] Resource tags. * - * @param {string} [parameters.plan.name] The plan ID. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.plan.product] Specifies the product of the image - * from the marketplace. This is the same value as Offer under the - * imageReference element. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.plan.promotionCode] The promotion code. + * @param {function} callback - The callback. * - * @param {string} [parameters.plan.publisher] The plan ID. + * @returns {function} callback(err, result, request, response) * - * @param {string} parameters.openShiftVersion Version of OpenShift specified - * when creating the cluster. + * {Error} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.publicHostname] Optional user-specified FQDN for - * OpenShift API server. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedCluster} for more + * information. * - * @param {string} [parameters.fqdn] User-specified FQDN for OpenShift API - * server loadbalancer internal hostname. + * {object} [request] - The HTTP Request object if an error did not occur. * - * @param {object} [parameters.networkProfile] Configuration for OpenShift - * networking. + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _updateTags(resourceGroupName, resourceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginUpdateTags(resourceGroupName, resourceName, parameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + + return callback(null, result, httpRequest, response); + }); + }); +} + + +/** + * @summary Deletes an OpenShift managed cluster. * - * @param {string} [parameters.networkProfile.vnetCidr] CIDR for the OpenShift - * Vnet. + * Deletes the OpenShift managed cluster with a specified resource group and + * name. * - * @param {string} [parameters.networkProfile.peerVnetId] CIDR of the Vnet to - * peer. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} [parameters.routerProfiles] Configuration for OpenShift - * router(s). + * @param {string} resourceName The name of the OpenShift managed cluster + * resource. * - * @param {object} [parameters.masterPoolProfile] Configuration for OpenShift - * master VMs. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.masterPoolProfile.name] Unique name of the + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _deleteMethod(resourceGroupName, resourceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginDeleteMethod(resourceGroupName, resourceName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * @summary Creates or updates an OpenShift managed cluster. + * + * Creates or updates a OpenShift managed cluster with the specified + * configuration for agents and OpenShift version. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the OpenShift managed cluster + * resource. + * + * @param {object} parameters Parameters supplied to the Create or Update an + * OpenShift Managed Cluster operation. + * + * @param {object} [parameters.plan] Define the resource plan as required by + * ARM for billing purposes + * + * @param {string} [parameters.plan.name] The plan ID. + * + * @param {string} [parameters.plan.product] Specifies the product of the image + * from the marketplace. This is the same value as Offer under the + * imageReference element. + * + * @param {string} [parameters.plan.promotionCode] The promotion code. + * + * @param {string} [parameters.plan.publisher] The plan ID. + * + * @param {string} parameters.openShiftVersion Version of OpenShift specified + * when creating the cluster. + * + * @param {string} [parameters.publicHostname] Optional user-specified FQDN for + * OpenShift API server. + * + * @param {string} [parameters.fqdn] User-specified FQDN for OpenShift API + * server loadbalancer internal hostname. + * + * @param {object} [parameters.networkProfile] Configuration for OpenShift + * networking. + * + * @param {string} [parameters.networkProfile.vnetCidr] CIDR for the OpenShift + * Vnet. + * + * @param {string} [parameters.networkProfile.peerVnetId] CIDR of the Vnet to + * peer. + * + * @param {array} [parameters.routerProfiles] Configuration for OpenShift + * router(s). + * + * @param {object} [parameters.masterPoolProfile] Configuration for OpenShift + * master VMs. + * + * @param {string} [parameters.masterPoolProfile.name] Unique name of the * master pool profile in the context of the subscription and resource group. * * @param {number} parameters.masterPoolProfile.count Number of masters (VMs) * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -541,12 +849,375 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) { * @param {object} [parameters.authProfile] Configures OpenShift * authentication. * - * @param {array} [parameters.authProfile.identityProviders] Type of - * authentication profile to use. + * @param {array} [parameters.authProfile.identityProviders] Type of + * authentication profile to use. + * + * @param {string} parameters.location Resource location + * + * @param {object} [parameters.tags] Resource tags + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedCluster} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-09-30-preview'; + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { + throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['OpenShiftManagedCluster']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 201) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * @summary Updates tags on an OpenShift managed cluster. + * + * Updates an OpenShift managed cluster with the specified tags. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} resourceName The name of the OpenShift managed cluster + * resource. + * + * @param {object} parameters Parameters supplied to the Update OpenShift + * Managed Cluster Tags operation. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedCluster} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2018-09-30-preview'; + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { + throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PATCH'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['TagsObject']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * @summary Deletes an OpenShift managed cluster. + * + * Deletes the OpenShift managed cluster with a specified resource group and + * name. * - * @param {string} parameters.location Resource location + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [parameters.tags] Resource tags + * @param {string} resourceName The name of the OpenShift managed cluster + * resource. * * @param {object} [options] Optional Parameters. * @@ -559,15 +1230,13 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link OpenShiftManagedCluster} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options, callback) { +function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -586,12 +1255,15 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } - if (parameters === null || parameters === undefined) { - throw new Error('parameters cannot be null or undefined.'); - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -613,7 +1285,7 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'DELETE'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers @@ -631,28 +1303,14 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio } } } - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['OpenShiftManagedCluster']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 201) { + if (statusCode !== 202 && statusCode !== 204) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -680,59 +1338,20 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - // Deserialize Response - if (statusCode === 201) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError1.request = msRest.stripRequest(httpRequest); - deserializationError1.response = msRest.stripResponse(response); - return callback(deserializationError1); - } - } return callback(null, result, httpRequest, response); }); } /** - * @summary Updates tags on an openshift managed cluster. - * - * Updates an openshift managed cluster with the specified tags. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} resourceName The name of the openshift managed cluster - * resource. + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. * - * @param {object} parameters Parameters supplied to the Update OpenShift - * Managed Cluster Tags operation. + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -746,14 +1365,14 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link OpenShiftManagedCluster} for more + * See {@link OpenShiftManagedClusterListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, callback) { +function _listNext(nextPageLink, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -763,20 +1382,10 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-30-preview'; // Validate try { - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { - throw new Error('resourceName cannot be null or undefined and it must be of type string.'); - } - if (parameters === null || parameters === undefined) { - throw new Error('parameters cannot be null or undefined.'); + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -786,20 +1395,12 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, } // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PATCH'; + httpRequest.method = 'GET'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers @@ -817,21 +1418,7 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, } } } - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['TagsObject']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -873,7 +1460,7 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['OpenShiftManagedCluster']().mapper(); + let resultMapper = new client.models['OpenShiftManagedClusterListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -889,15 +1476,14 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, } /** - * @summary Deletes an openshift managed cluster. - * - * Deletes the openshift managed cluster with a specified resource group and - * name. + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. * - * @param {string} resourceGroupName The name of the resource group. + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. * - * @param {string} resourceName The name of the openshift managed cluster - * resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -910,13 +1496,15 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options, * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) { +function _listByResourceGroupNext(nextPageLink, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -926,17 +1514,10 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-30-preview'; // Validate try { - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { - throw new Error('resourceName cannot be null or undefined and it must be of type string.'); + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); @@ -946,20 +1527,12 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) } // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'DELETE'; + httpRequest.method = 'GET'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers @@ -984,7 +1557,7 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 202 && statusCode !== 204) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1009,40 +1582,239 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback) } return callback(error); } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['OpenShiftManagedClusterListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a OpenShiftManagedClusters. */ +class OpenShiftManagedClusters { + /** + * Create a OpenShiftManagedClusters. + * @param {ContainerServiceClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._listByResourceGroup = _listByResourceGroup; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._updateTags = _updateTags; + this._deleteMethod = _deleteMethod; + this._beginCreateOrUpdate = _beginCreateOrUpdate; + this._beginUpdateTags = _beginUpdateTags; + this._beginDeleteMethod = _beginDeleteMethod; + this._listNext = _listNext; + this._listByResourceGroupNext = _listByResourceGroupNext; + } + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listWithHttpOperationResponse(options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(options, optionalCallback); + } + } - return callback(null, result, httpRequest, response); - }); -} + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByResourceGroupWithHttpOperationResponse(resourceGroupName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } -/** Class representing a OpenShiftManagedClusters. */ -class OpenShiftManagedClusters { /** - * Create a OpenShiftManagedClusters. - * @param {ContainerServiceClient} client Reference to the service client. + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. */ - constructor(client) { - this.client = client; - this._get = _get; - this._createOrUpdate = _createOrUpdate; - this._updateTags = _updateTags; - this._deleteMethod = _deleteMethod; - this._beginCreateOrUpdate = _beginCreateOrUpdate; - this._beginUpdateTags = _beginUpdateTags; - this._beginDeleteMethod = _beginDeleteMethod; + listByResourceGroup(resourceGroupName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByResourceGroup(resourceGroupName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByResourceGroup(resourceGroupName, options, optionalCallback); + } } /** - * @summary Gets a openshift managed cluster. + * @summary Gets a OpenShift managed cluster. * - * Gets the details of the managed openshift cluster with a specified resource + * Gets the details of the managed OpenShift cluster with a specified resource * group and name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1071,14 +1843,14 @@ class OpenShiftManagedClusters { } /** - * @summary Gets a openshift managed cluster. + * @summary Gets a OpenShift managed cluster. * - * Gets the details of the managed openshift cluster with a specified resource + * Gets the details of the managed OpenShift cluster with a specified resource * group and name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1130,14 +1902,14 @@ class OpenShiftManagedClusters { } /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -1187,7 +1959,16 @@ class OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -1235,14 +2016,14 @@ class OpenShiftManagedClusters { } /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -1292,7 +2073,16 @@ class OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -1363,13 +2153,13 @@ class OpenShiftManagedClusters { } /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -1403,13 +2193,13 @@ class OpenShiftManagedClusters { } /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -1466,14 +2256,14 @@ class OpenShiftManagedClusters { } /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1502,14 +2292,14 @@ class OpenShiftManagedClusters { } /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1559,14 +2349,14 @@ class OpenShiftManagedClusters { } /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -1616,7 +2406,16 @@ class OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -1664,14 +2463,14 @@ class OpenShiftManagedClusters { } /** - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * - * Creates or updates a openshift managed cluster with the specified + * Creates or updates a OpenShift managed cluster with the specified * configuration for agents and OpenShift version. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Create or Update an @@ -1721,7 +2520,16 @@ class OpenShiftManagedClusters { * to host docker containers. The default value is 3. * * @param {string} parameters.masterPoolProfile.vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * 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' * * @param {string} [parameters.masterPoolProfile.subnetCidr] Subnet CIDR for * the peering. @@ -1792,13 +2600,13 @@ class OpenShiftManagedClusters { } /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -1832,13 +2640,13 @@ class OpenShiftManagedClusters { } /** - * @summary Updates tags on an openshift managed cluster. + * @summary Updates tags on an OpenShift managed cluster. * - * Updates an openshift managed cluster with the specified tags. + * Updates an OpenShift managed cluster with the specified tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} parameters Parameters supplied to the Update OpenShift @@ -1895,14 +2703,14 @@ class OpenShiftManagedClusters { } /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1931,14 +2739,14 @@ class OpenShiftManagedClusters { } /** - * @summary Deletes an openshift managed cluster. + * @summary Deletes an OpenShift managed cluster. * - * Deletes the openshift managed cluster with a specified resource group and + * Deletes the OpenShift managed cluster with a specified resource group and * name. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} resourceName The name of the openshift managed cluster + * @param {string} resourceName The name of the OpenShift managed cluster * resource. * * @param {object} [options] Optional Parameters. @@ -1987,6 +2795,192 @@ class OpenShiftManagedClusters { } } + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Gets a list of OpenShift managed clusters in the specified + * subscription. + * + * Gets a list of OpenShift managed clusters in the specified subscription. The + * operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Lists OpenShift managed clusters in the specified subscription and + * resource group. + * + * Lists OpenShift managed clusters in the specified subscription and resource + * group. The operation returns properties of each OpenShift managed cluster. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {OpenShiftManagedClusterListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link OpenShiftManagedClusterListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByResourceGroupNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByResourceGroupNext(nextPageLink, options, optionalCallback); + } + } + } module.exports = OpenShiftManagedClusters; diff --git a/lib/services/containerservicesManagement/package.json b/lib/services/containerservicesManagement/package.json index 4a5f9ad2dd..ffda39584b 100644 --- a/lib/services/containerservicesManagement/package.json +++ b/lib/services/containerservicesManagement/package.json @@ -22,4 +22,4 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}