Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Generated from 20b02b6
  • Loading branch information
SwaggerToSDK Automation authored and lmazuel committed Jun 30, 2017
commit bf5d015f8028a3adef79d2e51af3aee931af70b4
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
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
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
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