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
42 changes: 21 additions & 21 deletions lib/services/computeManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default class ComputeManagementClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - 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.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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);
Expand All @@ -58,11 +58,11 @@ export default class ComputeManagementClient extends AzureServiceClient {
availabilitySets: operations.AvailabilitySets;
virtualMachineExtensionImages: operations.VirtualMachineExtensionImages;
virtualMachineExtensions: operations.VirtualMachineExtensions;
virtualMachines: operations.VirtualMachines;
virtualMachineImages: operations.VirtualMachineImages;
usageOperations: operations.UsageOperations;
virtualMachineSizes: operations.VirtualMachineSizes;
images: operations.Images;
virtualMachines: operations.VirtualMachines;
virtualMachineScaleSets: operations.VirtualMachineScaleSets;
virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions;
virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class ComputeManagementClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @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.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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) {
if (credentials === null || credentials === undefined) {
Expand Down Expand Up @@ -75,11 +75,11 @@ class ComputeManagementClient extends ServiceClient {
this.availabilitySets = new operations.AvailabilitySets(this);
this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this);
this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this);
this.virtualMachines = new operations.VirtualMachines(this);
this.virtualMachineImages = new operations.VirtualMachineImages(this);
this.usageOperations = new operations.UsageOperations(this);
this.virtualMachineSizes = new operations.VirtualMachineSizes(this);
this.images = new operations.Images(this);
this.virtualMachines = new operations.VirtualMachines(this);
this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this);
this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this);
this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this);
Expand Down
53 changes: 53 additions & 0 deletions lib/services/computeManagement2/lib/models/autoOSUpgradePolicy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The configuration parameters used for performing automatic OS upgrade.
*
*/
class AutoOSUpgradePolicy {
/**
* Create a AutoOSUpgradePolicy.
* @member {boolean} [disableAutoRollback] Whether OS image rollback feature
* should be disabled. Default value is false.
*/
constructor() {
}

/**
* Defines the metadata of AutoOSUpgradePolicy
*
* @returns {object} metadata of AutoOSUpgradePolicy
*
*/
mapper() {
return {
required: false,
serializedName: 'AutoOSUpgradePolicy',
type: {
name: 'Composite',
className: 'AutoOSUpgradePolicy',
modelProperties: {
disableAutoRollback: {
required: false,
serializedName: 'disableAutoRollback',
type: {
name: 'Boolean'
}
}
}
}
};
}
}

