Sha256: bccc4f66fe162939e456e66641139731b49025afde2c24e2639276c379191936

Contents?: true

Size: 1.67 KB

Versions: 11

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

      include MsRestAzure

      # @return [SkuName] Gets or sets the sku name. Required for account
      # creation, optional for update. Possible values include: 'F0', 'P0',
      # 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'
      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

11 entries across 11 versions & 1 rubygems

Version Path
azure_mgmt_cognitive_services-0.19.4 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.3 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.2 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.1 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.19.0 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.3 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.2 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.1 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.18.0 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.17.0 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb
azure_mgmt_cognitive_services-0.16.0 lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/sku.rb