UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

179 lines (173 loc) 6.15 kB
/* * 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 instance view of a virtual machine. * */ class VirtualMachineInstanceView { /** * Create a VirtualMachineInstanceView. * @member {number} [platformUpdateDomain] Specifies the update domain of the * virtual machine. * @member {number} [platformFaultDomain] Specifies the fault domain of the * virtual machine. * @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 {object} [maintenanceRedeployStatus] The Maintenance Operation * status on the virtual machine. * @member {boolean} * [maintenanceRedeployStatus.isCustomerInitiatedMaintenanceAllowed] True, if * customer is allowed to perform Maintenance. * @member {date} [maintenanceRedeployStatus.preMaintenanceWindowStartTime] * Start Time for the Pre Maintenance Window. * @member {date} [maintenanceRedeployStatus.preMaintenanceWindowEndTime] End * Time for the Pre Maintenance Window. * @member {date} [maintenanceRedeployStatus.maintenanceWindowStartTime] * Start Time for the Maintenance Window. * @member {date} [maintenanceRedeployStatus.maintenanceWindowEndTime] End * Time for the Maintenance Window. * @member {string} [maintenanceRedeployStatus.lastOperationResultCode] The * Last Maintenance Operation Result Code. Possible values include: 'None', * 'RetryLater', 'MaintenanceAborted', 'MaintenanceCompleted' * @member {string} [maintenanceRedeployStatus.lastOperationMessage] Message * returned for the last Maintenance Operation. * @member {array} [disks] The virtual machine disk information. * @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 * 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. */ constructor() { } /** * Defines the metadata of VirtualMachineInstanceView * * @returns {object} metadata of VirtualMachineInstanceView * */ mapper() { return { required: false, serializedName: 'VirtualMachineInstanceView', type: { name: 'Composite', className: 'VirtualMachineInstanceView', 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' } }, maintenanceRedeployStatus: { required: false, serializedName: 'maintenanceRedeployStatus', type: { name: 'Composite', className: 'MaintenanceRedeployStatus' } }, 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' } } } }, 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' } } } } } } }; } } module.exports = VirtualMachineInstanceView;