Skip to content

Commit

Permalink
march release (Azure#16966)
Browse files Browse the repository at this point in the history
* march release

* update

* update python version

* Stop Python 3.5 support
  • Loading branch information
xiangyan99 authored Mar 4, 2021
1 parent 1c1a995 commit 419f659
Show file tree
Hide file tree
Showing 72 changed files with 3,279 additions and 711 deletions.
5 changes: 5 additions & 0 deletions sdk/synapse/azure-synapse-accesscontrol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release History

## 0.6.0 (2021-03-09)

* Internal bugfixes (re-generated with latest generator)
* Stop Python 3.5 support

## 0.5.0 (2021-02-09)

* Update to API version 2020-08-01
Expand Down
2 changes: 1 addition & 1 deletion sdk/synapse/azure-synapse-accesscontrol/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Synapse AccessControl Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
self.endpoint = endpoint
self.api_version = "2020-08-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
kwargs.setdefault('sdk_moniker', 'synapse-accesscontrol/{}'.format(VERSION))
self._configure(**kwargs)

def _configure(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "0.5.0"
VERSION = "0.6.0"
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
self.endpoint = endpoint
self.api_version = "2020-08-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
kwargs.setdefault('sdk_moniker', 'synapse-accesscontrol/{}'.format(VERSION))
self._configure(**kwargs)

def _configure(
Expand Down
1 change: 0 additions & 1 deletion sdk/synapse/azure-synapse-accesscontrol/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down
11 changes: 11 additions & 0 deletions sdk/synapse/azure-synapse-artifacts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release History

## 0.5.0 (2021-03-09)

** Features **

- Add library operations
- Change create_or_update_sql_script, delete_sql_script, rename_sql_script to long running operations

** Breaking changes **

- Stop Python 3.5 support

## 0.4.0 (2020-12-08)

** Features **
Expand Down
2 changes: 1 addition & 1 deletion sdk/synapse/azure-synapse-artifacts/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Synapse Artifacts Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
This package has been tested with Python 2.7, 3.6, 3.7, 3.8 and 3.9.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from .operations import SqlPoolsOperations
from .operations import BigDataPoolsOperations
from .operations import IntegrationRuntimesOperations
from .operations import LibraryOperations
from .operations import WorkspaceGitRepoManagementOperations
from . import models

Expand Down Expand Up @@ -70,6 +71,8 @@ class ArtifactsClient(object):
:vartype big_data_pools: azure.synapse.artifacts.operations.BigDataPoolsOperations
:ivar integration_runtimes: IntegrationRuntimesOperations operations
:vartype integration_runtimes: azure.synapse.artifacts.operations.IntegrationRuntimesOperations
:ivar library: LibraryOperations operations
:vartype library: azure.synapse.artifacts.operations.LibraryOperations
:ivar workspace_git_repo_management: WorkspaceGitRepoManagementOperations operations
:vartype workspace_git_repo_management: azure.synapse.artifacts.operations.WorkspaceGitRepoManagementOperations
:param credential: Credential needed for the client to connect to Azure.
Expand Down Expand Up @@ -125,6 +128,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.integration_runtimes = IntegrationRuntimesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.library = LibraryOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspace_git_repo_management = WorkspaceGitRepoManagementOperations(
self._client, self._config, self._serialize, self._deserialize)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
self.endpoint = endpoint
self.api_version = "2019-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
kwargs.setdefault('sdk_moniker', 'synapse-artifacts/{}'.format(VERSION))
self._configure(**kwargs)

def _configure(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "0.4.0"
VERSION = "0.5.0"
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from .operations import SqlPoolsOperations
from .operations import BigDataPoolsOperations
from .operations import IntegrationRuntimesOperations
from .operations import LibraryOperations
from .operations import WorkspaceGitRepoManagementOperations
from .. import models

Expand Down Expand Up @@ -68,6 +69,8 @@ class ArtifactsClient(object):
:vartype big_data_pools: azure.synapse.artifacts.aio.operations.BigDataPoolsOperations
:ivar integration_runtimes: IntegrationRuntimesOperations operations
:vartype integration_runtimes: azure.synapse.artifacts.aio.operations.IntegrationRuntimesOperations
:ivar library: LibraryOperations operations
:vartype library: azure.synapse.artifacts.aio.operations.LibraryOperations
:ivar workspace_git_repo_management: WorkspaceGitRepoManagementOperations operations
:vartype workspace_git_repo_management: azure.synapse.artifacts.aio.operations.WorkspaceGitRepoManagementOperations
:param credential: Credential needed for the client to connect to Azure.
Expand Down Expand Up @@ -122,6 +125,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.integration_runtimes = IntegrationRuntimesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.library = LibraryOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspace_git_repo_management = WorkspaceGitRepoManagementOperations(
self._client, self._config, self._serialize, self._deserialize)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
self.endpoint = endpoint
self.api_version = "2019-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
kwargs.setdefault('sdk_moniker', 'synapse-artifacts/{}'.format(VERSION))
self._configure(**kwargs)

def _configure(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from ._sql_pools_operations import SqlPoolsOperations
from ._big_data_pools_operations import BigDataPoolsOperations
from ._integration_runtimes_operations import IntegrationRuntimesOperations
from ._library_operations import LibraryOperations
from ._workspace_git_repo_management_operations import WorkspaceGitRepoManagementOperations

__all__ = [
Expand All @@ -39,5 +40,6 @@
'SqlPoolsOperations',
'BigDataPoolsOperations',
'IntegrationRuntimesOperations',
'LibraryOperations',
'WorkspaceGitRepoManagementOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def list(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorContract, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorContract, response)
raise HttpResponseError(response=response, model=error)

deserialized = self._deserialize('BigDataPoolResourceInfoListResult', pipeline_response)
Expand Down Expand Up @@ -134,7 +134,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.ErrorContract, response)
error = self._deserialize.failsafe_deserialize(_models.ErrorContract, response)
raise HttpResponseError(response=response, model=error)

deserialized = self._deserialize('BigDataPoolResourceInfo', pipeline_response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def _create_data_flow_debug_session_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

response_headers = {}
Expand Down Expand Up @@ -109,8 +109,8 @@ async def begin_create_data_flow_debug_session(
:type request: ~azure.synapse.artifacts.models.CreateDataFlowDebugSessionRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response)
Expand Down Expand Up @@ -219,7 +219,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error)

Expand Down Expand Up @@ -278,7 +278,7 @@ async def add_data_flow(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

deserialized = self._deserialize('AddDataFlowToDebugSessionResponse', pipeline_response)
Expand Down Expand Up @@ -337,7 +337,7 @@ async def delete_data_flow_debug_session(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

if cls:
Expand Down Expand Up @@ -384,7 +384,7 @@ async def _execute_command_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

response_headers = {}
Expand Down Expand Up @@ -412,8 +412,8 @@ async def begin_execute_command(
:type request: ~azure.synapse.artifacts.models.DataFlowDebugCommandRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def _create_or_update_data_flow_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

deserialized = None
Expand Down Expand Up @@ -119,8 +119,8 @@ async def begin_create_or_update_data_flow(
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either DataFlowResource or the result of cls(response)
Expand Down Expand Up @@ -222,7 +222,7 @@ async def get_data_flow(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

deserialized = self._deserialize('DataFlowResource', pipeline_response)
Expand Down Expand Up @@ -268,7 +268,7 @@ async def _delete_data_flow_initial(

if response.status_code not in [200, 202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

if cls:
Expand All @@ -287,8 +287,8 @@ async def begin_delete_data_flow(
:type data_flow_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -378,7 +378,7 @@ async def _rename_data_flow_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
raise HttpResponseError(response=response, model=error)

if cls:
Expand All @@ -400,8 +400,8 @@ async def begin_rename_data_flow(
:type new_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:keyword polling: Pass in True if you'd like the AsyncLROBasePolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
Expand Down Expand Up @@ -509,7 +509,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(_models.CloudError, response)
error = self._deserialize.failsafe_deserialize(_models.CloudError, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error)

Expand Down
Loading

0 comments on commit 419f659

Please sign in to comment.