Sha256: bd66401ed7321398dc02073e95edcc09f2d0908430deaaeec46888abeb65cd30

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Compute
  module Models
    #
    # The image reference.
    #
    class ImageReference

      include MsRestAzure

      # @return [String] the image publisher.
      attr_accessor :publisher

      # @return [String] the image offer.
      attr_accessor :offer

      # @return [String] the image sku.
      attr_accessor :sku

      # @return [String] the image version. The allowed formats are
      # Major.Minor.Build or 'latest'. Major, Minor and Build being decimal
      # numbers. Specify 'latest' to use the latest version of image.
      attr_accessor :version


      #
      # Mapper for ImageReference class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'ImageReference',
          type: {
            name: 'Composite',
            class_name: 'ImageReference',
            model_properties: {
              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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.7.0 lib/generated/azure_mgmt_compute/models/image_reference.rb
azure_mgmt_compute-0.6.0 lib/generated/azure_mgmt_compute/models/image_reference.rb
azure_mgmt_compute-0.5.0 lib/generated/azure_mgmt_compute/models/image_reference.rb
azure_mgmt_compute-0.4.0 lib/generated/azure_mgmt_compute/models/image_reference.rb