-
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.
Generated from 7a1976a9842c462ccb967f734612f1257b429ca0 (#2314)
Make filter a method paramter
- Loading branch information
1 parent
215a44f
commit 6adfd65
Showing
42 changed files
with
1,257 additions
and
145 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
49 changes: 49 additions & 0 deletions
49
...itiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_parameter_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,49 @@ | ||
# 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 CheckSkuAvailabilityParameter(Model): | ||
"""Check SKU availability parameter. | ||
All required parameters must be populated in order to send to Azure. | ||
:param skus: Required. The SKU of the resource. | ||
:type skus: list[str or ~azure.mgmt.cognitiveservices.models.SkuName] | ||
:param kind: Required. The Kind of the resource. Possible values include: | ||
'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', | ||
'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', | ||
'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', | ||
'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', | ||
'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' | ||
:type kind: str or ~azure.mgmt.cognitiveservices.models.Kind | ||
:param type: Required. The Type of the resource. | ||
:type type: str | ||
""" | ||
|
||
_validation = { | ||
'skus': {'required': True}, | ||
'kind': {'required': True}, | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'skus': {'key': 'skus', 'type': '[str]'}, | ||
'kind': {'key': 'kind', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, skus, kind, type: str, **kwargs) -> None: | ||
super(CheckSkuAvailabilityParameter, self).__init__(**kwargs) | ||
self.skus = skus | ||
self.kind = kind | ||
self.type = type |
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
29 changes: 29 additions & 0 deletions
29
...iveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_result_list_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,29 @@ | ||
# 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 CheckSkuAvailabilityResultList(Model): | ||
"""Check SKU availability result list. | ||
:param value: Check SKU availability result list. | ||
:type value: | ||
list[~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityResult] | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[CheckSkuAvailabilityResult]'}, | ||
} | ||
|
||
def __init__(self, *, value=None, **kwargs) -> None: | ||
super(CheckSkuAvailabilityResultList, self).__init__(**kwargs) | ||
self.value = value |
54 changes: 54 additions & 0 deletions
54
...ognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_result_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,54 @@ | ||
# 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 CheckSkuAvailabilityResult(Model): | ||
"""Check SKU availability result. | ||
:param kind: The Kind of the resource. Possible values include: | ||
'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', | ||
'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', | ||
'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', | ||
'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', | ||
'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' | ||
:type kind: str or ~azure.mgmt.cognitiveservices.models.Kind | ||
:param type: The Type of the resource. | ||
:type type: str | ||
:param sku_name: The SKU of Cognitive Services account. Possible values | ||
include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6' | ||
:type sku_name: str or ~azure.mgmt.cognitiveservices.models.SkuName | ||
:param sku_available: Indicates the given SKU is available or not. | ||
:type sku_available: bool | ||
:param reason: Reason why the SKU is not available. | ||
:type reason: str | ||
:param message: Additional error message. | ||
:type message: str | ||
""" | ||
|
||
_attribute_map = { | ||
'kind': {'key': 'kind', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'sku_name': {'key': 'skuName', 'type': 'str'}, | ||
'sku_available': {'key': 'skuAvailable', 'type': 'bool'}, | ||
'reason': {'key': 'reason', 'type': 'str'}, | ||
'message': {'key': 'message', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, kind=None, type: str=None, sku_name=None, sku_available: bool=None, reason: str=None, message: str=None, **kwargs) -> None: | ||
super(CheckSkuAvailabilityResult, self).__init__(**kwargs) | ||
self.kind = kind | ||
self.type = type | ||
self.sku_name = sku_name | ||
self.sku_available = sku_available | ||
self.reason = reason | ||
self.message = message |
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
Oops, something went wrong.