Skip to content

Commit 3815e51

Browse files
author
SDKAuto
committed
CodeGen from PR 3530 in test-repo-billy/azure-rest-api-specs
Merge 87bb1999ebf0cde180161e48533344fedf4dfe68 into 6c6e1713f03acaf37e5c89652b023dd2c9eae16e
1 parent b2b0c35 commit 3815e51

File tree

56 files changed

+324
-676
lines changed

Some content is hidden

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

56 files changed

+324
-676
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "471fbc404548c3c6611833680dbbeefcc010e201",
3-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
2+
"commit": "c383b31ce9844c9caebcc46fa3dff1e9b14ce42d",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.17.0",
6+
"@autorest/python@6.19.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.17.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/datafactory/resource-manager/readme.md"
1111
}

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
LinkedServicesOperations,
3535
ManagedPrivateEndpointsOperations,
3636
ManagedVirtualNetworksOperations,
37-
Operations,
3837
PipelineRunsOperations,
3938
PipelinesOperations,
4039
PrivateEndPointConnectionsOperations,
@@ -53,8 +52,6 @@ class DataFactoryManagementClient: # pylint: disable=client-accepts-api-version
5352
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
5453
with Azure Data Factory V2 services.
5554
56-
:ivar operations: Operations operations
57-
:vartype operations: azure.mgmt.datafactory.operations.Operations
5855
:ivar factories: FactoriesOperations operations
5956
:vartype factories: azure.mgmt.datafactory.operations.FactoriesOperations
6057
:ivar exposure_control: ExposureControlOperations operations
@@ -156,7 +153,6 @@ def __init__(
156153
self._serialize = Serializer(client_models)
157154
self._deserialize = Deserializer(client_models)
158155
self._serialize.client_side_validation = False
159-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
160156
self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize)
161157
self.exposure_control = ExposureControlOperations(
162158
self._client, self._config, self._serialize, self._deserialize

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 = "9.0.0"
9+
VERSION = "1.0.0"

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
LinkedServicesOperations,
3535
ManagedPrivateEndpointsOperations,
3636
ManagedVirtualNetworksOperations,
37-
Operations,
3837
PipelineRunsOperations,
3938
PipelinesOperations,
4039
PrivateEndPointConnectionsOperations,
@@ -53,8 +52,6 @@ class DataFactoryManagementClient: # pylint: disable=client-accepts-api-version
5352
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
5453
with Azure Data Factory V2 services.
5554
56-
:ivar operations: Operations operations
57-
:vartype operations: azure.mgmt.datafactory.aio.operations.Operations
5855
:ivar factories: FactoriesOperations operations
5956
:vartype factories: azure.mgmt.datafactory.aio.operations.FactoriesOperations
6057
:ivar exposure_control: ExposureControlOperations operations
@@ -157,7 +154,6 @@ def __init__(
157154
self._serialize = Serializer(client_models)
158155
self._deserialize = Deserializer(client_models)
159156
self._serialize.client_side_validation = False
160-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
161157
self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize)
162158
self.exposure_control = ExposureControlOperations(
163159
self._client, self._config, self._serialize, self._deserialize

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

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

9-
from ._operations import Operations
109
from ._factories_operations import FactoriesOperations
1110
from ._exposure_control_operations import ExposureControlOperations
1211
from ._integration_runtimes_operations import IntegrationRuntimesOperations
@@ -35,7 +34,6 @@
3534
from ._patch import patch_sdk as _patch_sdk
3635

3736
__all__ = [
38-
"Operations",
3937
"FactoriesOperations",
4038
"ExposureControlOperations",
4139
"IntegrationRuntimesOperations",

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

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
build_get_data_plane_access_request,
3636
build_get_git_hub_access_token_request,
3737
build_get_request,
38-
build_list_by_resource_group_request,
3938
build_list_request,
4039
build_update_request,
4140
)
@@ -250,83 +249,6 @@ async def configure_factory_repo(
250249

251250
return deserialized # type: ignore
252251

253-
@distributed_trace
254-
def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.Factory"]:
255-
"""Lists factories.
256-
257-
:param resource_group_name: The resource group name. Required.
258-
:type resource_group_name: str
259-
:return: An iterator like instance of either Factory or the result of cls(response)
260-
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory]
261-
:raises ~azure.core.exceptions.HttpResponseError:
262-
"""
263-
_headers = kwargs.pop("headers", {}) or {}
264-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
265-
266-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
267-
cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None)
268-
269-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
270-
401: ClientAuthenticationError,
271-
404: ResourceNotFoundError,
272-
409: ResourceExistsError,
273-
304: ResourceNotModifiedError,
274-
}
275-
error_map.update(kwargs.pop("error_map", {}) or {})
276-
277-
def prepare_request(next_link=None):
278-
if not next_link:
279-
280-
_request = build_list_by_resource_group_request(
281-
resource_group_name=resource_group_name,
282-
subscription_id=self._config.subscription_id,
283-
api_version=api_version,
284-
headers=_headers,
285-
params=_params,
286-
)
287-
_request.url = self._client.format_url(_request.url)
288-
289-
else:
290-
# make call to next link with the client's api-version
291-
_parsed_next_link = urllib.parse.urlparse(next_link)
292-
_next_request_params = case_insensitive_dict(
293-
{
294-
key: [urllib.parse.quote(v) for v in value]
295-
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
296-
}
297-
)
298-
_next_request_params["api-version"] = self._config.api_version
299-
_request = HttpRequest(
300-
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
301-
)
302-
_request.url = self._client.format_url(_request.url)
303-
_request.method = "GET"
304-
return _request
305-
306-
async def extract_data(pipeline_response):
307-
deserialized = self._deserialize("FactoryListResponse", pipeline_response)
308-
list_of_elem = deserialized.value
309-
if cls:
310-
list_of_elem = cls(list_of_elem) # type: ignore
311-
return deserialized.next_link or None, AsyncList(list_of_elem)
312-
313-
async def get_next(next_link=None):
314-
_request = prepare_request(next_link)
315-
316-
_stream = False
317-
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
318-
_request, stream=_stream, **kwargs
319-
)
320-
response = pipeline_response.http_response
321-
322-
if response.status_code not in [200]:
323-
map_error(status_code=response.status_code, response=response, error_map=error_map)
324-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
325-
326-
return pipeline_response
327-
328-
return AsyncItemPaged(get_next, extract_data)
329-
330252
@overload
331253
async def create_or_update(
332254
self,

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

Lines changed: 0 additions & 129 deletions
This file was deleted.

sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@
350350
from ._models_py3 import HubspotLinkedService
351351
from ._models_py3 import HubspotObjectDataset
352352
from ._models_py3 import HubspotSource
353+
from ._models_py3 import IcebergDataset
354+
from ._models_py3 import IcebergSink
355+
from ._models_py3 import IcebergWriteSettings
353356
from ._models_py3 import IfConditionActivity
354357
from ._models_py3 import ImpalaLinkedService
355358
from ._models_py3 import ImpalaObjectDataset
@@ -1271,6 +1274,9 @@
12711274
"HubspotLinkedService",
12721275
"HubspotObjectDataset",
12731276
"HubspotSource",
1277+
"IcebergDataset",
1278+
"IcebergSink",
1279+
"IcebergWriteSettings",
12741280
"IfConditionActivity",
12751281
"ImpalaLinkedService",
12761282
"ImpalaObjectDataset",

0 commit comments

Comments
 (0)