Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions lib/services/containerservicesManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ export interface ManagedClusterServicePrincipalProfile {
*
* @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.
* @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:
Expand Down Expand Up @@ -853,25 +853,30 @@ export interface ManagedClusterServicePrincipalProfile {
* @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} [storageProfile] Storage profile specifies what kind of
* storage used. Defaults to ManagedDisks. Possible values include:
* 'StorageAccount', 'ManagedDisks'
* @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 {
name: string;
count?: number;
count: number;
vmSize: string;
osDiskSizeGB?: number;
readonly storageProfile?: string;
vnetSubnetID?: string;
maxPods?: number;
osType?: string;
maxCount?: number;
minCount?: number;
enableAutoScaling?: boolean;
type?: string;
}

/**
Expand Down Expand Up @@ -952,8 +957,7 @@ export interface ManagedClusterAADProfile {
* @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. Currently
* only one agent pool can exist.
* @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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class ManagedCluster extends models['Resource'] {
* managed cluster.
* @member {string} [fqdn] FDQN for the master pool.
* @member {array} [agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
* @member {object} [linuxProfile] Profile for Linux VMs in the container
* service cluster.
* @member {string} [linuxProfile.adminUsername] The administrator username
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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.
* @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:
Expand Down Expand Up @@ -77,15 +77,17 @@ class ManagedClusterAgentPoolProfile {
* 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} [storageProfile] Storage profile specifies what kind of
* storage used. Defaults to ManagedDisks. Possible values include:
* 'StorageAccount', 'ManagedDisks'
* @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'
*/
constructor() {
}
Expand All @@ -112,7 +114,7 @@ class ManagedClusterAgentPoolProfile {
}
},
count: {
required: false,
required: true,
serializedName: 'count',
defaultValue: 1,
constraints: {
Expand All @@ -137,14 +139,6 @@ class ManagedClusterAgentPoolProfile {
name: 'Number'
}
},
storageProfile: {
required: false,
readOnly: true,
serializedName: 'storageProfile',
type: {
name: 'String'
}
},
vnetSubnetID: {
required: false,
serializedName: 'vnetSubnetID',
Expand All @@ -166,6 +160,34 @@ class ManagedClusterAgentPoolProfile {
type: {
name: 'String'
}
},
maxCount: {
required: false,
serializedName: 'maxCount',
type: {
name: 'Number'
}
},
minCount: {
required: false,
serializedName: 'minCount',
type: {
name: 'Number'
}
},
enableAutoScaling: {
required: false,
serializedName: 'enableAutoScaling',
type: {
name: 'Boolean'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2659,7 +2659,6 @@ export interface ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -2768,7 +2767,6 @@ export interface ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -3031,7 +3029,6 @@ export interface ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -3140,7 +3137,6 @@ export interface ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -187,7 +187,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -330,7 +330,7 @@ function _getUpgradeProfile(resourceGroupName, resourceName, options, callback)
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -480,7 +480,7 @@ function _getAccessProfile(resourceGroupName, resourceName, roleName, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -630,7 +630,7 @@ function _listClusterAdminCredentials(resourceGroupName, resourceName, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -776,7 +776,7 @@ function _listClusterUserCredentials(resourceGroupName, resourceName, options, c
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -922,7 +922,7 @@ function _get(resourceGroupName, resourceName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -1051,7 +1051,6 @@ function _get(resourceGroupName, resourceName, options, callback) {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -1367,7 +1366,6 @@ function _deleteMethod(resourceGroupName, resourceName, options, callback) {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -1471,7 +1469,7 @@ function _beginCreateOrUpdate(resourceGroupName, resourceName, parameters, optio
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -1655,7 +1653,7 @@ function _beginUpdateTags(resourceGroupName, resourceName, parameters, options,
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -1816,7 +1814,7 @@ function _beginDeleteMethod(resourceGroupName, resourceName, options, callback)
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
Expand Down Expand Up @@ -2859,7 +2857,6 @@ class ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -2980,7 +2977,6 @@ class ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -3312,7 +3308,6 @@ class ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down Expand Up @@ -3433,7 +3428,6 @@ class ManagedClusters {
* the managed cluster.
*
* @param {array} [parameters.agentPoolProfiles] Properties of the agent pool.
* Currently only one agent pool can exist.
*
* @param {object} [parameters.linuxProfile] Profile for Linux VMs in the
* container service cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function _list(options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2018-03-31';
let apiVersion = '2018-08-01-preview';
// Validate
try {
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
Expand Down