-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
codegen onboard datafactory #1321
Merged
Merged
Changes from 19 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
af122a0
first commit of datafactory
qiaozha 3b38af2
autorest code version change
qiaozha c99d65e
swagger change
qiaozha 1b0f6fd
plenty of changes
qiaozha b5ae321
long run operation changes
qiaozha 2aa75e0
unflattened way of datafactory
qiaozha 2f72de3
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha e89ae79
datafactory cli extension
qiaozha 0a8536f
resolve conflicts
qiaozha 4e8a794
trigger issue fix
qiaozha 254fa28
fix bug
qiaozha 66cece9
df split poly
qiaozha 06d87d6
datafactory polymorphism support
qiaozha c83443b
arg group
qiaozha 036b782
license header
qiaozha 081c80b
datafactory
qiaozha 6deb00c
regeneration datafactory
qiaozha 25eb54e
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha 0dcd6b5
delete debug info
qiaozha 1640a6a
style fix
qiaozha 97ddffa
suppress datafactory credential scan
qiaozha 7c9b9dd
add codeowners
qiaozha 6cc9ea1
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha a054ff2
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha aceccb9
change parameter name
qiaozha d76915a
Merge branch 'autorest-az-datafactory-onboard' of github.com:Azure/az…
qiaozha 00789d1
fix some issue
qiaozha 0a151bf
update flatten
qiaozha 4425f80
remove split python operation
qiaozha cdbc4c6
style fix
qiaozha a81471e
datafactory linter issue fix
qiaozha c36da9b
datafactory style fixes etc
qiaozha d1c8503
test and example
qiaozha 3ebe492
style change
qiaozha 8640633
remove dataflow and dataflowdebugsession group
qiaozha 1250332
add manual tests override
qiaozha b4cc4ed
add manual test etc
qiaozha 19f81ed
fix test and add scenarios
qiaozha 6adb1c3
fix style error
qiaozha 89fb335
change action into non required
qiaozha a5ec82d
update readme and try manual fix credential error
qiaozha 53d32e6
doc improvement
qiaozha e9478c8
doc improvement
qiaozha 61861c6
doc improvement
qiaozha 8e27b2f
add checks
qiaozha 2210281
add checks
qiaozha c291675
remove unused preparers
qiaozha 9c7914b
fix the update
qiaozha 0d11d62
remove unsupported update
qiaozha 5342f27
remove json load when set default value
qiaozha 6396cfa
remove json load when set default value
qiaozha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. :changelog: | ||
|
||
Release History | ||
=============== | ||
|
||
0.1.0 | ||
++++++ | ||
* Initial release. |
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,5 @@ | ||
Microsoft Azure CLI 'datafactory' Extension | ||
========================================== | ||
|
||
This package is for the 'datafactory' extension. | ||
i.e. 'az datafactory' | ||
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,46 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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 azure.cli.core import AzCommandsLoader | ||
from azext_datafactory.generated._help import helps # pylint: disable=unused-import | ||
|
||
|
||
class DataFactoryManagementClientCommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_datafactory.generated._client_factory import cf_datafactory | ||
datafactory_custom = CliCommandType( | ||
operations_tmpl='azext_datafactory.custom#{}', | ||
client_factory=cf_datafactory) | ||
parent = super(DataFactoryManagementClientCommandsLoader, self) | ||
parent.__init__(cli_ctx=cli_ctx, custom_command_type=datafactory_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_datafactory.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_datafactory.manual.commands import load_command_table as load_command_table_manual | ||
load_command_table_manual(self, args) | ||
except ImportError: | ||
pass | ||
return self.command_table | ||
|
||
def load_arguments(self, command): | ||
from azext_datafactory.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_datafactory.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError: | ||
pass | ||
|
||
|
||
COMMAND_LOADER_CLS = DataFactoryManagementClientCommandsLoader |
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,17 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.action import * # noqa: F403 | ||
try: | ||
from .manual.action import * # noqa: F403 | ||
except ImportError: | ||
pass |
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,4 @@ | ||
{ | ||
"azext.isExperimental": true, | ||
"azext.minCliCoreVersion": "2.3.1" | ||
} |
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,17 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.custom import * # noqa: F403 | ||
try: | ||
from .manual.custom import * # noqa: F403 | ||
except ImportError: | ||
pass |
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,12 @@ | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
63 changes: 63 additions & 0 deletions
63
src/datafactory/azext_datafactory/generated/_client_factory.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,63 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
||
def cf_datafactory(cli_ctx, *_): | ||
from azure.cli.core.commands.client_factory import get_mgmt_service_client | ||
from ..vendored_sdks.datafactory import DataFactoryManagementClient | ||
return get_mgmt_service_client(cli_ctx, DataFactoryManagementClient) | ||
|
||
|
||
def cf_factory(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).factory | ||
|
||
|
||
def cf_integration_runtime(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).integration_runtime | ||
|
||
|
||
def cf_integration_runtime_node(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).integration_runtime_node | ||
|
||
|
||
def cf_linked_service(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).linked_service | ||
|
||
|
||
def cf_dataset(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).dataset | ||
|
||
|
||
def cf_pipeline(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).pipeline | ||
|
||
|
||
def cf_pipeline_run(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).pipeline_run | ||
|
||
|
||
def cf_activity_run(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).activity_run | ||
|
||
|
||
def cf_trigger(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).trigger | ||
|
||
|
||
def cf_trigger_run(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).trigger_run | ||
|
||
|
||
def cf_data_flow(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).data_flow | ||
|
||
|
||
def cf_data_flow_debug_session(cli_ctx, *_): | ||
return cf_datafactory(cli_ctx).data_flow_debug_session |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add more description, like https://github.com/Azure/azure-cli-extensions/blob/master/src/storage-preview/README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has not been fixed yet, the outdated status is outdated just because I changed the eof mark.