Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Generated from 29f3be5668f9d26352c4711117630ff4a4fd431b
SSIS File System Support
  • Loading branch information
AutorestCI committed Jul 3, 2019
commit 249911726b021aa821db671c3b2e9aed33673b29
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@
from .sql_server_stored_procedure_activity_py3 import SqlServerStoredProcedureActivity
from .custom_activity_reference_object_py3 import CustomActivityReferenceObject
from .custom_activity_py3 import CustomActivity
from .ssis_access_credential_py3 import SSISAccessCredential
from .ssis_log_location_py3 import SSISLogLocation
from .ssis_property_override_py3 import SSISPropertyOverride
from .ssis_execution_parameter_py3 import SSISExecutionParameter
from .ssis_execution_credential_py3 import SSISExecutionCredential
Expand Down Expand Up @@ -824,6 +826,8 @@
from .sql_server_stored_procedure_activity import SqlServerStoredProcedureActivity
from .custom_activity_reference_object import CustomActivityReferenceObject
from .custom_activity import CustomActivity
from .ssis_access_credential import SSISAccessCredential
from .ssis_log_location import SSISLogLocation
from .ssis_property_override import SSISPropertyOverride
from .ssis_execution_parameter import SSISExecutionParameter
from .ssis_execution_credential import SSISExecutionCredential
Expand Down Expand Up @@ -967,6 +971,7 @@
CassandraSourceReadConsistencyLevels,
StoredProcedureParameterType,
SalesforceSourceReadBehavior,
SsisPackageLocationType,
HDInsightActivityDebugInfoOption,
SalesforceSinkWriteBehavior,
AzureSearchIndexWriteBehaviorType,
Expand Down Expand Up @@ -1349,6 +1354,8 @@
'SqlServerStoredProcedureActivity',
'CustomActivityReferenceObject',
'CustomActivity',
'SSISAccessCredential',
'SSISLogLocation',
'SSISPropertyOverride',
'SSISExecutionParameter',
'SSISExecutionCredential',
Expand Down Expand Up @@ -1491,6 +1498,7 @@
'CassandraSourceReadConsistencyLevels',
'StoredProcedureParameterType',
'SalesforceSourceReadBehavior',
'SsisPackageLocationType',
'HDInsightActivityDebugInfoOption',
'SalesforceSinkWriteBehavior',
'AzureSearchIndexWriteBehaviorType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ class SalesforceSourceReadBehavior(str, Enum):
query_all = "QueryAll"


class SsisPackageLocationType(str, Enum):

ssisdb = "SSISDB"
file = "File"


class HDInsightActivityDebugInfoOption(str, Enum):

none = "None"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
package.
:type property_overrides: dict[str,
~azure.mgmt.datafactory.models.SSISPropertyOverride]
:param log_location: SSIS package execution log location.
:type log_location: ~azure.mgmt.datafactory.models.SSISLogLocation
"""

_validation = {
Expand Down Expand Up @@ -102,6 +104,7 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
'project_connection_managers': {'key': 'typeProperties.projectConnectionManagers', 'type': '{{SSISExecutionParameter}}'},
'package_connection_managers': {'key': 'typeProperties.packageConnectionManagers', 'type': '{{SSISExecutionParameter}}'},
'property_overrides': {'key': 'typeProperties.propertyOverrides', 'type': '{SSISPropertyOverride}'},
'log_location': {'key': 'typeProperties.logLocation', 'type': 'SSISLogLocation'},
}

def __init__(self, **kwargs):
Expand All @@ -117,4 +120,5 @@ def __init__(self, **kwargs):
self.project_connection_managers = kwargs.get('project_connection_managers', None)
self.package_connection_managers = kwargs.get('package_connection_managers', None)
self.property_overrides = kwargs.get('property_overrides', None)
self.log_location = kwargs.get('log_location', None)
self.type = 'ExecuteSSISPackage'
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
package.
:type property_overrides: dict[str,
~azure.mgmt.datafactory.models.SSISPropertyOverride]
:param log_location: SSIS package execution log location.
:type log_location: ~azure.mgmt.datafactory.models.SSISLogLocation
"""

_validation = {
Expand Down Expand Up @@ -102,9 +104,10 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
'project_connection_managers': {'key': 'typeProperties.projectConnectionManagers', 'type': '{{SSISExecutionParameter}}'},
'package_connection_managers': {'key': 'typeProperties.packageConnectionManagers', 'type': '{{SSISExecutionParameter}}'},
'property_overrides': {'key': 'typeProperties.propertyOverrides', 'type': '{SSISPropertyOverride}'},
'log_location': {'key': 'typeProperties.logLocation', 'type': 'SSISLogLocation'},
}

