Skip to content

Commit 5739014

Browse files
author
SDKAuto
committed
CodeGen from PR 15410 in Azure/azure-rest-api-specs
Merge 6010876440d46004379d602fbdfb75a236ed5f5a into 2b4fc08
1 parent d238273 commit 5739014

File tree

153 files changed

+15995
-1696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+15995
-1696
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.0.6369",
3-
"use": "@autorest/[email protected]",
4-
"commit": "e6a01441f54c719b8713490ee37e51d6220073c2",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "df8f467ae9c6232ef7e7b860c08b91366e7b22e8",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"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.6.2 --version=3.0.6369",
9+
"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/[email protected].2 --version=3.4.5",
710
"readme": "specification/synapse/resource-manager/readme.md"
811
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-03-01"
51+
self.api_version = "2021-06-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
5454
self._configure(**kwargs)

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-03-01",
3-
"total_api_version_list": ["2021-03-01"],
2+
"chosen_version": "2021-06-01-preview",
3+
"total_api_version_list": ["2021-06-01-preview"],
44
"client": {
55
"name": "SynapseManagementClient",
66
"filename": "_synapse_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"SynapseManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -111,6 +111,15 @@
111111
"integration_runtime_monitoring_data": "IntegrationRuntimeMonitoringDataOperations",
112112
"integration_runtime_status": "IntegrationRuntimeStatusOperations",
113113
"keys": "KeysOperations",
114+
"kusto_operations": "KustoOperationsOperations",
115+
"kusto_pool": "KustoPoolOperations",
116+
"kusto_pools": "KustoPoolsOperations",
117+
"kusto_pool_child_resource": "KustoPoolChildResourceOperations",
118+
"attached_database_configurations": "AttachedDatabaseConfigurationsOperations",
119+
"databases": "DatabasesOperations",
120+
"data_connections": "DataConnectionsOperations",
121+
"kusto_pool_principal_assignments": "KustoPoolPrincipalAssignmentsOperations",
122+
"database_principal_assignments": "DatabasePrincipalAssignmentsOperations",
114123
"library": "LibraryOperations",
115124
"libraries": "LibrariesOperations",
116125
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
@@ -159,11 +168,5 @@
159168
"workspace_sql_aad_admins": "WorkspaceSqlAadAdminsOperations",
160169
"workspace_managed_identity_sql_control_settings": "WorkspaceManagedIdentitySqlControlSettingsOperations",
161170
"restorable_dropped_sql_pools": "RestorableDroppedSqlPoolsOperations"
162-
},
163-
"operation_mixins": {
164-
"sync_imports": "None",
165-
"async_imports": "None",
166-
"operations": {
167-
}
168171
}
169172
}

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

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import SynapseManagementClientConfiguration
2122
from .operations import BigDataPoolsOperations
@@ -31,6 +32,15 @@
3132
from .operations import IntegrationRuntimeMonitoringDataOperations
3233
from .operations import IntegrationRuntimeStatusOperations
3334
from .operations import KeysOperations
35+
from .operations import KustoOperationsOperations
36+
from .operations import KustoPoolOperations
37+
from .operations import KustoPoolsOperations
38+
from .operations import KustoPoolChildResourceOperations
39+
from .operations import AttachedDatabaseConfigurationsOperations
40+
from .operations import DatabasesOperations
41+
from .operations import DataConnectionsOperations
42+
from .operations import KustoPoolPrincipalAssignmentsOperations
43+
from .operations import DatabasePrincipalAssignmentsOperations
3444
from .operations import LibraryOperations
3545
from .operations import LibrariesOperations
3646
from .operations import PrivateEndpointConnectionsOperations
@@ -111,6 +121,24 @@ class SynapseManagementClient(object):
111121
:vartype integration_runtime_status: azure.mgmt.synapse.operations.IntegrationRuntimeStatusOperations
112122
:ivar keys: KeysOperations operations
113123
:vartype keys: azure.mgmt.synapse.operations.KeysOperations
124+
:ivar kusto_operations: KustoOperationsOperations operations
125+
:vartype kusto_operations: azure.mgmt.synapse.operations.KustoOperationsOperations
126+
:ivar kusto_pool: KustoPoolOperations operations
127+
:vartype kusto_pool: azure.mgmt.synapse.operations.KustoPoolOperations
128+
:ivar kusto_pools: KustoPoolsOperations operations
129+
:vartype kusto_pools: azure.mgmt.synapse.operations.KustoPoolsOperations
130+
:ivar kusto_pool_child_resource: KustoPoolChildResourceOperations operations
131+
:vartype kusto_pool_child_resource: azure.mgmt.synapse.operations.KustoPoolChildResourceOperations
132+
:ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations
133+
:vartype attached_database_configurations: azure.mgmt.synapse.operations.AttachedDatabaseConfigurationsOperations
134+
:ivar databases: DatabasesOperations operations
135+
:vartype databases: azure.mgmt.synapse.operations.DatabasesOperations
136+
:ivar data_connections: DataConnectionsOperations operations
137+
:vartype data_connections: azure.mgmt.synapse.operations.DataConnectionsOperations
138+
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
139+
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.operations.KustoPoolPrincipalAssignmentsOperations
140+
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
141+
:vartype database_principal_assignments: azure.mgmt.synapse.operations.DatabasePrincipalAssignmentsOperations
114142
:ivar library: LibraryOperations operations
115143
:vartype library: azure.mgmt.synapse.operations.LibraryOperations
116144
:ivar libraries: LibrariesOperations operations
@@ -259,6 +287,24 @@ def __init__(
259287
self._client, self._config, self._serialize, self._deserialize)
260288
self.keys = KeysOperations(
261289
self._client, self._config, self._serialize, self._deserialize)
290+
self.kusto_operations = KustoOperationsOperations(
291+
self._client, self._config, self._serialize, self._deserialize)
292+
self.kusto_pool = KustoPoolOperations(
293+
self._client, self._config, self._serialize, self._deserialize)
294+
self.kusto_pools = KustoPoolsOperations(
295+
self._client, self._config, self._serialize, self._deserialize)
296+
self.kusto_pool_child_resource = KustoPoolChildResourceOperations(
297+
self._client, self._config, self._serialize, self._deserialize)
298+
self.attached_database_configurations = AttachedDatabaseConfigurationsOperations(
299+
self._client, self._config, self._serialize, self._deserialize)
300+
self.databases = DatabasesOperations(
301+
self._client, self._config, self._serialize, self._deserialize)
302+
self.data_connections = DataConnectionsOperations(
303+
self._client, self._config, self._serialize, self._deserialize)
304+
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
305+
self._client, self._config, self._serialize, self._deserialize)
306+
self.database_principal_assignments = DatabasePrincipalAssignmentsOperations(
307+
self._client, self._config, self._serialize, self._deserialize)
262308
self.library = LibraryOperations(
263309
self._client, self._config, self._serialize, self._deserialize)
264310
self.libraries = LibrariesOperations(
@@ -356,6 +402,24 @@ def __init__(
356402
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
357403
self._client, self._config, self._serialize, self._deserialize)
358404

405+
def _send_request(self, http_request, **kwargs):
406+
# type: (HttpRequest, Any) -> HttpResponse
407+
"""Runs the network request through the client's chained policies.
408+
409+
:param http_request: The network request you want to make. Required.
410+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
411+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
412+
:return: The response of your network call. Does not do error handling on your response.
413+
:rtype: ~azure.core.pipeline.transport.HttpResponse
414+
"""
415+
path_format_arguments = {
416+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
417+
}
418+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
419+
stream = kwargs.pop("stream", True)
420+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
421+
return pipeline_response.http_response
422+
359423
def close(self):
360424
# type: () -> None
361425
self._client.close()

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.0.0"
9+
VERSION = "1.0.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-03-01"
48+
self.api_version = "2021-06-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-synapse/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -29,6 +30,15 @@
2930
from .operations import IntegrationRuntimeMonitoringDataOperations
3031
from .operations import IntegrationRuntimeStatusOperations
3132
from .operations import KeysOperations
33+
from .operations import KustoOperationsOperations
34+
from .operations import KustoPoolOperations
35+
from .operations import KustoPoolsOperations
36+
from .operations import KustoPoolChildResourceOperations
37+
from .operations import AttachedDatabaseConfigurationsOperations
38+
from .operations import DatabasesOperations
39+
from .operations import DataConnectionsOperations
40+
from .operations import KustoPoolPrincipalAssignmentsOperations
41+
from .operations import DatabasePrincipalAssignmentsOperations
3242
from .operations import LibraryOperations
3343
from .operations import LibrariesOperations
3444
from .operations import PrivateEndpointConnectionsOperations
@@ -109,6 +119,24 @@ class SynapseManagementClient(object):
109119
:vartype integration_runtime_status: azure.mgmt.synapse.aio.operations.IntegrationRuntimeStatusOperations
110120
:ivar keys: KeysOperations operations
111121
:vartype keys: azure.mgmt.synapse.aio.operations.KeysOperations
122+
:ivar kusto_operations: KustoOperationsOperations operations
123+
:vartype kusto_operations: azure.mgmt.synapse.aio.operations.KustoOperationsOperations
124+
:ivar kusto_pool: KustoPoolOperations operations
125+
:vartype kusto_pool: azure.mgmt.synapse.aio.operations.KustoPoolOperations
126+
:ivar kusto_pools: KustoPoolsOperations operations
127+
:vartype kusto_pools: azure.mgmt.synapse.aio.operations.KustoPoolsOperations
128+
:ivar kusto_pool_child_resource: KustoPoolChildResourceOperations operations
129+
:vartype kusto_pool_child_resource: azure.mgmt.synapse.aio.operations.KustoPoolChildResourceOperations
130+
:ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations
131+
:vartype attached_database_configurations: azure.mgmt.synapse.aio.operations.AttachedDatabaseConfigurationsOperations
132+
:ivar databases: DatabasesOperations operations
133+
:vartype databases: azure.mgmt.synapse.aio.operations.DatabasesOperations
134+
:ivar data_connections: DataConnectionsOperations operations
135+
:vartype data_connections: azure.mgmt.synapse.aio.operations.DataConnectionsOperations
136+
:ivar kusto_pool_principal_assignments: KustoPoolPrincipalAssignmentsOperations operations
137+
:vartype kusto_pool_principal_assignments: azure.mgmt.synapse.aio.operations.KustoPoolPrincipalAssignmentsOperations
138+
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
139+
:vartype database_principal_assignments: azure.mgmt.synapse.aio.operations.DatabasePrincipalAssignmentsOperations
112140
:ivar library: LibraryOperations operations
113141
:vartype library: azure.mgmt.synapse.aio.operations.LibraryOperations
114142
:ivar libraries: LibrariesOperations operations
@@ -256,6 +284,24 @@ def __init__(
256284
self._client, self._config, self._serialize, self._deserialize)
257285
self.keys = KeysOperations(
258286
self._client, self._config, self._serialize, self._deserialize)
287+
self.kusto_operations = KustoOperationsOperations(
288+
self._client, self._config, self._serialize, self._deserialize)
289+
self.kusto_pool = KustoPoolOperations(
290+
self._client, self._config, self._serialize, self._deserialize)
291+
self.kusto_pools = KustoPoolsOperations(
292+
self._client, self._config, self._serialize, self._deserialize)
293+
self.kusto_pool_child_resource = KustoPoolChildResourceOperations(
294+
self._client, self._config, self._serialize, self._deserialize)
295+
self.attached_database_configurations = AttachedDatabaseConfigurationsOperations(
296+
self._client, self._config, self._serialize, self._deserialize)
297+
self.databases = DatabasesOperations(
298+
self._client, self._config, self._serialize, self._deserialize)
299+
self.data_connections = DataConnectionsOperations(
300+
self._client, self._config, self._serialize, self._deserialize)
301+
self.kusto_pool_principal_assignments = KustoPoolPrincipalAssignmentsOperations(
302+
self._client, self._config, self._serialize, self._deserialize)
303+
self.database_principal_assignments = DatabasePrincipalAssignmentsOperations(
304+
self._client, self._config, self._serialize, self._deserialize)
259305
self.library = LibraryOperations(
260306
self._client, self._config, self._serialize, self._deserialize)
261307
self.libraries = LibrariesOperations(
@@ -353,6 +399,23 @@ def __init__(
353399
self.restorable_dropped_sql_pools = RestorableDroppedSqlPoolsOperations(
354400
self._client, self._config, self._serialize, self._deserialize)
355401

402+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
403+
"""Runs the network request through the client's chained policies.
404+
405+
:param http_request: The network request you want to make. Required.
406+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
407+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
408+
:return: The response of your network call. Does not do error handling on your response.
409+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
410+
"""
411+
path_format_arguments = {
412+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
413+
}
414+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
415+
stream = kwargs.pop("stream", True)
416+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
417+
return pipeline_response.http_response
418+
356419
async def close(self) -> None:
357420
await self._client.close()
358421

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
@@ -19,6 +19,15 @@
1919
from ._integration_runtime_monitoring_data_operations import IntegrationRuntimeMonitoringDataOperations
2020
from ._integration_runtime_status_operations import IntegrationRuntimeStatusOperations
2121
from ._keys_operations import KeysOperations
22+
from ._kusto_operations_operations import KustoOperationsOperations
23+
from ._kusto_pool_operations import KustoPoolOperations
24+
from ._kusto_pools_operations import KustoPoolsOperations
25+
from ._kusto_pool_child_resource_operations import KustoPoolChildResourceOperations
26+
from ._attached_database_configurations_operations import AttachedDatabaseConfigurationsOperations
27+
from ._databases_operations import DatabasesOperations
28+
from ._data_connections_operations import DataConnectionsOperations
29+
from ._kusto_pool_principal_assignments_operations import KustoPoolPrincipalAssignmentsOperations
30+
from ._database_principal_assignments_operations import DatabasePrincipalAssignmentsOperations
2231
from ._library_operations import LibraryOperations
2332
from ._libraries_operations import LibrariesOperations
2433
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
@@ -82,6 +91,15 @@
8291
'IntegrationRuntimeMonitoringDataOperations',
8392
'IntegrationRuntimeStatusOperations',
8493
'KeysOperations',
94+
'KustoOperationsOperations',
95+
'KustoPoolOperations',
96+
'KustoPoolsOperations',
97+
'KustoPoolChildResourceOperations',
98+
'AttachedDatabaseConfigurationsOperations',
99+
'DatabasesOperations',
100+
'DataConnectionsOperations',
101+
'KustoPoolPrincipalAssignmentsOperations',
102+
'DatabasePrincipalAssignmentsOperations',
85103
'LibraryOperations',
86104
'LibrariesOperations',
87105
'PrivateEndpointConnectionsOperations',

0 commit comments

Comments
 (0)