-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR datafactory/resource-manager] Enable delete activity (#3734)
* Generated from 5e54670508b90d66ed341ab44aa8dd19d2644a1d Enable delete activity * Generated from cf65697ea020da33e927c257d64339b5504733fa Enable delete activity. * Generated from 5ff291ba3fd2e3bda21c89a3b159531d56a75fbb Update
- Loading branch information
1 parent
59275e6
commit a0ce8ce
Showing
5 changed files
with
145 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
azure-mgmt-datafactory/azure/mgmt/datafactory/models/delete_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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 .execution_activity import ExecutionActivity | ||
|
||
|
||
class DeleteActivity(ExecutionActivity): | ||
"""Delete activity. | ||
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 | ||
:param linked_service_name: Linked service reference. | ||
:type linked_service_name: | ||
~azure.mgmt.datafactory.models.LinkedServiceReference | ||
:param policy: Activity policy. | ||
:type policy: ~azure.mgmt.datafactory.models.ActivityPolicy | ||
:param recursive: If true, files under the folder path will be deleted | ||
recursively. Default is true. Type: boolean (or Expression with resultType | ||
boolean). | ||
:type recursive: object | ||
:param dataset: Required. Delete activity dataset reference. | ||
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'type': {'required': True}, | ||
'dataset': {'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'}, | ||
'linked_service_name': {'key': 'linkedServiceName', 'type': 'LinkedServiceReference'}, | ||
'policy': {'key': 'policy', 'type': 'ActivityPolicy'}, | ||
'recursive': {'key': 'typeProperties.recursive', 'type': 'object'}, | ||
'dataset': {'key': 'typeProperties.dataset', 'type': 'DatasetReference'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(DeleteActivity, self).__init__(**kwargs) | ||
self.recursive = kwargs.get('recursive', None) | ||
self.dataset = kwargs.get('dataset', None) | ||
self.type = 'Delete' |
69 changes: 69 additions & 0 deletions
69
azure-mgmt-datafactory/azure/mgmt/datafactory/models/delete_activity_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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 .execution_activity_py3 import ExecutionActivity | ||
|
||
|
||
class DeleteActivity(ExecutionActivity): | ||
"""Delete activity. | ||
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 | ||
:param linked_service_name: Linked service reference. | ||
:type linked_service_name: | ||
~azure.mgmt.datafactory.models.LinkedServiceReference | ||
:param policy: Activity policy. | ||
:type policy: ~azure.mgmt.datafactory.models.ActivityPolicy | ||
:param recursive: If true, files under the folder path will be deleted | ||
recursively. Default is true. Type: boolean (or Expression with resultType | ||
boolean). | ||
:type recursive: object | ||
:param dataset: Required. Delete activity dataset reference. | ||
:type dataset: ~azure.mgmt.datafactory.models.DatasetReference | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'type': {'required': True}, | ||
'dataset': {'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'}, | ||
'linked_service_name': {'key': 'linkedServiceName', 'type': 'LinkedServiceReference'}, | ||
'policy': {'key': 'policy', 'type': 'ActivityPolicy'}, | ||
'recursive': {'key': 'typeProperties.recursive', 'type': 'object'}, | ||
'dataset': {'key': 'typeProperties.dataset', 'type': 'DatasetReference'}, | ||
} | ||
|
||
def __init__(self, *, name: str, dataset, additional_properties=None, description: str=None, depends_on=None, user_properties=None, linked_service_name=None, policy=None, recursive=None, **kwargs) -> None: | ||
super(DeleteActivity, 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.recursive = recursive | ||
self.dataset = dataset | ||
self.type = 'Delete' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters