Skip to content

Commit 81c99a0

Browse files
[AutoRelease] t2-datafactory-2025-03-18-43866(can only be merged by SDK owner) (#40114)
* code and test * Update changelog and version to 9.2.0 --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 1d83aaf commit 81c99a0

File tree

8 files changed

+877
-113
lines changed

8 files changed

+877
-113
lines changed

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

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

3+
## 9.2.0 (2025-04-20)
4+
5+
### Features Added
6+
7+
- Model AzurePostgreSqlLinkedService has a new parameter azure_cloud_type
8+
- Model AzurePostgreSqlLinkedService has a new parameter credential
9+
- Model AzurePostgreSqlLinkedService has a new parameter service_principal_credential_type
10+
- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert
11+
- Model AzurePostgreSqlLinkedService has a new parameter service_principal_embedded_cert_password
12+
- Model AzurePostgreSqlLinkedService has a new parameter service_principal_id
13+
- Model AzurePostgreSqlLinkedService has a new parameter service_principal_key
14+
- Model AzurePostgreSqlLinkedService has a new parameter tenant
15+
- Model AzurePostgreSqlSink has a new parameter upsert_settings
16+
- Model AzurePostgreSqlSink has a new parameter write_method
17+
- Model CommonDataServiceForAppsSink has a new parameter bypass_business_logic_execution
18+
- Model CommonDataServiceForAppsSink has a new parameter bypass_power_automate_flows
19+
- Model DynamicsCrmSink has a new parameter bypass_business_logic_execution
20+
- Model DynamicsCrmSink has a new parameter bypass_power_automate_flows
21+
- Model DynamicsSink has a new parameter bypass_business_logic_execution
22+
- Model DynamicsSink has a new parameter bypass_power_automate_flows
23+
- Model GreenplumLinkedService has a new parameter authentication_type
24+
- Model GreenplumLinkedService has a new parameter command_timeout
25+
- Model GreenplumLinkedService has a new parameter connection_timeout
26+
- Model GreenplumLinkedService has a new parameter database
27+
- Model GreenplumLinkedService has a new parameter host
28+
- Model GreenplumLinkedService has a new parameter port
29+
- Model GreenplumLinkedService has a new parameter ssl_mode
30+
- Model GreenplumLinkedService has a new parameter username
31+
- Model Office365LinkedService has a new parameter service_principal_credential_type
32+
- Model Office365LinkedService has a new parameter service_principal_embedded_cert
33+
- Model Office365LinkedService has a new parameter service_principal_embedded_cert_password
34+
- Model OracleLinkedService has a new parameter authentication_type
35+
- Model OracleLinkedService has a new parameter crypto_checksum_client
36+
- Model OracleLinkedService has a new parameter crypto_checksum_types_client
37+
- Model OracleLinkedService has a new parameter enable_bulk_load
38+
- Model OracleLinkedService has a new parameter encryption_client
39+
- Model OracleLinkedService has a new parameter encryption_types_client
40+
- Model OracleLinkedService has a new parameter fetch_size
41+
- Model OracleLinkedService has a new parameter fetch_tswtz_as_timestamp
42+
- Model OracleLinkedService has a new parameter initial_lob_fetch_size
43+
- Model OracleLinkedService has a new parameter initialization_string
44+
- Model OracleLinkedService has a new parameter server
45+
- Model OracleLinkedService has a new parameter statement_cache_size
46+
- Model OracleLinkedService has a new parameter support_v1_data_types
47+
- Model OracleLinkedService has a new parameter username
48+
- Model PrestoLinkedService has a new parameter enable_server_certificate_validation
49+
- Model ScriptActivity has a new parameter return_multistatement_result
50+
- Model ServiceNowV2ObjectDataset has a new parameter value_type
51+
- Model SnowflakeV2LinkedService has a new parameter role
52+
- Model SnowflakeV2LinkedService has a new parameter schema
53+
- Model TeradataLinkedService has a new parameter character_set
54+
- Model TeradataLinkedService has a new parameter https_port_number
55+
- Model TeradataLinkedService has a new parameter max_resp_size
56+
- Model TeradataLinkedService has a new parameter port_number
57+
- Model TeradataLinkedService has a new parameter ssl_mode
58+
- Model TeradataLinkedService has a new parameter use_data_encryption
59+
- Model TypeConversionSettings has a new parameter date_format
60+
- Model TypeConversionSettings has a new parameter time_format
61+
362
## 9.1.0 (2024-12-16)
463

564
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "f06cffbda682a8cd225a8b16bc6f000d26d01612",
2+
"commit": "8056e0ba6bbe2f00ad0aca066236871ae5e04c23",
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/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 = "9.2.0"

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",

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

Lines changed: 27 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

@@ -620,6 +634,12 @@ class ODataAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
620634
MANAGED_SERVICE_IDENTITY = "ManagedServiceIdentity"
621635

622636

637+
class OracleAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
638+
"""Authentication type for connecting to the Oracle database. Only used for Version 2.0."""
639+
640+
BASIC = "Basic"
641+
642+
623643
class OraclePartitionOption(str, Enum, metaclass=CaseInsensitiveEnumMeta):
624644
"""The partition mechanism that will be used for Oracle read in parallel."""
625645

@@ -1083,6 +1103,13 @@ class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10831103
LINKED_SERVICE_REFERENCE = "LinkedServiceReference"
10841104

10851105

1106+
class ValueType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1107+
"""Type of value copied from source."""
1108+
1109+
ACTUAL = "actual"
1110+
DISPLAY = "display"
1111+
1112+
10861113
class VariableType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
10871114
"""Variable type."""
10881115

0 commit comments

Comments
 (0)