Skip to content

Commit 0abb648

Browse files
author
SDKAuto
committed
CodeGen from PR 16251 in Azure/azure-rest-api-specs
Merge 1d30a7b430bcf48a45a79801c5604232a22b101b into 5ee7c98
1 parent f24da44 commit 0abb648

File tree

5 files changed

+207
-10
lines changed

5 files changed

+207
-10
lines changed

sdk/datafactory/azure-mgmt-datafactory/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "2ce915398bfadd5333820487595a9623187dcb59",
7+
"commit": "4de5239ea0deb949db68798673729bed7d013720",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/datafactory/resource-manager/readme.md"

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 = "2.0.0"
9+
VERSION = "1.0.0"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
from ._models_py3 import FileSystemSink
280280
from ._models_py3 import FileSystemSource
281281
from ._models_py3 import FilterActivity
282+
from ._models_py3 import Flowlet
282283
from ._models_py3 import ForEachActivity
283284
from ._models_py3 import FormatReadSettings
284285
from ._models_py3 import FormatWriteSettings
@@ -974,6 +975,7 @@
974975
from ._models import FileSystemSink # type: ignore
975976
from ._models import FileSystemSource # type: ignore
976977
from ._models import FilterActivity # type: ignore
978+
from ._models import Flowlet # type: ignore
977979
from ._models import ForEachActivity # type: ignore
978980
from ._models import FormatReadSettings # type: ignore
979981
from ._models import FormatWriteSettings # type: ignore
@@ -1768,6 +1770,7 @@
17681770
'FileSystemSink',
17691771
'FileSystemSource',
17701772
'FilterActivity',
1773+
'Flowlet',
17711774
'ForEachActivity',
17721775
'FormatReadSettings',
17731776
'FormatWriteSettings',

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

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11051,7 +11051,7 @@ class DataFlow(msrest.serialization.Model):
1105111051
"""Azure Data Factory nested object which contains a flow with data movements and transformations.
1105211052

1105311053
You probably want to use the sub-classes and not this class directly. Known
11054-
sub-classes are: MappingDataFlow, WranglingDataFlow.
11054+
sub-classes are: Flowlet, MappingDataFlow, WranglingDataFlow.
1105511055

1105611056
All required parameters must be populated in order to send to Azure.
1105711057

@@ -11078,7 +11078,7 @@ class DataFlow(msrest.serialization.Model):
1107811078
}
1107911079

1108011080
_subtype_map = {
11081-
'type': {'MappingDataFlow': 'MappingDataFlow', 'WranglingDataFlow': 'WranglingDataFlow'}
11081+
'type': {'Flowlet': 'Flowlet', 'MappingDataFlow': 'MappingDataFlow', 'WranglingDataFlow': 'WranglingDataFlow'}
1108211082
}
1108311083

1108411084
def __init__(
@@ -11190,6 +11190,8 @@ class DataFlowDebugPackage(msrest.serialization.Model):
1119011190
:type session_id: str
1119111191
:param data_flow: Data flow instance.
1119211192
:type data_flow: ~azure.mgmt.datafactory.models.DataFlowDebugResource
11193+
:param data_flows: List of Data flows.
11194+
:type data_flows: list[~azure.mgmt.datafactory.models.DataFlowDebugResource]
1119311195
:param datasets: List of datasets.
1119411196
:type datasets: list[~azure.mgmt.datafactory.models.DatasetDebugResource]
1119511197
:param linked_services: List of linked services.
@@ -11204,6 +11206,7 @@ class DataFlowDebugPackage(msrest.serialization.Model):
1120411206
'additional_properties': {'key': '', 'type': '{object}'},
1120511207
'session_id': {'key': 'sessionId', 'type': 'str'},
1120611208
'data_flow': {'key': 'dataFlow', 'type': 'DataFlowDebugResource'},
11209+
'data_flows': {'key': 'dataFlows', 'type': '[DataFlowDebugResource]'},
1120711210
'datasets': {'key': 'datasets', 'type': '[DatasetDebugResource]'},
1120811211
'linked_services': {'key': 'linkedServices', 'type': '[LinkedServiceDebugResource]'},
1120911212
'staging': {'key': 'staging', 'type': 'DataFlowStagingInfo'},
@@ -11218,6 +11221,7 @@ def __init__(
1121811221
self.additional_properties = kwargs.get('additional_properties', None)
1121911222
self.session_id = kwargs.get('session_id', None)
1122011223
self.data_flow = kwargs.get('data_flow', None)
11224+
self.data_flows = kwargs.get('data_flows', None)
1122111225
self.datasets = kwargs.get('datasets', None)
1122211226
self.linked_services = kwargs.get('linked_services', None)
1122311227
self.staging = kwargs.get('staging', None)
@@ -11496,6 +11500,8 @@ class Transformation(msrest.serialization.Model):
1149611500
:type name: str
1149711501
:param description: Transformation description.
1149811502
:type description: str
11503+
:param flowlet: Flowlet Reference.
11504+
:type flowlet: ~azure.mgmt.datafactory.models.DataFlowReference
1149911505
"""
1150011506

