Skip to content

Commit 20a3df6

Browse files
msyycSDKAutoRAY-316
authored
[AutoRelease] t2-datashare-2021-04-12-49497 (#17959)
* CodeGen from PR 13833 in Azure/azure-rest-api-specs datashare readme t2 config (#13833) * version,CHANGELOG * datashare t2 changelog config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <[email protected]>
1 parent 6f4a33e commit 20a3df6

39 files changed

+1669
-576
lines changed

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

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

3+
## 1.0.0 (2021-04-12)
4+
5+
**Features**
6+
7+
- Model BlobContainerDataSetMapping has a new parameter system_data
8+
- Model SqlDWTableDataSet has a new parameter system_data
9+
- Model ADLSGen1FolderDataSet has a new parameter system_data
10+
- Model KustoDatabaseDataSetMapping has a new parameter system_data
11+
- Model ConsumerSourceDataSet has a new parameter system_data
12+
- Model ScheduledTrigger has a new parameter system_data
13+
- Model DataSet has a new parameter system_data
14+
- Model KustoClusterDataSetMapping has a new parameter system_data
15+
- Model BlobDataSet has a new parameter system_data
16+
- Model SynchronizationSetting has a new parameter system_data
17+
- Model BlobFolderDataSetMapping has a new parameter system_data
18+
- Model OperationMetaMetricSpecification has a new parameter fill_gap_with_zero
19+
- Model ConsumerInvitation has a new parameter expiration_date
20+
- Model ConsumerInvitation has a new parameter system_data
21+
- Model ProviderShareSubscription has a new parameter expiration_date
22+
- Model ProviderShareSubscription has a new parameter system_data
23+
- Model ProxyDto has a new parameter system_data
24+
- Model BlobFolderDataSet has a new parameter system_data
25+
- Model ADLSGen2FolderDataSet has a new parameter system_data
26+
- Model ScheduledSynchronizationSetting has a new parameter system_data
27+
- Model SqlDBTableDataSet has a new parameter system_data
28+
- Model Trigger has a new parameter system_data
29+
- Model ADLSGen2FileDataSetMapping has a new parameter system_data
30+
- Model BlobContainerDataSet has a new parameter system_data
31+
- Model BlobDataSetMapping has a new parameter system_data
32+
- Model DefaultDto has a new parameter system_data
33+
- Model DataSetMapping has a new parameter system_data
34+
- Model KustoDatabaseDataSet has a new parameter system_data
35+
- Model ShareSubscription has a new parameter expiration_date
36+
- Model ShareSubscription has a new parameter system_data
37+
- Model KustoClusterDataSet has a new parameter system_data
38+
- Model SqlDBTableDataSetMapping has a new parameter system_data
39+
- Model SqlDWTableDataSetMapping has a new parameter system_data
40+
- Model Account has a new parameter system_data
41+
- Model Share has a new parameter system_data
42+
- Model Invitation has a new parameter expiration_date
43+
- Model Invitation has a new parameter system_data
44+
- Model ADLSGen2FileSystemDataSetMapping has a new parameter system_data
45+
- Model ADLSGen2FolderDataSetMapping has a new parameter system_data
46+
- Model ADLSGen2FileDataSet has a new parameter system_data
47+
- Model ADLSGen1FileDataSet has a new parameter system_data
48+
- Model ADLSGen2FileSystemDataSet has a new parameter system_data
49+
- Added operation ProviderShareSubscriptionsOperations.adjust
50+
51+
**Breaking changes**
52+
53+
- Operation ProviderShareSubscriptionsOperations.reinstate has a new signature
54+
355
## 1.0.0b1 (2020-12-04)
456

557
This is beta preview version.

sdk/datashare/azure-mgmt-datashare/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py

sdk/datashare/azure-mgmt-datashare/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Microsoft Azure SDK for Python
22

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.0.6369",
3+
"use": "@autorest/[email protected]",
4+
"commit": "36084f10aacb98d77af2f67c9d57fca2bbe68e97",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"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",
7+
"readme": "specification/datashare/resource-manager/readme.md"
8+
}

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/_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 = "2019-11-01"
51+
self.api_version = "2020-09-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-datashare/{}'.format(VERSION))
5454
self._configure(**kwargs)
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"chosen_version": "2020-09-01",
3+
"total_api_version_list": ["2020-09-01"],
4+
"client": {
5+
"name": "DataShareManagementClient",
6+
"filename": "_data_share_management_client",
7+
"description": "Creates a Microsoft.DataShare management client.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"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\": [\"DataShareManagementClientConfiguration\"]}}, \"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\": [\"DataShareManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The subscription identifier.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The subscription identifier.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"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\"]}}}",
98+
"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\"]}}}"
99+
},
100+
"operation_groups": {
101+
"accounts": "AccountsOperations",
102+
"consumer_invitations": "ConsumerInvitationsOperations",
103+
"data_sets": "DataSetsOperations",
104+
"data_set_mappings": "DataSetMappingsOperations",
105+
"invitations": "InvitationsOperations",
106+
"operations": "Operations",
107+
"shares": "SharesOperations",
108+
"provider_share_subscriptions": "ProviderShareSubscriptionsOperations",
109+
"share_subscriptions": "ShareSubscriptionsOperations",
110+
"consumer_source_data_sets": "ConsumerSourceDataSetsOperations",
111+
"synchronization_settings": "SynchronizationSettingsOperations",
112+
"triggers": "TriggersOperations"
113+
},
114+
"operation_mixins": {
115+
"sync_imports": "None",
116+
"async_imports": "None",
117+
"operations": {
118+
}
119+
}
120+
}

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

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

