Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
30 changes: 12 additions & 18 deletions lib/services/containerservicesManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,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 @@ -633,25 +633,31 @@ 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] Maximun number of nodes for auto-scaling
* @member {number} [minCount] Minimun number of nodes for auto-scaling
* @member {boolean} [enableAutoScaling] Wheter to enable auto-scaler
* @member {string} [type] AgentPoolType represents types of agentpool.
* Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'.
* Default value: 'VirtualMachineScaleSets' .
*/
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 @@ -808,18 +814,6 @@ export interface OrchestratorProfile {
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 {
kubeConfig?: Buffer;
}

/**
* @class
* Initializes a new instance of the ManagedClusterPoolUpgradeProfile class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ exports.ManagedClusterAddonProfile = require('./managedClusterAddonProfile');
exports.ManagedClusterAADProfile = require('./managedClusterAADProfile');
exports.ManagedCluster = require('./managedCluster');
exports.OrchestratorProfile = require('./orchestratorProfile');
exports.ManagedClusterAccessProfile = require('./managedClusterAccessProfile');
exports.ManagedClusterPoolUpgradeProfile = require('./managedClusterPoolUpgradeProfile');
exports.ManagedClusterUpgradeProfile = require('./managedClusterUpgradeProfile');
exports.CredentialResult = require('./credentialResult');
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,18 @@ 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] Maximun number of nodes for auto-scaling
* @member {number} [minCount] Minimun number of nodes for auto-scaling
* @member {boolean} [enableAutoScaling] Wheter to enable auto-scaler
* @member {string} [type] AgentPoolType represents types of agentpool.
* Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'.
* Default value: 'VirtualMachineScaleSets' .
*/
constructor() {
}
Expand All @@ -112,7 +115,7 @@ class ManagedClusterAgentPoolProfile {
}
},
count: {
required: false,
required: true,
serializedName: 'count',
defaultValue: 1,
constraints: {
Expand All @@ -137,14 +140,6 @@ class ManagedClusterAgentPoolProfile {
name: 'Number'
}
},
storageProfile: {
required: false,
readOnly: true,
serializedName: 'storageProfile',
type: {
name: 'String'
}
},
vnetSubnetID: {
required: false,
serializedName: 'vnetSubnetID',
Expand All @@ -166,6 +161,35 @@ 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',
defaultValue: 'VirtualMachineScaleSets',
type: {
name: 'String'
}
}
}
}
Expand Down
72 changes: 0 additions & 72 deletions lib/services/containerservicesManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1599,78 +1599,6 @@ export interface ManagedClusters {
getUpgradeProfile(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedClusterUpgradeProfile>): void;


/**
* @summary Gets an access profile of a managed cluster.
*
* Gets the accessProfile for the specified role name of 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 {string} roleName The name of the role for managed cluster
* accessProfile 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<ManagedClusterAccessProfile>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
getAccessProfileWithHttpOperationResponse(resourceGroupName: string, resourceName: string, roleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ManagedClusterAccessProfile>>;

/**
* @summary Gets an access profile of a managed cluster.
*
* Gets the accessProfile for the specified role name of 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 {string} roleName The name of the role for managed cluster
* accessProfile resource.
*
* @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 {ManagedClusterAccessProfile} - 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.
*
* {ManagedClusterAccessProfile} [result] - The deserialized result object if an error did not occur.
* See {@link ManagedClusterAccessProfile} 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.
*/
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ManagedClusterAccessProfile>;
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, callback: ServiceCallback<models.ManagedClusterAccessProfile>): void;
getAccessProfile(resourceGroupName: string, resourceName: string, roleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ManagedClusterAccessProfile>): void;


/**
* @summary Gets clusteradmin credential of a managed cluster.
*
Expand Down
Loading