Sha256: 092b0a8dc82a8e13f73928c921ec86cd54e40fa3722465f37ed1763f1fde30ad

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 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::V2017_03_30
  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()
        {
          required: false,
          serialized_name: 'PurchasePlan',
          type: {
            name: 'Composite',
            class_name: 'PurchasePlan',
            model_properties: {
              publisher: {
                required: true,
                serialized_name: 'publisher',
                type: {
                  name: 'String'
                }
              },
              name: {
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              product: {
                required: true,
                serialized_name: 'product',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.15.1 lib/2017-03-30/generated/azure_mgmt_compute/models/purchase_plan.rb
azure_mgmt_compute-0.15.0 lib/2017-03-30/generated/azure_mgmt_compute/models/purchase_plan.rb