Skip to content

Commit bd00c43

Browse files
author
SDKAuto
committed
CodeGen from PR 33478 in Azure/azure-rest-api-specs
Merge 9d58bd5f93560dd88e0ebbe570650682a9543a45 into c56bcb994cdb222ae05e428096f0804d3c68f78c
1 parent c393dc0 commit bd00c43

File tree

7 files changed

+897
-115
lines changed

7 files changed

+897
-115
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "f06cffbda682a8cd225a8b16bc6f000d26d01612",
2+
"commit": "bea41bfd3f442e5f3a35a2deb27402e31f6a47e8",
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/_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/models/__init__.py

Lines changed: 16 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,
@@ -855,6 +860,7 @@
855860
HiveThriftTransportProtocol,
856861
HttpAuthenticationType,
857862
ImpalaAuthenticationType,
863+
ImpalaThriftTransportProtocol,
858864
IntegrationRuntimeAuthKeyName,
859865
IntegrationRuntimeAutoUpdate,
860866
IntegrationRuntimeEdition,
@@ -877,6 +883,7 @@
877883
NotebookReferenceType,
878884
ODataAadServicePrincipalCredentialType,
879885
ODataAuthenticationType,
886+
OracleAuthenticationType,
880887
OraclePartitionOption,
881888
OrcCompressionCodec,
882889
ParameterType,
@@ -931,6 +938,7 @@
931938
TriggerRuntimeState,
932939
TumblingWindowFrequency,
933940
Type,
941+
ValueType,
934942
VariableType,
935943
WebActivityMethod,
936944
WebAuthenticationType,
@@ -1037,6 +1045,7 @@
10371045
"AzureMySqlTableDataset",
10381046
"AzurePostgreSqlLinkedService",
10391047
"AzurePostgreSqlSink",
1048+
"AzurePostgreSqlSinkUpsertSettings",
10401049
"AzurePostgreSqlSource",
10411050
"AzurePostgreSqlTableDataset",
10421051
"AzureQueueSink",
@@ -1671,8 +1680,10 @@
16711680
"TarGZipReadSettings",
16721681
"TarReadSettings",
16731682
"TeamDeskLinkedService",
1683+
"TeradataImportCommand",
16741684
"TeradataLinkedService",
16751685
"TeradataPartitionSettings",
1686+
"TeradataSink",
16761687
"TeradataSource",
16771688
"TeradataTableDataset",
16781689
"TextFormat",
@@ -1735,6 +1746,7 @@
17351746
"AmazonRdsForSqlAuthenticationType",
17361747
"AvroCompressionCodec",
17371748
"AzureFunctionActivityMethod",
1749+
"AzurePostgreSqlWriteMethodEnum",
17381750
"AzureSearchIndexWriteBehaviorType",
17391751
"AzureSqlDWAuthenticationType",
17401752
"AzureSqlDatabaseAuthenticationType",
@@ -1771,6 +1783,7 @@
17711783
"GoogleAdWordsAuthenticationType",
17721784
"GoogleBigQueryAuthenticationType",
17731785
"GoogleBigQueryV2AuthenticationType",
1786+
"GreenplumAuthenticationType",
17741787
"HBaseAuthenticationType",
17751788
"HDInsightActivityDebugInfoOption",
17761789
"HdiNodeTypes",
@@ -1779,6 +1792,7 @@
17791792
"HiveThriftTransportProtocol",
17801793
"HttpAuthenticationType",
17811794
"ImpalaAuthenticationType",
1795+
"ImpalaThriftTransportProtocol",
17821796
"IntegrationRuntimeAuthKeyName",
17831797
"IntegrationRuntimeAutoUpdate",
17841798
"IntegrationRuntimeEdition",
@@ -1801,6 +1815,7 @@
18011815
"NotebookReferenceType",
18021816
"ODataAadServicePrincipalCredentialType",
18031817
"ODataAuthenticationType",
1818+
"OracleAuthenticationType",
18041819
"OraclePartitionOption",
18051820
"OrcCompressionCodec",
18061821
"ParameterType",
@@ -1855,6 +1870,7 @@
18551870
"TriggerRuntimeState",
18561871
"TumblingWindowFrequency",
18571872
"Type",
1873+
"ValueType",
18581874
"VariableType",
18591875
"WebActivityMethod",
18601876
"WebAuthenticationType",

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ class AzureFunctionActivityMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
6767
TRACE = "TRACE"
6868

6969

70+
class AzurePostgreSqlWriteMethodEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta):
71+
"""The write behavior for the operation. Default is Bulk Insert."""
72+
73+
BULK_INSERT = "BulkInsert"
74+
COPY_COMMAND = "CopyCommand"
75+
UPSERT = "Upsert"
76+
77+
7078
class AzureSearchIndexWriteBehaviorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
7179
"""Specify the write behavior when upserting documents into Azure Search Index."""
7280

@@ -377,6 +385,12 @@ class GoogleBigQueryV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnu
377385
USER_AUTHENTICATION = "UserAuthentication"
378386

379387

388+
class GreenplumAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
389+
"""The authentication type to use. Type: string. Only used for V2."""
390+
391+
BASIC = "Basic"
392+
393+
380394
class HBaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
381395
"""The authentication mechanism to use to connect to the HBase server."""
382396

@@ -443,6 +457,13 @@ class ImpalaAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
443457
USERNAME_AND_PASSWORD = "UsernameAndPassword"
444458

445459

460+
class ImpalaThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta):
461+
"""The transport protocol to use in the Thrift layer."""
462+
463+
BINARY = "Binary"
464+
HTTP = "HTTP"
465+
466+
446467
class IntegrationRuntimeAuthKeyName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
447468
"""The name of the authentication key to regenerate."""
448469

@@ -620,6 +641,12 @@ class ODataAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
620641
MANAGED_SERVICE_IDENTITY = "ManagedServiceIdentity"
621642

622643

644+
class OracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
645+
"""Authentication type for connecting to the Oracle database. Only used for Version 2.0."""
646+
647+
BASIC = "Basic"
648+
649+
623650
class OraclePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta):
624651
"""The partition mechanism that will be used for Oracle read in parallel."""
625652

@@ -1083,6 +1110,13 @@ class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10831110
LINKED_SERVICE_REFERENCE = "LinkedServiceReference"
10841111

10851112

1113+
class ValueType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1114+
"""Type of value copied from source."""
1115+
1116+
ACTUAL = "actual"
1117+
DISPLAY = "display"
1118+
1119+
10861120
class VariableType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10871121
"""Variable type."""
10881122

0 commit comments

Comments
 (0)