Skip to content

Commit 9beca49

Browse files
Azure CLI BotSDKAutoSravan Thupili
authored
[AutoRelease] t2-synapse-2021-10-09-97705 (Azure#21185)
* CodeGen from PR 16199 in Azure/azure-rest-api-specs Sqlpoolcreatemodefix01 (Azure#16199) * Added correct description for sqlpool createMode description * Added correct description for sqlpool createMode description * Added correct description for sqlpool createMode description * Modified createMode as Enum and modelAsString * prettier fix Co-authored-by: Sravan Thupili <srthupil@microsoft.com> * version,CHANGELOG Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: Sravan Thupili <srthupil@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 430d268 commit 9beca49

30 files changed

+14559
-422
lines changed

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

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

3+
## 2.1.0b2 (2021-10-09)
4+
5+
**Features**
6+
7+
- Added operation group KustoPoolOperations
8+
- Added operation group KustoPoolChildResourceOperations
9+
- Added operation group KustoPoolsOperations
10+
- Added operation group KustoPoolAttachedDatabaseConfigurationsOperations
11+
- Added operation group KustoOperationsOperations
12+
- Added operation group KustoPoolDatabasesOperations
13+
- Added operation group KustoPoolDataConnectionsOperations
14+
- Added operation group KustoPoolPrincipalAssignmentsOperations
15+
- Added operation group KustoPoolDatabasePrincipalAssignmentsOperations
16+
317
## 2.1.0b1 (2021-09-06)
418

519
**Features**

sdk/synapse/azure-mgmt-synapse/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "31a7b110ad291f6780f9457dde4966b2df3a18c7",
7+
"commit": "f8aa8bcbac3d389a1ed5b9c77f1bcb6cc2074a7d",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/synapse/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/synapse/resource-manager/readme.md"

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_metadata.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@
161161
"integration_runtime_monitoring_data": "IntegrationRuntimeMonitoringDataOperations",
162162
"integration_runtime_status": "IntegrationRuntimeStatusOperations",
163163
"spark_configuration": "SparkConfigurationOperations",
164-
"spark_configurations": "SparkConfigurationsOperations"
164+
"spark_configurations": "SparkConfigurationsOperations",
165+
"kusto_operations": "KustoOperationsOperations",
166+
"kusto_pool": "KustoPoolOperations",
167+
"kusto_pools": "KustoPoolsOperations",
168+
"kusto_pool_child_resource": "KustoPoolChildResourceOperations",
169+
"kusto_pool_attached_database_configurations": "KustoPoolAttachedDatabaseConfigurationsOperations",
170+
"kusto_pool_databases": "KustoPoolDatabasesOperations",
171+
"kusto_pool_data_connections": "KustoPoolDataConnectionsOperations",
172+
"kusto_pool_principal_assignments": "KustoPoolPrincipalAssignmentsOperations",
173+
"kusto_pool_database_principal_assignments": "KustoPoolDatabasePrincipalAssignmentsOperations"
165174
}
166175
}

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_synapse_management_client.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@
8383
from .operations import IntegrationRuntimeStatusOperations
8484
from .operations import SparkConfigurationOperations
8585
from .operations import SparkConfigurationsOperations
86+
from .operations import KustoOperationsOperations
87+
from .operations import KustoPoolOperations
88+
from .operations import KustoPoolsOperations
89+
from .operations import KustoPoolChildResourceOperations
90+
from .operations import KustoPoolAttachedDatabaseConfigurationsOperations
91+
from .operations import KustoPoolDatabasesOperations
92+
from .operations import KustoPoolDataConnectionsOperations
93+
from .operations import KustoPoolPrincipalAssignmentsOperations
94+
from .operations import KustoPoolDatabasePrincipalAssignmentsOperations
8695
from . import models
8796

8897

