Skip to content

Commit 1a3ad63

Browse files
authored
Oct release (Azure#20890)
* Oct release * update spark
1 parent 6216cd9 commit 1a3ad63

File tree

128 files changed

+5099
-102463
lines changed

Some content is hidden

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

128 files changed

+5099
-102463
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 0.9.0 (Unreleased)
3+
## 0.9.0 (2021-10-05)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- re-generated based on tag package-artifacts-composite-v1
128

139
## 0.8.0 (2021-08-10)
1410

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._artifacts_client import ArtifactsClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013
__all__ = ['ArtifactsClient']
1114

1215
try:

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/_artifacts_client.py

Lines changed: 143 additions & 400 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for
5-
# license information.
6-
#
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
75
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
107
# --------------------------------------------------------------------------
8+
119
from typing import TYPE_CHECKING
1210

1311
from azure.core.configuration import Configuration
@@ -21,6 +19,7 @@
2119

2220
from azure.core.credentials import TokenCredential
2321

22+
2423
class ArtifactsClientConfiguration(Configuration):
2524
"""Configuration for ArtifactsClient.
2625
@@ -49,7 +48,7 @@ def __init__(
4948
self.credential = credential
5049
self.endpoint = endpoint
5150
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
52-
kwargs.setdefault('sdk_moniker', 'azure-synapse-artifacts/{}'.format(VERSION))
51+
kwargs.setdefault('sdk_moniker', 'synapse-artifacts/{}'.format(VERSION))
5352
self._configure(**kwargs)
5453

5554
def _configure(

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/aio/_artifacts_client.py

Lines changed: 143 additions & 405 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for
5-
# license information.
6-
#
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
75
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
107
# --------------------------------------------------------------------------
8+
119
from typing import Any, TYPE_CHECKING
1210

1311
from azure.core.configuration import Configuration
@@ -19,6 +17,7 @@
1917
# pylint: disable=unused-import,ungrouped-imports
2018
from azure.core.credentials_async import AsyncTokenCredential
2119

20+
2221
class ArtifactsClientConfiguration(Configuration):
2322
"""Configuration for ArtifactsClient.
2423
@@ -35,7 +34,7 @@ def __init__(
3534
self,
3635
credential: "AsyncTokenCredential",
3736
endpoint: str,
38-
**kwargs # type: Any
37+
**kwargs: Any
3938
) -> None:
4039
if credential is None:
4140
raise ValueError("Parameter 'credential' must not be None.")
@@ -46,7 +45,7 @@ def __init__(
4645
self.credential = credential
4746
self.endpoint = endpoint
4847
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
49-
kwargs.setdefault('sdk_moniker', 'azure-synapse-artifacts/{}'.format(VERSION))
48+
kwargs.setdefault('sdk_moniker', 'synapse-artifacts/{}'.format(VERSION))
5049
self._configure(**kwargs)
5150

5251
def _configure(

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/v2021_06_01_preview/operations/__init__.py renamed to sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/aio/operations/__init__.py

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

9-
from ._linked_service_operations import LinkedServiceOperations
10-
from ._dataset_operations import DatasetOperations
11-
from ._pipeline_operations import PipelineOperations
12-
from ._pipeline_run_operations import PipelineRunOperations
13-
from ._trigger_operations import TriggerOperations
14-
from ._trigger_run_operations import TriggerRunOperations
15-
from ._data_flow_operations import DataFlowOperations
16-
from ._data_flow_debug_session_operations import DataFlowDebugSessionOperations
17-
from ._sql_script_operations import SqlScriptOperations
18-
from ._spark_job_definition_operations import SparkJobDefinitionOperations
19-
from ._notebook_operations import NotebookOperations
20-
from ._notebook_operation_result_operations import NotebookOperationResultOperations
9+
from ._kql_scripts_operations import KqlScriptsOperations
10+
from ._kql_script_operations import KqlScriptOperations
2111
from ._spark_configuration_operations import SparkConfigurationOperations
2212
from ._big_data_pools_operations import BigDataPoolsOperations
13+
from ._data_flow_operations import DataFlowOperations
14+
from ._data_flow_debug_session_operations import DataFlowDebugSessionOperations
15+
from ._dataset_operations import DatasetOperations
2316
from ._workspace_git_repo_management_operations import WorkspaceGitRepoManagementOperations
2417
from ._integration_runtimes_operations import IntegrationRuntimesOperations
2518
from ._library_operations import LibraryOperations
26-
from ._operation_result_operations import OperationResultOperations
27-
from ._operation_status_operations import OperationStatusOperations
19+
from ._linked_service_operations import LinkedServiceOperations
20+
from ._notebook_operations import NotebookOperations
21+
from ._notebook_operation_result_operations import NotebookOperationResultOperations
22+
from ._pipeline_operations import PipelineOperations
23+
from ._pipeline_run_operations import PipelineRunOperations
24+
from ._spark_job_definition_operations import SparkJobDefinitionOperations
2825
from ._sql_pools_operations import SqlPoolsOperations
26+
from ._sql_script_operations import SqlScriptOperations
27+
from ._trigger_operations import TriggerOperations
28+
from ._trigger_run_operations import TriggerRunOperations
2929
from ._workspace_operations import WorkspaceOperations
3030

3131
__all__ = [
32-
'LinkedServiceOperations',
33-
'DatasetOperations',
34-
'PipelineOperations',
35-
'PipelineRunOperations',
36-
'TriggerOperations',
37-
'TriggerRunOperations',
38-
'DataFlowOperations',
39-
'DataFlowDebugSessionOperations',
40-
'SqlScriptOperations',
41-
'SparkJobDefinitionOperations',
42-
'NotebookOperations',
43-
'NotebookOperationResultOperations',
32+
'KqlScriptsOperations',
33+
'KqlScriptOperations',
4434
'SparkConfigurationOperations',
4535
'BigDataPoolsOperations',
36+
'DataFlowOperations',
37+
'DataFlowDebugSessionOperations',
38+
'DatasetOperations',
4639
'WorkspaceGitRepoManagementOperations',
4740
'IntegrationRuntimesOperations',
4841
'LibraryOperations',
49-
'OperationResultOperations',
50-
'OperationStatusOperations',
42+
'LinkedServiceOperations',
43+
'NotebookOperations',
44+
'NotebookOperationResultOperations',
45+
'PipelineOperations',
46+
'PipelineRunOperations',
47+
'SparkJobDefinitionOperations',
5148
'SqlPoolsOperations',
49+
'SqlScriptOperations',
50+
'TriggerOperations',
51+
'TriggerRunOperations',
5252
'WorkspaceOperations',
5353
]

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/v2020_12_01/aio/operations/_big_data_pools_operations.py renamed to sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/aio/operations/_big_data_pools_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BigDataPoolsOperations:
2424
instantiates it for you and attaches it as an attribute.
2525
2626
:ivar models: Alias to model classes used in this operation group.
27-
:type models: ~azure.synapse.artifacts.v2020_12_01.models
27+
:type models: ~azure.synapse.artifacts.models
2828
:param client: Client for service requests.
2929
:param config: Configuration of service client.
3030
:param serializer: An object model serializer.
@@ -47,7 +47,7 @@ async def list(
4747
4848
:keyword callable cls: A custom type or function that will be passed the direct response
4949
:return: BigDataPoolResourceInfoListResult, or the result of cls(response)
50-
:rtype: ~azure.synapse.artifacts.v2020_12_01.models.BigDataPoolResourceInfoListResult
50+
:rtype: ~azure.synapse.artifacts.models.BigDataPoolResourceInfoListResult
5151
:raises: ~azure.core.exceptions.HttpResponseError
5252
"""
5353
cls = kwargs.pop('cls', None) # type: ClsType["_models.BigDataPoolResourceInfoListResult"]
@@ -101,7 +101,7 @@ async def get(
101101
:type big_data_pool_name: str
102102
:keyword callable cls: A custom type or function that will be passed the direct response
103103
:return: BigDataPoolResourceInfo, or the result of cls(response)
104-
:rtype: ~azure.synapse.artifacts.v2020_12_01.models.BigDataPoolResourceInfo
104+
:rtype: ~azure.synapse.artifacts.models.BigDataPoolResourceInfo
105105
:raises: ~azure.core.exceptions.HttpResponseError
106106
"""
107107
cls = kwargs.pop('cls', None) # type: ClsType["_models.BigDataPoolResourceInfo"]

sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/v2020_12_01/aio/operations/_data_flow_debug_session_operations.py renamed to sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/aio/operations/_data_flow_debug_session_operations.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DataFlowDebugSessionOperations:
2727
instantiates it for you and attaches it as an attribute.
2828
2929
:ivar models: Alias to model classes used in this operation group.
30-
:type models: ~azure.synapse.artifacts.v2020_12_01.models
30+
:type models: ~azure.synapse.artifacts.models
3131
:param client: Client for service requests.
3232
:param config: Configuration of service client.
3333
:param serializer: An object model serializer.
@@ -81,7 +81,7 @@ async def _create_data_flow_debug_session_initial(
8181

8282
if response.status_code not in [200, 202]:
8383
map_error(status_code=response.status_code, response=response, error_map=error_map)
84-
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
84+
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response)
8585
raise HttpResponseError(response=response, model=error)
8686

8787
response_headers = {}
@@ -106,15 +106,15 @@ async def begin_create_data_flow_debug_session(
106106
"""Creates a data flow debug session.
107107
108108
:param request: Data flow debug session definition.
109-
:type request: ~azure.synapse.artifacts.v2020_12_01.models.CreateDataFlowDebugSessionRequest
109+
:type request: ~azure.synapse.artifacts.models.CreateDataFlowDebugSessionRequest
110110
:keyword callable cls: A custom type or function that will be passed the direct response
111111
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
112112
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
113113
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
114114
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
115115
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
116116
:return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response)
117-
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.synapse.artifacts.v2020_12_01.models.CreateDataFlowDebugSessionResponse]
117+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.synapse.artifacts.models.CreateDataFlowDebugSessionResponse]
118118
:raises ~azure.core.exceptions.HttpResponseError:
119119
"""
120120
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@@ -167,7 +167,7 @@ def query_data_flow_debug_sessions_by_workspace(
167167
168168
:keyword callable cls: A custom type or function that will be passed the direct response
169169
:return: An iterator like instance of either QueryDataFlowDebugSessionsResponse or the result of cls(response)
170-
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.synapse.artifacts.v2020_12_01.models.QueryDataFlowDebugSessionsResponse]
170+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.synapse.artifacts.models.QueryDataFlowDebugSessionsResponse]
171171
:raises: ~azure.core.exceptions.HttpResponseError
172172
"""
173173
cls = kwargs.pop('cls', None) # type: ClsType["_models.QueryDataFlowDebugSessionsResponse"]
@@ -219,7 +219,7 @@ async def get_next(next_link=None):
219219
response = pipeline_response.http_response
220220

221221
if response.status_code not in [200]:
222-
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
222+
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response)
223223
map_error(status_code=response.status_code, response=response, error_map=error_map)
224224
raise HttpResponseError(response=response, model=error)
225225

@@ -238,10 +238,10 @@ async def add_data_flow(
238238
"""Add a data flow into debug session.
239239
240240
:param request: Data flow debug session definition with debug content.
241-
:type request: ~azure.synapse.artifacts.v2020_12_01.models.DataFlowDebugPackage
241+
:type request: ~azure.synapse.artifacts.models.DataFlowDebugPackage
242242
:keyword callable cls: A custom type or function that will be passed the direct response
243243
:return: AddDataFlowToDebugSessionResponse, or the result of cls(response)
244-
:rtype: ~azure.synapse.artifacts.v2020_12_01.models.AddDataFlowToDebugSessionResponse
244+
:rtype: ~azure.synapse.artifacts.models.AddDataFlowToDebugSessionResponse
245245
:raises: ~azure.core.exceptions.HttpResponseError
246246
"""
247247
cls = kwargs.pop('cls', None) # type: ClsType["_models.AddDataFlowToDebugSessionResponse"]
@@ -278,7 +278,7 @@ async def add_data_flow(
278278

279279
if response.status_code not in [200]:
280280
map_error(status_code=response.status_code, response=response, error_map=error_map)
281-
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
281+
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response)
282282
raise HttpResponseError(response=response, model=error)
283283

284284
deserialized = self._deserialize('AddDataFlowToDebugSessionResponse', pipeline_response)
@@ -297,7 +297,7 @@ async def delete_data_flow_debug_session(
297297
"""Deletes a data flow debug session.
298298
299299
:param request: Data flow debug session definition for deletion.
300-
:type request: ~azure.synapse.artifacts.v2020_12_01.models.DeleteDataFlowDebugSessionRequest
300+
:type request: ~azure.synapse.artifacts.models.DeleteDataFlowDebugSessionRequest
301301
:keyword callable cls: A custom type or function that will be passed the direct response
302302
:return: None, or the result of cls(response)
303303
:rtype: None
@@ -337,7 +337,7 @@ async def delete_data_flow_debug_session(
337337

338338
if response.status_code not in [200]:
339339
map_error(status_code=response.status_code, response=response, error_map=error_map)
340-
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
340+
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response)
341341
raise HttpResponseError(response=response, model=error)
342342

343343
if cls:
@@ -384,7 +384,7 @@ async def _execute_command_initial(
384384

385385
if response.status_code not in [200, 202]:
386386
map_error(status_code=response.status_code, response=response, error_map=error_map)
387-
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
387+
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response)
388388
raise HttpResponseError(response=response, model=error)
389389

390390
response_headers = {}
@@ -409,15 +409,15 @@ async def begin_execute_command(
409409
"""Execute a data flow debug command.
410410
411411
:param request: Data flow debug command definition.
412-
:type request: ~azure.synapse.artifacts.v2020_12_01.models.DataFlowDebugCommandRequest
412+
:type request: ~azure.synapse.artifacts.models.DataFlowDebugCommandRequest
413413
:keyword callable cls: A custom type or function that will be passed the direct response
414414
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
415415
:keyword polling: By default, your polling method will be AsyncLROBasePolling.
416416
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
417417
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
418418
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
419419
:return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response)
420-
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.synapse.artifacts.v2020_12_01.models.DataFlowDebugCommandResponse]
420+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.synapse.artifacts.models.DataFlowDebugCommandResponse]
421421
:raises ~azure.core.exceptions.HttpResponseError:
422422
"""
423423
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]

0 commit comments

Comments
 (0)