Class: Azure::Compute::Mgmt::V2017_03_30::Models::ImageReference

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-30/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.

Returns:

  • (String)

    Specifies the offer of the platform image or



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

def offer
  @offer
end

#publisherString

Returns The image publisher.

Returns:

  • (String)

    The image publisher.



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

def publisher
  @publisher
end

#skuString

Returns The image SKU.

Returns:

  • (String)

    The image SKU.



27
28
29
# File 'lib/2017-03-30/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.

Returns:

  • (String)

    Specifies the version of the platform image or



36
37
38
# File 'lib/2017-03-30/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
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/image_reference.rb', line 43

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