Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ class CognitiveServicesManagementClient(object):
:vartype config: CognitiveServicesManagementClientConfiguration

:ivar cognitive_services_accounts: CognitiveServicesAccounts operations
:vartype cognitive_services_accounts: .operations.CognitiveServicesAccountsOperations
:vartype cognitive_services_accounts: azure.mgmt.cognitiveservices.operations.CognitiveServicesAccountsOperations
:ivar accounts: Accounts operations
:vartype accounts: .operations.AccountsOperations
:vartype accounts: azure.mgmt.cognitiveservices.operations.AccountsOperations
:ivar operations: Operations operations
:vartype operations: .operations.Operations
:vartype operations: azure.mgmt.cognitiveservices.operations.Operations
:ivar check_sku_availability: CheckSkuAvailability operations
:vartype check_sku_availability: .operations.CheckSkuAvailabilityOperations
:vartype check_sku_availability: azure.mgmt.cognitiveservices.operations.CheckSkuAvailabilityOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down
Empty file.
13 changes: 10 additions & 3 deletions ...cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_parameter.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class CheckSkuAvailabilityParameter(Model):
"""Check SKU availability parameter.

:param skus: The SKU of the resource.
:type skus: list of :class:`Sku <azure.mgmt.cognitiveservices.models.Sku>`
:type skus: list of str or :class:`SkuName
<azure.mgmt.cognitiveservices.models.SkuName>`
:param kind: The Kind of the resource. Possible values include:
'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
'Bing.SpellCheck', 'ComputerVision', 'ContentModerator', 'CustomSpeech',
Expand All @@ -28,13 +29,19 @@ class CheckSkuAvailabilityParameter(Model):
:type type: str
"""

_validation = {
'skus': {'required': True},
'kind': {'required': True},
'type': {'required': True},
}

_attribute_map = {
'skus': {'key': 'skus', 'type': '[Sku]'},
'skus': {'key': 'skus', 'type': '[str]'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, skus=None, kind=None, type=None):
def __init__(self, skus, kind, type):
self.skus = skus
self.kind = kind
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class CheckSkuAvailabilityResult(Model):
<azure.mgmt.cognitiveservices.models.Kind>`
:param type: The Type of the resource.
:type type: str
:param sku_name: The SKU of Cognitive Services account.
:type sku_name: :class:`Sku <azure.mgmt.cognitiveservices.models.Sku>`
: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 :class:`SkuName
<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.
Expand All @@ -37,7 +39,7 @@ class CheckSkuAvailabilityResult(Model):
_attribute_map = {
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'sku_name': {'key': 'skuName', 'type': 'Sku'},
'sku_name': {'key': 'skuName', 'type': 'str'},
'sku_available': {'key': 'skuAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ class RegenerateKeyParameters(Model):
<azure.mgmt.cognitiveservices.models.KeyName>`
"""

_validation = {
'key_name': {'required': True},
}

_attribute_map = {
'key_name': {'key': 'keyName', 'type': 'KeyName'},
}

def __init__(self, key_name=None):
def __init__(self, key_name):
self.key_name = key_name
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def list(
self, skus=None, kind=None, type=None, custom_headers=None, raw=False, **operation_config):
self, skus, kind, type, custom_headers=None, raw=False, **operation_config):
"""Check available SKUs.

:param skus: The SKU of the resource.
:type skus: list of :class:`Sku
<azure.mgmt.cognitiveservices.models.Sku>`
:type skus: list of str or :class:`SkuName
<azure.mgmt.cognitiveservices.models.SkuName>`
:param kind: The Kind of the resource. Possible values include:
'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def list_keys(
return deserialized

def regenerate_key(
self, resource_group_name, account_name, key_name=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, key_name, custom_headers=None, raw=False, **operation_config):
"""Regenerates the specified account key for the specified Cognitive
Services account.

Expand Down
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/version.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.1"

6 changes: 1 addition & 5 deletions azure-mgmt-cognitiveservices/build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"autorest": "1.0.1-20170425-2300-nightly",
"date": "2017-04-26T22:48:42Z",
"version": "1.0.0"
}
{"autorest": "1.1.0", "date": "2017-06-30T20:04:48Z", "version": ""}
5 changes: 3 additions & 2 deletions swagger_to_sdk_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@
"autorest_options": {
"input-file": "arm-cognitiveservices/2017-04-18/swagger/cognitiveservices.json",
"namespace": "azure.mgmt.cognitiveservices",
"package-version": "1.0.0"
"package-version": "1.0.1"
},
"output_dir": "azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices"
"output_dir": "azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices",
"build_dir": "azure-mgmt-cognitiveservices"
},
"commerce": {
"autorest_options": {
Expand Down