Class: Azure::ARM::CognitiveServices::Models::Sku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_cognitive_services/models/sku.rb

Overview

The SKU of the cognitive services account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameSkuName

creation, optional for update. Possible values include: ‘F0’, ‘S0’, ‘S1’, ‘S2’, ‘S3’, ‘S4’

Returns:

  • (SkuName)

    Gets or sets the sku name. Required for account



18
19
20
# File 'lib/generated/azure_mgmt_cognitive_services/models/sku.rb', line 18

def name
  @name
end

#tierSkuTier

Possible values include: ‘Free’, ‘Standard’, ‘Premium’

Returns:

  • (SkuTier)

    Gets the sku tier. This is based on the SKU name.



22
23
24
# File 'lib/generated/azure_mgmt_cognitive_services/models/sku.rb', line 22

def tier
  @tier
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/generated/azure_mgmt_cognitive_services/models/sku.rb', line 29

def self.mapper()
  {
    required: false,
    serialized_name: 'Sku',
    type: {
      name: 'Composite',
      class_name: 'Sku',
      model_properties: {
        name: {
          required: true,
          serialized_name: 'name',
          type: {
            name: 'Enum',
            module: 'SkuName'
          }
        },
        tier: {
          required: false,
          read_only: true,
          serialized_name: 'tier',
          type: {
            name: 'Enum',
            module: 'SkuTier'
          }
        }
      }
    }
  }
end