Sha256: 1bee4865a0abb72ef0c6a3dba5bb478dfd5410934e8cd52fd2b1bfde744df90d

Contents?: true

Size: 1.57 KB

Versions: 9

Compression:

Stored size: 1.57 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::CognitiveServices::Mgmt::V2017_04_18
  module Models
    #
    # The SKU of the cognitive services account.
    #
    class Sku

      include MsRestAzure

      # @return [String] Gets or sets the sku name. Required for account
      # creation, optional for update.
      attr_accessor :name

      # @return [SkuTier] Gets the sku tier. This is based on the SKU name.
      # Possible values include: 'Free', 'Standard', 'Premium'
      attr_accessor :tier


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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
azure_mgmt_cognitive_services-0.19.4 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.3 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.2 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.1 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.0 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.3 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.2 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.1 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.0 lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb