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] Web ant94 2021 02 01 #1676

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
12 changes: 0 additions & 12 deletions src/logic/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
Release History
===============

0.1.3
++++++
* Preview logic extension

0.1.2
++++++
* `logic workflow update`: --definition is not to be mandatory while updating

0.1.1
++++++
* Fix parsing argument --integration-service-environment.

0.1.0
++++++
* Initial release.
23 changes: 16 additions & 7 deletions src/logic/azext_logic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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_logic.generated._help import helps # pylint: disable=unused-import
try:
from azext_logic.manual._help import helps # pylint: disable=reimported
except ImportError:
pass


class LogicManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_logic.generated._client_factory import cf_logic
from azext_logic.generated._client_factory import cf_logic_cl
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)
client_factory=cf_logic_cl)
parent = super(LogicManagementClientCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=logic_custom)

def load_command_table(self, args):
from azext_logic.generated.commands import load_command_table
Expand Down
11 changes: 8 additions & 3 deletions src/logic/azext_logic/action.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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

Expand Down
4 changes: 2 additions & 2 deletions src/logic/azext_logic/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isPreview": true,
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.15.0"
}
}
12 changes: 0 additions & 12 deletions src/logic/azext_logic/commands.py

This file was deleted.

11 changes: 8 additions & 3 deletions src/logic/azext_logic/custom.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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

Expand Down
118 changes: 110 additions & 8 deletions src/logic/azext_logic/generated/_client_factory.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,120 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# 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_logic(cli_ctx, *_):
def cf_logic_cl(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)
from azext_logic.vendored_sdks.logic import LogicManagementClient
return get_mgmt_service_client(cli_ctx,
LogicManagementClient)


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


def cf_workflow_version(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_versions


def cf_workflow_trigger(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_triggers


def cf_workflow_version_trigger(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_version_triggers


def cf_workflow_trigger_history(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_trigger_histories


def cf_workflow_run(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_runs


def cf_workflow_run_action(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_actions


def cf_workflow_run_action_repetition(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_action_repetitions


def cf_workflow_run_action_repetition_request_history(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_action_repetitions_request_histories


def cf_workflow_run_action_request_history(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_action_request_histories


def cf_workflow_run_action_scope_repetition(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_action_scope_repetitions


def cf_workflow_run_operation(cli_ctx, *_):
return cf_logic_cl(cli_ctx).workflow_run_operations


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


def cf_integration_account_assembly(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_assemblies


def cf_integration_account_batch_configuration(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_batch_configurations


def cf_integration_account_schema(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_schemas


def cf_integration_account_map(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_maps


def cf_integration_account_partner(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_partners


def cf_integration_account_agreement(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_agreements


def cf_integration_account_certificate(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_certificates


def cf_integration_account_session(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_account_sessions


def cf_integration_service_environment(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_service_environments


def cf_integration_service_environment_sku(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_service_environment_skus


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


def cf_integration_service_environment_managed_api(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_service_environment_managed_apis


def cf_integration_service_environment_managed_api_operation(cli_ctx, *_):
return cf_logic_cl(cli_ctx).integration_service_environment_managed_api_operations
Loading