-
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] [Datafactory] Adding getFeature…
…Value API in factory scope (#4813) * Generated from 2130f16f3b4eac241c8a50566a5dc4498d081f7b Adding getFeatureValue API in factory scope * Packaging update of azure-mgmt-datafactory
- Loading branch information
1 parent
91e8181
commit 56b7a0b
Showing
7 changed files
with
244 additions
and
6 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
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
81 changes: 81 additions & 0 deletions
81
azure-mgmt-datafactory/azure/mgmt/datafactory/models/validation_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,81 @@ | ||
# 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 ValidationActivity(ControlActivity): | ||
"""This activity verifies that an external resource exists. | ||
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 timeout: Specifies the timeout for the activity to run. If there is | ||
no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 | ||
week 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 sleep: A delay in seconds between validation attempts. If no value | ||
is specified, 10 seconds will be used as the default. Type: integer (or | ||
Expression with resultType integer). | ||
:type sleep: object | ||
:param minimum_size: Can be used if dataset points to a file. The file | ||
must be greater than or equal in size to the value specified. Type: | ||
integer (or Expression with resultType integer). | ||
:type minimum_size: object | ||
:param child_items: Can be used if dataset points to a folder. If set to | ||
true, the folder must have at least one file. If set to false, the folder | ||
must be empty. Type: boolean (or Expression with resultType boolean). | ||
:type child_items: object | ||
:param dataset: Required. Validation 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'}, | ||
'timeout': {'key': 'typeProperties.timeout', 'type': 'object'}, | ||
'sleep': {'key': 'typeProperties.sleep', 'type': 'object'}, | ||
'minimum_size': {'key': 'typeProperties.minimumSize', 'type': 'object'}, | ||
'child_items': {'key': 'typeProperties.childItems', 'type': 'object'}, | ||
'dataset': {'key': 'typeProperties.dataset', 'type': 'DatasetReference'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ValidationActivity, self).__init__(**kwargs) | ||
self.timeout = kwargs.get('timeout', None) | ||
self.sleep = kwargs.get('sleep', None) | ||
self.minimum_size = kwargs.get('minimum_size', None) | ||
self.child_items = kwargs.get('child_items', None) | ||
self.dataset = kwargs.get('dataset', None) | ||
self.type = 'Validation' |
81 changes: 81 additions & 0 deletions
81
azure-mgmt-datafactory/azure/mgmt/datafactory/models/validation_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,81 @@ | ||
# 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 ValidationActivity(ControlActivity): | ||
"""This activity verifies that an external resource exists. | ||
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 timeout: Specifies the timeout for the activity to run. If there is | ||
no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 | ||
week 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 sleep: A delay in seconds between validation attempts. If no value | ||
is specified, 10 seconds will be used as the default. Type: integer (or | ||
Expression with resultType integer). | ||
:type sleep: object | ||
:param minimum_size: Can be used if dataset points to a file. The file | ||
must be greater than or equal in size to the value specified. Type: | ||
integer (or Expression with resultType integer). | ||
:type minimum_size: object | ||
:param child_items: Can be used if dataset points to a folder. If set to | ||
true, the folder must have at least one file. If set to false, the folder | ||
must be empty. Type: boolean (or Expression with resultType boolean). | ||
:type child_items: object | ||
:param dataset: Required. Validation 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'}, | ||
'timeout': {'key': 'typeProperties.timeout', 'type': 'object'}, | ||
'sleep': {'key': 'typeProperties.sleep', 'type': 'object'}, | ||
'minimum_size': {'key': 'typeProperties.minimumSize', 'type': 'object'}, | ||
'child_items': {'key': 'typeProperties.childItems', '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, timeout=None, sleep=None, minimum_size=None, child_items=None, **kwargs) -> None: | ||
super(ValidationActivity, self).__init__(additional_properties=additional_properties, name=name, description=description, depends_on=depends_on, user_properties=user_properties, **kwargs) | ||
self.timeout = timeout | ||
self.sleep = sleep | ||
self.minimum_size = minimum_size | ||
self.child_items = child_items | ||
self.dataset = dataset | ||
self.type = 'Validation' |
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