Class: Azure::Compute::Mgmt::V2020_12_01::Models::ImageReference
- Inherits:
-
SubResource
- Object
- SubResource
- Azure::Compute::Mgmt::V2020_12_01::Models::ImageReference
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-12-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
-
#exact_version ⇒ String
image or marketplace image used to create the virtual machine.
-
#offer ⇒ String
marketplace image used to create the virtual machine.
-
#publisher ⇒ String
The image publisher.
-
#sku ⇒ String
The image SKU.
-
#version ⇒ String
marketplace image used to create the virtual machine.
Attributes inherited from SubResource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageReference class as Ruby Hash.
Instance Attribute Details
#exact_version ⇒ String
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'.
43 44 45 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb', line 43 def exact_version @exact_version end |
#offer ⇒ String
marketplace image used to create the virtual machine.
25 26 27 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb', line 25 def offer @offer end |
#publisher ⇒ String
Returns The image publisher.
21 22 23 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb', line 21 def publisher @publisher end |
#sku ⇒ String
Returns The image SKU.
28 29 30 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb', line 28 def sku @sku end |
#version ⇒ String
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.
37 38 39 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_reference.rb', line 37 def version @version end |
Class Method Details
.mapper ⇒ Object
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-12-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 |