Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR datafactory/resource-manager] [Data Factory][Bug fix before publishing] Add new sub resource wrapper with name property #7514

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
from ._models_py3 import DataFlowDebugCommandResponse
from ._models_py3 import DataFlowDebugPackage
from ._models_py3 import DataFlowDebugPackageDebugSettings
from ._models_py3 import DataFlowDebugResource
from ._models_py3 import DataFlowDebugSessionInfo
from ._models_py3 import DataFlowFolder
from ._models_py3 import DataFlowReference
Expand All @@ -164,6 +165,7 @@
from ._models_py3 import Dataset
from ._models_py3 import DatasetBZip2Compression
from ._models_py3 import DatasetCompression
from ._models_py3 import DatasetDebugResource
from ._models_py3 import DatasetDeflateCompression
from ._models_py3 import DatasetFolder
from ._models_py3 import DatasetGZipCompression
Expand Down Expand Up @@ -291,6 +293,7 @@
from ._models_py3 import IntegrationRuntimeCustomSetupScriptProperties
from ._models_py3 import IntegrationRuntimeDataFlowProperties
from ._models_py3 import IntegrationRuntimeDataProxyProperties
from ._models_py3 import IntegrationRuntimeDebugResource
from ._models_py3 import IntegrationRuntimeMonitoringData
from ._models_py3 import IntegrationRuntimeNodeIpAddress
from ._models_py3 import IntegrationRuntimeNodeMonitoringData
Expand All @@ -317,6 +320,7 @@
from ._models_py3 import LinkedIntegrationRuntimeRequest
from ._models_py3 import LinkedIntegrationRuntimeType
from ._models_py3 import LinkedService
from ._models_py3 import LinkedServiceDebugResource
from ._models_py3 import LinkedServiceReference
from ._models_py3 import LinkedServiceResource
from ._models_py3 import LogStorageSettings
Expand Down Expand Up @@ -519,6 +523,7 @@
from ._models_py3 import StoreReadSettings
from ._models_py3 import StoreWriteSettings
from ._models_py3 import SubResource
from ._models_py3 import SubResourceDebugResource
from ._models_py3 import SybaseLinkedService
from ._models_py3 import SybaseSource
from ._models_py3 import SybaseTableDataset
Expand Down Expand Up @@ -709,6 +714,7 @@
from ._models import DataFlowDebugCommandResponse
from ._models import DataFlowDebugPackage
from ._models import DataFlowDebugPackageDebugSettings
from ._models import DataFlowDebugResource
from ._models import DataFlowDebugSessionInfo
from ._models import DataFlowFolder
from ._models import DataFlowReference
Expand All @@ -721,6 +727,7 @@
from ._models import Dataset
from ._models import DatasetBZip2Compression
from ._models import DatasetCompression
from ._models import DatasetDebugResource
from ._models import DatasetDeflateCompression
from ._models import DatasetFolder
from ._models import DatasetGZipCompression
Expand Down Expand Up @@ -848,6 +855,7 @@
from ._models import IntegrationRuntimeCustomSetupScriptProperties
from ._models import IntegrationRuntimeDataFlowProperties
from ._models import IntegrationRuntimeDataProxyProperties
from ._models import IntegrationRuntimeDebugResource
from ._models import IntegrationRuntimeMonitoringData
from ._models import IntegrationRuntimeNodeIpAddress
from ._models import IntegrationRuntimeNodeMonitoringData
Expand All @@ -874,6 +882,7 @@
from ._models import LinkedIntegrationRuntimeRequest
from ._models import LinkedIntegrationRuntimeType
from ._models import LinkedService
from ._models import LinkedServiceDebugResource
from ._models import LinkedServiceReference
from ._models import LinkedServiceResource
from ._models import LogStorageSettings
Expand Down Expand Up @@ -1076,6 +1085,7 @@
from ._models import StoreReadSettings
from ._models import StoreWriteSettings
from ._models import SubResource
from ._models import SubResourceDebugResource
from ._models import SybaseLinkedService
from ._models import SybaseSource
from ._models import SybaseTableDataset
Expand Down Expand Up @@ -1353,6 +1363,7 @@
'DataFlowDebugCommandResponse',
'DataFlowDebugPackage',
'DataFlowDebugPackageDebugSettings',
'DataFlowDebugResource',
'DataFlowDebugSessionInfo',
'DataFlowFolder',
'DataFlowReference',
Expand All @@ -1365,6 +1376,7 @@
'Dataset',
'DatasetBZip2Compression',
'DatasetCompression',
'DatasetDebugResource',
'DatasetDeflateCompression',
'DatasetFolder',
'DatasetGZipCompression',
Expand Down Expand Up @@ -1492,6 +1504,7 @@
'IntegrationRuntimeCustomSetupScriptProperties',
'IntegrationRuntimeDataFlowProperties',
'IntegrationRuntimeDataProxyProperties',
'IntegrationRuntimeDebugResource',
'IntegrationRuntimeMonitoringData',
'IntegrationRuntimeNodeIpAddress',
'IntegrationRuntimeNodeMonitoringData',
Expand All @@ -1518,6 +1531,7 @@
'LinkedIntegrationRuntimeRequest',
'LinkedIntegrationRuntimeType',
'LinkedService',
'LinkedServiceDebugResource',
'LinkedServiceReference',
'LinkedServiceResource',
'LogStorageSettings',
Expand Down Expand Up @@ -1720,6 +1734,7 @@
'StoreReadSettings',
'StoreWriteSettings',
'SubResource',
'SubResourceDebugResource',
'SybaseLinkedService',
'SybaseSource',
'SybaseTableDataset',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8271,14 +8271,14 @@ class CreateDataFlowDebugSessionRequest(Model):
:param integration_runtime: Set to use integration runtime setting for
data flow debug session.
:type integration_runtime:
~azure.mgmt.datafactory.models.IntegrationRuntimeResource
~azure.mgmt.datafactory.models.IntegrationRuntimeDebugResource
"""

_attribute_map = {
'compute_type': {'key': 'computeType', 'type': 'str'},
'core_count': {'key': 'coreCount', 'type': 'int'},
'time_to_live': {'key': 'timeToLive', 'type': 'int'},
'integration_runtime': {'key': 'integrationRuntime', 'type': 'IntegrationRuntimeResource'},
'integration_runtime': {'key': 'integrationRuntime', 'type': 'IntegrationRuntimeDebugResource'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -8894,12 +8894,12 @@ class DataFlowDebugPackage(Model):
:param session_id: The ID of data flow debug session.
:type session_id: str
:param data_flow: Data flow instance.
:type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource
:type data_flow: ~azure.mgmt.datafactory.models.DataFlowDebugResource
:param datasets: List of datasets.
:type datasets: list[~azure.mgmt.datafactory.models.DatasetResource]
:type datasets: list[~azure.mgmt.datafactory.models.DatasetDebugResource]
:param linked_services: List of linked services.
:type linked_services:
list[~azure.mgmt.datafactory.models.LinkedServiceResource]
list[~azure.mgmt.datafactory.models.LinkedServiceDebugResource]
:param staging: Staging info for debug session.
:type staging: ~azure.mgmt.datafactory.models.DataFlowStagingInfo
:param debug_settings: Data flow debug settings.
Expand All @@ -8910,9 +8910,9 @@ class DataFlowDebugPackage(Model):
_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'session_id': {'key': 'sessionId', 'type': 'str'},
'data_flow': {'key': 'dataFlow', 'type': 'DataFlowResource'},
'datasets': {'key': 'datasets', 'type': '[DatasetResource]'},
'linked_services': {'key': 'linkedServices', 'type': '[LinkedServiceResource]'},
'data_flow': {'key': 'dataFlow', 'type': 'DataFlowDebugResource'},
'datasets': {'key': 'datasets', 'type': '[DatasetDebugResource]'},
'linked_services': {'key': 'linkedServices', 'type': '[LinkedServiceDebugResource]'},
'staging': {'key': 'staging', 'type': 'DataFlowStagingInfo'},
'debug_settings': {'key': 'debugSettings', 'type': 'DataFlowDebugPackageDebugSettings'},
}
Expand Down Expand Up @@ -8953,6 +8953,47 @@ def __init__(self, **kwargs):
self.dataset_parameters = kwargs.get('dataset_parameters', None)


class SubResourceDebugResource(Model):
"""Azure Data Factory nested debug resource.

