class Azure::Compute::Mgmt::V2020_12_01::Models::Image
The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
Attributes
extended_location[RW]
@return [ExtendedLocation] The extended location of the Image
.
hyper_vgeneration[RW]
@return [HyperVGenerationTypes] Gets the HyperVGenerationType
of the VirtualMachine
created from the image. Possible values include: 'V1', 'V2'
provisioning_state[RW]
@return [String] The provisioning state.
source_virtual_machine[RW]
@return [SubResource] The source virtual machine from which Image
is created.
storage_profile[RW]
@return [ImageStorageProfile] Specifies the storage settings for the virtual machine disks.
Private Class Methods
mapper()
click to toggle source
Mapper for Image
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-12-01/generated/azure_mgmt_compute/models/image.rb, line 41 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Image', type: { name: 'Composite', class_name: 'Image', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, source_virtual_machine: { client_side_validation: true, required: false, serialized_name: 'properties.sourceVirtualMachine', type: { name: 'Composite', class_name: 'SubResource' } }, storage_profile: { client_side_validation: true, required: false, serialized_name: 'properties.storageProfile', type: { name: 'Composite', class_name: 'ImageStorageProfile' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, hyper_vgeneration: { client_side_validation: true, required: false, serialized_name: 'properties.hyperVGeneration', type: { name: 'String' } }, extended_location: { client_side_validation: true, required: false, serialized_name: 'extendedLocation', type: { name: 'Composite', class_name: 'ExtendedLocation' } } } } } end