Skip to content
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 51 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
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 Feb 26, 2020
3b38af2
autorest code version change
qiaozha Feb 26, 2020
c99d65e
swagger change
qiaozha Feb 26, 2020
1b0f6fd
plenty of changes
qiaozha Mar 2, 2020
b5ae321
long run operation changes
qiaozha Mar 4, 2020
2aa75e0
unflattened way of datafactory
qiaozha Mar 19, 2020
2f72de3
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha Mar 19, 2020
e89ae79
datafactory cli extension
qiaozha Mar 21, 2020
0a8536f
resolve conflicts
qiaozha Mar 21, 2020
4e8a794
trigger issue fix
qiaozha Mar 21, 2020
254fa28
fix bug
qiaozha Mar 21, 2020
66cece9
df split poly
qiaozha Mar 30, 2020
06d87d6
datafactory polymorphism support
qiaozha Apr 2, 2020
c83443b
arg group
qiaozha Apr 3, 2020
036b782
license header
qiaozha Apr 3, 2020
081c80b
datafactory
qiaozha Apr 9, 2020
6deb00c
regeneration datafactory
qiaozha Jun 2, 2020
25eb54e
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha Jun 2, 2020
0dcd6b5
delete debug info
qiaozha Jun 2, 2020
1640a6a
style fix
qiaozha Jun 3, 2020
97ddffa
suppress datafactory credential scan
qiaozha Jun 4, 2020
7c9b9dd
add codeowners
qiaozha Jun 4, 2020
6cc9ea1
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha Jun 4, 2020
a054ff2
Merge branch 'master' into autorest-az-datafactory-onboard
qiaozha Jun 4, 2020
aceccb9
change parameter name
qiaozha Jun 5, 2020
d76915a
Merge branch 'autorest-az-datafactory-onboard' of github.com:Azure/az…
qiaozha Jun 5, 2020
00789d1
fix some issue
qiaozha Jun 8, 2020
0a151bf
update flatten
qiaozha Jun 15, 2020
4425f80
remove split python operation
qiaozha Jun 15, 2020
cdbc4c6
style fix
qiaozha Jun 15, 2020
a81471e
datafactory linter issue fix
qiaozha Jun 15, 2020
c36da9b
datafactory style fixes etc
qiaozha Jun 15, 2020
d1c8503
test and example
qiaozha Jun 17, 2020
3ebe492
style change
qiaozha Jun 17, 2020
8640633
remove dataflow and dataflowdebugsession group
qiaozha Jun 17, 2020
1250332
add manual tests override
qiaozha Jun 18, 2020
b4cc4ed
add manual test etc
qiaozha Jun 18, 2020
19f81ed
fix test and add scenarios
qiaozha Jun 19, 2020
6adb1c3
fix style error
qiaozha Jun 19, 2020
89fb335
change action into non required
qiaozha Jun 19, 2020
a5ec82d
update readme and try manual fix credential error
qiaozha Jun 20, 2020
53d32e6
doc improvement
qiaozha Jun 20, 2020
e9478c8
doc improvement
qiaozha Jun 20, 2020
61861c6
doc improvement
qiaozha Jun 20, 2020
8e27b2f
add checks
qiaozha Jun 21, 2020
2210281
add checks
qiaozha Jun 21, 2020
c291675
remove unused preparers
qiaozha Jun 22, 2020
9c7914b
fix the update
qiaozha Jun 23, 2020
0d11d62
remove unsupported update
qiaozha Jun 23, 2020
5342f27
remove json load when set default value
qiaozha Jun 23, 2020
6396cfa
remove json load when set default value
qiaozha Jun 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/datafactory/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

Release History
===============

0.1.0
++++++
* Initial release.
5 changes: 5 additions & 0 deletions src/datafactory/README.md
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@qiaozha qiaozha Jun 8, 2020

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.

46 changes: 46 additions & 0 deletions src/datafactory/azext_datafactory/__init__.py
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
17 changes: 17 additions & 0 deletions src/datafactory/azext_datafactory/action.py
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
4 changes: 4 additions & 0 deletions src/datafactory/azext_datafactory/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.3.1"
}
17 changes: 17 additions & 0 deletions src/datafactory/azext_datafactory/custom.py
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
12 changes: 12 additions & 0 deletions src/datafactory/azext_datafactory/generated/__init__.py
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 src/datafactory/azext_datafactory/generated/_client_factory.py
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
Loading