Class: Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb

Overview

Describes an available Cognitive Services SKU.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#kindString

Returns The Kind of resources that are supported in this SKU.

Returns:

  • (String)

    The Kind of resources that are supported in this SKU.



25
26
27
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 25

def kind
  @kind
end

#locationsArray<String>

Returns The set of locations that the SKU is available.

Returns:

  • (Array<String>)

    The set of locations that the SKU is available.



28
29
30
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 28

def locations
  @locations
end

#nameString

Returns The name of SKU.

Returns:

  • (String)

    The name of SKU.



19
20
21
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 19

def name
  @name
end

#resource_typeString

Returns The type of resource the SKU applies to.

Returns:

  • (String)

    The type of resource the SKU applies to.



16
17
18
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 16

def resource_type
  @resource_type
end

#restrictionsArray<ResourceSkuRestrictions>

which SKU cannot be used. This is empty if there are no restrictions.

Returns:



32
33
34
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 32

def restrictions
  @restrictions
end

#tierString

Returns Specifies the tier of Cognitive Services account.

Returns:

  • (String)

    Specifies the tier of Cognitive Services account.



22
23
24
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 22

def tier
  @tier
end

Class Method Details

.mapperObject

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



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource_sku.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceSku',
    type: {
      name: 'Composite',
      class_name: 'ResourceSku',
      model_properties: {
        resource_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceType',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        tier: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tier',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        locations: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'locations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        restrictions: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'restrictions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ResourceSkuRestrictionsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceSkuRestrictions'
                }
            }
          }
        }
      }
    }
  }
end