class Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku

The SKU of the cognitive services account.

Attributes

name[RW]

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

tier[RW]

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

Private Class Methods

mapper() click to toggle source

Mapper for Sku class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku.rb, line 28
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