Sha256: 7233f9f2aa1069e879a178bd8811ecd27bcfc8741fa747cbe3e7bc011dcae718

Contents?: true

Size: 1.96 KB

Versions: 17

Compression:

Stored size: 1.96 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::Resources::Mgmt::V2016_07_01
  module Models
    #
    # Plan for the resource.
    #
    class Plan

      include MsRestAzure

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

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

      # @return [String] The offer ID.
      attr_accessor :product

      # @return [String] The promotion code.
      attr_accessor :promotion_code


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

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
azure_mgmt_resources2-0.19.0 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources2-0.18.2 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.18.2 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.18.1 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.18.0 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.9 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.8 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.7 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.6 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.5 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.4 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.3 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.2 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.1 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.17.0 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.16.0 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb
azure_mgmt_resources-0.15.2 lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb