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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default class ComputeManagementClient extends AzureServiceClient {
*
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {string} resourceGroupName - The name of the resource group.
*
* @param {string} diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
Expand All @@ -41,12 +45,16 @@ export default class ComputeManagementClient extends AzureServiceClient {
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, resourceGroupName: string, diskName: string, baseUri?: string, options?: AzureServiceClientOptions);

credentials: ServiceClientCredentials;

subscriptionId: string;

resourceGroupName: string;

diskName: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;
Expand Down
12 changes: 11 additions & 1 deletion lib/services/computeManagement2/lib/computeManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ComputeManagementClient extends ServiceClient {
* Create a ComputeManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} resourceGroupName - The name of the resource group.
* @param {string} diskName - The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
Expand All @@ -38,13 +40,19 @@ class ComputeManagementClient extends ServiceClient {
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
constructor(credentials, subscriptionId, resourceGroupName, diskName, baseUri, options) {
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId === null || subscriptionId === undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}
if (resourceGroupName === null || resourceGroupName === undefined) {
throw new Error('\'resourceGroupName\' cannot be null.');
}
if (diskName === null || diskName === undefined) {
throw new Error('\'diskName\' cannot be null.');
}

if (!options) options = {};

Expand All @@ -59,6 +67,8 @@ class ComputeManagementClient extends ServiceClient {
}
this.credentials = credentials;
this.subscriptionId = subscriptionId;
this.resourceGroupName = resourceGroupName;
this.diskName = diskName;

let packageInfo = this.getPackageJsonInfo(__dirname);
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ const models = require('./index');
class ContainerService extends models['Resource'] {
/**
* Create a ContainerService.
* @member {string} [provisioningState] the current deployment or
* provisioning state, which only appears in the response.
* @member {object} [orchestratorProfile] Properties of the orchestrator.
* @member {string} [provisioningState]
* @member {object} [orchestratorProfile]
* @member {string} [orchestratorProfile.orchestratorType] The orchestrator
* to use to manage container service cluster resources. Valid values are
* Swarm, DCOS, and Custom. Possible values include: 'Swarm', 'DCOS',
Expand Down Expand Up @@ -61,8 +60,7 @@ class ContainerService extends models['Resource'] {
* container service VM diagnostic agent.
* @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.
* @member {string} [diagnosticsProfile.vmDiagnostics.storageUri]
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class ContainerServiceDiagnosticsProfile {
* diagnostic agent.
* @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.
* @member {string} [vmDiagnostics.storageUri]
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
class ContainerServiceListResult extends Array {
/**
* Create a ContainerServiceListResult.
* @member {string} [nextLink] The URL to get the next set of container
* service results.
* @member {string} [nextLink]
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class ContainerServiceVMDiagnostics {
* Create a ContainerServiceVMDiagnostics.
* @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.
* @member {string} [storageUri]
*/
constructor() {
}
Expand Down
19 changes: 7 additions & 12 deletions lib/services/computeManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3146,7 +3146,7 @@ export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings {
* Describes a virtual machine scale set network profile's network
* configurations.
*
* @member {string} name The network configuration name.
* @member {uuid} name The network configuration name.
* @member {boolean} [primary] Specifies the primary network interface in case
* the virtual machine has more than 1 network interface.
* @member {boolean} [enableAcceleratedNetworking] Specifies whether the
Expand Down Expand Up @@ -6002,8 +6002,7 @@ export interface ContainerServiceLinuxProfile {
*
* @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.
* @member {string} [storageUri]
*/
export interface ContainerServiceVMDiagnostics {
enabled: boolean;
Expand All @@ -6018,8 +6017,7 @@ export interface ContainerServiceVMDiagnostics {
* diagnostic agent.
* @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.
* @member {string} [vmDiagnostics.storageUri]
*/
export interface ContainerServiceDiagnosticsProfile {
vmDiagnostics: ContainerServiceVMDiagnostics;
Expand All @@ -6031,9 +6029,8 @@ export interface ContainerServiceDiagnosticsProfile {
* @constructor
* Container service.
*
* @member {string} [provisioningState] the current deployment or provisioning
* state, which only appears in the response.
* @member {object} [orchestratorProfile] Properties of the orchestrator.
* @member {string} [provisioningState]
* @member {object} [orchestratorProfile]
* @member {string} [orchestratorProfile.orchestratorType] The orchestrator to
* use to manage container service cluster resources. Valid values are Swarm,
* DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom',
Expand Down Expand Up @@ -6071,8 +6068,7 @@ export interface ContainerServiceDiagnosticsProfile {
* container service VM diagnostic agent.
* @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.
* @member {string} [diagnosticsProfile.vmDiagnostics.storageUri]
*/
export interface ContainerService extends Resource {
readonly provisioningState?: string;
Expand Down Expand Up @@ -6299,8 +6295,7 @@ export interface SnapshotList extends Array<Snapshot> {
* @constructor
* The response from the List Container Services operation.
*
* @member {string} [nextLink] The URL to get the next set of container service
* results.
* @member {string} [nextLink]
*/
export interface ContainerServiceListResult extends Array<ContainerService> {
nextLink?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const models = require('./index');
class VirtualMachineScaleSetNetworkConfiguration extends models['SubResource'] {
/**
* Create a VirtualMachineScaleSetNetworkConfiguration.
* @member {string} name The network configuration name.
* @member {uuid} name The network configuration name.
* @member {boolean} [primary] Specifies the primary network interface in
* case the virtual machine has more than 1 network interface.
* @member {boolean} [enableAcceleratedNetworking] Specifies whether the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function _createOrUpdate(resourceGroupName, availabilitySetName, parameters, opt
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down Expand Up @@ -257,7 +257,7 @@ function _update(resourceGroupName, availabilitySetName, parameters, options, ca
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down Expand Up @@ -418,7 +418,7 @@ function _deleteMethod(resourceGroupName, availabilitySetName, options, callback
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down Expand Up @@ -561,7 +561,7 @@ function _get(resourceGroupName, availabilitySetName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down Expand Up @@ -703,7 +703,7 @@ function _list(resourceGroupName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down Expand Up @@ -844,7 +844,7 @@ function _listAvailableSizes(resourceGroupName, availabilitySetName, options, ca
if (!callback) {
throw new Error('callback cannot be null.');
}
let apiVersion = '2017-12-01';
let apiVersion = '2017-12-01-alphadummy';
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ function _list(options, callback) {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down Expand Up @@ -676,8 +675,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down Expand Up @@ -1445,8 +1443,7 @@ class ContainerServices {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down Expand Up @@ -1549,8 +1546,7 @@ class ContainerServices {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down Expand Up @@ -1965,8 +1961,7 @@ class ContainerServices {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down Expand Up @@ -2069,8 +2064,7 @@ class ContainerServices {
* @param {object} parameters Parameters supplied to the Create or Update a
* Container Service operation.
*
* @param {object} [parameters.orchestratorProfile] Properties of the
* orchestrator.
* @param {object} [parameters.orchestratorProfile]
*
* @param {string} parameters.orchestratorProfile.orchestratorType The
* orchestrator to use to manage container service cluster resources. Valid
Expand Down
Loading