:param name: The resource name.
:type name: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SubResourceDebugResource, self).__init__(**kwargs)
self.name = kwargs.get('name', None)


class DataFlowDebugResource(SubResourceDebugResource):
"""Data flow debug resource.

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

:param name: The resource name.
:type name: str
:param properties: Required. Data flow properties.
:type properties: ~azure.mgmt.datafactory.models.DataFlow
"""

_validation = {
'properties': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'DataFlow'},
}

def __init__(self, **kwargs):
super(DataFlowDebugResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class DataFlowDebugSessionInfo(Model):
"""Data flow debug session info.

Expand Down Expand Up @@ -9419,6 +9460,31 @@ def __init__(self, **kwargs):
self.type = 'BZip2'


class DatasetDebugResource(SubResourceDebugResource):
"""Dataset debug resource.

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

:param name: The resource name.
:type name: str
:param properties: Required. Dataset properties.
:type properties: ~azure.mgmt.datafactory.models.Dataset
"""

_validation = {
'properties': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'Dataset'},
}

def __init__(self, **kwargs):
super(DatasetDebugResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class DatasetDeflateCompression(DatasetCompression):
"""The Deflate compression method used on a dataset.

Expand Down Expand Up @@ -16578,6 +16644,31 @@ def __init__(self, **kwargs):
self.path = kwargs.get('path', None)


class IntegrationRuntimeDebugResource(SubResourceDebugResource):
"""Integration runtime debug resource.

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

:param name: The resource name.
:type name: str
:param properties: Required. Integration runtime properties.
:type properties: ~azure.mgmt.datafactory.models.IntegrationRuntime
"""

_validation = {
'properties': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'IntegrationRuntime'},
}

def __init__(self, **kwargs):
super(IntegrationRuntimeDebugResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class IntegrationRuntimeMonitoringData(Model):
"""Get monitoring data response.

Expand Down Expand Up @@ -17644,6 +17735,31 @@ def __init__(self, **kwargs):
self.linked_factory_name = kwargs.get('linked_factory_name', None)


class LinkedServiceDebugResource(SubResourceDebugResource):
"""Linked service debug resource.

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

:param name: The resource name.
:type name: str
:param properties: Required. Properties of linked service.
:type properties: ~azure.mgmt.datafactory.models.LinkedService
"""

_validation = {
'properties': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'LinkedService'},
}

def __init__(self, **kwargs):
super(LinkedServiceDebugResource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class LinkedServiceReference(Model):
"""Linked service reference type.

Expand Down
Loading