Sha256: 0b7bd1cf16e5dd155f1cd7acf1f9bfebc1c556eb28e8243faedd533f5f78c672

Contents?: true

Size: 1.85 KB

Versions: 5

Compression:

Stored size: 1.85 KB

Contents

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

module Azure::Compute::Mgmt::V2019_12_01
  module Models
    #
    # Used for establishing the purchase context of any 3rd Party artifact
    # through MarketPlace.
    #
    class PurchasePlan

      include MsRestAzure

      # @return [String] The publisher ID.
      attr_accessor :publisher

      # @return [String] The plan ID.
      attr_accessor :name

      # @return [String] Specifies the product of the image from the
      # marketplace. This is the same value as Offer under the imageReference
      # element.
      attr_accessor :product


      #
      # Mapper for PurchasePlan class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PurchasePlan',
          type: {
            name: 'Composite',
            class_name: 'PurchasePlan',
            model_properties: {
              publisher: {
                client_side_validation: true,
                required: true,
                serialized_name: 'publisher',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              product: {
                client_side_validation: true,
                required: true,
                serialized_name: 'product',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.22.0 lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb
azure_mgmt_compute-0.21.1 lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb
azure_mgmt_compute-0.20.0 lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb
azure_mgmt_compute-0.19.3 lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb
azure_mgmt_compute-0.19.2 lib/2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb