Source code for azure.mgmt.cognitiveservices.models.resource_sku_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class ResourceSku(Model): """Describes an available Cognitive Services SKU. Variables are only populated by the server, and will be ignored when sending a request. :ivar resource_type: The type of resource the SKU applies to. :vartype resource_type: str :ivar name: The name of SKU. :vartype name: str :ivar tier: Specifies the tier of Cognitive Services account. :vartype tier: str :ivar kind: The Kind of resources that are supported in this SKU. :vartype kind: str :ivar locations: The set of locations that the SKU is available. :vartype locations: list[str] :ivar restrictions: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. :vartype restrictions: list[~azure.mgmt.cognitiveservices.models.ResourceSkuRestrictions] """ _validation = { 'resource_type': {'readonly': True}, 'name': {'readonly': True}, 'tier': {'readonly': True}, 'kind': {'readonly': True}, 'locations': {'readonly': True}, 'restrictions': {'readonly': True}, } _attribute_map = { 'resource_type': {'key': 'resourceType', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'tier': {'key': 'tier', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'locations': {'key': 'locations', 'type': '[str]'}, 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, } def __init__(self, **kwargs) -> None: super(ResourceSku, self).__init__(**kwargs) self.resource_type = None self.name = None self.tier = None self.kind = None self.locations = None self.restrictions = None