Skip to content

Commit 0838adb

Browse files
author
SDKAuto
committed
CodeGen from PR 33093 in Azure/azure-rest-api-specs
Merge 51707b33c3dc6cf1b1422033dbfc461d3f38bc62 into 78afda2a2c759dc0caa3a140a94021b322ca8f37
1 parent 08e7c8a commit 0838adb

File tree

7 files changed

+775
-111
lines changed

7 files changed

+775
-111
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": "78a1d2de5066cdd233de96297d016932e95827e0",
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,10 @@
744744
TarGZipReadSettings,
745745
TarReadSettings,
746746
TeamDeskLinkedService,
747+
TeradataImportCommand,
747748
TeradataLinkedService,
748749
TeradataPartitionSettings,
750+
TeradataSink,
749751
TeradataSource,
750752
TeradataTableDataset,
751753
TextFormat,
@@ -847,6 +849,7 @@
847849
GoogleAdWordsAuthenticationType,
848850
GoogleBigQueryAuthenticationType,
849851
GoogleBigQueryV2AuthenticationType,
852+
GreenplumAuthenticationType,
850853
HBaseAuthenticationType,
851854
HDInsightActivityDebugInfoOption,
852855
HdiNodeTypes,
@@ -877,6 +880,7 @@
877880
NotebookReferenceType,
878881
ODataAadServicePrincipalCredentialType,
879882
ODataAuthenticationType,
883+
OracleAuthenticationType,
880884
OraclePartitionOption,
881885
OrcCompressionCodec,
882886
ParameterType,
@@ -931,6 +935,7 @@
931935
TriggerRuntimeState,
932936
TumblingWindowFrequency,
933937
Type,
938+
ValueType,
934939
VariableType,
935940
WebActivityMethod,
936941
WebAuthenticationType,
@@ -1671,8 +1676,10 @@
16711676
"TarGZipReadSettings",
16721677
"TarReadSettings",
16731678
"TeamDeskLinkedService",
1679+
"TeradataImportCommand",
16741680
"TeradataLinkedService",
16751681
"TeradataPartitionSettings",
1682+
"TeradataSink",
16761683
"TeradataSource",
16771684
"TeradataTableDataset",
16781685
"TextFormat",
@@ -1771,6 +1778,7 @@
17711778
"GoogleAdWordsAuthenticationType",
17721779
"GoogleBigQueryAuthenticationType",
17731780
"GoogleBigQueryV2AuthenticationType",
1781+
"GreenplumAuthenticationType",
17741782
"HBaseAuthenticationType",
17751783
"HDInsightActivityDebugInfoOption",
17761784
"HdiNodeTypes",
@@ -1801,6 +1809,7 @@
18011809
"NotebookReferenceType",
18021810
"ODataAadServicePrincipalCredentialType",
18031811
"ODataAuthenticationType",
1812+
"OracleAuthenticationType",
18041813
"OraclePartitionOption",
18051814
"OrcCompressionCodec",
18061815
"ParameterType",
@@ -1855,6 +1864,7 @@
18551864
"TriggerRuntimeState",
18561865
"TumblingWindowFrequency",
18571866
"Type",
1867+
"ValueType",
18581868
"VariableType",
18591869
"WebActivityMethod",
18601870
"WebAuthenticationType",

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ class GoogleBigQueryV2AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnu
377377
USER_AUTHENTICATION = "UserAuthentication"
378378

379379

380+
class GreenplumAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
381+
"""The authentication type to use. Type: string. Only used for V2."""
382+
383+
BASIC = "Basic"
384+
385+
380386
class HBaseAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
381387
"""The authentication mechanism to use to connect to the HBase server."""
382388

@@ -620,6 +626,12 @@ class ODataAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
620626
MANAGED_SERVICE_IDENTITY = "ManagedServiceIdentity"
621627

622628

629+
class OracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
630+
"""Authentication type for connecting to the Oracle database. Only used for Version 2.0."""
631+
632+
BASIC = "Basic"
633+
634+
623635
class OraclePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta):
624636
"""The partition mechanism that will be used for Oracle read in parallel."""
625637

@@ -1083,6 +1095,13 @@ class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10831095
LINKED_SERVICE_REFERENCE = "LinkedServiceReference"
10841096

10851097

1098+
class ValueType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1099+
"""Type of value copied from source."""
1100+
1101+
ACTUAL = "actual"
1102+
DISPLAY = "display"
1103+
1104+
10861105
class VariableType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10871106
"""Variable type."""
10881107

0 commit comments

Comments
 (0)