Sha256: 5611a9475dbe081e354ea8a0ffb561feacde2a24ecf9922c40b770742b534ef5

Contents?: true

Size: 1.85 KB

Versions: 1

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::V2020_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

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.22.0 lib/2020-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb