Skip to content

Commit 64a07f2

Browse files
AutorestCIZim Kalinowski
authored andcommitted
Generated from ccc8c92e96ab27329cf637c7214ebb35da8dce23 (#6625)
Fix model validation
1 parent f5d3db0 commit 64a07f2

22 files changed

+670
-86
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
from .operations.pipeline_runs_operations import PipelineRunsOperations
2626
from .operations.activity_runs_operations import ActivityRunsOperations
2727
from .operations.triggers_operations import TriggersOperations
28-
from .operations.rerun_triggers_operations import RerunTriggersOperations
2928
from .operations.trigger_runs_operations import TriggerRunsOperations
29+
from .operations.rerun_triggers_operations import RerunTriggersOperations
3030
from . import models
3131

3232

@@ -92,10 +92,10 @@ class DataFactoryManagementClient(SDKClient):
9292
:vartype activity_runs: azure.mgmt.datafactory.operations.ActivityRunsOperations
9393
:ivar triggers: Triggers operations
9494
:vartype triggers: azure.mgmt.datafactory.operations.TriggersOperations
95-
:ivar rerun_triggers: RerunTriggers operations
96-
:vartype rerun_triggers: azure.mgmt.datafactory.operations.RerunTriggersOperations
9795
:ivar trigger_runs: TriggerRuns operations
9896
:vartype trigger_runs: azure.mgmt.datafactory.operations.TriggerRunsOperations
97+
:ivar rerun_triggers: RerunTriggers operations
98+
:vartype rerun_triggers: azure.mgmt.datafactory.operations.RerunTriggersOperations
9999
100100
:param credentials: Credentials needed for the client to connect to Azure.
101101
:type credentials: :mod:`A msrestazure Credentials
@@ -140,7 +140,7 @@ def __init__(
140140
self._client, self.config, self._serialize, self._deserialize)
141141
self.triggers = TriggersOperations(
142142
self._client, self.config, self._serialize, self._deserialize)
143-
self.rerun_triggers = RerunTriggersOperations(
144-
self._client, self.config, self._serialize, self._deserialize)
145143
self.trigger_runs = TriggerRunsOperations(
146144
self._client, self.config, self._serialize, self._deserialize)
145+
self.rerun_triggers = RerunTriggersOperations(
146+
self._client, self.config, self._serialize, self._deserialize)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
from .phoenix_linked_service_py3 import PhoenixLinkedService
120120
from .paypal_linked_service_py3 import PaypalLinkedService
121121
from .marketo_linked_service_py3 import MarketoLinkedService
122+
from .azure_maria_db_linked_service_py3 import AzureMariaDBLinkedService
122123
from .maria_db_linked_service_py3 import MariaDBLinkedService
123124
from .magento_linked_service_py3 import MagentoLinkedService
124125
from .jira_linked_service_py3 import JiraLinkedService
@@ -208,6 +209,7 @@
208209
from .phoenix_object_dataset_py3 import PhoenixObjectDataset
209210
from .paypal_object_dataset_py3 import PaypalObjectDataset
210211
from .marketo_object_dataset_py3 import MarketoObjectDataset
212+
from .azure_maria_db_table_dataset_py3 import AzureMariaDBTableDataset
211213
from .maria_db_table_dataset_py3 import MariaDBTableDataset
212214
from .magento_object_dataset_py3 import MagentoObjectDataset
213215
from .jira_object_dataset_py3 import JiraObjectDataset
@@ -324,6 +326,7 @@
324326
from .phoenix_source_py3 import PhoenixSource
325327
from .paypal_source_py3 import PaypalSource
326328
from .marketo_source_py3 import MarketoSource
329+
from .azure_maria_db_source_py3 import AzureMariaDBSource
327330
from .maria_db_source_py3 import MariaDBSource
328331
from .magento_source_py3 import MagentoSource
329332
from .jira_source_py3 import JiraSource
@@ -624,6 +627,7 @@
624627
from .phoenix_linked_service import PhoenixLinkedService
625628
from .paypal_linked_service import PaypalLinkedService
626629
from .marketo_linked_service import MarketoLinkedService
630+
from .azure_maria_db_linked_service import AzureMariaDBLinkedService
627631
from .maria_db_linked_service import MariaDBLinkedService
628632
from .magento_linked_service import MagentoLinkedService
629633
from .jira_linked_service import JiraLinkedService
@@ -713,6 +717,7 @@
713717
from .phoenix_object_dataset import PhoenixObjectDataset
714718
from .paypal_object_dataset import PaypalObjectDataset
715719
from .marketo_object_dataset import MarketoObjectDataset
720+
from .azure_maria_db_table_dataset import AzureMariaDBTableDataset
716721
from .maria_db_table_dataset import MariaDBTableDataset
717722
from .magento_object_dataset import MagentoObjectDataset
718723
from .jira_object_dataset import JiraObjectDataset
@@ -829,6 +834,7 @@
829834
from .phoenix_source import PhoenixSource
830835
from .paypal_source import PaypalSource
831836
from .marketo_source import MarketoSource
837+
from .azure_maria_db_source import AzureMariaDBSource
832838
from .maria_db_source import MariaDBSource
833839
from .magento_source import MagentoSource
834840
from .jira_source import JiraSource
@@ -1210,6 +1216,7 @@
12101216
'PhoenixLinkedService',
12111217
'PaypalLinkedService',
12121218
'MarketoLinkedService',
1219+
'AzureMariaDBLinkedService',
12131220
'MariaDBLinkedService',
12141221
'MagentoLinkedService',
12151222
'JiraLinkedService',
@@ -1299,6 +1306,7 @@
12991306
'PhoenixObjectDataset',
13001307
'PaypalObjectDataset',
13011308
'MarketoObjectDataset',
1309+
'AzureMariaDBTableDataset',
13021310
'MariaDBTableDataset',
13031311
'MagentoObjectDataset',
13041312
'JiraObjectDataset',
@@ -1415,6 +1423,7 @@
14151423
'PhoenixSource',
14161424
'PaypalSource',
14171425
'MarketoSource',
1426+
'AzureMariaDBSource',
14181427
'MariaDBSource',
14191428
'MagentoSource',
14201429
'JiraSource',
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .linked_service import LinkedService
13+
14+
15+
class AzureMariaDBLinkedService(LinkedService):
16+
"""Azure Database for MariaDB linked service.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param connect_via: The integration runtime reference.
24+
:type connect_via:
25+
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
26+
:param description: Linked service description.
27+
:type description: str
28+
:param parameters: Parameters for linked service.
29+
:type parameters: dict[str,
30+
~azure.mgmt.datafactory.models.ParameterSpecification]
31+
:param annotations: List of tags that can be used for describing the
32+
linked service.
33+
:type annotations: list[object]
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param connection_string: An ODBC connection string. Type: string,
37+
SecureString or AzureKeyVaultSecretReference.
38+
:type connection_string: object
39+
:param pwd: The Azure key vault secret reference of password in connection
40+
string.
41+
:type pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference
42+
:param encrypted_credential: The encrypted credential used for
43+
authentication. Credentials are encrypted using the integration runtime
44+
credential manager. Type: string (or Expression with resultType string).
45+
:type encrypted_credential: object
46+
"""
47+
48+
_validation = {
49+
'type': {'required': True},
50+
}
51+
52+
_attribute_map = {
53+
'additional_properties': {'key': '', 'type': '{object}'},
54+
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
55+
'description': {'key': 'description', 'type': 'str'},
56+
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
57+
'annotations': {'key': 'annotations', 'type': '[object]'},
58+
'type': {'key': 'type', 'type': 'str'},
59+
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
60+
'pwd': {'key': 'typeProperties.pwd', 'type': 'AzureKeyVaultSecretReference'},
61+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
62+
}
63+
64+
def __init__(self, **kwargs):
65+
super(AzureMariaDBLinkedService, self).__init__(**kwargs)
66+
self.connection_string = kwargs.get('connection_string', None)
67+
self.pwd = kwargs.get('pwd', None)
68+
self.encrypted_credential = kwargs.get('encrypted_credential', None)
69+
self.type = 'AzureMariaDB'
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .linked_service_py3 import LinkedService
13+
14+
15+
class AzureMariaDBLinkedService(LinkedService):
16+
"""Azure Database for MariaDB linked service.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param connect_via: The integration runtime reference.
24+
:type connect_via:
25+
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
26+
:param description: Linked service description.
27+
:type description: str
28+
:param parameters: Parameters for linked service.
29+
:type parameters: dict[str,
30+
~azure.mgmt.datafactory.models.ParameterSpecification]
31+
:param annotations: List of tags that can be used for describing the
32+
linked service.
33+
:type annotations: list[object]
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param connection_string: An ODBC connection string. Type: string,
37+
SecureString or AzureKeyVaultSecretReference.
38+
:type connection_string: object
39+
:param pwd: The Azure key vault secret reference of password in connection
40+
string.
41+
:type pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference
42+
:param encrypted_credential: The encrypted credential used for
43+
authentication. Credentials are encrypted using the integration runtime
44+
credential manager. Type: string (or Expression with resultType string).
45+
:type encrypted_credential: object
46+
"""
47+
48+
_validation = {
49+
'type': {'required': True},
50+
}
51+
52+
_attribute_map = {
53+
'additional_properties': {'key': '', 'type': '{object}'},
54+
'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'},
55+
'description': {'key': 'description', 'type': 'str'},
56+
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'},
57+
'annotations': {'key': 'annotations', 'type': '[object]'},
58+
'type': {'key': 'type', 'type': 'str'},
59+
'connection_string': {'key': 'typeProperties.connectionString', 'type': 'object'},
60+
'pwd': {'key': 'typeProperties.pwd', 'type': 'AzureKeyVaultSecretReference'},
61+
'encrypted_credential': {'key': 'typeProperties.encryptedCredential', 'type': 'object'},
62+
}
63+
64+
def __init__(self, *, additional_properties=None, connect_via=None, description: str=None, parameters=None, annotations=None, connection_string=None, pwd=None, encrypted_credential=None, **kwargs) -> None:
65+
super(AzureMariaDBLinkedService, self).__init__(additional_properties=additional_properties, connect_via=connect_via, description=description, parameters=parameters, annotations=annotations, **kwargs)
66+
self.connection_string = connection_string
67+
self.pwd = pwd
68+
self.encrypted_credential = encrypted_credential
69+
self.type = 'AzureMariaDB'
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .copy_source import CopySource
13+
14+
15+
class AzureMariaDBSource(CopySource):
16+
"""A copy activity Azure MariaDB source.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param source_retry_count: Source retry count. Type: integer (or
24+
Expression with resultType integer).
25+
:type source_retry_count: object
26+
:param source_retry_wait: Source retry wait. Type: string (or Expression
27+
with resultType string), pattern:
28+
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
29+
:type source_retry_wait: object
30+
:param max_concurrent_connections: The maximum concurrent connection count
31+
for the source data store. Type: integer (or Expression with resultType
32+
integer).
33+
:type max_concurrent_connections: object
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param query: A query to retrieve data from source. Type: string (or
37+
Expression with resultType string).
38+
:type query: object
39+
"""
40+
41+
_validation = {
42+
'type': {'required': True},
43+
}
44+
45+
_attribute_map = {
46+
'additional_properties': {'key': '', 'type': '{object}'},
47+
'source_retry_count': {'key': 'sourceRetryCount', 'type': 'object'},
48+
'source_retry_wait': {'key': 'sourceRetryWait', 'type': 'object'},
49+
'max_concurrent_connections': {'key': 'maxConcurrentConnections', 'type': 'object'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'query': {'key': 'query', 'type': 'object'},
52+
}
53+
54+
def __init__(self, **kwargs):
55+
super(AzureMariaDBSource, self).__init__(**kwargs)
56+
self.query = kwargs.get('query', None)
57+
self.type = 'AzureMariaDBSource'
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .copy_source_py3 import CopySource
13+
14+
15+
class AzureMariaDBSource(CopySource):
16+
"""A copy activity Azure MariaDB source.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param additional_properties: Unmatched properties from the message are
21+
deserialized this collection
22+
:type additional_properties: dict[str, object]
23+
:param source_retry_count: Source retry count. Type: integer (or
24+
Expression with resultType integer).
25+
:type source_retry_count: object
26+
:param source_retry_wait: Source retry wait. Type: string (or Expression
27+
with resultType string), pattern:
28+
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
29+
:type source_retry_wait: object
30+
:param max_concurrent_connections: The maximum concurrent connection count
31+
for the source data store. Type: integer (or Expression with resultType
32+
integer).
33+
:type max_concurrent_connections: object
34+
:param type: Required. Constant filled by server.
35+
:type type: str
36+
:param query: A query to retrieve data from source. Type: string (or
37+
Expression with resultType string).
38+
:type query: object
39+
"""
40+
41+
_validation = {
42+
'type': {'required': True},
43+
}
44+
45+
_attribute_map = {
46+
'additional_properties': {'key': '', 'type': '{object}'},
47+
'source_retry_count': {'key': 'sourceRetryCount', 'type': 'object'},
48+
'source_retry_wait': {'key': 'sourceRetryWait', 'type': 'object'},
49+
'max_concurrent_connections': {'key': 'maxConcurrentConnections', 'type': 'object'},
50+
'type': {'key': 'type', 'type': 'str'},
51+
'query': {'key': 'query', 'type': 'object'},
52+
}
53+
54+
def __init__(self, *, additional_properties=None, source_retry_count=None, source_retry_wait=None, max_concurrent_connections=None, query=None, **kwargs) -> None:
55+
super(AzureMariaDBSource, self).__init__(additional_properties=additional_properties, source_retry_count=source_retry_count, source_retry_wait=source_retry_wait, max_concurrent_connections=max_concurrent_connections, **kwargs)
56+
self.query = query
57+
self.type = 'AzureMariaDBSource'

0 commit comments

Comments
 (0)