def __init__(self, *, name: str, package_location, connect_via, additional_properties=None, description: str=None, depends_on=None, user_properties=None, linked_service_name=None, policy=None, runtime=None, logging_level=None, environment_path=None, execution_credential=None, project_parameters=None, package_parameters=None, project_connection_managers=None, package_connection_managers=None, property_overrides=None, **kwargs) -> None:
def __init__(self, *, name: str, package_location, connect_via, additional_properties=None, description: str=None, depends_on=None, user_properties=None, linked_service_name=None, policy=None, runtime=None, logging_level=None, environment_path=None, execution_credential=None, project_parameters=None, package_parameters=None, project_connection_managers=None, package_connection_managers=None, property_overrides=None, log_location=None, **kwargs) -> None:
super(ExecuteSSISPackageActivity, self).__init__(additional_properties=additional_properties, name=name, description=description, depends_on=depends_on, user_properties=user_properties, linked_service_name=linked_service_name, policy=policy, **kwargs)
self.package_location = package_location
self.runtime = runtime
Expand All @@ -117,4 +120,5 @@ def __init__(self, *, name: str, package_location, connect_via, additional_prope
self.project_connection_managers = project_connection_managers
self.package_connection_managers = package_connection_managers
self.property_overrides = property_overrides
self.log_location = log_location
self.type = 'ExecuteSSISPackage'
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class SSISAccessCredential(Model):
"""SSIS access credential.

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

:param domain: Required. Domain for windows authentication.
:type domain: object
:param user_name: Required. UseName for windows authentication.
:type user_name: object
:param password: Required. Password for windows authentication.
:type password: ~azure.mgmt.datafactory.models.SecureString
"""

_validation = {
'domain': {'required': True},
'user_name': {'required': True},
'password': {'required': True},
}

_attribute_map = {
'domain': {'key': 'domain', 'type': 'object'},
'user_name': {'key': 'userName', 'type': 'object'},
'password': {'key': 'password', 'type': 'SecureString'},
}

def __init__(self, **kwargs):
super(SSISAccessCredential, self).__init__(**kwargs)
self.domain = kwargs.get('domain', None)
self.user_name = kwargs.get('user_name', None)
self.password = kwargs.get('password', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class SSISAccessCredential(Model):
"""SSIS access credential.

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

:param domain: Required. Domain for windows authentication.
:type domain: object
:param user_name: Required. UseName for windows authentication.
:type user_name: object
:param password: Required. Password for windows authentication.
:type password: ~azure.mgmt.datafactory.models.SecureString
"""

_validation = {
'domain': {'required': True},
'user_name': {'required': True},
'password': {'required': True},
}

_attribute_map = {
'domain': {'key': 'domain', 'type': 'object'},
'user_name': {'key': 'userName', 'type': 'object'},
'password': {'key': 'password', 'type': 'SecureString'},
}

def __init__(self, *, domain, user_name, password, **kwargs) -> None:
super(SSISAccessCredential, self).__init__(**kwargs)
self.domain = domain
self.user_name = user_name
self.password = password
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class SSISLogLocation(Model):
"""SSIS package execution log location.

Variables are only populated by the server, and will be ignored when
sending a request.

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

:param log_path: Required. The SSIS package execution log path. Type:
string (or Expression with resultType string).
:type log_path: object
:ivar type: Required. The type of SSIS log location. Default value: "File"
.
:vartype type: str
:param access_credential: The package execution log access credential.
:type access_credential:
~azure.mgmt.datafactory.models.SSISAccessCredential
:param log_refresh_interval: Specifies the interval to refresh log. The
default interval is 5 minutes. Type: string (or Expression with resultType
string), pattern:
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
:type log_refresh_interval: object
"""

_validation = {
'log_path': {'required': True},
'type': {'required': True, 'constant': True},
}

_attribute_map = {
'log_path': {'key': 'logPath', 'type': 'object'},
'type': {'key': 'type', 'type': 'str'},
'access_credential': {'key': 'typeProperties.accessCredential', 'type': 'SSISAccessCredential'},
'log_refresh_interval': {'key': 'typeProperties.logRefreshInterval', 'type': 'object'},
}

type = "File"

def __init__(self, **kwargs):
super(SSISLogLocation, self).__init__(**kwargs)
self.log_path = kwargs.get('log_path', None)
self.access_credential = kwargs.get('access_credential', None)
self.log_refresh_interval = kwargs.get('log_refresh_interval', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class SSISLogLocation(Model):
"""SSIS package execution log location.

Variables are only populated by the server, and will be ignored when
sending a request.

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

:param log_path: Required. The SSIS package execution log path. Type:
string (or Expression with resultType string).
:type log_path: object
:ivar type: Required. The type of SSIS log location. Default value: "File"
.
:vartype type: str
:param access_credential: The package execution log access credential.
:type access_credential:
~azure.mgmt.datafactory.models.SSISAccessCredential
:param log_refresh_interval: Specifies the interval to refresh log. The
default interval is 5 minutes. Type: string (or Expression with resultType
string), pattern:
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
:type log_refresh_interval: object
"""

_validation = {
'log_path': {'required': True},
'type': {'required': True, 'constant': True},
}

_attribute_map = {
'log_path': {'key': 'logPath', 'type': 'object'},
'type': {'key': 'type', 'type': 'str'},
'access_credential': {'key': 'typeProperties.accessCredential', 'type': 'SSISAccessCredential'},
'log_refresh_interval': {'key': 'typeProperties.logRefreshInterval', 'type': 'object'},
}

type = "File"

def __init__(self, *, log_path, access_credential=None, log_refresh_interval=None, **kwargs) -> None:
super(SSISLogLocation, self).__init__(**kwargs)
self.log_path = log_path
self.access_credential = access_credential
self.log_refresh_interval = log_refresh_interval
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ class SSISPackageLocation(Model):
:param package_path: Required. The SSIS package path. Type: string (or
Expression with resultType string).
:type package_path: object
:param type: The type of SSIS package location. Possible values include:
'SSISDB', 'File'
:type type: str or ~azure.mgmt.datafactory.models.SsisPackageLocationType
:param package_password: Password of the package.
:type package_password: ~azure.mgmt.datafactory.models.SecureString
:param access_credential: The package access credential.
:type access_credential:
~azure.mgmt.datafactory.models.SSISAccessCredential
:param configuration_path: The configuration file of the package
execution. Type: string (or Expression with resultType string).
:type configuration_path: object
"""

_validation = {
Expand All @@ -28,8 +39,16 @@ class SSISPackageLocation(Model):

_attribute_map = {
'package_path': {'key': 'packagePath', 'type': 'object'},
'type': {'key': 'type', 'type': 'str'},
'package_password': {'key': 'typeProperties.packagePassword', 'type': 'SecureString'},
'access_credential': {'key': 'typeProperties.accessCredential', 'type': 'SSISAccessCredential'},
'configuration_path': {'key': 'typeProperties.configurationPath', 'type': 'object'},
}

def __init__(self, **kwargs):
super(SSISPackageLocation, self).__init__(**kwargs)
self.package_path = kwargs.get('package_path', None)
self.type = kwargs.get('type', None)
self.package_password = kwargs.get('package_password', None)
self.access_credential = kwargs.get('access_credential', None)
self.configuration_path = kwargs.get('configuration_path', None)
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ class SSISPackageLocation(Model):
:param package_path: Required. The SSIS package path. Type: string (or
Expression with resultType string).
:type package_path: object
:param type: The type of SSIS package location. Possible values include:
'SSISDB', 'File'
:type type: str or ~azure.mgmt.datafactory.models.SsisPackageLocationType
:param package_password: Password of the package.
:type package_password: ~azure.mgmt.datafactory.models.SecureString
:param access_credential: The package access credential.
:type access_credential:
~azure.mgmt.datafactory.models.SSISAccessCredential
:param configuration_path: The configuration file of the package
execution. Type: string (or Expression with resultType string).
:type configuration_path: object
"""

_validation = {
Expand All @@ -28,8 +39,16 @@ class SSISPackageLocation(Model):

_attribute_map = {
'package_path': {'key': 'packagePath', 'type': 'object'},
'type': {'key': 'type', 'type': 'str'},
'package_password': {'key': 'typeProperties.packagePassword', 'type': 'SecureString'},
'access_credential': {'key': 'typeProperties.accessCredential', 'type': 'SSISAccessCredential'},
'configuration_path': {'key': 'typeProperties.configurationPath', 'type': 'object'},
}

def __init__(self, *, package_path, **kwargs) -> None:
def __init__(self, *, package_path, type=None, package_password=None, access_credential=None, configuration_path=None, **kwargs) -> None:
super(SSISPackageLocation, self).__init__(**kwargs)
self.package_path = package_path
self.type = type
self.package_password = package_password
self.access_credential = access_credential
self.configuration_path = configuration_path