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
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
14 changes: 7 additions & 7 deletions lib/services/computeManagement2/lib/models/dataDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class DataDisk {
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {string} createOption Specifies how the virtual machine should be
* created.<br><br> Possible values are:<br><br> **Attach** This value is
* used when you are using a specialized disk to create the virtual
* machine.<br><br> **FromImage** This value is used when you are using an
* image to create the virtual machine. If you are using a platform image,
* you also use the imageReference element described above. If you are using
* a marketplace image, you also use the plan element previously described.
* Possible values include: 'FromImage', 'Empty', 'Attach'
* created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value
* is used when you are using a specialized disk to create the virtual
* machine.<br><br> **FromImage** \u2013 This value is used when you are
* using an image to create the virtual machine. If you are using a platform
* image, you also use the imageReference element described above. If you are
* using a marketplace image, you also use the plan element previously
* described. Possible values include: 'FromImage', 'Empty', 'Attach'
* @member {number} [diskSizeGB] Specifies the size of an empty data disk in
* 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
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;
123 changes: 123 additions & 0 deletions lib/services/computeManagement2/lib/models/gallery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/*
* 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';

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

/**
* Specifies information about the 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 {object} [identifier]
* @member {string} [identifier.uniqueName] The unique name of the gallery
* @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',
* 'Migrating'
*/
constructor() {
super();
}

/**
* Defines the metadata of Gallery
*
* @returns {object} metadata of Gallery
*
*/
mapper() {
return {
required: false,
serializedName: 'Gallery',
type: {
name: 'Composite',
className: 'Gallery',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
description: {
required: false,
serializedName: 'properties.description',
type: {
name: 'String'
}
},
identifier: {
required: false,
serializedName: 'properties.identifier',
type: {
name: 'Composite',
className: 'GalleryIdentifier'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = Gallery;
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* 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';

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 {object} [source.managedImage]
* @member {string} [source.managedImage.id] The managed artifact id.
*/
constructor() {
}

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

module.exports = GalleryArtifactPublishingProfileBase;
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* 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';

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

/**
* The source of the gallery artifact.
*
*/
class GalleryArtifactSource {
/**
* Create a GalleryArtifactSource.
* @member {object} [managedImage]
* @member {string} [managedImage.id] The managed artifact id.
*/
constructor() {
}

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

module.exports = GalleryArtifactSource;
Loading