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

[AutoPR] compute/resource-manager #3669

Merged
6 commits merged into from
Sep 21, 2018
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default class ComputeManagementClient extends AzureServiceClient {
resourceSkus: operations.ResourceSkus;
disks: operations.Disks;
snapshots: operations.Snapshots;
galleries: operations.Galleries;
galleryImages: operations.GalleryImages;
galleryImageVersions: operations.GalleryImageVersions;
containerServices: operations.ContainerServices;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class ComputeManagementClient extends ServiceClient {
this.resourceSkus = new operations.ResourceSkus(this);
this.disks = new operations.Disks(this);
this.snapshots = new operations.Snapshots(this);
this.galleries = new operations.Galleries(this);
this.galleryImages = new operations.GalleryImages(this);
this.galleryImageVersions = new operations.GalleryImageVersions(this);
this.containerServices = new operations.ContainerServices(this);
this.models = models;
msRest.addSerializationMixin(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* 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';

/**
* Enables or disables a capability on the virtual machine or virtual machine
* scale set.
*
*/
class AdditionalCapabilities {
/**
* Create a AdditionalCapabilities.
* @member {boolean} [ultraSSDEnabled] The flag that enables or disables a
* capability to have one or more managed data disks with UltraSSD_LRS
* storage account type on the VM or VMSS. Managed disks with storage account
* type UltraSSD_LRS can be added to a virtual machine or virtual machine
* scale set only if this property is enabled.
*/
constructor() {
}

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

module.exports = AdditionalCapabilities;
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* 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 AutomaticOSUpgradePolicy {
/**
* Create a AutomaticOSUpgradePolicy.
* @member {boolean} [enableAutomaticOSUpgrade] Whether OS upgrades should
* automatically be applied to scale set instances in a rolling fashion when
* a newer version of the image becomes available. Default value is false.
* @member {boolean} [disableAutomaticRollback] Whether OS image rollback
* feature should be disabled. Default value is false.
*/
constructor() {
}

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

module.exports = AutomaticOSUpgradePolicy;
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ class AvailabilitySet extends models['Resource'] {
* @member {array} [virtualMachines] A list of references to all virtual
* machines in the availability set.
* @member {array} [statuses] The resource status information.
* @member {object} [sku] Sku of the availability set
* @member {object} [sku] Sku of the availability set, only name is required
* to be set. See AvailabilitySetSkuTypes for possible set of values. Use
* 'Aligned' for virtual machines with managed disks and 'Classic' for
* virtual machines with unmanaged disks. Default value is 'Classic'.
* @member {string} [sku.name] The sku name.
* @member {string} [sku.tier] Specifies the tier of virtual machines in a
* scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br
Expand Down
6 changes: 3 additions & 3 deletions lib/services/computeManagement2/lib/models/dataDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +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,
* Premium_LRS, and StandardSSD_LRS. Possible values include: 'Standard_LRS',
* 'Premium_LRS', 'StandardSSD_LRS'
* account type for the managed disk. NOTE: UltraSSD_LRS can only be used
* with data disks, it cannot be used with OS Disk. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
*/
constructor() {
}
Expand Down
22 changes: 21 additions & 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', 'StandardSSD_LRS'
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_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 Expand Up @@ -78,6 +78,12 @@ class Disk extends models['Resource'] {
* @member {string} [encryptionSettings.keyEncryptionKey.keyUrl] Url pointing
* to a key or secret in KeyVault
* @member {string} [provisioningState] The disk provisioning state.
* @member {number} [diskIOPSReadWrite] The number of IOPS allowed for this
* disk; only settable for UltraSSD disks. One operation can transfer between
* 4k and 256k bytes.
* @member {number} [diskMBpsReadWrite] The bandwidth allowed for this disk;
* only settable for UltraSSD disks. MBps means millions of bytes per second
* - MB here uses the ISO notation, of powers of 10.
*/
constructor() {
super();
Expand Down Expand Up @@ -218,6 +224,20 @@ class Disk extends models['Resource'] {
type: {
name: 'String'
}
},
diskIOPSReadWrite: {
required: false,
serializedName: 'properties.diskIOPSReadWrite',
type: {
name: 'Number'
}
},
diskMBpsReadWrite: {
required: false,
serializedName: 'properties.diskMBpsReadWrite',
type: {
name: 'Number'
}
}
}
}
Expand Down
5 changes: 3 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,15 @@
'use strict';

/**
* The disks sku name. Can be Standard_LRS, Premium_LRS, or StandardSSD_LRS.
* The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or
* UltraSSD_LRS.
*
*/
class DiskSku {
/**
* Create a DiskSku.
* @member {string} [name] The sku name. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
* @member {string} [tier] The sku tier. Default value: 'Standard' .
*/
constructor() {
Expand Down
22 changes: 21 additions & 1 deletion lib/services/computeManagement2/lib/models/diskUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@ class DiskUpdate {
* Resource Id
* @member {string} [encryptionSettings.keyEncryptionKey.keyUrl] Url pointing
* to a key or secret in KeyVault
* @member {number} [diskIOPSReadWrite] The number of IOPS allowed for this
* disk; only settable for UltraSSD disks. One operation can transfer between
* 4k and 256k bytes.
* @member {number} [diskMBpsReadWrite] The bandwidth allowed for this disk;
* only settable for UltraSSD disks. MBps means millions of bytes per second
* - MB here uses the ISO notation, of powers of 10.
* @member {object} [tags] Resource tags
* @member {object} [sku]
* @member {string} [sku.name] The sku name. Possible values include:
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS'
* 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
* @member {string} [sku.tier] The sku tier.
*/
constructor() {
Expand Down Expand Up @@ -93,6 +99,20 @@ class DiskUpdate {
className: 'EncryptionSettings'
}
},
diskIOPSReadWrite: {
required: false,
serializedName: 'properties.diskIOPSReadWrite',
type: {
name: 'Number'
}
},
diskMBpsReadWrite: {
required: false,
serializedName: 'properties.diskMBpsReadWrite',
type: {
name: 'Number'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand Down
9 changes: 6 additions & 3 deletions lib/services/computeManagement2/lib/models/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@
const models = require('./index');

/**
* Specifies information about the gallery that you want to create or update.
* Specifies information about the Shared Image Gallery that you want to create
* or update.
*
* @extends models['Resource']
*/
class Gallery extends models['Resource'] {
/**
* Create a Gallery.
* @member {string} [description] The description of this gallery resource.
* @member {string} [description] The description of this Shared Image
* Gallery resource. This property is updateable.
* @member {object} [identifier]
* @member {string} [identifier.uniqueName] The unique name of the gallery
* @member {string} [identifier.uniqueName] The unique name of the Shared
* Image Gallery. This name is generated automatically by Azure.
* @member {string} [provisioningState] The current state of the gallery. The
* provisioning state, which only appears in the response. Possible values
* include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@

'use strict';

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

/**
* Describes the basic gallery artifact publishing profile.
*
*/
class GalleryArtifactPublishingProfileBase {
/**
* Create a GalleryArtifactPublishingProfileBase.
* @member {array} [regions] The regions where the artifact is going to be
* published.
* @member {object} [source]
* @member {array} [targetRegions] The target regions where the Image Version
* is going to be replicated to. This property is updateable.
* @member {object} source
* @member {object} [source.managedImage]
* @member {string} [source.managedImage.id] The managed artifact id.
*/
Expand All @@ -42,22 +40,23 @@ class GalleryArtifactPublishingProfileBase {
name: 'Composite',
className: 'GalleryArtifactPublishingProfileBase',
modelProperties: {
regions: {
targetRegions: {
required: false,
serializedName: 'regions',
serializedName: 'targetRegions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
serializedName: 'TargetRegionElementType',
type: {
name: 'String'
name: 'Composite',
className: 'TargetRegion'
}
}
}
},
source: {
required: false,
required: true,
serializedName: 'source',
type: {
name: 'Composite',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@

'use strict';

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

/**
* The source of the gallery artifact.
* The source image from which the Image Version is going to be created.
*
*/
class GalleryArtifactSource {
/**
* Create a GalleryArtifactSource.
* @member {object} [managedImage]
* @member {object} managedImage
* @member {string} [managedImage.id] The managed artifact id.
*/
constructor() {
Expand All @@ -40,7 +38,7 @@ class GalleryArtifactSource {
className: 'GalleryArtifactSource',
modelProperties: {
managedImage: {
required: false,
required: true,
serializedName: 'managedImage',
type: {
name: 'Composite',
Expand Down
Loading