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] [Azure Data Factory] Add winauth support in SSIS Activity #4173

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 @@ -306,6 +306,7 @@
from .custom_activity_py3 import CustomActivity
from .ssis_property_override_py3 import SSISPropertyOverride
from .ssis_execution_parameter_py3 import SSISExecutionParameter
from .ssis_execution_credential_py3 import SSISExecutionCredential
from .ssis_package_location_py3 import SSISPackageLocation
from .execute_ssis_package_activity_py3 import ExecuteSSISPackageActivity
from .hd_insight_spark_activity_py3 import HDInsightSparkActivity
Expand Down Expand Up @@ -667,6 +668,7 @@
from .custom_activity import CustomActivity
from .ssis_property_override import SSISPropertyOverride
from .ssis_execution_parameter import SSISExecutionParameter
from .ssis_execution_credential import SSISExecutionCredential
from .ssis_package_location import SSISPackageLocation
from .execute_ssis_package_activity import ExecuteSSISPackageActivity
from .hd_insight_spark_activity import HDInsightSparkActivity
Expand Down Expand Up @@ -1099,6 +1101,7 @@
'CustomActivity',
'SSISPropertyOverride',
'SSISExecutionParameter',
'SSISExecutionCredential',
'SSISPackageLocation',
'ExecuteSSISPackageActivity',
'HDInsightSparkActivity',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
:param environment_path: The environment path to execute the SSIS package.
Type: string (or Expression with resultType string).
:type environment_path: object
:param execution_credential: The package execution credential.
:type execution_credential: dict[str,
~azure.mgmt.datafactory.models.SSISExecutionCredential]
:param connect_via: Required. The integration runtime reference.
:type connect_via:
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
Expand Down Expand Up @@ -92,6 +95,7 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
'runtime': {'key': 'typeProperties.runtime', 'type': 'object'},
'logging_level': {'key': 'typeProperties.loggingLevel', 'type': 'object'},
'environment_path': {'key': 'typeProperties.environmentPath', 'type': 'object'},
'execution_credential': {'key': 'typeProperties.executionCredential', 'type': '{SSISExecutionCredential}'},
'connect_via': {'key': 'typeProperties.connectVia', 'type': 'IntegrationRuntimeReference'},
'project_parameters': {'key': 'typeProperties.projectParameters', 'type': '{SSISExecutionParameter}'},
'package_parameters': {'key': 'typeProperties.packageParameters', 'type': '{SSISExecutionParameter}'},
Expand All @@ -106,6 +110,7 @@ def __init__(self, **kwargs):
self.runtime = kwargs.get('runtime', None)
self.logging_level = kwargs.get('logging_level', None)
self.environment_path = kwargs.get('environment_path', None)
self.execution_credential = kwargs.get('execution_credential', None)
self.connect_via = kwargs.get('connect_via', None)
self.project_parameters = kwargs.get('project_parameters', None)
self.package_parameters = kwargs.get('package_parameters', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
:param environment_path: The environment path to execute the SSIS package.
Type: string (or Expression with resultType string).
:type environment_path: object
:param execution_credential: The package execution credential.
:type execution_credential: dict[str,
~azure.mgmt.datafactory.models.SSISExecutionCredential]
:param connect_via: Required. The integration runtime reference.
:type connect_via:
~azure.mgmt.datafactory.models.IntegrationRuntimeReference
Expand Down Expand Up @@ -92,6 +95,7 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
'runtime': {'key': 'typeProperties.runtime', 'type': 'object'},
'logging_level': {'key': 'typeProperties.loggingLevel', 'type': 'object'},
'environment_path': {'key': 'typeProperties.environmentPath', 'type': 'object'},
'execution_credential': {'key': 'typeProperties.executionCredential', 'type': '{SSISExecutionCredential}'},
'connect_via': {'key': 'typeProperties.connectVia', 'type': 'IntegrationRuntimeReference'},
'project_parameters': {'key': 'typeProperties.projectParameters', 'type': '{SSISExecutionParameter}'},
'package_parameters': {'key': 'typeProperties.packageParameters', 'type': '{SSISExecutionParameter}'},
Expand All @@ -100,12 +104,13 @@ class ExecuteSSISPackageActivity(ExecutionActivity):
'property_overrides': {'key': 'typeProperties.propertyOverrides', 'type': '{SSISPropertyOverride}'},
}

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, 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, **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
self.logging_level = logging_level
self.environment_path = environment_path
self.execution_credential = execution_credential
self.connect_via = connect_via
self.project_parameters = project_parameters
self.package_parameters = package_parameters
Expand Down
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 SSISExecutionCredential(Model):
"""SSIS package execution 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(SSISExecutionCredential, 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 SSISExecutionCredential(Model):
"""SSIS package execution 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(SSISExecutionCredential, self).__init__(**kwargs)
self.domain = domain
self.user_name = user_name
self.password = password