class Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku
Describes an available Cognitive Services SKU.
Attributes
kind[RW]
@return [String] The Kind of resources that are supported in this SKU.
locations[RW]
@return [Array<String>] The set of locations that the SKU is available.
name[RW]
@return [String] The name of SKU.
resource_type[RW]
@return [String] The type of resource the SKU applies to.
restrictions[RW]
@return [Array<ResourceSkuRestrictions>] The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
tier[RW]
@return [String] Specifies the tier of Cognitive Services account.
Private Class Methods
mapper()
click to toggle source
Mapper for ResourceSku
class as Ruby Hash. This will be used for serialization/deserialization.
# 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