Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2710 from Azure/restapi_auto_compute/resource-man…
Browse files Browse the repository at this point in the history
…ager

[AutoPR] compute/resource-manager
  • Loading branch information
Dan Schulte authored Aug 29, 2018
2 parents 4b34934 + 011620d commit facaa4f
Show file tree
Hide file tree
Showing 155 changed files with 23,123 additions and 7,174 deletions.
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
2 changes: 1 addition & 1 deletion lib/services/computeManagement2/lib/models/accessUri.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AccessUri {
accessSAS: {
required: false,
readOnly: true,
serializedName: 'properties.output.accessSAS',
serializedName: 'accessSAS',
type: {
name: 'String'
}
Expand Down
2 changes: 0 additions & 2 deletions lib/services/computeManagement2/lib/models/apiError.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Api error.
*
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Class representing a ContainerServiceDiagnosticsProfile.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Profile for Linux VMs in the container service cluster.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* SSH configuration for Linux-based VMs running on Azure.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/computeManagement2/lib/models/creationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Data used when creating a disk.
*
Expand Down
7 changes: 3 additions & 4 deletions lib/services/computeManagement2/lib/models/dataDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Describes a data disk.
*
Expand Down Expand Up @@ -50,8 +48,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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Specifies the boot diagnostic settings state. <br><br>Minimum api-version:
* 2015-06-15.
Expand Down
59 changes: 59 additions & 0 deletions lib/services/computeManagement2/lib/models/disallowed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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';

/**
* Describes the disallowed disk types.
*
*/
class Disallowed {
/**
* Create a Disallowed.
* @member {array} [diskTypes] A list of disk types.
*/
constructor() {
}

/**
* Defines the metadata of Disallowed
*
* @returns {object} metadata of Disallowed
*
*/
mapper() {
return {
required: false,
serializedName: 'Disallowed',
type: {
name: 'Composite',
className: 'Disallowed',
modelProperties: {
diskTypes: {
required: false,
serializedName: 'diskTypes',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = Disallowed;
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Describes a Encryption Settings for a Disk
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The instance view of the disk.
*
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
Loading

0 comments on commit facaa4f

Please sign in to comment.