Skip to content

Commit 0e104a6

Browse files
azure-sdkmsyycWzb123456789
authored
[AutoRelease] t2-datafactory-2022-10-09-06495(Do not merge) (Azure#26717)
* code and test * Update CHANGELOG.md * Update _version.py * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: zhenbiao wei <424401670@qq.com>
1 parent 9e0b9c1 commit 0e104a6

File tree

47 files changed

+1183
-242
lines changed

Some content is hidden

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

47 files changed

+1183
-242
lines changed

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

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

3+
## 2.8.1 (2022-10-17)
4+
5+
### Other Changes
6+
7+
- Changed type of stored_procedure_parameters to json-like object
8+
39
## 2.8.0 (2022-09-13)
410

511
### Features Added

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include _meta.json
22
recursive-include tests *.py *.json
3+
recursive-include samples *.py *.md
34
include *.md
45
include azure/__init__.py
56
include azure/mgmt/__init__.py
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.8.4",
2+
"autorest": "3.9.2",
33
"use": [
4-
"@autorest/python@6.1.4",
5-
"@autorest/modelerfour@4.23.5"
4+
"@autorest/python@6.1.9",
5+
"@autorest/modelerfour@4.24.3"
66
],
7-
"commit": "f729f12bb95b4515b51ded20aab2f728551053b6",
7+
"commit": "35388d90dfe0dfb8ef0f43cecaf9dc960fbc917e",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.4 --use=@autorest/modelerfour@4.23.5 --version=3.8.4 --version-tolerant=False",
9+
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.9 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/datafactory/resource-manager/readme.md"
1111
}

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_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.8.0"
9+
VERSION = "2.8.1"

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
HttpResponseError,
1414
ResourceExistsError,
1515
ResourceNotFoundError,
16+
ResourceNotModifiedError,
1617
map_error,
1718
)
1819
from azure.core.pipeline import PipelineResponse
@@ -137,7 +138,12 @@ async def query_by_pipeline_run(
137138
:rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse
138139
:raises ~azure.core.exceptions.HttpResponseError:
139140
"""
140-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
141+
error_map = {
142+
401: ClientAuthenticationError,
143+
404: ResourceNotFoundError,
144+
409: ResourceExistsError,
145+
304: ResourceNotModifiedError,
146+
}
141147
error_map.update(kwargs.pop("error_map", {}) or {})
142148

143149
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
HttpResponseError,
1616
ResourceExistsError,
1717
ResourceNotFoundError,
18+
ResourceNotModifiedError,
1819
map_error,
1920
)
2021
from azure.core.pipeline import PipelineResponse
@@ -67,7 +68,12 @@ async def _create_initial(
6768
request: Union[_models.CreateDataFlowDebugSessionRequest, IO],
6869
**kwargs: Any
6970
) -> Optional[_models.CreateDataFlowDebugSessionResponse]:
70-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
71+
error_map = {
72+
401: ClientAuthenticationError,
73+
404: ResourceNotFoundError,
74+
409: ResourceExistsError,
75+
304: ResourceNotModifiedError,
76+
}
7177
error_map.update(kwargs.pop("error_map", {}) or {})
7278

7379
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -300,7 +306,12 @@ def query_by_factory(
300306
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
301307
cls = kwargs.pop("cls", None) # type: ClsType[_models.QueryDataFlowDebugSessionsResponse]
302308

303-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
309+
error_map = {
310+
401: ClientAuthenticationError,
311+
404: ResourceNotFoundError,
312+
409: ResourceExistsError,
313+
304: ResourceNotModifiedError,
314+
}
304315
error_map.update(kwargs.pop("error_map", {}) or {})
305316

306317
def prepare_request(next_link=None):
@@ -433,7 +444,12 @@ async def add_data_flow(
433444
:rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse
434445
:raises ~azure.core.exceptions.HttpResponseError:
435446
"""
436-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
447+
error_map = {
448+
401: ClientAuthenticationError,
449+
404: ResourceNotFoundError,
450+
409: ResourceExistsError,
451+
304: ResourceNotModifiedError,
452+
}
437453
error_map.update(kwargs.pop("error_map", {}) or {})
438454

439455
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -564,7 +580,12 @@ async def delete( # pylint: disable=inconsistent-return-statements
564580
:rtype: None
565581
:raises ~azure.core.exceptions.HttpResponseError:
566582
"""
567-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
583+
error_map = {
584+
401: ClientAuthenticationError,
585+
404: ResourceNotFoundError,
586+
409: ResourceExistsError,
587+
304: ResourceNotModifiedError,
588+
}
568589
error_map.update(kwargs.pop("error_map", {}) or {})
569590

570591
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -619,7 +640,12 @@ async def _execute_command_initial(
619640
request: Union[_models.DataFlowDebugCommandRequest, IO],
620641
**kwargs: Any
621642
) -> Optional[_models.DataFlowDebugCommandResponse]:
622-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
643+
error_map = {
644+
401: ClientAuthenticationError,
645+
404: ResourceNotFoundError,
646+
409: ResourceExistsError,
647+
304: ResourceNotModifiedError,
648+
}
623649
error_map.update(kwargs.pop("error_map", {}) or {})
624650

625651
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
HttpResponseError,
1616
ResourceExistsError,
1717
ResourceNotFoundError,
18+
ResourceNotModifiedError,
1819
map_error,
1920
)
2021
from azure.core.pipeline import PipelineResponse
@@ -156,7 +157,12 @@ async def create_or_update(
156157
:rtype: ~azure.mgmt.datafactory.models.DataFlowResource
157158
:raises ~azure.core.exceptions.HttpResponseError:
158159
"""
159-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
160+
error_map = {
161+
401: ClientAuthenticationError,
162+
404: ResourceNotFoundError,
163+
409: ResourceExistsError,
164+
304: ResourceNotModifiedError,
165+
}
160166
error_map.update(kwargs.pop("error_map", {}) or {})
161167

162168
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -236,7 +242,12 @@ async def get(
236242
:rtype: ~azure.mgmt.datafactory.models.DataFlowResource
237243
:raises ~azure.core.exceptions.HttpResponseError:
238244
"""
239-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
245+
error_map = {
246+
401: ClientAuthenticationError,
247+
404: ResourceNotFoundError,
248+
409: ResourceExistsError,
249+
304: ResourceNotModifiedError,
250+
}
240251
error_map.update(kwargs.pop("error_map", {}) or {})
241252

242253
_headers = kwargs.pop("headers", {}) or {}
@@ -295,7 +306,12 @@ async def delete( # pylint: disable=inconsistent-return-statements
295306
:rtype: None
296307
:raises ~azure.core.exceptions.HttpResponseError:
297308
"""
298-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
309+
error_map = {
310+
401: ClientAuthenticationError,
311+
404: ResourceNotFoundError,
312+
409: ResourceExistsError,
313+
304: ResourceNotModifiedError,
314+
}
299315
error_map.update(kwargs.pop("error_map", {}) or {})
300316

301317
_headers = kwargs.pop("headers", {}) or {}
@@ -354,7 +370,12 @@ def list_by_factory(
354370
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
355371
cls = kwargs.pop("cls", None) # type: ClsType[_models.DataFlowListResponse]
356372

357-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
373+
error_map = {
374+
401: ClientAuthenticationError,
375+
404: ResourceNotFoundError,
376+
409: ResourceExistsError,
377+
304: ResourceNotModifiedError,
378+
}
358379
error_map.update(kwargs.pop("error_map", {}) or {})
359380

360381
def prepare_request(next_link=None):

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
HttpResponseError,
1616
ResourceExistsError,
1717
ResourceNotFoundError,
18+
ResourceNotModifiedError,
1819
map_error,
1920
)
2021
from azure.core.pipeline import PipelineResponse
@@ -78,7 +79,12 @@ def list_by_factory(
7879
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
7980
cls = kwargs.pop("cls", None) # type: ClsType[_models.DatasetListResponse]
8081

81-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
82+
error_map = {
83+
401: ClientAuthenticationError,
84+
404: ResourceNotFoundError,
85+
409: ResourceExistsError,
86+
304: ResourceNotModifiedError,
87+
}
8288
error_map.update(kwargs.pop("error_map", {}) or {})
8389

8490
def prepare_request(next_link=None):
@@ -231,7 +237,12 @@ async def create_or_update(
231237
:rtype: ~azure.mgmt.datafactory.models.DatasetResource
232238
:raises ~azure.core.exceptions.HttpResponseError:
233239
"""
234-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
240+
error_map = {
241+
401: ClientAuthenticationError,
242+
404: ResourceNotFoundError,
243+
409: ResourceExistsError,
244+
304: ResourceNotModifiedError,
245+
}
235246
error_map.update(kwargs.pop("error_map", {}) or {})
236247

237248
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -311,7 +322,12 @@ async def get(
311322
:rtype: ~azure.mgmt.datafactory.models.DatasetResource or None
312323
:raises ~azure.core.exceptions.HttpResponseError:
313324
"""
314-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
325+
error_map = {
326+
401: ClientAuthenticationError,
327+
404: ResourceNotFoundError,
328+
409: ResourceExistsError,
329+
304: ResourceNotModifiedError,
330+
}
315331
error_map.update(kwargs.pop("error_map", {}) or {})
316332

317333
_headers = kwargs.pop("headers", {}) or {}
@@ -372,7 +388,12 @@ async def delete( # pylint: disable=inconsistent-return-statements
372388
:rtype: None
373389
:raises ~azure.core.exceptions.HttpResponseError:
374390
"""
375-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
391+
error_map = {
392+
401: ClientAuthenticationError,
393+
404: ResourceNotFoundError,
394+
409: ResourceExistsError,
395+
304: ResourceNotModifiedError,
396+
}
376397
error_map.update(kwargs.pop("error_map", {}) or {})
377398

378399
_headers = kwargs.pop("headers", {}) or {}

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
HttpResponseError,
1414
ResourceExistsError,
1515
ResourceNotFoundError,
16+
ResourceNotModifiedError,
1617
map_error,
1718
)
1819
from azure.core.pipeline import PipelineResponse
@@ -115,7 +116,12 @@ async def get_feature_value(
115116
:rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse
116117
:raises ~azure.core.exceptions.HttpResponseError:
117118
"""
118-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
119+
error_map = {
120+
401: ClientAuthenticationError,
121+
404: ResourceNotFoundError,
122+
409: ResourceExistsError,
123+
304: ResourceNotModifiedError,
124+
}
119125
error_map.update(kwargs.pop("error_map", {}) or {})
120126

121127
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -245,7 +251,12 @@ async def get_feature_value_by_factory(
245251
:rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse
246252
:raises ~azure.core.exceptions.HttpResponseError:
247253
"""
248-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
254+
error_map = {
255+
401: ClientAuthenticationError,
256+
404: ResourceNotFoundError,
257+
409: ResourceExistsError,
258+
304: ResourceNotModifiedError,
259+
}
249260
error_map.update(kwargs.pop("error_map", {}) or {})
250261

251262
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -380,7 +391,12 @@ async def query_feature_values_by_factory(
380391
:rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse
381392
:raises ~azure.core.exceptions.HttpResponseError:
382393
"""
383-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
394+
error_map = {
395+
401: ClientAuthenticationError,
396+
404: ResourceNotFoundError,
397+
409: ResourceExistsError,
398+
304: ResourceNotModifiedError,
399+
}
384400
error_map.update(kwargs.pop("error_map", {}) or {})
385401

386402
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})

0 commit comments

Comments
 (0)