module.exports = AutoOSUpgradePolicy;
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
class AvailabilitySetListResult extends Array {
/**
* Create a AvailabilitySetListResult.
* @member {string} [nextLink] The URI to fetch the next page of
* AvailabilitySets. Call ListNext() with this URI to fetch the next page of
* AvailabilitySets.
*/
constructor() {
super();
Expand All @@ -36,7 +39,7 @@ class AvailabilitySetListResult extends Array {
className: 'AvailabilitySetListResult',
modelProperties: {
value: {
required: false,
required: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -49,6 +52,13 @@ class AvailabilitySetListResult extends Array {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ const models = require('./index');

/**
* Specifies information about the availability set that the virtual machine
* should be assigned to. Virtual machines specified in the same availability
* set are allocated to different nodes to maximize availability. For more
* information about availability sets, see [Manage the availability of virtual
* machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
* <br><br> For more information on Azure planned maintainance, see [Planned
* maintenance for virtual machines in
* Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
* <br><br> Currently, a VM can only be added to availability set at creation
* time. An existing VM cannot be added to an availability set.
* should be assigned to. Only tags may be updated.
*
* @extends models['UpdateResource']
*/
Expand Down
5 changes: 3 additions & 2 deletions lib/services/computeManagement2/lib/models/dataDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ class DataDisk {
* virtual machine image. <br><br> This value cannot be larger than 1023 GB
* @member {object} [managedDisk] The managed disk parameters.
* @member {string} [managedDisk.storageAccountType] Specifies the storage
* account type for the managed disk. Possible values are: Standard_LRS or
* Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'
* account type for the managed disk. Possible values are: Standard_LRS,
* Premium_LRS, and StandardSSD_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS', 'StandardSSD_LRS'
*/
constructor() {
}
Expand Down
2 changes: 1 addition & 1 deletion lib/services/computeManagement2/lib/models/disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Disk extends models['Resource'] {
* that has the disk attached.
* @member {object} [sku]
* @member {string} [sku.name] The sku name. Possible values include:
* 'Standard_LRS', 'Premium_LRS'
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* @member {string} [sku.tier] The sku tier.
* @member {array} [zones] The Logical zone list for Disk.
* @member {date} [timeCreated] The time when the disk was created.
Expand Down
4 changes: 2 additions & 2 deletions lib/services/computeManagement2/lib/models/diskSku.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
'use strict';

/**
* The disks sku name. Can be Standard_LRS or Premium_LRS.
* The disks sku name. Can be Standard_LRS, Premium_LRS, or StandardSSD_LRS.
*
*/
class DiskSku {
/**
* Create a DiskSku.
* @member {string} [name] The sku name. Possible values include:
* 'Standard_LRS', 'Premium_LRS'
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* @member {string} [tier] The sku tier. Default value: 'Standard' .
*/
constructor() {
Expand Down
53 changes: 28 additions & 25 deletions lib/services/computeManagement2/lib/models/diskUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ const models = require('./index');
/**
* Disk update resource.
*
* @extends models['ResourceUpdate']
*/
class DiskUpdate extends models['ResourceUpdate'] {
class DiskUpdate {
/**
* Create a DiskUpdate.
* @member {string} [osType] the Operating System type. Possible values
Expand Down Expand Up @@ -50,9 +49,13 @@ class DiskUpdate extends models['ResourceUpdate'] {
* Resource Id
* @member {string} [encryptionSettings.keyEncryptionKey.keyUrl] Url pointing
* to a key or secret in KeyVault
* @member {object} [tags] Resource tags
* @member {object} [sku]
* @member {string} [sku.name] The sku name. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* @member {string} [sku.tier] The sku tier.
*/
constructor() {
super();
}

/**
Expand All @@ -69,28 +72,6 @@ class DiskUpdate extends models['ResourceUpdate'] {
name: 'Composite',
className: 'DiskUpdate',
modelProperties: {
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
sku: {
required: false,
serializedName: 'sku',
type: {
name: 'Composite',
className: 'DiskSku'
}
},
osType: {
required: false,
serializedName: 'properties.osType',
Expand All @@ -113,6 +94,28 @@ class DiskUpdate extends models['ResourceUpdate'] {
name: 'Composite',
className: 'EncryptionSettings'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
sku: {
required: false,
serializedName: 'sku',
type: {
name: 'Composite',
className: 'DiskSku'
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/computeManagement2/lib/models/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class Image extends models['Resource'] {
* larger than 1023 GB
* @member {string} [storageProfile.osDisk.storageAccountType] Specifies the
* storage account type for the managed disk. Possible values are:
* Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS'
* Standard_LRS, Premium_LRS, and StandardSSD_LRS. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* @member {array} [storageProfile.dataDisks] Specifies the parameters that
* are used to add a data disk to a virtual machine. <br><br> For more
* information about disks, see [About disks and VHDs for Azure virtual
Expand Down
5 changes: 3 additions & 2 deletions lib/services/computeManagement2/lib/models/imageDataDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ class ImageDataDisk {
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image. <br><br> This value cannot be larger than 1023 GB
* @member {string} [storageAccountType] Specifies the storage account type
* for the managed disk. Possible values are: Standard_LRS or Premium_LRS.
* Possible values include: 'Standard_LRS', 'Premium_LRS'
* for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and
* StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
* 'StandardSSD_LRS'
*/
constructor() {
}
Expand Down
5 changes: 3 additions & 2 deletions lib/services/computeManagement2/lib/models/imageOSDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ class ImageOSDisk {
* gigabytes. This element can be used to overwrite the name of the disk in a
* virtual machine image. <br><br> This value cannot be larger than 1023 GB
* @member {string} [storageAccountType] Specifies the storage account type
* for the managed disk. Possible values are: Standard_LRS or Premium_LRS.
* Possible values include: 'Standard_LRS', 'Premium_LRS'
* for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and
* StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
* 'StandardSSD_LRS'
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ class ImageStorageProfile {
* disk in a virtual machine image. <br><br> This value cannot be larger than
* 1023 GB
* @member {string} [osDisk.storageAccountType] Specifies the storage account
* type for the managed disk. Possible values are: Standard_LRS or
* Premium_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS'
* type for the managed disk. Possible values are: Standard_LRS, Premium_LRS,
* and StandardSSD_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS', 'StandardSSD_LRS'
* @member {array} [dataDisks] Specifies the parameters that are used to add
* a data disk to a virtual machine. <br><br> For more information about
* disks, see [About disks and VHDs for Azure virtual
Expand Down
8 changes: 3 additions & 5 deletions lib/services/computeManagement2/lib/models/imageUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
const models = require('./index');

/**
* The source user image virtual hard disk. The virtual hard disk will be
* copied before being attached to the virtual machine. If SourceImage is
* provided, the destination virtual hard drive must not exist.
* The source user image virtual hard disk. Only tags may be updated.
*
* @extends models['UpdateResource']
*/
Expand Down Expand Up @@ -53,8 +51,8 @@ class ImageUpdate extends models['UpdateResource'] {
* larger than 1023 GB
* @member {string} [storageProfile.osDisk.storageAccountType] Specifies the
* storage account type for the managed disk. Possible values are:
* Standard_LRS or Premium_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS'
* Standard_LRS, Premium_LRS, and StandardSSD_LRS. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* @member {array} [storageProfile.dataDisks] Specifies the parameters that
* are used to add a data disk to a virtual machine. <br><br> For more
* information about disks, see [About disks and VHDs for Azure virtual
Expand Down
Loading