diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py index 9c3893952ab6..8b56abee27cd 100644 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py +++ b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py @@ -346,7 +346,6 @@ from .wait_activity_py3 import WaitActivity from .for_each_activity_py3 import ForEachActivity from .if_condition_activity_py3 import IfConditionActivity - from .web_hook_activity_py3 import WebHookActivity from .execute_pipeline_activity_py3 import ExecutePipelineActivity from .control_activity_py3 import ControlActivity from .linked_integration_runtime_py3 import LinkedIntegrationRuntime @@ -711,7 +710,6 @@ from .wait_activity import WaitActivity from .for_each_activity import ForEachActivity from .if_condition_activity import IfConditionActivity - from .web_hook_activity import WebHookActivity from .execute_pipeline_activity import ExecutePipelineActivity from .control_activity import ControlActivity from .linked_integration_runtime import LinkedIntegrationRuntime @@ -797,7 +795,6 @@ CopyBehaviorType, PolybaseSettingsRejectType, SapCloudForCustomerSinkWriteBehavior, - WebHookActivityMethod, IntegrationRuntimeType, SelfHostedIntegrationRuntimeNodeStatus, IntegrationRuntimeUpdateResult, @@ -1147,7 +1144,6 @@ 'WaitActivity', 'ForEachActivity', 'IfConditionActivity', - 'WebHookActivity', 'ExecutePipelineActivity', 'ControlActivity', 'LinkedIntegrationRuntime', @@ -1232,7 +1228,6 @@ 'CopyBehaviorType', 'PolybaseSettingsRejectType', 'SapCloudForCustomerSinkWriteBehavior', - 'WebHookActivityMethod', 'IntegrationRuntimeType', 'SelfHostedIntegrationRuntimeNodeStatus', 'IntegrationRuntimeUpdateResult', diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity.py index 5d64648774da..3c7023c73911 100644 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity.py +++ b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity.py @@ -18,8 +18,7 @@ class ControlActivity(Activity): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AppendVariableActivity, SetVariableActivity, FilterActivity, ValidationActivity, UntilActivity, WaitActivity, - ForEachActivity, IfConditionActivity, WebHookActivity, - ExecutePipelineActivity + ForEachActivity, IfConditionActivity, ExecutePipelineActivity All required parameters must be populated in order to send to Azure. @@ -53,7 +52,7 @@ class ControlActivity(Activity): } _subtype_map = { - 'type': {'AppendVariable': 'AppendVariableActivity', 'SetVariable': 'SetVariableActivity', 'Filter': 'FilterActivity', 'Validation': 'ValidationActivity', 'Until': 'UntilActivity', 'Wait': 'WaitActivity', 'ForEach': 'ForEachActivity', 'IfCondition': 'IfConditionActivity', 'WebHook': 'WebHookActivity', 'ExecutePipeline': 'ExecutePipelineActivity'} + 'type': {'AppendVariable': 'AppendVariableActivity', 'SetVariable': 'SetVariableActivity', 'Filter': 'FilterActivity', 'Validation': 'ValidationActivity', 'Until': 'UntilActivity', 'Wait': 'WaitActivity', 'ForEach': 'ForEachActivity', 'IfCondition': 'IfConditionActivity', 'ExecutePipeline': 'ExecutePipelineActivity'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity_py3.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity_py3.py index be9282168ac1..75798a1b05e1 100644 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity_py3.py +++ b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/control_activity_py3.py @@ -18,8 +18,7 @@ class ControlActivity(Activity): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AppendVariableActivity, SetVariableActivity, FilterActivity, ValidationActivity, UntilActivity, WaitActivity, - ForEachActivity, IfConditionActivity, WebHookActivity, - ExecutePipelineActivity + ForEachActivity, IfConditionActivity, ExecutePipelineActivity All required parameters must be populated in order to send to Azure. @@ -53,7 +52,7 @@ class ControlActivity(Activity): } _subtype_map = { - 'type': {'AppendVariable': 'AppendVariableActivity', 'SetVariable': 'SetVariableActivity', 'Filter': 'FilterActivity', 'Validation': 'ValidationActivity', 'Until': 'UntilActivity', 'Wait': 'WaitActivity', 'ForEach': 'ForEachActivity', 'IfCondition': 'IfConditionActivity', 'WebHook': 'WebHookActivity', 'ExecutePipeline': 'ExecutePipelineActivity'} + 'type': {'AppendVariable': 'AppendVariableActivity', 'SetVariable': 'SetVariableActivity', 'Filter': 'FilterActivity', 'Validation': 'ValidationActivity', 'Until': 'UntilActivity', 'Wait': 'WaitActivity', 'ForEach': 'ForEachActivity', 'IfCondition': 'IfConditionActivity', 'ExecutePipeline': 'ExecutePipelineActivity'} } def __init__(self, *, name: str, additional_properties=None, description: str=None, depends_on=None, user_properties=None, **kwargs) -> None: diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/data_factory_management_client_enums.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/data_factory_management_client_enums.py index a135c4b2e101..23334492e4d2 100644 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/data_factory_management_client_enums.py +++ b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/data_factory_management_client_enums.py @@ -384,11 +384,6 @@ class SapCloudForCustomerSinkWriteBehavior(str, Enum): update = "Update" -class WebHookActivityMethod(str, Enum): - - post = "POST" - - class IntegrationRuntimeType(str, Enum): managed = "Managed" diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity.py deleted file mode 100644 index ca8945a9d697..000000000000 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 .control_activity import ControlActivity - - -class WebHookActivity(ControlActivity): - """WebHook activity. - - 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 additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, object] - :param name: Required. Activity name. - :type name: str - :param description: Activity description. - :type description: str - :param depends_on: Activity depends on condition. - :type depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :param user_properties: Activity user properties. - :type user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :param type: Required. Constant filled by server. - :type type: str - :ivar method: Required. Rest API method for target endpoint. Default - value: "POST" . - :vartype method: str - :param url: Required. WebHook activity target endpoint and path. Type: - string (or Expression with resultType string). - :type url: object - :param timeout: Specifies the timeout within which the webhook should be - called back. If there is no value specified, it takes the value of - TimeSpan.FromMinutes(10) which is 10 minutes as default. Type: string (or - Expression with resultType string), pattern: - ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :type timeout: object - :param headers: Represents the headers that will be sent to the request. - For example, to set the language and type on a request: "headers" : { - "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: - string (or Expression with resultType string). - :type headers: object - :param body: Represents the payload that will be sent to the endpoint. - Required for POST/PUT method, not allowed for GET method Type: string (or - Expression with resultType string). - :type body: object - :param authentication: Authentication method used for calling the - endpoint. - :type authentication: - ~azure.mgmt.datafactory.models.WebActivityAuthentication - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - 'method': {'required': True, 'constant': True}, - 'url': {'required': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'depends_on': {'key': 'dependsOn', 'type': '[ActivityDependency]'}, - 'user_properties': {'key': 'userProperties', 'type': '[UserProperty]'}, - 'type': {'key': 'type', 'type': 'str'}, - 'method': {'key': 'typeProperties.method', 'type': 'str'}, - 'url': {'key': 'typeProperties.url', 'type': 'object'}, - 'timeout': {'key': 'typeProperties.timeout', 'type': 'object'}, - 'headers': {'key': 'typeProperties.headers', 'type': 'object'}, - 'body': {'key': 'typeProperties.body', 'type': 'object'}, - 'authentication': {'key': 'typeProperties.authentication', 'type': 'WebActivityAuthentication'}, - } - - method = "POST" - - def __init__(self, **kwargs): - super(WebHookActivity, self).__init__(**kwargs) - self.url = kwargs.get('url', None) - self.timeout = kwargs.get('timeout', None) - self.headers = kwargs.get('headers', None) - self.body = kwargs.get('body', None) - self.authentication = kwargs.get('authentication', None) - self.type = 'WebHook' diff --git a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity_py3.py b/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity_py3.py deleted file mode 100644 index e4779bfbca07..000000000000 --- a/azure-mgmt-datafactory/azure/mgmt/datafactory/models/web_hook_activity_py3.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 .control_activity_py3 import ControlActivity - - -class WebHookActivity(ControlActivity): - """WebHook activity. - - 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 additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, object] - :param name: Required. Activity name. - :type name: str - :param description: Activity description. - :type description: str - :param depends_on: Activity depends on condition. - :type depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] - :param user_properties: Activity user properties. - :type user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :param type: Required. Constant filled by server. - :type type: str - :ivar method: Required. Rest API method for target endpoint. Default - value: "POST" . - :vartype method: str - :param url: Required. WebHook activity target endpoint and path. Type: - string (or Expression with resultType string). - :type url: object - :param timeout: Specifies the timeout within which the webhook should be - called back. If there is no value specified, it takes the value of - TimeSpan.FromMinutes(10) which is 10 minutes as default. Type: string (or - Expression with resultType string), pattern: - ((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - :type timeout: object - :param headers: Represents the headers that will be sent to the request. - For example, to set the language and type on a request: "headers" : { - "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: - string (or Expression with resultType string). - :type headers: object - :param body: Represents the payload that will be sent to the endpoint. - Required for POST/PUT method, not allowed for GET method Type: string (or - Expression with resultType string). - :type body: object - :param authentication: Authentication method used for calling the - endpoint. - :type authentication: - ~azure.mgmt.datafactory.models.WebActivityAuthentication - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - 'method': {'required': True, 'constant': True}, - 'url': {'required': True}, - } - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{object}'}, - 'name': {'key': 'name', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - 'depends_on': {'key': 'dependsOn', 'type': '[ActivityDependency]'}, - 'user_properties': {'key': 'userProperties', 'type': '[UserProperty]'}, - 'type': {'key': 'type', 'type': 'str'}, - 'method': {'key': 'typeProperties.method', 'type': 'str'}, - 'url': {'key': 'typeProperties.url', 'type': 'object'}, - 'timeout': {'key': 'typeProperties.timeout', 'type': 'object'}, - 'headers': {'key': 'typeProperties.headers', 'type': 'object'}, - 'body': {'key': 'typeProperties.body', 'type': 'object'}, - 'authentication': {'key': 'typeProperties.authentication', 'type': 'WebActivityAuthentication'}, - } - - method = "POST" - - def __init__(self, *, name: str, url, additional_properties=None, description: str=None, depends_on=None, user_properties=None, timeout=None, headers=None, body=None, authentication=None, **kwargs) -> None: - super(WebHookActivity, self).__init__(additional_properties=additional_properties, name=name, description=description, depends_on=depends_on, user_properties=user_properties, **kwargs) - self.url = url - self.timeout = timeout - self.headers = headers - self.body = body - self.authentication = authentication - self.type = 'WebHook'