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

[AutoPR compute/resource-manager] Swagger change for adding status to BootDiagnosticsInstanceView #3671

Merged
merged 4 commits into from
Sep 25, 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
5 changes: 2 additions & 3 deletions lib/services/computeManagement2/lib/models/bootDiagnostics.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@

/**
* Boot Diagnostics is a debugging feature which allows you to view Console
* Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual
* Machines, you can easily view the output of your console log. <br><br> For
* both Windows and Linux virtual machines, Azure also enables you to see a
* Output and Screenshot to diagnose VM status. <br><br> You can easily view
* the output of your console log. <br><br> Azure also enables you to see a
* screenshot of the VM from the hypervisor.
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ class BootDiagnosticsInstanceView {
* URI.
* @member {string} [serialConsoleLogBlobUri] The Linux serial console log
* blob Uri.
* @member {object} [status] The boot diagnostics status information for the
* VM. <br><br> NOTE: It will be set only if there are errors encountered in
* enabling boot diagnostics.
* @member {string} [status.code] The status code.
* @member {string} [status.level] The level code. Possible values include:
* 'Info', 'Warning', 'Error'
* @member {string} [status.displayStatus] The short localizable label for
* the status.
* @member {string} [status.message] The detailed status message, including
* for alerts and error messages.
* @member {date} [status.time] The time of the status.
*/
constructor() {
}
Expand All @@ -41,17 +52,28 @@ class BootDiagnosticsInstanceView {
modelProperties: {
consoleScreenshotBlobUri: {
required: false,
readOnly: true,
serializedName: 'consoleScreenshotBlobUri',
type: {
name: 'String'
}
},
serialConsoleLogBlobUri: {
required: false,
readOnly: true,
serializedName: 'serialConsoleLogBlobUri',
type: {
name: 'String'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'Composite',
className: 'InstanceViewStatus'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ class DiagnosticsProfile {
* Create a DiagnosticsProfile.
* @member {object} [bootDiagnostics] Boot Diagnostics is a debugging feature
* which allows you to view Console Output and Screenshot to diagnose VM
* status. <br><br> For Linux Virtual Machines, you can easily view the
* output of your console log. <br><br> For both Windows and Linux virtual
* machines, Azure also enables you to see a screenshot of the VM from the
* status. <br><br> You can easily view the output of your console log.
* <br><br> Azure also enables you to see a screenshot of the VM from the
* hypervisor.
* @member {boolean} [bootDiagnostics.enabled] Whether boot diagnostics
* should be enabled on the Virtual Machine.
Expand Down
55 changes: 55 additions & 0 deletions lib/services/computeManagement2/lib/models/diffDiskSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* 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 parameters of differencing disk settings that can be be
* specified for operating system disk. <br><br> NOTE: The differencing disk
* settings can only be specified for managed disk.
*
*/
class DiffDiskSettings {
/**
* Create a DiffDiskSettings.
* @member {string} [option] Specifies the differencing disk settings for
* operating system disk. Possible values include: 'Local'
*/
constructor() {
}

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

module.exports = DiffDiskSettings;
213 changes: 169 additions & 44 deletions lib/services/computeManagement2/lib/models/index.d.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/services/computeManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports.KeyVaultSecretReference = require('./keyVaultSecretReference');
exports.KeyVaultKeyReference = require('./keyVaultKeyReference');
exports.DiskEncryptionSettings = require('./diskEncryptionSettings');
exports.VirtualHardDisk = require('./virtualHardDisk');
exports.DiffDiskSettings = require('./diffDiskSettings');
exports.ManagedDiskParameters = require('./managedDiskParameters');
exports.OSDisk = require('./oSDisk');
exports.DataDisk = require('./dataDisk');
Expand Down
12 changes: 12 additions & 0 deletions lib/services/computeManagement2/lib/models/oSDisk.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class OSDisk {
* 'ReadWrite'
* @member {boolean} [writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {string} createOption Specifies how the virtual machine should be
* 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
Expand Down Expand Up @@ -147,6 +151,14 @@ class OSDisk {
name: 'Boolean'
}
},
diffDiskSettings: {
required: false,
serializedName: 'diffDiskSettings',
type: {
name: 'Composite',
className: 'DiffDiskSettings'
}
},
createOption: {
required: true,
serializedName: 'createOption',
Expand Down
5 changes: 5 additions & 0 deletions lib/services/computeManagement2/lib/models/storageProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class StorageProfile {
* 'ReadOnly', 'ReadWrite'
* @member {boolean} [osDisk.writeAcceleratorEnabled] Specifies whether
* writeAccelerator should be enabled or disabled on the disk.
* @member {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the
* differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [osDisk.createOption] Specifies how the virtual machine
* should be created.<br><br> Possible values are:<br><br> **Attach** \u2013
* This value is used when you are using a specialized disk to create the
Expand Down
29 changes: 23 additions & 6 deletions lib/services/computeManagement2/lib/models/virtualMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ class VirtualMachine extends models['Resource'] {
* @member {boolean} [storageProfile.osDisk.writeAcceleratorEnabled]
* Specifies whether writeAccelerator should be enabled or disabled on the
* disk.
* @member {object} [storageProfile.osDisk.diffDiskSettings] Specifies the
* differencing Disk Settings for the operating system disk used by the
* virtual machine.
* @member {string} [storageProfile.osDisk.diffDiskSettings.option] Specifies
* the differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {string} [storageProfile.osDisk.createOption] Specifies how the
* virtual machine should be created.<br><br> Possible values are:<br><br>
* **Attach** \u2013 This value is used when you are using a specialized disk
Expand Down Expand Up @@ -300,9 +306,8 @@ class VirtualMachine extends models['Resource'] {
* settings state. <br><br>Minimum api-version: 2015-06-15.
* @member {object} [diagnosticsProfile.bootDiagnostics] Boot Diagnostics is
* a debugging feature which allows you to view Console Output and Screenshot
* to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
* view the output of your console log. <br><br> For both Windows and Linux
* virtual machines, Azure also enables you to see a screenshot of the VM
* to diagnose VM status. <br><br> You can easily view the output of your
* console log. <br><br> Azure also enables you to see a screenshot of the VM
* from the hypervisor.
* @member {boolean} [diagnosticsProfile.bootDiagnostics.enabled] Whether
* boot diagnostics should be enabled on the Virtual Machine.
Expand Down Expand Up @@ -371,14 +376,26 @@ class VirtualMachine extends models['Resource'] {
* @member {array} [instanceView.extensions] The extensions information.
* @member {object} [instanceView.bootDiagnostics] Boot Diagnostics is a
* debugging feature which allows you to view Console Output and Screenshot
* to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
* view the output of your console log. <br><br> For both Windows and Linux
* virtual machines, Azure also enables you to see a screenshot of the VM
* to diagnose VM status. <br><br> You can easily view the output of your
* console log. <br><br> Azure also enables you to see a screenshot of the VM
* from the hypervisor.
* @member {string} [instanceView.bootDiagnostics.consoleScreenshotBlobUri]
* The console screenshot blob URI.
* @member {string} [instanceView.bootDiagnostics.serialConsoleLogBlobUri]
* The Linux serial console log blob Uri.
* @member {object} [instanceView.bootDiagnostics.status] The boot
* diagnostics status information for the VM. <br><br> NOTE: It will be set
* only if there are errors encountered in enabling boot diagnostics.
* @member {string} [instanceView.bootDiagnostics.status.code] The status
* code.
* @member {string} [instanceView.bootDiagnostics.status.level] The level
* code. Possible values include: 'Info', 'Warning', 'Error'
* @member {string} [instanceView.bootDiagnostics.status.displayStatus] The
* short localizable label for the status.
* @member {string} [instanceView.bootDiagnostics.status.message] The
* detailed status message, including for alerts and error messages.
* @member {date} [instanceView.bootDiagnostics.status.time] The time of the
* status.
* @member {array} [instanceView.statuses] The resource status information.
* @member {string} [licenseType] Specifies that the image or disk that is
* being used was licensed on-premises. This element is only used for images
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,24 @@ class VirtualMachineInstanceView {
* @member {array} [extensions] The extensions information.
* @member {object} [bootDiagnostics] Boot Diagnostics is a debugging feature
* which allows you to view Console Output and Screenshot to diagnose VM
* status. <br><br> For Linux Virtual Machines, you can easily view the
* output of your console log. <br><br> For both Windows and Linux virtual
* machines, Azure also enables you to see a screenshot of the VM from the
* status. <br><br> You can easily view the output of your console log.
* <br><br> Azure also enables you to see a screenshot of the VM from the
* hypervisor.
* @member {string} [bootDiagnostics.consoleScreenshotBlobUri] The console
* screenshot blob URI.
* @member {string} [bootDiagnostics.serialConsoleLogBlobUri] The Linux
* serial console log blob Uri.
* @member {object} [bootDiagnostics.status] The boot diagnostics status
* information for the VM. <br><br> NOTE: It will be set only if there are
* errors encountered in enabling boot diagnostics.
* @member {string} [bootDiagnostics.status.code] The status code.
* @member {string} [bootDiagnostics.status.level] The level code. Possible
* values include: 'Info', 'Warning', 'Error'
* @member {string} [bootDiagnostics.status.displayStatus] The short
* localizable label for the status.
* @member {string} [bootDiagnostics.status.message] The detailed status
* message, including for alerts and error messages.
* @member {date} [bootDiagnostics.status.time] The time of the status.
* @member {array} [statuses] The resource status information.
*/
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,14 @@ class VirtualMachineScaleSet extends models['Resource'] {
* 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 {object}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings] Specifies
* the differencing Disk Settings for the operating system disk used by the
* virtual machine scale set.
* @member {string}
* [virtualMachineProfile.storageProfile.osDisk.diffDiskSettings.option]
* Specifies the differencing disk settings for operating system disk.
* Possible values include: 'Local'
* @member {number} [virtualMachineProfile.storageProfile.osDisk.diskSizeGB]
* Specifies the size of the operating system disk in gigabytes. This element
* can be used to overwrite the size of the disk in a virtual machine image.
Expand Down Expand Up @@ -292,9 +300,8 @@ class VirtualMachineScaleSet extends models['Resource'] {
* @member {object}
* [virtualMachineProfile.diagnosticsProfile.bootDiagnostics] Boot
* Diagnostics is a debugging feature which allows you to view Console Output
* and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines,
* you can easily view the output of your console log. <br><br> For both
* Windows and Linux virtual machines, Azure also enables you to see a
* and Screenshot to diagnose VM status. <br><br> You can easily view the
* output of your console log. <br><br> Azure also enables you to see a
* screenshot of the VM from the hypervisor.
* @member {boolean}
* [virtualMachineProfile.diagnosticsProfile.bootDiagnostics.enabled] Whether
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class VirtualMachineScaleSetOSDisk {
* 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 {object} [diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine scale
* set.
* @member {string} [diffDiskSettings.option] Specifies the differencing disk
* settings for operating system disk. Possible values include: 'Local'
* @member {number} [diskSizeGB] Specifies the size of the operating system
* disk in gigabytes. This element can be used to overwrite the size of the
* disk in a virtual machine image. <br><br> This value cannot be larger than
Expand Down Expand Up @@ -97,6 +102,14 @@ class VirtualMachineScaleSetOSDisk {
name: 'String'
}
},
diffDiskSettings: {
required: false,
serializedName: 'diffDiskSettings',
type: {
name: 'Composite',
className: 'DiffDiskSettings'
}
},
diskSizeGB: {
required: false,
serializedName: 'diskSizeGB',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class VirtualMachineScaleSetStorageProfile {
* 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 {object} [osDisk.diffDiskSettings] Specifies the differencing Disk
* Settings for the operating system disk used by the virtual machine scale
* set.
* @member {string} [osDisk.diffDiskSettings.option] Specifies the
* differencing disk settings for operating system disk. Possible values
* include: 'Local'
* @member {number} [osDisk.diskSizeGB] Specifies the size of the operating
* system disk in gigabytes. This element can be used to overwrite the size
* of the disk in a virtual machine image. <br><br> This value cannot be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ class VirtualMachineScaleSetUpdate extends models['UpdateResource'] {
* @member {object}
* [virtualMachineProfile.diagnosticsProfile.bootDiagnostics] Boot
* Diagnostics is a debugging feature which allows you to view Console Output
* and Screenshot to diagnose VM status. <br><br> For Linux Virtual Machines,
* you can easily view the output of your console log. <br><br> For both
* Windows and Linux virtual machines, Azure also enables you to see a
* and Screenshot to diagnose VM status. <br><br> You can easily view the
* output of your console log. <br><br> Azure also enables you to see a
* screenshot of the VM from the hypervisor.
* @member {boolean}
* [virtualMachineProfile.diagnosticsProfile.bootDiagnostics.enabled] Whether
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ class VirtualMachineScaleSetUpdateVMProfile {
* diagnostics profile.
* @member {object} [diagnosticsProfile.bootDiagnostics] Boot Diagnostics is
* a debugging feature which allows you to view Console Output and Screenshot
* to diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
* view the output of your console log. <br><br> For both Windows and Linux
* virtual machines, Azure also enables you to see a screenshot of the VM
* to diagnose VM status. <br><br> You can easily view the output of your
* console log. <br><br> Azure also enables you to see a screenshot of the VM
* from the hypervisor.
* @member {boolean} [diagnosticsProfile.bootDiagnostics.enabled] Whether
* boot diagnostics should be enabled on the Virtual Machine.
Expand Down
Loading