-
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 script act…
…ions support for HDI on demand linked service (#3451) * Generated from 9dec6b08742c433d0429a8737a65fdc690863d6b Adding parameters * Packaging update of azure-mgmt-datafactory
- Loading branch information
1 parent
eb0767e
commit fa39544
Showing
11 changed files
with
125 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
include *.rst | ||
include azure_bdist_wheel.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 |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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
49 changes: 49 additions & 0 deletions
49
azure-mgmt-datafactory/azure/mgmt/datafactory/models/script_action.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,49 @@ | ||
# 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 ScriptAction(Model): | ||
"""Custom script action to run on HDI ondemand cluster once it's up. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: Required. The user provided name of the script action. | ||
:type name: str | ||
:param uri: Required. The URI for the script action. | ||
:type uri: str | ||
:param roles: Required. The node types on which the script action should | ||
be executed. | ||
:type roles: object | ||
:param parameters: The parameters for the script action. | ||
:type parameters: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'uri': {'required': True}, | ||
'roles': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'uri': {'key': 'uri', 'type': 'str'}, | ||
'roles': {'key': 'roles', 'type': 'object'}, | ||
'parameters': {'key': 'parameters', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ScriptAction, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.uri = kwargs.get('uri', None) | ||
self.roles = kwargs.get('roles', None) | ||
self.parameters = kwargs.get('parameters', None) |
49 changes: 49 additions & 0 deletions
49
azure-mgmt-datafactory/azure/mgmt/datafactory/models/script_action_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,49 @@ | ||
# 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 ScriptAction(Model): | ||
"""Custom script action to run on HDI ondemand cluster once it's up. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: Required. The user provided name of the script action. | ||
:type name: str | ||
:param uri: Required. The URI for the script action. | ||
:type uri: str | ||
:param roles: Required. The node types on which the script action should | ||
be executed. | ||
:type roles: object | ||
:param parameters: The parameters for the script action. | ||
:type parameters: str | ||
""" | ||
|
||
_validation = { | ||
'name': {'required': True}, | ||
'uri': {'required': True}, | ||
'roles': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'uri': {'key': 'uri', 'type': 'str'}, | ||
'roles': {'key': 'roles', 'type': 'object'}, | ||
'parameters': {'key': 'parameters', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None: | ||
super(ScriptAction, self).__init__(**kwargs) | ||
self.name = name | ||
self.uri = uri | ||
self.roles = roles | ||
self.parameters = parameters |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
azure-namespace-package=azure-mgmt-nspkg |
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