Skip to content

Commit

Permalink
[AutoRelease] t2-datashare-2021-04-12-49497 (Azure#17959)
Browse files Browse the repository at this point in the history
* CodeGen from PR 13833 in Azure/azure-rest-api-specs
datashare readme t2 config (Azure#13833)

* version,CHANGELOG

* datashare t2 changelog config

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Zed <[email protected]>
  • Loading branch information
3 people authored and benbp committed Apr 19, 2021
1 parent 3b4c5e5 commit 113e06f
Show file tree
Hide file tree
Showing 39 changed files with 1,669 additions and 576 deletions.
52 changes: 52 additions & 0 deletions sdk/datashare/azure-mgmt-datashare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# Release History

## 1.0.0 (2021-04-12)

**Features**

- Model BlobContainerDataSetMapping has a new parameter system_data
- Model SqlDWTableDataSet has a new parameter system_data
- Model ADLSGen1FolderDataSet has a new parameter system_data
- Model KustoDatabaseDataSetMapping has a new parameter system_data
- Model ConsumerSourceDataSet has a new parameter system_data
- Model ScheduledTrigger has a new parameter system_data
- Model DataSet has a new parameter system_data
- Model KustoClusterDataSetMapping has a new parameter system_data
- Model BlobDataSet has a new parameter system_data
- Model SynchronizationSetting has a new parameter system_data
- Model BlobFolderDataSetMapping has a new parameter system_data
- Model OperationMetaMetricSpecification has a new parameter fill_gap_with_zero
- Model ConsumerInvitation has a new parameter expiration_date
- Model ConsumerInvitation has a new parameter system_data
- Model ProviderShareSubscription has a new parameter expiration_date
- Model ProviderShareSubscription has a new parameter system_data
- Model ProxyDto has a new parameter system_data
- Model BlobFolderDataSet has a new parameter system_data
- Model ADLSGen2FolderDataSet has a new parameter system_data
- Model ScheduledSynchronizationSetting has a new parameter system_data
- Model SqlDBTableDataSet has a new parameter system_data
- Model Trigger has a new parameter system_data
- Model ADLSGen2FileDataSetMapping has a new parameter system_data
- Model BlobContainerDataSet has a new parameter system_data
- Model BlobDataSetMapping has a new parameter system_data
- Model DefaultDto has a new parameter system_data
- Model DataSetMapping has a new parameter system_data
- Model KustoDatabaseDataSet has a new parameter system_data
- Model ShareSubscription has a new parameter expiration_date
- Model ShareSubscription has a new parameter system_data
- Model KustoClusterDataSet has a new parameter system_data
- Model SqlDBTableDataSetMapping has a new parameter system_data
- Model SqlDWTableDataSetMapping has a new parameter system_data
- Model Account has a new parameter system_data
- Model Share has a new parameter system_data
- Model Invitation has a new parameter expiration_date
- Model Invitation has a new parameter system_data
- Model ADLSGen2FileSystemDataSetMapping has a new parameter system_data
- Model ADLSGen2FolderDataSetMapping has a new parameter system_data
- Model ADLSGen2FileDataSet has a new parameter system_data
- Model ADLSGen1FileDataSet has a new parameter system_data
- Model ADLSGen2FileSystemDataSet has a new parameter system_data
- Added operation ProviderShareSubscriptionsOperations.adjust

**Breaking changes**

- Operation ProviderShareSubscriptionsOperations.reinstate has a new signature

## 1.0.0b1 (2020-12-04)

This is beta preview version.
Expand Down
1 change: 1 addition & 0 deletions sdk/datashare/azure-mgmt-datashare/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion sdk/datashare/azure-mgmt-datashare/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Microsoft Azure SDK for Python

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

Expand Down
8 changes: 8 additions & 0 deletions sdk/datashare/azure-mgmt-datashare/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/[email protected]",
"commit": "36084f10aacb98d77af2f67c9d57fca2bbe68e97",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/datashare/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/[email protected] --version=3.0.6369",
"readme": "specification/datashare/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2019-11-01"
self.api_version = "2020-09-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-datashare/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
120 changes: 120 additions & 0 deletions sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"chosen_version": "2020-09-01",
"total_api_version_list": ["2020-09-01"],
"client": {
"name": "DataShareManagementClient",
"filename": "_data_share_management_client",
"description": "Creates a Microsoft.DataShare management client.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"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\": [\"DataShareManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"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\": [\"DataShareManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The subscription identifier.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential: \"AsyncTokenCredential\",",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id: str,",
"description": "The subscription identifier.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
"signature": "api_version=None, # type: Optional[str]",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url=None, # type: Optional[str]",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
},
"async": {
"api_version": {
"signature": "api_version: Optional[str] = None,",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url: Optional[str] = None,",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile: KnownProfiles = KnownProfiles.default,",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
}
}
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null,
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"accounts": "AccountsOperations",
"consumer_invitations": "ConsumerInvitationsOperations",
"data_sets": "DataSetsOperations",
"data_set_mappings": "DataSetMappingsOperations",
"invitations": "InvitationsOperations",
"operations": "Operations",
"shares": "SharesOperations",
"provider_share_subscriptions": "ProviderShareSubscriptionsOperations",
"share_subscriptions": "ShareSubscriptionsOperations",
"consumer_source_data_sets": "ConsumerSourceDataSetsOperations",
"synchronization_settings": "SynchronizationSettingsOperations",
"triggers": "TriggersOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"

VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2019-11-01"
self.api_version = "2020-09-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-datashare/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -106,7 +106,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

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

Expand Down Expand Up @@ -141,7 +141,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
accept = "application/json"

# Construct URL
Expand All @@ -167,7 +167,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.DataShareError, response)
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('Account', pipeline_response)
Expand All @@ -190,7 +190,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -221,7 +221,7 @@ async def _create_initial(

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

if response.status_code == 200:
Expand Down Expand Up @@ -255,8 +255,8 @@ async def begin_create(
:type account: ~azure.mgmt.datashare.models.Account
: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 AsyncARMPolling 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 Account or the result of cls(response)
Expand Down Expand Up @@ -320,7 +320,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
accept = "application/json"

# Construct URL
Expand All @@ -346,7 +346,7 @@ async def _delete_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.DataShareError, response)
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
Expand Down Expand Up @@ -375,8 +375,8 @@ async def begin_delete(
:type account_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 AsyncARMPolling 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 OperationResponse or the result of cls(response)
Expand Down Expand Up @@ -455,7 +455,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -486,7 +486,7 @@ async def update(

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

deserialized = self._deserialize('Account', pipeline_response)
Expand Down Expand Up @@ -521,7 +521,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2019-11-01"
api_version = "2020-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -564,7 +564,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

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

Expand Down
Loading

0 comments on commit 113e06f

Please sign in to comment.