Class: Azure::Compute::Mgmt::V2019_03_01::Models::ImageUpdate

Inherits:
UpdateResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb

Overview

The source user image virtual hard disk. Only tags may be updated.

Instance Attribute Summary collapse

Attributes inherited from UpdateResource

#tags

Class Method Summary collapse

Instance Attribute Details

#hyper_vgenerationHyperVGenerationTypes

VirtualMachine created from the image. Possible values include: 'V1', 'V2'

Returns:



29
30
31
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb', line 29

def hyper_vgeneration
  @hyper_vgeneration
end

#provisioning_stateString

Returns The provisioning state.

Returns:

  • (String)

    The provisioning state.



24
25
26
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb', line 24

def provisioning_state
  @provisioning_state
end

#source_virtual_machineSubResource

created.

Returns:

  • (SubResource)

    The source virtual machine from which Image is



17
18
19
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb', line 17

def source_virtual_machine
  @source_virtual_machine
end

#storage_profileImageStorageProfile

virtual machine disks.

Returns:



21
22
23
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb', line 21

def storage_profile
  @storage_profile
end

Class Method Details

.mapperObject

Mapper for ImageUpdate class as Ruby Hash. This will be used for serialization/deserialization.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageUpdate',
    type: {
      name: 'Composite',
      class_name: 'ImageUpdate',
      model_properties: {
        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'
          }
        }
      }
    }
  }
end