Class: Azure::ARM::Compute::Models::VirtualMachineImageResource

Inherits:
MsRestAzure::SubResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb

Overview

Virtual machine image resource information.

Direct Known Subclasses

VirtualMachineImage

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#locationString

Returns The supported Azure location of the resource.

Returns:

  • (String)

    The supported Azure location of the resource.



20
21
22
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb', line 20

def location
  @location
end

#nameString

Returns The name of the resource.

Returns:

  • (String)

    The name of the resource.



17
18
19
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb', line 17

def name
  @name
end

#tagsHash{String => String}

to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).

Returns:

  • (Hash{String => String})

    Specifies the tags that are assigned



26
27
28
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb', line 26

def tags
  @tags
end

Class Method Details

.mapperObject

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



33
34
35
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
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'VirtualMachineImageResource',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineImageResource',
      model_properties: {
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end