@@ -217,6 +226,24 @@ class SynapseManagementClient(object):
217226
:vartype spark_configuration: azure.mgmt.synapse.operations.SparkConfigurationOperations
218227
:ivar spark_configurations: SparkConfigurationsOperations operations
219228
:vartype spark_configurations: azure.mgmt.synapse.operations.SparkConfigurationsOperations
229+
:ivar kusto_operations: KustoOperationsOperations operations
230+
:vartype kusto_operations: azure.mgmt.synapse.operations.KustoOperationsOperations
231+
:ivar kusto_pool: KustoPoolOperations operations
232+
:vartype kusto_pool: azure.mgmt.synapse.operations.KustoPoolOperations
233+
:ivar kusto_pools: KustoPoolsOperations operations
234+
:vartype kusto_pools: azure.mgmt.synapse.operations.KustoPoolsOperations
235+
:ivar kusto_pool_child_resource: KustoPoolChildResourceOperations operations
236+
:vartype kusto_pool_child_resource: azure.mgmt.synapse.operations.KustoPoolChildResourceOperations
237+
:ivar kusto_pool_attached_database_configurations: KustoPoolAttachedDatabaseConfigurationsOperations operations
238+
:vartype kusto_pool_attached_database_configurations: azure.mgmt.synapse.operations.KustoPoolAttachedDatabaseConfigurationsOperations
239+
:ivar kusto_pool_databases: KustoPoolDatabasesOperations operations
240+
:vartype kusto_pool_databases: azure.mgmt.synapse.operations.KustoPoolDatabasesOperations
241+
:ivar kusto_pool_data_connections: KustoPoolDataConnectionsOperations operations
242+
:vartype kusto_pool_data_connections: azure.mgmt.synapse.operations.KustoPoolDataConnectionsOperations
243+
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
244+
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.operations.KustoPoolPrincipalAssignmentsOperations
245+
:ivar kusto_pool_database_principal_assignments: KustoPoolDatabasePrincipalAssignmentsOperations operations
246+
:vartype kusto_pool_database_principal_assignments: azure.mgmt.synapse.operations.KustoPoolDatabasePrincipalAssignmentsOperations
220247
:param credential: Credential needed for the client to connect to Azure.
221248
:type credential: ~azure.core.credentials.TokenCredential
222249
:param subscription_id: The ID of the target subscription.
@@ -371,6 +398,24 @@ def __init__(
371398
self._client, self._config, self._serialize, self._deserialize)
372399
self.spark_configurations = SparkConfigurationsOperations(
373400
self._client, self._config, self._serialize, self._deserialize)
401+
self.kusto_operations = KustoOperationsOperations(
402+
self._client, self._config, self._serialize, self._deserialize)
403+
self.kusto_pool = KustoPoolOperations(
404+
self._client, self._config, self._serialize, self._deserialize)
405+
self.kusto_pools = KustoPoolsOperations(
406+
self._client, self._config, self._serialize, self._deserialize)
407+
self.kusto_pool_child_resource = KustoPoolChildResourceOperations(
408+
self._client, self._config, self._serialize, self._deserialize)
409+
self.kusto_pool_attached_database_configurations = KustoPoolAttachedDatabaseConfigurationsOperations(
410+
self._client, self._config, self._serialize, self._deserialize)
411+
self.kusto_pool_databases = KustoPoolDatabasesOperations(
412+
self._client, self._config, self._serialize, self._deserialize)
413+
self.kusto_pool_data_connections = KustoPoolDataConnectionsOperations(
414+
self._client, self._config, self._serialize, self._deserialize)
415+
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
416+
self._client, self._config, self._serialize, self._deserialize)
417+
self.kusto_pool_database_principal_assignments = KustoPoolDatabasePrincipalAssignmentsOperations(
418+
self._client, self._config, self._serialize, self._deserialize)
374419

375420
def _send_request(self, http_request, **kwargs):
376421
# type: (HttpRequest, Any) -> HttpResponse

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.1.0b1"
9+
VERSION = "2.1.0b2"

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/_synapse_management_client.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@
8181
from .operations import IntegrationRuntimeStatusOperations
8282
from .operations import SparkConfigurationOperations
8383
from .operations import SparkConfigurationsOperations
84+
from .operations import KustoOperationsOperations
85+
from .operations import KustoPoolOperations
86+
from .operations import KustoPoolsOperations
87+
from .operations import KustoPoolChildResourceOperations
88+
from .operations import KustoPoolAttachedDatabaseConfigurationsOperations
89+
from .operations import KustoPoolDatabasesOperations
90+
from .operations import KustoPoolDataConnectionsOperations
91+
from .operations import KustoPoolPrincipalAssignmentsOperations
92+
from .operations import KustoPoolDatabasePrincipalAssignmentsOperations
8493
from .. import models
8594

8695

