Class: Azure::Compute::Mgmt::V2019_03_01::Models::ImageReference

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

Overview

Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#offerString

marketplace image used to create the virtual machine.



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

def offer
  @offer
end

#publisherString



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

def publisher
  @publisher
end

#skuString



27
28
29
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb', line 27

def sku
  @sku
end

#versionString

marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or ‘latest’. Major, Minor, and Build are decimal numbers. Specify ‘latest’ to use the latest version of an image available at deploy time. Even if you use ‘latest’, the VM image will not automatically update after deploy time even if a new version becomes available.



36
37
38
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb', line 36

def version
  @version
end

Class Method Details

.mapperObject

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



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
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb', line 43

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageReference',
    type: {
      name: 'Composite',
      class_name: 'ImageReference',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        publisher: {
          client_side_validation: true,
          required: false,
          serialized_name: 'publisher',
          type: {
            name: 'String'
          }
        },
        offer: {
          client_side_validation: true,
          required: false,
          serialized_name: 'offer',
          type: {
            name: 'String'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'String'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'version',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end