Skip to content

Commit bdac3d2

Browse files
author
SDKAuto
committed
CodeGen from PR 33920 in Azure/azure-rest-api-specs
Merge 51be5da5cc37f632ea633f270e1d4bbdf986797b into d67cf34aaf090aa3129febd6484bbf94de49f766
1 parent 15da972 commit bdac3d2

File tree

15 files changed

+878
-446
lines changed

15 files changed

+878
-446
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "f06cffbda682a8cd225a8b16bc6f000d26d01612",
2+
"commit": "028d65cf9c7d7cf60195f7e508fe196fb6b631a3",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.26.4",
6+
"@autorest/python@6.27.4",
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=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --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.27.4 --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,
@@ -52,8 +51,6 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut
5251
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
5352
with Azure Data Factory V2 services.
5453
55-
:ivar operations: Operations operations
56-
:vartype operations: azure.mgmt.datafactory.operations.Operations
5754
:ivar factories: FactoriesOperations operations
5855
:vartype factories: azure.mgmt.datafactory.operations.FactoriesOperations
5956
:ivar exposure_control: ExposureControlOperations operations
@@ -155,7 +152,6 @@ def __init__(
155152
self._serialize = Serializer(client_models)
156153
self._deserialize = Deserializer(client_models)
157154
self._serialize.client_side_validation = False
158-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
159155
self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize)
160156
self.exposure_control = ExposureControlOperations(
161157
self._client, self._config, self._serialize, self._deserialize

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
310310
return ET.Element(tag)
311311

312312

313-
class Model(object):
313+
class Model:
314314
"""Mixin for all client request body/response body models to support
315315
serialization and deserialization.
316316
"""
@@ -563,7 +563,7 @@ def _decode_attribute_map_key(key):
563563
return key.replace("\\.", ".")
564564

565565

566-
class Serializer(object): # pylint: disable=too-many-public-methods
566+
class Serializer: # pylint: disable=too-many-public-methods
567567
"""Request object model serializer."""
568568

569569
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14411441
return children[0]
14421442

14431443

1444-
class Deserializer(object):
1444+
class Deserializer:
14451445
"""Response object model deserializer.
14461446
14471447
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16831683
subtype = getattr(response, "_subtype_map", {})
16841684
try:
16851685
readonly = [
1686-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1686+
k
1687+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1688+
if v.get("readonly")
16871689
]
16881690
const = [
1689-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1691+
k
1692+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1693+
if v.get("constant")
16901694
]
16911695
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16921696
response_obj = response(**kwargs)
16931697
for attr in readonly:
16941698
setattr(response_obj, attr, attrs.get(attr))
16951699
if additional_properties:
1696-
response_obj.additional_properties = additional_properties
1700+
response_obj.additional_properties = additional_properties # type: ignore
16971701
return response_obj
16981702
except TypeError as err:
16991703
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

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.1.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,
@@ -52,8 +51,6 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut
5251
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
5352
with Azure Data Factory V2 services.
5453
55-
:ivar operations: Operations operations
56-
:vartype operations: azure.mgmt.datafactory.aio.operations.Operations
5754
:ivar factories: FactoriesOperations operations
5855
:vartype factories: azure.mgmt.datafactory.aio.operations.FactoriesOperations
5956
: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/aio/operations/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._operations import Operations # type: ignore
1615
from ._factories_operations import FactoriesOperations # type: ignore
1716
from ._exposure_control_operations import ExposureControlOperations # type: ignore
1817
from ._integration_runtimes_operations import IntegrationRuntimesOperations # type: ignore
@@ -41,7 +40,6 @@
4140
from ._patch import patch_sdk as _patch_sdk
4241

4342
__all__ = [
44-
"Operations",
4543
"FactoriesOperations",
4644
"ExposureControlOperations",
4745
"IntegrationRuntimesOperations",

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

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

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
AzureMySqlTableDataset,
111111
AzurePostgreSqlLinkedService,
112112
AzurePostgreSqlSink,
113+
AzurePostgreSqlSinkUpsertSettings,
113114
AzurePostgreSqlSource,
114115
AzurePostgreSqlTableDataset,
115116
AzureQueueSink,
@@ -744,8 +745,10 @@
744745
TarGZipReadSettings,
745746
TarReadSettings,
746747
TeamDeskLinkedService,
748+
TeradataImportCommand,
747749
TeradataLinkedService,
748750
TeradataPartitionSettings,
751+
TeradataSink,
749752
TeradataSource,
750753
TeradataTableDataset,
751754
TextFormat,
@@ -811,6 +814,7 @@
811814
AmazonRdsForSqlAuthenticationType,
812815
AvroCompressionCodec,
813816
AzureFunctionActivityMethod,
817+
AzurePostgreSqlWriteMethodEnum,
814818
AzureSearchIndexWriteBehaviorType,
815819
AzureSqlDWAuthenticationType,
816820
AzureSqlDatabaseAuthenticationType,
@@ -847,6 +851,7 @@
847851
GoogleAdWordsAuthenticationType,
848852
GoogleBigQueryAuthenticationType,
849853
GoogleBigQueryV2AuthenticationType,
854+
GreenplumAuthenticationType,
850855
HBaseAuthenticationType,
851856
HDInsightActivityDebugInfoOption,
852857
HdiNodeTypes,
@@ -877,6 +882,7 @@
877882
NotebookReferenceType,
878883
ODataAadServicePrincipalCredentialType,
879884
ODataAuthenticationType,
885+
OracleAuthenticationType,
880886
OraclePartitionOption,
881887
OrcCompressionCodec,
882888
ParameterType,
@@ -931,6 +937,7 @@
931937
TriggerRuntimeState,
932938
TumblingWindowFrequency,
933939
Type,
940+
ValueType,
934941
VariableType,
935942
WebActivityMethod,
936943
WebAuthenticationType,
@@ -1037,6 +1044,7 @@
10371044
"AzureMySqlTableDataset",
10381045
"AzurePostgreSqlLinkedService",
10391046
"AzurePostgreSqlSink",
1047+
"AzurePostgreSqlSinkUpsertSettings",
10401048
"AzurePostgreSqlSource",
10411049
"AzurePostgreSqlTableDataset",
10421050
"AzureQueueSink",
@@ -1671,8 +1679,10 @@
16711679
"TarGZipReadSettings",
16721680
"TarReadSettings",
16731681
"TeamDeskLinkedService",
1682+
"TeradataImportCommand",
16741683
"TeradataLinkedService",
16751684
"TeradataPartitionSettings",
1685+
"TeradataSink",
16761686
"TeradataSource",
16771687
"TeradataTableDataset",
16781688
"TextFormat",
@@ -1735,6 +1745,7 @@
17351745
"AmazonRdsForSqlAuthenticationType",
17361746
"AvroCompressionCodec",
17371747
"AzureFunctionActivityMethod",
1748+
"AzurePostgreSqlWriteMethodEnum",
17381749
"AzureSearchIndexWriteBehaviorType",
17391750
"AzureSqlDWAuthenticationType",
17401751
"AzureSqlDatabaseAuthenticationType",
@@ -1771,6 +1782,7 @@
17711782
"GoogleAdWordsAuthenticationType",
17721783
"GoogleBigQueryAuthenticationType",
17731784
"GoogleBigQueryV2AuthenticationType",
1785+
"GreenplumAuthenticationType",
17741786
"HBaseAuthenticationType",
17751787
"HDInsightActivityDebugInfoOption",
17761788
"HdiNodeTypes",
@@ -1801,6 +1813,7 @@
18011813
"NotebookReferenceType",
18021814
"ODataAadServicePrincipalCredentialType",
18031815
"ODataAuthenticationType",
1816+
"OracleAuthenticationType",
18041817
"OraclePartitionOption",
18051818
"OrcCompressionCodec",
18061819
"ParameterType",
@@ -1855,6 +1868,7 @@
18551868
"TriggerRuntimeState",
18561869
"TumblingWindowFrequency",
18571870
"Type",
1871+
"ValueType",
18581872
"VariableType",
18591873
"WebActivityMethod",
18601874
"WebAuthenticationType",

0 commit comments

Comments
 (0)