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

[AutoPR logic] Logic Apps Swagger fixes #8

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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/logic/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/logic/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Microsoft Azure CLI 'logic' Extension
==========================================

This package is for the 'logic' extension.
i.e. 'az logic'
31 changes: 31 additions & 0 deletions src/logic/azext_logic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from .generated._help import helps


class LogicManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from .generated._client_factory import cf_logic
logic_custom = CliCommandType(
operations_tmpl='azext_logic.custom#{}',
client_factory=cf_logic)
super(LogicManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=logic_custom)

def load_command_table(self, args):
from .generated.commands import load_command_table
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from .generated._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = LogicManagementClientCommandsLoader
12 changes: 12 additions & 0 deletions src/logic/azext_logic/action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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/logic/azext_logic/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"azext.isPreview": true,
"azext.minCliCoreVersion": "2.0.67"
}
12 changes: 12 additions & 0 deletions src/logic/azext_logic/commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.commands import * # noqa: F403
try:
from .manual.commands import * # noqa: F403
except ImportError:
pass
12 changes: 12 additions & 0 deletions src/logic/azext_logic/custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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
114 changes: 114 additions & 0 deletions src/logic/azext_logic/generated/_client_factory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------


def cf_logic(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.logic import LogicManagementClient
return get_mgmt_service_client(cli_ctx, LogicManagementClient)


def cf_workflow(cli_ctx, *_):
return cf_logic(cli_ctx).workflow


def cf_workflow_version(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_version


def cf_workflow_trigger(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_trigger


def cf_workflow_version_trigger(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_version_trigger


def cf_workflow_trigger_history(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_trigger_history


def cf_workflow_run(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run


def cf_workflow_run_action(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_action


def cf_workflow_run_action_repetition(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_action_repetition


def cf_workflow_run_action_repetition_request_history(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_action_repetition_request_history


def cf_workflow_run_action_request_history(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_action_request_history


def cf_workflow_run_action_scope_repetition(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_action_scope_repetition


def cf_workflow_run_operation(cli_ctx, *_):
return cf_logic(cli_ctx).workflow_run_operation


def cf_integration_account(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account


def cf_integration_account_assembly(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_assembly


def cf_integration_account_batch_configuration(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_batch_configuration


def cf_integration_account_schema(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_schema


def cf_integration_account_map(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_map


def cf_integration_account_partner(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_partner


def cf_integration_account_agreement(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_agreement


def cf_integration_account_certificate(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_certificate


def cf_integration_account_session(cli_ctx, *_):
return cf_logic(cli_ctx).integration_account_session


def cf_integration_service_environment(cli_ctx, *_):
return cf_logic(cli_ctx).integration_service_environment


def cf_integration_service_environment_sku(cli_ctx, *_):
return cf_logic(cli_ctx).integration_service_environment_sku


def cf_integration_service_environment_network_health(cli_ctx, *_):
return cf_logic(cli_ctx).integration_service_environment_network_health


def cf_integration_service_environment_managed_api(cli_ctx, *_):
return cf_logic(cli_ctx).integration_service_environment_managed_api


def cf_integration_service_environment_managed_api_operation(cli_ctx, *_):
return cf_logic(cli_ctx).integration_service_environment_managed_api_operation
Loading