Skip to content

Commit 5192df0

Browse files
msyycSDK Automation
andauthored
Generated from 60de4c8e4df2bd90b44ed70a90d48385e6f6971a (Azure#14381)
* Generated from 60de4c8e4df2bd90b44ed70a90d48385e6f6971a * changlog/version/test recording Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
1 parent 380ae62 commit 5192df0

File tree

7 files changed

+193
-36
lines changed

7 files changed

+193
-36
lines changed

sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 6.3.0 (2020-10-09)
4+
5+
**Features**
6+
7+
- Model CognitiveServicesAccountApiProperties has a new parameter website_name
8+
- Model CognitiveServicesAccountApiProperties has a new parameter super_user
9+
- Model CognitiveServicesAccountApiProperties has a new parameter aad_client_id
10+
- Model CognitiveServicesAccountApiProperties has a new parameter aad_tenant_id
11+
- Added operation PrivateEndpointConnectionsOperations.list
12+
313
## 6.2.0 (2020-05-29)
414

515
**Features**

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from ._models_py3 import OperationEntity
3535
from ._models_py3 import PrivateEndpoint
3636
from ._models_py3 import PrivateEndpointConnection
37+
from ._models_py3 import PrivateEndpointConnectionListResult
3738
from ._models_py3 import PrivateEndpointConnectionProperties
3839
from ._models_py3 import PrivateLinkResource
3940
from ._models_py3 import PrivateLinkResourceListResult
@@ -78,6 +79,7 @@
7879
from ._models import OperationEntity
7980
from ._models import PrivateEndpoint
8081
from ._models import PrivateEndpointConnection
82+
from ._models import PrivateEndpointConnectionListResult
8183
from ._models import PrivateEndpointConnectionProperties
8284
from ._models import PrivateLinkResource
8385
from ._models import PrivateLinkResourceListResult
@@ -140,6 +142,7 @@
140142
'OperationEntity',
141143
'PrivateEndpoint',
142144
'PrivateEndpointConnection',
145+
'PrivateEndpointConnectionListResult',
143146
'PrivateEndpointConnectionProperties',
144147
'PrivateLinkResource',
145148
'PrivateLinkResourceListResult',

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,18 +318,37 @@ class CognitiveServicesAccountApiProperties(Model):
318318
:param storage_account_connection_string: (Personalization Only) The
319319
storage account connection string.
320320
:type storage_account_connection_string: str
321+
:param aad_client_id: (Metrics Advisor Only) The Azure AD Client Id
322+
(Application Id).
323+
:type aad_client_id: str
324+
:param aad_tenant_id: (Metrics Advisor Only) The Azure AD Tenant Id.
325+
:type aad_tenant_id: str
326+
:param super_user: (Metrics Advisor Only) The super user of Metrics
327+
Advisor.
328+
:type super_user: str
329+
:param website_name: (Metrics Advisor Only) The website name of Metrics
330+
Advisor.
331+
:type website_name: str
321332
"""
322333

323334
_validation = {
324335
'event_hub_connection_string': {'max_length': 1000, 'pattern': r'^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$'},
325336
'storage_account_connection_string': {'max_length': 1000, 'pattern': r'^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$'},
337+
'aad_client_id': {'max_length': 500},
338+
'aad_tenant_id': {'max_length': 500},
339+
'super_user': {'max_length': 500},
340+
'website_name': {'max_length': 500},
326341
}
327342

328343
_attribute_map = {
329344
'qna_runtime_endpoint': {'key': 'qnaRuntimeEndpoint', 'type': 'str'},
330345
'statistics_enabled': {'key': 'statisticsEnabled', 'type': 'bool'},
331346
'event_hub_connection_string': {'key': 'eventHubConnectionString', 'type': 'str'},
332347
'storage_account_connection_string': {'key': 'storageAccountConnectionString', 'type': 'str'},
348+
'aad_client_id': {'key': 'aadClientId', 'type': 'str'},
349+
'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'},
350+
'super_user': {'key': 'superUser', 'type': 'str'},
351+
'website_name': {'key': 'websiteName', 'type': 'str'},
333352
}
334353

335354
def __init__(self, **kwargs):
@@ -338,6 +357,10 @@ def __init__(self, **kwargs):
338357
self.statistics_enabled = kwargs.get('statistics_enabled', None)
339358
self.event_hub_connection_string = kwargs.get('event_hub_connection_string', None)
340359
self.storage_account_connection_string = kwargs.get('storage_account_connection_string', None)
360+
self.aad_client_id = kwargs.get('aad_client_id', None)
361+
self.aad_tenant_id = kwargs.get('aad_tenant_id', None)
362+
self.super_user = kwargs.get('super_user', None)
363+
self.website_name = kwargs.get('website_name', None)
341364

342365

343366
class CognitiveServicesAccountEnumerateSkusResult(Model):
@@ -826,6 +849,23 @@ def __init__(self, **kwargs):
826849
self.properties = kwargs.get('properties', None)
827850

828851

852+
class PrivateEndpointConnectionListResult(Model):
853+
"""A list of private endpoint connections.
854+
855+
:param value: Array of private endpoint connections
856+
:type value:
857+
list[~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection]
858+
"""
859+
860+
_attribute_map = {
861+
'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'},
862+
}
863+
864+
def __init__(self, **kwargs):
865+
super(PrivateEndpointConnectionListResult, self).__init__(**kwargs)
866+
self.value = kwargs.get('value', None)
867+
868+
829869
class PrivateEndpointConnectionProperties(Model):
830870
"""Properties of the PrivateEndpointConnectProperties.
831871

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,26 +318,49 @@ class CognitiveServicesAccountApiProperties(Model):
318318
:param storage_account_connection_string: (Personalization Only) The
319319
storage account connection string.
320320
:type storage_account_connection_string: str
321+
:param aad_client_id: (Metrics Advisor Only) The Azure AD Client Id
322+
(Application Id).
323+
:type aad_client_id: str
324+
:param aad_tenant_id: (Metrics Advisor Only) The Azure AD Tenant Id.
325+
:type aad_tenant_id: str
326+
:param super_user: (Metrics Advisor Only) The super user of Metrics
327+
Advisor.
328+
:type super_user: str
329+
:param website_name: (Metrics Advisor Only) The website name of Metrics
330+
Advisor.
331+
:type website_name: str
321332
"""
322333

323334
_validation = {
324335
'event_hub_connection_string': {'max_length': 1000, 'pattern': r'^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$'},
325336
'storage_account_connection_string': {'max_length': 1000, 'pattern': r'^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$'},
337+
'aad_client_id': {'max_length': 500},
338+
'aad_tenant_id': {'max_length': 500},
339+
'super_user': {'max_length': 500},
340+
'website_name': {'max_length': 500},
326341
}
327342

328343
_attribute_map = {
329344
'qna_runtime_endpoint': {'key': 'qnaRuntimeEndpoint', 'type': 'str'},
330345
'statistics_enabled': {'key': 'statisticsEnabled', 'type': 'bool'},
331346
'event_hub_connection_string': {'key': 'eventHubConnectionString', 'type': 'str'},
332347
'storage_account_connection_string': {'key': 'storageAccountConnectionString', 'type': 'str'},
348+
'aad_client_id': {'key': 'aadClientId', 'type': 'str'},
349+
'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'},
350+
'super_user': {'key': 'superUser', 'type': 'str'},
351+
'website_name': {'key': 'websiteName', 'type': 'str'},
333352
}
334353

335-
def __init__(self, *, qna_runtime_endpoint: str=None, statistics_enabled: bool=None, event_hub_connection_string: str=None, storage_account_connection_string: str=None, **kwargs) -> None:
354+
def __init__(self, *, qna_runtime_endpoint: str=None, statistics_enabled: bool=None, event_hub_connection_string: str=None, storage_account_connection_string: str=None, aad_client_id: str=None, aad_tenant_id: str=None, super_user: str=None, website_name: str=None, **kwargs) -> None:
336355
super(CognitiveServicesAccountApiProperties, self).__init__(**kwargs)
337356
self.qna_runtime_endpoint = qna_runtime_endpoint
338357
self.statistics_enabled = statistics_enabled
339358
self.event_hub_connection_string = event_hub_connection_string
340359
self.storage_account_connection_string = storage_account_connection_string
360+
self.aad_client_id = aad_client_id
361+
self.aad_tenant_id = aad_tenant_id
362+
self.super_user = super_user
363+
self.website_name = website_name
341364

342365

343366
class CognitiveServicesAccountEnumerateSkusResult(Model):
@@ -826,6 +849,23 @@ def __init__(self, *, properties=None, **kwargs) -> None:
826849
self.properties = properties
827850

828851

852+
class PrivateEndpointConnectionListResult(Model):
853+
"""A list of private endpoint connections.
854+
855+
:param value: Array of private endpoint connections
856+
:type value:
857+
list[~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection]
858+
"""
859+
860+
_attribute_map = {
861+
'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'},
862+
}
863+
864+
def __init__(self, *, value=None, **kwargs) -> None:
865+
super(PrivateEndpointConnectionListResult, self).__init__(**kwargs)
866+
self.value = value
867+
868+
829869
class PrivateEndpointConnectionProperties(Model):
830870
"""Properties of the PrivateEndpointConnectProperties.
831871

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_endpoint_connections_operations.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,70 @@ def __init__(self, client, config, serializer, deserializer):
3939

4040
self.config = config
4141

42+
def list(
43+
self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
44+
"""Gets the private endpoint connections associated with the Cognitive
45+
Services account.
46+
47+
:param resource_group_name: The name of the resource group. The name
48+
is case insensitive.
49+
:type resource_group_name: str
50+
:param account_name: The name of Cognitive Services account.
51+
:type account_name: str
52+
:param dict custom_headers: headers that will be added to the request
53+
:param bool raw: returns the direct response alongside the
54+
deserialized response
55+
:param operation_config: :ref:`Operation configuration
56+
overrides<msrest:optionsforoperations>`.
57+
:return: PrivateEndpointConnectionListResult or ClientRawResponse if
58+
raw=true
59+
:rtype:
60+
~azure.mgmt.cognitiveservices.models.PrivateEndpointConnectionListResult
61+
or ~msrest.pipeline.ClientRawResponse
62+
:raises:
63+
:class:`ErrorException<azure.mgmt.cognitiveservices.models.ErrorException>`
64+
"""
65+
# Construct URL
66+
url = self.list.metadata['url']
67+
path_format_arguments = {
68+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
69+
'accountName': self._serialize.url("account_name", account_name, 'str', max_length=64, min_length=2, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'),
70+
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1)
71+
}
72+
url = self._client.format_url(url, **path_format_arguments)
73+
74+
# Construct parameters
75+
query_parameters = {}
76+
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1)
77+
78+
# Construct headers
79+
header_parameters = {}
80+
header_parameters['Accept'] = 'application/json'
81+
if self.config.generate_client_request_id:
82+
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
83+
if custom_headers:
84+
header_parameters.update(custom_headers)
85+
if self.config.accept_language is not None:
86+
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
87+
88+
# Construct and send request
89+
request = self._client.get(url, query_parameters, header_parameters)
90+
response = self._client.send(request, stream=False, **operation_config)
91+
92+
if response.status_code not in [200]:
93+
raise models.ErrorException(self._deserialize, response)
94+
95+
deserialized = None
96+
if response.status_code == 200:
97+
deserialized = self._deserialize('PrivateEndpointConnectionListResult', response)
98+
99+
if raw:
100+
client_raw_response = ClientRawResponse(deserialized, response)
101+
return client_raw_response
102+
103+
return deserialized
104+
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections'}
105+
42106
def get(
43107
self, resource_group_name, account_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config):
44108
"""Gets the specified private endpoint connection associated with the

sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "6.2.0"
12+
VERSION = "6.3.0"
1313

0 commit comments

Comments
 (0)