1150111507
_validation = {
@@ -11505,6 +11511,7 @@ class Transformation(msrest.serialization.Model):
1150511511
_attribute_map = {
1150611512
'name': {'key': 'name', 'type': 'str'},
1150711513
'description': {'key': 'description', 'type': 'str'},
11514+
'flowlet': {'key': 'flowlet', 'type': 'DataFlowReference'},
1150811515
}
1150911516

1151011517
def __init__(
@@ -11514,6 +11521,7 @@ def __init__(
1151411521
super(Transformation, self).__init__(**kwargs)
1151511522
self.name = kwargs['name']
1151611523
self.description = kwargs.get('description', None)
11524+
self.flowlet = kwargs.get('flowlet', None)
1151711525

1151811526

1151911527
class DataFlowSink(Transformation):
@@ -11525,6 +11533,8 @@ class DataFlowSink(Transformation):
1152511533
:type name: str
1152611534
:param description: Transformation description.
1152711535
:type description: str
11536+
:param flowlet: Flowlet Reference.
11537+
:type flowlet: ~azure.mgmt.datafactory.models.DataFlowReference
1152811538
:param dataset: Dataset reference.
1152911539
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference
1153011540
:param linked_service: Linked service reference.
@@ -11540,6 +11550,7 @@ class DataFlowSink(Transformation):
1154011550
_attribute_map = {
1154111551
'name': {'key': 'name', 'type': 'str'},
1154211552
'description': {'key': 'description', 'type': 'str'},
11553+
'flowlet': {'key': 'flowlet', 'type': 'DataFlowReference'},
1154311554
'dataset': {'key': 'dataset', 'type': 'DatasetReference'},
1154411555
'linked_service': {'key': 'linkedService', 'type': 'LinkedServiceReference'},
1154511556
'schema_linked_service': {'key': 'schemaLinkedService', 'type': 'LinkedServiceReference'},
@@ -11564,6 +11575,8 @@ class DataFlowSource(Transformation):
1156411575
:type name: str
1156511576
:param description: Transformation description.
1156611577
:type description: str
11578+
:param flowlet: Flowlet Reference.
11579+
:type flowlet: ~azure.mgmt.datafactory.models.DataFlowReference
1156711580
:param dataset: Dataset reference.
1156811581
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference
1156911582
:param linked_service: Linked service reference.
@@ -11579,6 +11592,7 @@ class DataFlowSource(Transformation):
1157911592
_attribute_map = {
1158011593
'name': {'key': 'name', 'type': 'str'},
1158111594
'description': {'key': 'description', 'type': 'str'},
11595+
'flowlet': {'key': 'flowlet', 'type': 'DataFlowReference'},
1158211596
'dataset': {'key': 'dataset', 'type': 'DatasetReference'},
1158311597
'linked_service': {'key': 'linkedService', 'type': 'LinkedServiceReference'},
1158411598
'schema_linked_service': {'key': 'schemaLinkedService', 'type': 'LinkedServiceReference'},
@@ -16009,6 +16023,70 @@ def __init__(
1600916023
self.condition = kwargs['condition']
1601016024

1601116025

16026+
class Flowlet(DataFlow):
16027+
"""Data flow flowlet.
16028+
16029+
All required parameters must be populated in order to send to Azure.
16030+
16031+
:param type: Required. Type of data flow.Constant filled by server.
16032+
:type type: str
16033+
:param description: The description of the data flow.
16034+
:type description: str
16035+
:param annotations: List of tags that can be used for describing the data flow.
16036+
:type annotations: list[any]
16037+
:param folder: The folder that this data flow is in. If not specified, Data flow will appear at
16038+
the root level.
16039+
:type folder: ~azure.mgmt.datafactory.models.DataFlowFolder
16040+
:param additional_properties: Unmatched properties from the message are deserialized to this
16041+
collection.
16042+
:type additional_properties: dict[str, any]
16043+
:param sources: List of sources in Flowlet.
16044+
:type sources: list[~azure.mgmt.datafactory.models.DataFlowSource]
16045+
:param sinks: List of sinks in Flowlet.
16046+
:type sinks: list[~azure.mgmt.datafactory.models.DataFlowSink]
16047+
:param transformations: List of transformations in Flowlet.
16048+
:type transformations: list[~azure.mgmt.datafactory.models.Transformation]
16049+
:param script: Flowlet script.
16050+
:type script: str
16051+
:param script_lines: Flowlet script lines.
16052+
:type script_lines: list[str]
16053+
:param additional_properties1: Any object.
16054+
:type additional_properties1: any
16055+
"""
16056+
16057+
_validation = {
16058+
'type': {'required': True},
16059+
}
16060+
16061+
_attribute_map = {
16062+
'type': {'key': 'type', 'type': 'str'},
16063+
'description': {'key': 'description', 'type': 'str'},
16064+
'annotations': {'key': 'annotations', 'type': '[object]'},
16065+
'folder': {'key': 'folder', 'type': 'DataFlowFolder'},
16066+
'additional_properties': {'key': '', 'type': '{object}'},
16067+
'sources': {'key': 'typeProperties.sources', 'type': '[DataFlowSource]'},
16068+
'sinks': {'key': 'typeProperties.sinks', 'type': '[DataFlowSink]'},
16069+
'transformations': {'key': 'typeProperties.transformations', 'type': '[Transformation]'},
16070+
'script': {'key': 'typeProperties.script', 'type': 'str'},
16071+
'script_lines': {'key': 'typeProperties.scriptLines', 'type': '[str]'},
16072+
'additional_properties1': {'key': 'typeProperties.additionalProperties', 'type': 'object'},
16073+
}
16074+
16075+
def __init__(
16076+
self,
16077+
**kwargs
16078+
):
16079+
super(Flowlet, self).__init__(**kwargs)
16080+
self.type = 'Flowlet' # type: str
16081+
self.additional_properties = kwargs.get('additional_properties', None)
16082+
self.sources = kwargs.get('sources', None)
16083+
self.sinks = kwargs.get('sinks', None)
16084+
self.transformations = kwargs.get('transformations', None)
16085+
self.script = kwargs.get('script', None)
16086+
self.script_lines = kwargs.get('script_lines', None)
16087+
self.additional_properties1 = kwargs.get('additional_properties1', None)
16088+
16089+
1601216090
class ForEachActivity(ControlActivity):
1601316091
"""This activity is used for iterating over a collection and execute given activities.
1601416092

@@ -22502,6 +22580,8 @@ class MappingDataFlow(DataFlow):
2250222580
:type transformations: list[~azure.mgmt.datafactory.models.Transformation]
2250322581
:param script: DataFlow script.
2250422582
:type script: str
22583+
:param script_lines: Data flow script lines.
22584+
:type script_lines: list[str]
2250522585
"""
2250622586

2250722587
_validation = {
@@ -22517,6 +22597,7 @@ class MappingDataFlow(DataFlow):
2251722597
'sinks': {'key': 'typeProperties.sinks', 'type': '[DataFlowSink]'},
2251822598
'transformations': {'key': 'typeProperties.transformations', 'type': '[Transformation]'},
2251922599
'script': {'key': 'typeProperties.script', 'type': 'str'},
22600+
'script_lines': {'key': 'typeProperties.scriptLines', 'type': '[str]'},
2252022601
}
2252122602

2252222603
def __init__(
@@ -22529,6 +22610,7 @@ def __init__(
2252922610
self.sinks = kwargs.get('sinks', None)
2253022611
self.transformations = kwargs.get('transformations', None)
2253122612
self.script = kwargs.get('script', None)
22613+
self.script_lines = kwargs.get('script_lines', None)
2253222614

2253322615

2253422616
class MariaDBLinkedService(LinkedService):
@@ -27506,6 +27588,8 @@ class PowerQuerySink(DataFlowSink):
2750627588
:type name: str
2750727589
:param description: Transformation description.
2750827590
:type description: str
27591+
:param flowlet: Flowlet Reference.
27592+
:type flowlet: ~azure.mgmt.datafactory.models.DataFlowReference
2750927593
:param dataset: Dataset reference.
2751027594
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference
2751127595
:param linked_service: Linked service reference.
@@ -27523,6 +27607,7 @@ class PowerQuerySink(DataFlowSink):
2752327607
_attribute_map = {
2752427608
'name': {'key': 'name', 'type': 'str'},
2752527609
'description': {'key': 'description', 'type': 'str'},
27610+
'flowlet': {'key': 'flowlet', 'type': 'DataFlowReference'},
2752627611
'dataset': {'key': 'dataset', 'type': 'DatasetReference'},
2752727612
'linked_service': {'key': 'linkedService', 'type': 'LinkedServiceReference'},
2752827613
'schema_linked_service': {'key': 'schemaLinkedService', 'type': 'LinkedServiceReference'},
@@ -27569,6 +27654,8 @@ class PowerQuerySource(DataFlowSource):
2756927654
:type name: str
2757027655
:param description: Transformation description.
2757127656
:type description: str
27657+
:param flowlet: Flowlet Reference.
27658+
:type flowlet: ~azure.mgmt.datafactory.models.DataFlowReference
2757227659
:param dataset: Dataset reference.
2757327660
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference
2757427661
:param linked_service: Linked service reference.
@@ -27586,6 +27673,7 @@ class PowerQuerySource(DataFlowSource):
2758627673
_attribute_map = {
2758727674
'name': {'key': 'name', 'type': 'str'},
2758827675
'description': {'key': 'description', 'type': 'str'},
27676+
'flowlet': {'key': 'flowlet', 'type': 'DataFlowReference'},
2758927677
'dataset': {'key': 'dataset', 'type': 'DatasetReference'},
2759027678
'linked_service': {'key': 'linkedService', 'type': 'LinkedServiceReference'},
2759127679
'schema_linked_service': {'key': 'schemaLinkedService', 'type': 'LinkedServiceReference'},

0 commit comments

Comments
 (0)