9-
VERSION = "1.0.0b1"
10-
9+
VERSION = "1.0.0"

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/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 = "2019-11-01"
48+
self.api_version = "2020-09-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-datashare/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/aio/operations/_accounts_operations.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def list_by_subscription(
6464
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6565
}
6666
error_map.update(kwargs.pop('error_map', {}))
67-
api_version = "2019-11-01"
67+
api_version = "2020-09-01"
6868
accept = "application/json"
6969

7070
def prepare_request(next_link=None):
@@ -106,7 +106,7 @@ async def get_next(next_link=None):
106106
response = pipeline_response.http_response
107107

108108
if response.status_code not in [200]:
109-
error = self._deserialize(_models.DataShareError, response)
109+
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
110110
map_error(status_code=response.status_code, response=response, error_map=error_map)
111111
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
112112

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

147147
# Construct URL
@@ -167,7 +167,7 @@ async def get(
167167

168168
if response.status_code not in [200]:
169169
map_error(status_code=response.status_code, response=response, error_map=error_map)
170-
error = self._deserialize(_models.DataShareError, response)
170+
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
171171
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
172172

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

@@ -221,7 +221,7 @@ async def _create_initial(
221221

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

227227
if response.status_code == 200:
@@ -255,8 +255,8 @@ async def begin_create(
255255
:type account: ~azure.mgmt.datashare.models.Account
256256
:keyword callable cls: A custom type or function that will be passed the direct response
257257
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
258-
:keyword polling: True for ARMPolling, False for no polling, or a
259-
polling object for personal polling strategy
258+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
259+
False for no polling, or your own initialized polling object for a personal polling strategy.
260260
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
261261
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
262262
:return: An instance of AsyncLROPoller that returns either Account or the result of cls(response)
@@ -320,7 +320,7 @@ async def _delete_initial(
320320
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
321321
}
322322
error_map.update(kwargs.pop('error_map', {}))
323-
api_version = "2019-11-01"
323+
api_version = "2020-09-01"
324324
accept = "application/json"
325325

326326
# Construct URL
@@ -346,7 +346,7 @@ async def _delete_initial(
346346

347347
if response.status_code not in [200, 202, 204]:
348348
map_error(status_code=response.status_code, response=response, error_map=error_map)
349-
error = self._deserialize(_models.DataShareError, response)
349+
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
350350
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
351351

352352
deserialized = None
@@ -375,8 +375,8 @@ async def begin_delete(
375375
:type account_name: str
376376
:keyword callable cls: A custom type or function that will be passed the direct response
377377
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
378-
:keyword polling: True for ARMPolling, False for no polling, or a
379-
polling object for personal polling strategy
378+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
379+
False for no polling, or your own initialized polling object for a personal polling strategy.
380380
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
381381
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
382382
:return: An instance of AsyncLROPoller that returns either OperationResponse or the result of cls(response)
@@ -455,7 +455,7 @@ async def update(
455455
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
456456
}
457457
error_map.update(kwargs.pop('error_map', {}))
458-
api_version = "2019-11-01"
458+
api_version = "2020-09-01"
459459
content_type = kwargs.pop("content_type", "application/json")
460460
accept = "application/json"
461461

@@ -486,7 +486,7 @@ async def update(
486486

487487
if response.status_code not in [200]:
488488
map_error(status_code=response.status_code, response=response, error_map=error_map)
489-
error = self._deserialize(_models.DataShareError, response)
489+
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
490490
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
491491

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

527527
def prepare_request(next_link=None):
@@ -564,7 +564,7 @@ async def get_next(next_link=None):
564564
response = pipeline_response.http_response
565565

566566
if response.status_code not in [200]:
567-
error = self._deserialize(_models.DataShareError, response)
567+
error = self._deserialize.failsafe_deserialize(_models.DataShareError, response)
568568
map_error(status_code=response.status_code, response=response, error_map=error_map)
569569
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
570570

0 commit comments

Comments
 (0)