@@ -215,6 +224,24 @@ class SynapseManagementClient(object):
215224
:vartype spark_configuration: azure.mgmt.synapse.aio.operations.SparkConfigurationOperations
216225
:ivar spark_configurations: SparkConfigurationsOperations operations
217226
:vartype spark_configurations: azure.mgmt.synapse.aio.operations.SparkConfigurationsOperations
227+
:ivar kusto_operations: KustoOperationsOperations operations
228+
:vartype kusto_operations: azure.mgmt.synapse.aio.operations.KustoOperationsOperations
229+
:ivar kusto_pool: KustoPoolOperations operations
230+
:vartype kusto_pool: azure.mgmt.synapse.aio.operations.KustoPoolOperations
231+
:ivar kusto_pools: KustoPoolsOperations operations
232+
:vartype kusto_pools: azure.mgmt.synapse.aio.operations.KustoPoolsOperations
233+
:ivar kusto_pool_child_resource: KustoPoolChildResourceOperations operations
234+
:vartype kusto_pool_child_resource: azure.mgmt.synapse.aio.operations.KustoPoolChildResourceOperations
235+
:ivar kusto_pool_attached_database_configurations: KustoPoolAttachedDatabaseConfigurationsOperations operations
236+
:vartype kusto_pool_attached_database_configurations: azure.mgmt.synapse.aio.operations.KustoPoolAttachedDatabaseConfigurationsOperations
237+
:ivar kusto_pool_databases: KustoPoolDatabasesOperations operations
238+
:vartype kusto_pool_databases: azure.mgmt.synapse.aio.operations.KustoPoolDatabasesOperations
239+
:ivar kusto_pool_data_connections: KustoPoolDataConnectionsOperations operations
240+
:vartype kusto_pool_data_connections: azure.mgmt.synapse.aio.operations.KustoPoolDataConnectionsOperations
241+
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
242+
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.aio.operations.KustoPoolPrincipalAssignmentsOperations
243+
:ivar kusto_pool_database_principal_assignments: KustoPoolDatabasePrincipalAssignmentsOperations operations
244+
:vartype kusto_pool_database_principal_assignments: azure.mgmt.synapse.aio.operations.KustoPoolDatabasePrincipalAssignmentsOperations
218245
:param credential: Credential needed for the client to connect to Azure.
219246
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
220247
:param subscription_id: The ID of the target subscription.
@@ -368,6 +395,24 @@ def __init__(
368395
self._client, self._config, self._serialize, self._deserialize)
369396
self.spark_configurations = SparkConfigurationsOperations(
370397
self._client, self._config, self._serialize, self._deserialize)
398+
self.kusto_operations = KustoOperationsOperations(
399+
self._client, self._config, self._serialize, self._deserialize)
400+
self.kusto_pool = KustoPoolOperations(
401+
self._client, self._config, self._serialize, self._deserialize)
402+
self.kusto_pools = KustoPoolsOperations(
403+
self._client, self._config, self._serialize, self._deserialize)
404+
self.kusto_pool_child_resource = KustoPoolChildResourceOperations(
405+
self._client, self._config, self._serialize, self._deserialize)
406+
self.kusto_pool_attached_database_configurations = KustoPoolAttachedDatabaseConfigurationsOperations(
407+
self._client, self._config, self._serialize, self._deserialize)
408+
self.kusto_pool_databases = KustoPoolDatabasesOperations(
409+
self._client, self._config, self._serialize, self._deserialize)
410+
self.kusto_pool_data_connections = KustoPoolDataConnectionsOperations(
411+
self._client, self._config, self._serialize, self._deserialize)
412+
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
413+
self._client, self._config, self._serialize, self._deserialize)
414+
self.kusto_pool_database_principal_assignments = KustoPoolDatabasePrincipalAssignmentsOperations(
415+
self._client, self._config, self._serialize, self._deserialize)
371416

