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
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 6.1.0 (2020-03-25)

**Features**

- Model CognitiveServicesAccount has a new parameter identity
- Model CognitiveServicesAccountProperties has a new parameter user_owned_storage
- Model CognitiveServicesAccountProperties has a new parameter encryption

## 6.0.0 (2020-02-07)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is the Microsoft Azure Cognitive Services Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/sdk)
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)


# Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ class CognitiveServicesAccountProperties(Model):
:vartype endpoint: str
:ivar internal_id: The internal identifier.
:vartype internal_id: str
:ivar capabilities: Gets the capabilities of the cognitive services
account. Each item indicates a specific feature is supported by this
account. The value is read only and for reference only.
:vartype capabilities: list[str]
:param custom_sub_domain_name: Optional subdomain name used for
token-based authentication.
:type custom_sub_domain_name: str
Expand All @@ -347,12 +351,14 @@ class CognitiveServicesAccountProperties(Model):
'provisioning_state': {'readonly': True},
'endpoint': {'readonly': True},
'internal_id': {'readonly': True},
'capabilities': {'readonly': True},
}

_attribute_map = {
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'endpoint': {'key': 'endpoint', 'type': 'str'},
'internal_id': {'key': 'internalId', 'type': 'str'},
'capabilities': {'key': 'capabilities', 'type': '[str]'},
'custom_sub_domain_name': {'key': 'customSubDomainName', 'type': 'str'},
'network_acls': {'key': 'networkAcls', 'type': 'NetworkRuleSet'},
'encryption': {'key': 'encryption', 'type': 'Encryption'},
Expand All @@ -365,6 +371,7 @@ def __init__(self, **kwargs):
self.provisioning_state = None
self.endpoint = None
self.internal_id = None
self.capabilities = None
self.custom_sub_domain_name = kwargs.get('custom_sub_domain_name', None)
self.network_acls = kwargs.get('network_acls', None)
self.encryption = kwargs.get('encryption', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ class CognitiveServicesAccountProperties(Model):
:vartype endpoint: str
:ivar internal_id: The internal identifier.
:vartype internal_id: str
:ivar capabilities: Gets the capabilities of the cognitive services
account. Each item indicates a specific feature is supported by this
account. The value is read only and for reference only.
:vartype capabilities: list[str]
:param custom_sub_domain_name: Optional subdomain name used for
token-based authentication.
:type custom_sub_domain_name: str
Expand All @@ -347,12 +351,14 @@ class CognitiveServicesAccountProperties(Model):
'provisioning_state': {'readonly': True},
'endpoint': {'readonly': True},
'internal_id': {'readonly': True},
'capabilities': {'readonly': True},
}

_attribute_map = {
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'endpoint': {'key': 'endpoint', 'type': 'str'},
'internal_id': {'key': 'internalId', 'type': 'str'},
'capabilities': {'key': 'capabilities', 'type': '[str]'},
'custom_sub_domain_name': {'key': 'customSubDomainName', 'type': 'str'},
'network_acls': {'key': 'networkAcls', 'type': 'NetworkRuleSet'},
'encryption': {'key': 'encryption', 'type': 'Encryption'},
Expand All @@ -365,6 +371,7 @@ def __init__(self, *, custom_sub_domain_name: str=None, network_acls=None, encry
self.provisioning_state = None
self.endpoint = None
self.internal_id = None
self.capabilities = None
self.custom_sub_domain_name = custom_sub_domain_name
self.network_acls = network_acls
self.encryption = encryption
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "6.0.0"
VERSION = "6.1.0"

4 changes: 3 additions & 1 deletion sdk/cognitiveservices/azure-mgmt-cognitiveservices/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down
Loading