Class: Azure::Compute::Mgmt::V2020_06_01::Models::ImageReference

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-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. NOTE: Image reference publisher and offer can only be set when you create the scale set.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#exact_versionString

image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.

Returns:

  • (String)

    Specifies in decimal numbers, the version of platform



43
44
45
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 43

def exact_version
  @exact_version
end

#offerString

marketplace image used to create the virtual machine.

Returns:

  • (String)

    Specifies the offer of the platform image or



25
26
27
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 25

def offer
  @offer
end

#publisherString

Returns The image publisher.

Returns:

  • (String)

    The image publisher.



21
22
23
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 21

def publisher
  @publisher
end

#skuString

Returns The image SKU.

Returns:

  • (String)

    The image SKU.



28
29
30
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 28

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



37
38
39
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 37

def version
  @version
end

Class Method Details

.mapperObject

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



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
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/image_reference.rb', line 50

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'
          }
        },
        exact_version: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'exactVersion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end