azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
180 lines (174 loc) • 6.02 kB
JavaScript
/*
* 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.
*/
;
const models = require('./index');
/**
* The instance view of a virtual machine scale set VM.
*
*/
class VirtualMachineScaleSetVMInstanceView {
/**
* Create a VirtualMachineScaleSetVMInstanceView.
* @member {number} [platformUpdateDomain] The Update Domain count.
* @member {number} [platformFaultDomain] The Fault Domain count.
* @member {string} [rdpThumbPrint] The Remote desktop certificate
* thumbprint.
* @member {object} [vmAgent] The VM Agent running on the virtual machine.
* @member {string} [vmAgent.vmAgentVersion] The VM Agent full version.
* @member {array} [vmAgent.extensionHandlers] The virtual machine extension
* handler instance view.
* @member {array} [vmAgent.statuses] The resource status information.
* @member {array} [disks] The disks information.
* @member {array} [extensions] The extensions information.
* @member {object} [vmHealth] The health status for the VM.
* @member {object} [vmHealth.status] The health status information for the
* VM.
* @member {string} [vmHealth.status.code] The status code.
* @member {string} [vmHealth.status.level] The level code. Possible values
* include: 'Info', 'Warning', 'Error'
* @member {string} [vmHealth.status.displayStatus] The short localizable
* label for the status.
* @member {string} [vmHealth.status.message] The detailed status message,
* including for alerts and error messages.
* @member {date} [vmHealth.status.time] The time of the status.
* @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
* hypervisor.
* @member {string} [bootDiagnostics.consoleScreenshotBlobUri] The console
* screenshot blob URI.
* @member {string} [bootDiagnostics.serialConsoleLogBlobUri] The Linux
* serial console log blob Uri.
* @member {array} [statuses] The resource status information.
* @member {string} [placementGroupId] The placement group in which the VM is
* running. If the VM is deallocated it will not have a placementGroupId.
*/
constructor() {
}
/**
* Defines the metadata of VirtualMachineScaleSetVMInstanceView
*
* @returns {object} metadata of VirtualMachineScaleSetVMInstanceView
*
*/
mapper() {
return {
required: false,
serializedName: 'VirtualMachineScaleSetVMInstanceView',
type: {
name: 'Composite',
className: 'VirtualMachineScaleSetVMInstanceView',
modelProperties: {
platformUpdateDomain: {
required: false,
serializedName: 'platformUpdateDomain',
type: {
name: 'Number'
}
},
platformFaultDomain: {
required: false,
serializedName: 'platformFaultDomain',
type: {
name: 'Number'
}
},
rdpThumbPrint: {
required: false,
serializedName: 'rdpThumbPrint',
type: {
name: 'String'
}
},
vmAgent: {
required: false,
serializedName: 'vmAgent',
type: {
name: 'Composite',
className: 'VirtualMachineAgentInstanceView'
}
},
disks: {
required: false,
serializedName: 'disks',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DiskInstanceViewElementType',
type: {
name: 'Composite',
className: 'DiskInstanceView'
}
}
}
},
extensions: {
required: false,
serializedName: 'extensions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'VirtualMachineExtensionInstanceViewElementType',
type: {
name: 'Composite',
className: 'VirtualMachineExtensionInstanceView'
}
}
}
},
vmHealth: {
required: false,
readOnly: true,
serializedName: 'vmHealth',
type: {
name: 'Composite',
className: 'VirtualMachineHealthStatus'
}
},
bootDiagnostics: {
required: false,
serializedName: 'bootDiagnostics',
type: {
name: 'Composite',
className: 'BootDiagnosticsInstanceView'
}
},
statuses: {
required: false,
serializedName: 'statuses',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'InstanceViewStatusElementType',
type: {
name: 'Composite',
className: 'InstanceViewStatus'
}
}
}
},
placementGroupId: {
required: false,
serializedName: 'placementGroupId',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = VirtualMachineScaleSetVMInstanceView;