372417
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
373418
"""Runs the network request through the client's chained policies.

sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
7070
from ._integration_runtime_status_operations import IntegrationRuntimeStatusOperations
7171
from ._spark_configuration_operations import SparkConfigurationOperations
7272
from ._spark_configurations_operations import SparkConfigurationsOperations
73+
from ._kusto_operations_operations import KustoOperationsOperations
74+
from ._kusto_pool_operations import KustoPoolOperations
75+
from ._kusto_pools_operations import KustoPoolsOperations
76+
from ._kusto_pool_child_resource_operations import KustoPoolChildResourceOperations
77+
from ._kusto_pool_attached_database_configurations_operations import KustoPoolAttachedDatabaseConfigurationsOperations
78+
from ._kusto_pool_databases_operations import KustoPoolDatabasesOperations
79+
from ._kusto_pool_data_connections_operations import KustoPoolDataConnectionsOperations
80+
from ._kusto_pool_principal_assignments_operations import KustoPoolPrincipalAssignmentsOperations
81+
from ._kusto_pool_database_principal_assignments_operations import KustoPoolDatabasePrincipalAssignmentsOperations
7382

7483
__all__ = [
7584
'AzureADOnlyAuthenticationsOperations',
@@ -136,4 +145,13 @@
136145
'IntegrationRuntimeStatusOperations',
137146
'SparkConfigurationOperations',
138147
'SparkConfigurationsOperations',
148+
'KustoOperationsOperations',
149+
'KustoPoolOperations',
150+
'KustoPoolsOperations',
151+
'KustoPoolChildResourceOperations',
152+
'KustoPoolAttachedDatabaseConfigurationsOperations',
153+
'KustoPoolDatabasesOperations',
154+
'KustoPoolDataConnectionsOperations',
155+
'KustoPoolPrincipalAssignmentsOperations',
156+
'KustoPoolDatabasePrincipalAssignmentsOperations',
139157
]
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar
9+
import warnings
10+
11+
from azure.core.async_paging import AsyncItemPaged, AsyncList
12+
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
13+
from azure.core.pipeline import PipelineResponse
14+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
15+
from azure.mgmt.core.exceptions import ARMErrorFormat
16+
17+
from ... import models as _models
18+
19+
T = TypeVar('T')
20+
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
21+
22+
class KustoOperationsOperations:
23+
"""KustoOperationsOperations async operations.
24+
25+
You should not instantiate this class directly. Instead, you should create a Client instance that
26+
instantiates it for you and attaches it as an attribute.
27+
28+
:ivar models: Alias to model classes used in this operation group.
29+
:type models: ~azure.mgmt.synapse.models
30+
:param client: Client for service requests.
31+
:param config: Configuration of service client.
32+
:param serializer: An object model serializer.
33+
:param deserializer: An object model deserializer.
34+
"""
35+
36+
models = _models
37+
38+
def __init__(self, client, config, serializer, deserializer) -> None:
39+
self._client = client
40+
self._serialize = serializer
41+
self._deserialize = deserializer
42+
self._config = config
43+
44+
def list(
45+
self,
46+
**kwargs: Any
47+
) -> AsyncIterable["_models.OperationListResult"]:
48+
"""Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.
49+
50+
:keyword callable cls: A custom type or function that will be passed the direct response
51+
:return: An iterator like instance of either OperationListResult or the result of cls(response)
52+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.synapse.models.OperationListResult]
53+
:raises: ~azure.core.exceptions.HttpResponseError
54+
"""
55+
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"]
56+
error_map = {
57+
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
58+
}
59+
error_map.update(kwargs.pop('error_map', {}))
60+
api_version = "2021-06-01-preview"
61+
accept = "application/json"
62+
63+
def prepare_request(next_link=None):
64+
# Construct headers
65+
header_parameters = {} # type: Dict[str, Any]
66+
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
67+
68+
if not next_link:
69+
# Construct URL
70+
url = self.list.metadata['url'] # type: ignore
71+
# Construct parameters
72+
query_parameters = {} # type: Dict[str, Any]
73+
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
74+
75+
request = self._client.get(url, query_parameters, header_parameters)
76+
else:
77+
url = next_link
78+
query_parameters = {} # type: Dict[str, Any]
79+
request = self._client.get(url, query_parameters, header_parameters)
80+
return request
81+
82+
async def extract_data(pipeline_response):
83+
deserialized = self._deserialize('OperationListResult', pipeline_response)
84+
list_of_elem = deserialized.value
85+
if cls:
86+
list_of_elem = cls(list_of_elem)
87+
return deserialized.next_link or None, AsyncList(list_of_elem)
88+
89+
async def get_next(next_link=None):
90+
request = prepare_request(next_link)
91+
92+
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
93+
response = pipeline_response.http_response
94+
95+
if response.status_code not in [200]:
96+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
97+
map_error(status_code=response.status_code, response=response, error_map=error_map)
98+
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
99+
100+
return pipeline_response
101+
102+
return AsyncItemPaged(
103+
get_next, extract_data
104+
)
105+
list.metadata = {'url': '/providers/Microsoft.Synapse/kustooperations'} # type: ignore

0 commit comments

Comments
 (0)