-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
587948c
commit 5184c82
Showing
12 changed files
with
483 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 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 | ||
|
||
|
||
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): | ||
super(ResourceSku, self).__init__(**kwargs) | ||
self.resource_type = None | ||
self.name = None | ||
self.tier = None | ||
self.kind = None | ||
self.locations = None | ||
self.restrictions = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class ResourceSkuPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`ResourceSku <azure.mgmt.cognitiveservices.models.ResourceSku>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[ResourceSku]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ResourceSkuPaged, self).__init__(*args, **kwargs) |
62 changes: 62 additions & 0 deletions
62
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 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 | ||
|
||
|
||
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 |
40 changes: 40 additions & 0 deletions
40
...mt-cognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku_restriction_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 | ||
|
||
|
||
class ResourceSkuRestrictionInfo(Model): | ||
"""ResourceSkuRestrictionInfo. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar locations: Locations where the SKU is restricted | ||
:vartype locations: list[str] | ||
:ivar zones: List of availability zones where the SKU is restricted. | ||
:vartype zones: list[str] | ||
""" | ||
|
||
_validation = { | ||
'locations': {'readonly': True}, | ||
'zones': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'locations': {'key': 'locations', 'type': '[str]'}, | ||
'zones': {'key': 'zones', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ResourceSkuRestrictionInfo, self).__init__(**kwargs) | ||
self.locations = None | ||
self.zones = None |
40 changes: 40 additions & 0 deletions
40
...ognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku_restriction_info_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 | ||
|
||
|
||
class ResourceSkuRestrictionInfo(Model): | ||
"""ResourceSkuRestrictionInfo. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar locations: Locations where the SKU is restricted | ||
:vartype locations: list[str] | ||
:ivar zones: List of availability zones where the SKU is restricted. | ||
:vartype zones: list[str] | ||
""" | ||
|
||
_validation = { | ||
'locations': {'readonly': True}, | ||
'zones': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'locations': {'key': 'locations', 'type': '[str]'}, | ||
'zones': {'key': 'zones', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(ResourceSkuRestrictionInfo, self).__init__(**kwargs) | ||
self.locations = None | ||
self.zones = None |
57 changes: 57 additions & 0 deletions
57
...e-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/resource_sku_restrictions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 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 | ||
|
||
|
||
class ResourceSkuRestrictions(Model): | ||
"""Describes restrictions of a SKU. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar type: The type of restrictions. Possible values include: 'Location', | ||
'Zone' | ||
:vartype type: str or | ||
~azure.mgmt.cognitiveservices.models.ResourceSkuRestrictionsType | ||
:ivar values: The value of restrictions. If the restriction type is set to | ||
location. This would be different locations where the SKU is restricted. | ||
:vartype values: list[str] | ||
:ivar restriction_info: The information about the restriction where the | ||
SKU cannot be used. | ||
:vartype restriction_info: | ||
~azure.mgmt.cognitiveservices.models.ResourceSkuRestrictionInfo | ||
:ivar reason_code: The reason for restriction. Possible values include: | ||
'QuotaId', 'NotAvailableForSubscription' | ||
:vartype reason_code: str or | ||
~azure.mgmt.cognitiveservices.models.ResourceSkuRestrictionsReasonCode | ||
""" | ||
|
||
_validation = { | ||
'type': {'readonly': True}, | ||
'values': {'readonly': True}, | ||
'restriction_info': {'readonly': True}, | ||
'reason_code': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'ResourceSkuRestrictionsType'}, | ||
'values': {'key': 'values', 'type': '[str]'}, | ||
'restriction_info': {'key': 'restrictionInfo', 'type': 'ResourceSkuRestrictionInfo'}, | ||
'reason_code': {'key': 'reasonCode', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ResourceSkuRestrictions, self).__init__(**kwargs) | ||
self.type = None | ||
self.values = None | ||
self.restriction_info = None | ||
self.reason_code = None |
Oops, something went wrong.