diff --git a/src/logic/HISTORY.rst b/src/logic/HISTORY.rst new file mode 100644 index 00000000000..27f152061e8 --- /dev/null +++ b/src/logic/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. diff --git a/src/logic/README.rst b/src/logic/README.rst new file mode 100644 index 00000000000..9a91545b136 --- /dev/null +++ b/src/logic/README.rst @@ -0,0 +1,5 @@ +Microsoft Azure CLI 'logic' Extension +========================================== + +This package is for the 'logic' extension. +i.e. 'az logic' diff --git a/src/logic/azext_logic/__init__.py b/src/logic/azext_logic/__init__.py new file mode 100644 index 00000000000..d85b6bf4d60 --- /dev/null +++ b/src/logic/azext_logic/__init__.py @@ -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 diff --git a/src/logic/azext_logic/action.py b/src/logic/azext_logic/action.py new file mode 100644 index 00000000000..2cb3583de76 --- /dev/null +++ b/src/logic/azext_logic/action.py @@ -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 diff --git a/src/logic/azext_logic/azext_metadata.json b/src/logic/azext_logic/azext_metadata.json new file mode 100644 index 00000000000..fc707c41f3b --- /dev/null +++ b/src/logic/azext_logic/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.0.67" +} \ No newline at end of file diff --git a/src/logic/azext_logic/commands.py b/src/logic/azext_logic/commands.py new file mode 100644 index 00000000000..73c5cb52b0f --- /dev/null +++ b/src/logic/azext_logic/commands.py @@ -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 diff --git a/src/logic/azext_logic/custom.py b/src/logic/azext_logic/custom.py new file mode 100644 index 00000000000..41ab47d5063 --- /dev/null +++ b/src/logic/azext_logic/custom.py @@ -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 diff --git a/src/logic/azext_logic/generated/_client_factory.py b/src/logic/azext_logic/generated/_client_factory.py new file mode 100644 index 00000000000..3f343df2828 --- /dev/null +++ b/src/logic/azext_logic/generated/_client_factory.py @@ -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 diff --git a/src/logic/azext_logic/generated/_help.py b/src/logic/azext_logic/generated/_help.py new file mode 100644 index 00000000000..50875329161 --- /dev/null +++ b/src/logic/azext_logic/generated/_help.py @@ -0,0 +1,1680 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long +# pylint: disable=too-many-lines + +from knack.help_files import helps + + +helps['logic workflow'] = """ + type: group + short-summary: logic workflow +""" + +helps['logic workflow list'] = """ + type: command + short-summary: Gets a list of workflows by subscription. + examples: + - name: List all workflows in a resource group + text: |- + az logic workflow list --resource-group "test-resource-group" +""" + +helps['logic workflow show'] = """ + type: command + short-summary: Gets a workflow. + examples: + - name: Get a workflow + text: |- + az logic workflow show --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow create'] = """ + type: command + short-summary: Creates or updates a workflow. + examples: + - name: Create or update a workflow + text: |- + az logic workflow create --resource-group "test-resource-group" --location "brazilsouth" + --properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Lo\\ + gic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object] contentVersion=1.0\\ + .0.0 outputs=[object Object] parameters=[object Object] triggers=[object Object] + --properties-integration-account id=/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/re\\ + sourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integr\\ + ation-account --properties-parameters "{\\"$connections\\":{\\"value\\":{\\"test-custom-connect + or\\":{\\"connectionId\\":\\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroup + s/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector\\",\\"connec + tionName\\":\\"test-custom-connector\\",\\"id\\":\\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a + 69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\\"} + }}}" --workflow-name "test-workflow" +""" + +helps['logic workflow update'] = """ + type: command + short-summary: Updates a workflow. + examples: + - name: Patch a workflow + text: |- + az logic workflow update --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow delete'] = """ + type: command + short-summary: Deletes a workflow. + examples: + - name: Delete a workflow + text: |- + az logic workflow delete --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow validate-by-location'] = """ + type: command + short-summary: Validates the workflow definition. + examples: + - name: Validate a workflow + text: |- + az logic workflow validate-by-location --location "brazilsouth" --resource-group + "test-resource-group" --location "brazilsouth" --properties-definition $schema=https://sch\\ + ema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.j\\ + son# actions=[object Object] contentVersion=1.0.0.0 outputs=[object Object] parameters=[ob\\ + ject Object] triggers=[object Object] --properties-integration-account id=/subscriptions/3\\ + 4adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft\\ + .Logic/integrationAccounts/test-integration-account --workflow-name "test-workflow" +""" + +helps['logic workflow validate-by-resource-group'] = """ + type: command + short-summary: Validates the workflow. + examples: + - name: Validate a workflow + text: |- + az logic workflow validate-by-resource-group --resource-group "test-resource-group" + --location "brazilsouth" --properties-definition $schema=https://schema.management.azure.c\\ + om/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object O\\ + bject] contentVersion=1.0.0.0 outputs=[object Object] parameters=[object Object] triggers=\\ + [object Object] --properties-integration-account id=/subscriptions/34adfa4f-cedf-4dc0-ba29\\ + -b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAcco\\ + unts/test-integration-account --workflow-name "test-workflow" +""" + +helps['logic workflow list-callback-url'] = """ + type: command + short-summary: Get the workflow callback Url. + examples: + - name: Get callback url + text: |- + az logic workflow list-callback-url --key-type "Primary" --not-after + "2018-04-19T16:00:00Z" --resource-group "testResourceGroup" --workflow-name + "testWorkflow" +""" + +helps['logic workflow move'] = """ + type: command + short-summary: Moves an existing workflow. + examples: + - name: Move a workflow + text: |- + az logic workflow move --id "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGr + oups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName" + --resource-group "testResourceGroup" --workflow-name "testWorkflow" +""" + +helps['logic workflow generate-upgraded-definition'] = """ + type: command + short-summary: Generates the upgraded definition for a workflow. + examples: + - name: Generate an upgraded definition + text: |- + az logic workflow generate-upgraded-definition --target-schema-version "2016-06-01" + --resource-group "test-resource-group" --workflow-name "test-workflow" +""" + +helps['logic workflow regenerate-access-key'] = """ + type: command + short-summary: Regenerates the callback URL access key for request triggers. + examples: + - name: Regenerate the callback URL access key for request triggers + text: |- + az logic workflow regenerate-access-key --resource-group "testResourceGroup" + --workflow-name "testWorkflowName" +""" + +helps['logic workflow disable'] = """ + type: command + short-summary: Disables a workflow. + examples: + - name: Disable a workflow + text: |- + az logic workflow disable --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow enable'] = """ + type: command + short-summary: Enables a workflow. + examples: + - name: Enable a workflow + text: |- + az logic workflow enable --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow list-swagger'] = """ + type: command + short-summary: Gets an OpenAPI definition for the workflow. + examples: + - name: Get the swagger for a workflow + text: |- + az logic workflow list-swagger --resource-group "testResourceGroup" --workflow-name + "testWorkflowName" +""" + +helps['logic workflow-version'] = """ + type: group + short-summary: logic workflow-version +""" + +helps['logic workflow-version list'] = """ + type: command + short-summary: Gets a list of workflow versions. + examples: + - name: List a workflows versions + text: |- + az logic workflow-version list --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow-version show'] = """ + type: command + short-summary: Gets a workflow version. + examples: + - name: Get a workflow version + text: |- + az logic workflow-version show --resource-group "test-resource-group" --version-id + "08586676824806722526" --workflow-name "test-workflow" +""" + +helps['logic workflow-trigger'] = """ + type: group + short-summary: logic workflow-trigger +""" + +helps['logic workflow-trigger list'] = """ + type: command + short-summary: Gets a list of workflow triggers. + examples: + - name: List workflow triggers + text: |- + az logic workflow-trigger list --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow-trigger show'] = """ + type: command + short-summary: Gets a workflow trigger. + examples: + - name: Get a workflow trigger + text: |- + az logic workflow-trigger show --resource-group "test-resource-group" --trigger-name + "manual" --workflow-name "test-workflow" +""" + +helps['logic workflow-trigger reset'] = """ + type: command + short-summary: Resets a workflow trigger. + examples: + - name: Get trigger schema + text: |- + az logic workflow-trigger reset --resource-group "testResourceGroup" --trigger-name + "testTrigger" --workflow-name "testWorkflow" +""" + +helps['logic workflow-trigger run'] = """ + type: command + short-summary: Runs a workflow trigger. + examples: + - name: Run a workflow trigger + text: |- + az logic workflow-trigger run --resource-group "test-resource-group" --trigger-name + "manual" --workflow-name "test-workflow" +""" + +helps['logic workflow-trigger list-callback-url'] = """ + type: command + short-summary: Get the callback URL for a workflow trigger. + examples: + - name: Get the callback URL for a trigger + text: |- + az logic workflow-trigger list-callback-url --resource-group "test-resource-group" + --trigger-name "manual" --workflow-name "test-workflow" +""" + +helps['logic workflow-version-trigger'] = """ + type: group + short-summary: logic workflow-version-trigger +""" + +helps['logic workflow-version-trigger list-callback-url'] = """ + type: command + short-summary: Get the callback url for a trigger of a workflow version. + examples: + - name: Get the callback url for a trigger of a workflow version + text: |- + az logic workflow-version-trigger list-callback-url --key-type "Primary" --not-after + "2017-03-05T08:00:00Z" --resource-group "testResourceGroup" --trigger-name + "testTriggerName" --version-id "testWorkflowVersionId" --workflow-name "testWorkflowName" +""" + +helps['logic workflow-trigger-history'] = """ + type: group + short-summary: logic workflow-trigger-history +""" + +helps['logic workflow-trigger-history list'] = """ + type: command + short-summary: Gets a list of workflow trigger histories. + examples: + - name: List a workflow trigger history + text: |- + az logic workflow-trigger-history list --resource-group "testResourceGroup" + --trigger-name "testTriggerName" --workflow-name "testWorkflowName" +""" + +helps['logic workflow-trigger-history show'] = """ + type: command + short-summary: Gets a workflow trigger history. + examples: + - name: Get a workflow trigger history + text: |- + az logic workflow-trigger-history show --history-name "08586676746934337772206998657CU22" + --resource-group "testResourceGroup" --trigger-name "testTriggerName" --workflow-name + "testWorkflowName" +""" + +helps['logic workflow-trigger-history resubmit'] = """ + type: command + short-summary: Resubmits a workflow run based on the trigger history. + examples: + - name: Resubmit a workflow run based on the trigger history + text: |- + az logic workflow-trigger-history resubmit --history-name "testHistoryName" + --resource-group "testResourceGroup" --trigger-name "testTriggerName" --workflow-name + "testWorkflowName" +""" + +helps['logic workflow-run'] = """ + type: group + short-summary: logic workflow-run +""" + +helps['logic workflow-run list'] = """ + type: command + short-summary: Gets a list of workflow runs. + examples: + - name: List workflow runs + text: |- + az logic workflow-run list --resource-group "test-resource-group" --workflow-name + "test-workflow" +""" + +helps['logic workflow-run show'] = """ + type: command + short-summary: Gets a workflow run. + examples: + - name: Get a run for a workflow + text: |- + az logic workflow-run show --resource-group "test-resource-group" --run-name + "08586676746934337772206998657CU22" --workflow-name "test-workflow" +""" + +helps['logic workflow-run cancel'] = """ + type: command + short-summary: Cancels a workflow run. + examples: + - name: Cancel a workflow run + text: |- + az logic workflow-run cancel --resource-group "test-resource-group" --run-name + "08586676746934337772206998657CU22" --workflow-name "test-workflow" +""" + +helps['logic workflow-run-action'] = """ + type: group + short-summary: logic workflow-run-action +""" + +helps['logic workflow-run-action list'] = """ + type: command + short-summary: Gets a list of workflow run actions. + examples: + - name: List a workflow run actions + text: |- + az logic workflow-run-action list --resource-group "test-resource-group" --run-name + "08586676746934337772206998657CU22" --workflow-name "test-workflow" +""" + +helps['logic workflow-run-action show'] = """ + type: command + short-summary: Gets a workflow run action. + examples: + - name: Get a workflow run action + text: |- + az logic workflow-run-action show --action-name "HTTP" --resource-group + "test-resource-group" --run-name "08586676746934337772206998657CU22" --workflow-name + "test-workflow" +""" + +helps['logic workflow-run-action list-expression-trace'] = """ + type: command + short-summary: Lists a workflow run expression trace. + examples: + - name: List expression traces + text: |- + az logic workflow-run-action list-expression-trace --action-name "testAction" + --resource-group "testResourceGroup" --run-name "08586776228332053161046300351" + --workflow-name "testFlow" +""" + +helps['logic workflow-run-action-repetition'] = """ + type: group + short-summary: logic workflow-run-action-repetition +""" + +helps['logic workflow-run-action-repetition list'] = """ + type: command + short-summary: Get all of a workflow run action repetitions. + examples: + - name: List repetitions + text: |- + az logic workflow-run-action-repetition list --action-name "testAction" --resource-group + "testResourceGroup" --run-name "08586776228332053161046300351" --workflow-name "testFlow" +""" + +helps['logic workflow-run-action-repetition show'] = """ + type: command + short-summary: Get a workflow run action repetition. + examples: + - name: Get a repetition + text: |- + az logic workflow-run-action-repetition show --action-name "testAction" --repetition-name + "000001" --resource-group "testResourceGroup" --run-name "08586776228332053161046300351" + --workflow-name "testFlow" +""" + +helps['logic workflow-run-action-repetition list-expression-trace'] = """ + type: command + short-summary: Lists a workflow run expression trace. + examples: + - name: List expression traces for a repetition + text: |- + az logic workflow-run-action-repetition list-expression-trace --action-name "testAction" + --repetition-name "000001" --resource-group "testResourceGroup" --run-name + "08586776228332053161046300351" --workflow-name "testFlow" +""" + +helps['logic workflow-run-action-repetition-request-history'] = """ + type: group + short-summary: logic workflow-run-action-repetition-request-history +""" + +helps['logic workflow-run-action-repetition-request-history list'] = """ + type: command + short-summary: List a workflow run repetition request history. + examples: + - name: List repetition request history + text: |- + az logic workflow-run-action-repetition-request-history list --action-name "HTTP_Webhook" + --repetition-name "000001" --resource-group "test-resource-group" --run-name + "08586776228332053161046300351" --workflow-name "test-workflow" +""" + +helps['logic workflow-run-action-repetition-request-history show'] = """ + type: command + short-summary: Gets a workflow run repetition request history. + examples: + - name: Get a repetition request history + text: |- + az logic workflow-run-action-repetition-request-history show --action-name "HTTP_Webhook" + --repetition-name "000001" --request-history-name "08586611142732800686" --resource-group + "test-resource-group" --run-name "08586776228332053161046300351" --workflow-name + "test-workflow" +""" + +helps['logic workflow-run-action-request-history'] = """ + type: group + short-summary: logic workflow-run-action-request-history +""" + +helps['logic workflow-run-action-request-history list'] = """ + type: command + short-summary: List a workflow run request history. + examples: + - name: List a request history + text: |- + az logic workflow-run-action-request-history list --action-name "HTTP_Webhook" + --resource-group "test-resource-group" --run-name "08586776228332053161046300351" + --workflow-name "test-workflow" +""" + +helps['logic workflow-run-action-request-history show'] = """ + type: command + short-summary: Gets a workflow run request history. + examples: + - name: Get a request history + text: |- + az logic workflow-run-action-request-history show --action-name "HTTP_Webhook" + --request-history-name "08586611142732800686" --resource-group "test-resource-group" + --run-name "08586776228332053161046300351" --workflow-name "test-workflow" +""" + +helps['logic workflow-run-action-scope-repetition'] = """ + type: group + short-summary: logic workflow-run-action-scope-repetition +""" + +helps['logic workflow-run-action-scope-repetition list'] = """ + type: command + short-summary: List the workflow run action scoped repetitions. + examples: + - name: List the scoped repetitions + text: |- + az logic workflow-run-action-scope-repetition list --action-name "for_each" + --resource-group "testResourceGroup" --run-name "08586776228332053161046300351" + --workflow-name "testFlow" +""" + +helps['logic workflow-run-action-scope-repetition show'] = """ + type: command + short-summary: Get a workflow run action scoped repetition. + examples: + - name: Get a scoped repetition + text: |- + az logic workflow-run-action-scope-repetition show --action-name "for_each" + --repetition-name "000000" --resource-group "testResourceGroup" --run-name + "08586776228332053161046300351" --workflow-name "testFlow" +""" + +helps['logic workflow-run-operation'] = """ + type: group + short-summary: logic workflow-run-operation +""" + +helps['logic workflow-run-operation show'] = """ + type: command + short-summary: Gets an operation for a run. + examples: + - name: Get a run operation + text: |- + az logic workflow-run-operation show --operation-id + "ebdcbbde-c4db-43ec-987c-fd0f7726f43b" --resource-group "testResourceGroup" --run-name + "08586774142730039209110422528" --workflow-name "testFlow" +""" + +helps['logic integration-account'] = """ + type: group + short-summary: logic integration-account +""" + +helps['logic integration-account list'] = """ + type: command + short-summary: Gets a list of integration accounts by subscription. + examples: + - name: List integration accounts by resource group name + text: |- + az logic integration-account list --resource-group "testResourceGroup" +""" + +helps['logic integration-account show'] = """ + type: command + short-summary: Gets an integration account. + examples: + - name: Get integration account by name + text: |- + az logic integration-account show --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account create'] = """ + type: command + short-summary: Creates or updates an integration account. + examples: + - name: Create or update an integration account + text: |- + az logic integration-account create --location "westus" --sku name=Standard + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account update'] = """ + type: command + short-summary: Updates an integration account. + examples: + - name: Patch an integration account + text: |- + az logic integration-account update --location "westus" --sku name=Standard + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account delete'] = """ + type: command + short-summary: Deletes an integration account. + examples: + - name: Delete an integration account + text: |- + az logic integration-account delete --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account log-tracking-event'] = """ + type: command + short-summary: Logs the integration account's tracking events. + examples: + - name: Log a tracked event + text: |- + az logic integration-account log-tracking-event --integration-account-name + "testIntegrationAccount" --events "[{\\"error\\":{\\"code\\":\\"NotFound\\",\\"message\\":\\"Some e + rror occurred\\"},\\"eventLevel\\":\\"Informational\\",\\"eventTime\\":\\"2016-08-05T01:54:49.5055 + 67Z\\",\\"record\\":{\\"agreementProperties\\":{\\"agreementName\\":\\"testAgreement\\",\\"as2From\\" + :\\"testas2from\\",\\"as2To\\":\\"testas2to\\",\\"receiverPartnerName\\":\\"testPartner2\\",\\"sender + PartnerName\\":\\"testPartner1\\"},\\"messageProperties\\":{\\"IsMessageEncrypted\\":false,\\"IsMe + ssageSigned\\":false,\\"correlationMessageId\\":\\"Unique message identifier\\",\\"direction\\":\\ + "Receive\\",\\"dispositionType\\":\\"received-success\\",\\"fileName\\":\\"test\\",\\"isMdnExpected\\ + ":true,\\"isMessageCompressed\\":false,\\"isMessageFailed\\":false,\\"isNrrEnabled\\":true,\\"mdn + Type\\":\\"Async\\",\\"messageId\\":\\"12345\\"}},\\"recordType\\":\\"AS2Message\\"}]" --source-type + "Microsoft.Logic/workflows" --resource-group "testResourceGroup" +""" + +helps['logic integration-account list-callback-url'] = """ + type: command + short-summary: Gets the integration account callback URL. + examples: + - name: List IntegrationAccount callback URL + text: |- + az logic integration-account list-callback-url --integration-account-name + "testIntegrationAccount" --key-type "Primary" --not-after "2017-03-05T08:00:00Z" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account list-key-vault-key'] = """ + type: command + short-summary: Gets the integration account's Key Vault keys. + examples: + - name: Get Integration Account callback URL + text: |- + az logic integration-account list-key-vault-key --integration-account-name + "testIntegrationAccount" --key-vault id=subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345\\ + /resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault + --skip-token "testSkipToken" --resource-group "testResourceGroup" +""" + +helps['logic integration-account regenerate-access-key'] = """ + type: command + short-summary: Regenerates the integration account access key. + examples: + - name: Regenerate access key + text: |- + az logic integration-account regenerate-access-key --integration-account-name + "testIntegrationAccount" --key-type "Primary" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly'] = """ + type: group + short-summary: logic integration-account-assembly +""" + +helps['logic integration-account-assembly list'] = """ + type: command + short-summary: List the assemblies for an integration account. + examples: + - name: List integration account assemblies + text: |- + az logic integration-account-assembly list --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly show'] = """ + type: command + short-summary: Get an assembly for an integration account. + examples: + - name: Get an integration account assembly + text: |- + az logic integration-account-assembly show --assembly-artifact-name "testAssembly" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly create'] = """ + type: command + short-summary: Create or update an assembly for an integration account. + examples: + - name: Create or update an account assembly + text: |- + az logic integration-account-assembly create --location "westus" --properties assembly-nam\\ + e=System.IdentityModel.Tokens.Jwt content=Base64 encoded Assembly Content metadata=[object\\ + Object] --assembly-artifact-name "testAssembly" --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly update'] = """ + type: command + short-summary: Create or update an assembly for an integration account. + examples: + - name: Create or update an account assembly + text: |- + az logic integration-account-assembly create --location "westus" --properties assembly-nam\\ + e=System.IdentityModel.Tokens.Jwt content=Base64 encoded Assembly Content metadata=[object\\ + Object] --assembly-artifact-name "testAssembly" --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly delete'] = """ + type: command + short-summary: Delete an assembly for an integration account. + examples: + - name: Delete an integration account assembly + text: |- + az logic integration-account-assembly delete --assembly-artifact-name "testAssembly" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-assembly list-content-callback-url'] = """ + type: command + short-summary: Get the content callback url for an integration account assembly. + examples: + - name: Get the callback url for an integration account assembly + text: |- + az logic integration-account-assembly list-content-callback-url --assembly-artifact-name + "testAssembly" --integration-account-name "testIntegrationAccount" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-batch-configuration'] = """ + type: group + short-summary: logic integration-account-batch-configuration +""" + +helps['logic integration-account-batch-configuration list'] = """ + type: command + short-summary: List the batch configurations for an integration account. + examples: + - name: List batch configurations + text: |- + az logic integration-account-batch-configuration list --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-batch-configuration show'] = """ + type: command + short-summary: Get a batch configuration for an integration account. + examples: + - name: Get a batch configuration + text: |- + az logic integration-account-batch-configuration show --batch-configuration-name + "testBatchConfiguration" --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account-batch-configuration create'] = """ + type: command + short-summary: Create or update a batch configuration for an integration account. + examples: + - name: Create or update a batch configuration + text: |- + az logic integration-account-batch-configuration create --location "westus" --properties " + {\\"batchGroupName\\":\\"DEFAULT\\",\\"releaseCriteria\\":{\\"batchSize\\":234567,\\"messageCount\\" + :10,\\"recurrence\\":{\\"frequency\\":\\"Minute\\",\\"interval\\":1,\\"startTime\\":\\"2017-03-24T11: + 43:00\\",\\"timeZone\\":\\"India Standard Time\\"}}}" --batch-configuration-name + "testBatchConfiguration" --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account-batch-configuration update'] = """ + type: command + short-summary: Create or update a batch configuration for an integration account. + examples: + - name: Create or update a batch configuration + text: |- + az logic integration-account-batch-configuration create --location "westus" --properties " + {\\"batchGroupName\\":\\"DEFAULT\\",\\"releaseCriteria\\":{\\"batchSize\\":234567,\\"messageCount\\" + :10,\\"recurrence\\":{\\"frequency\\":\\"Minute\\",\\"interval\\":1,\\"startTime\\":\\"2017-03-24T11: + 43:00\\",\\"timeZone\\":\\"India Standard Time\\"}}}" --batch-configuration-name + "testBatchConfiguration" --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account-batch-configuration delete'] = """ + type: command + short-summary: Delete a batch configuration for an integration account. + examples: + - name: Delete a batch configuration + text: |- + az logic integration-account-batch-configuration delete --batch-configuration-name + "testBatchConfiguration" --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account-schema'] = """ + type: group + short-summary: logic integration-account-schema +""" + +helps['logic integration-account-schema list'] = """ + type: command + short-summary: Gets a list of integration account schemas. + examples: + - name: Get schemas by integration account name + text: |- + az logic integration-account-schema list --integration-account-name + "" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-schema show'] = """ + type: command + short-summary: Gets an integration account schema. + examples: + - name: Get schema by name + text: |- + az logic integration-account-schema show --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" --schema-name "testSchema" +""" + +helps['logic integration-account-schema create'] = """ + type: command + short-summary: Creates or updates an integration account schema. + examples: + - name: Create or update schema + text: |- + az logic integration-account-schema create --location "westus" --properties-content "\\r\\n\\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n < + /xs:annotation>\\r\\n \\r\\n \\r\\n \\ + r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n < + /xs:appinfo>\\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r + \\n \\r + \\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n < + xs:appinfo>\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n" --properties-content-type + "application/xml" --properties-schema-type "Xml" --tags + integrationAccountSchemaName=IntegrationAccountSchema8120 --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" --schema-name "testSchema" +""" + +helps['logic integration-account-schema update'] = """ + type: command + short-summary: Creates or updates an integration account schema. + examples: + - name: Create or update schema + text: |- + az logic integration-account-schema create --location "westus" --properties-content "\\r\\n\\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n < + /xs:annotation>\\r\\n \\r\\n \\r\\n \\ + r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n < + /xs:appinfo>\\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n + \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r + \\n \\r + \\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n < + xs:appinfo>\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n" --properties-content-type + "application/xml" --properties-schema-type "Xml" --tags + integrationAccountSchemaName=IntegrationAccountSchema8120 --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" --schema-name "testSchema" +""" + +helps['logic integration-account-schema delete'] = """ + type: command + short-summary: Deletes an integration account schema. + examples: + - name: Delete a schema by name + text: |- + az logic integration-account-schema delete --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" --schema-name "testSchema" +""" + +helps['logic integration-account-schema list-content-callback-url'] = """ + type: command + short-summary: Get the content callback url. + examples: + - name: Get the content callback url + text: |- + az logic integration-account-schema list-content-callback-url --integration-account-name + "testIntegrationAccount" --key-type "Primary" --not-after "2018-04-19T16:00:00Z" + --resource-group "testResourceGroup" --schema-name "testSchema" +""" + +helps['logic integration-account-map'] = """ + type: group + short-summary: logic integration-account-map +""" + +helps['logic integration-account-map list'] = """ + type: command + short-summary: Gets a list of integration account maps. + examples: + - name: Get maps by integration account name + text: |- + az logic integration-account-map list --integration-account-name "testIntegrationAccount" + --resource-group "testResourceGroup" +""" + +helps['logic integration-account-map show'] = """ + type: command + short-summary: Gets an integration account map. + examples: + - name: Get map by name + text: |- + az logic integration-account-map show --integration-account-name "testIntegrationAccount" + --map-name "testMap" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-map create'] = """ + type: command + short-summary: Creates or updates an integration account map. + examples: + - name: Create or update a map + text: |- + az logic integration-account-map create --integration-account-name + "testIntegrationAccount" --location "westus" --properties-content "\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\ + r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r + \\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n" + --properties-content-type "application/xml" --properties-map-type "Xslt" --map-name + "testMap" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-map update'] = """ + type: command + short-summary: Creates or updates an integration account map. + examples: + - name: Create or update a map + text: |- + az logic integration-account-map create --integration-account-name + "testIntegrationAccount" --location "westus" --properties-content "\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\ + r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r + \\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n + \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n" + --properties-content-type "application/xml" --properties-map-type "Xslt" --map-name + "testMap" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-map delete'] = """ + type: command + short-summary: Deletes an integration account map. + examples: + - name: Delete a map + text: |- + az logic integration-account-map delete --integration-account-name + "testIntegrationAccount" --map-name "testMap" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-map list-content-callback-url'] = """ + type: command + short-summary: Get the content callback url. + examples: + - name: Get the content callback url + text: |- + az logic integration-account-map list-content-callback-url --integration-account-name + "testIntegrationAccount" --key-type "Primary" --not-after "2018-04-19T16:00:00Z" + --map-name "testMap" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-partner'] = """ + type: group + short-summary: logic integration-account-partner +""" + +helps['logic integration-account-partner list'] = """ + type: command + short-summary: Gets a list of integration account partners. + examples: + - name: Get partners by integration account name + text: |- + az logic integration-account-partner list --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-partner show'] = """ + type: command + short-summary: Gets an integration account partner. + examples: + - name: Get partner by name + text: |- + az logic integration-account-partner show --integration-account-name + "testIntegrationAccount" --partner-name "testPartner" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-partner create'] = """ + type: command + short-summary: Creates or updates an integration account partner. + examples: + - name: Create or update a partner + text: |- + az logic integration-account-partner create --integration-account-name + "testIntegrationAccount" --location "westus" --properties-content + "{\\"b2b\\":{\\"businessIdentities\\":[{\\"qualifier\\":\\"AA\\",\\"value\\":\\"ZZ\\"}]}}" + --properties-partner-type "B2B" --partner-name "testPartner" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-partner update'] = """ + type: command + short-summary: Creates or updates an integration account partner. + examples: + - name: Create or update a partner + text: |- + az logic integration-account-partner create --integration-account-name + "testIntegrationAccount" --location "westus" --properties-content + "{\\"b2b\\":{\\"businessIdentities\\":[{\\"qualifier\\":\\"AA\\",\\"value\\":\\"ZZ\\"}]}}" + --properties-partner-type "B2B" --partner-name "testPartner" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-partner delete'] = """ + type: command + short-summary: Deletes an integration account partner. + examples: + - name: Delete a partner + text: |- + az logic integration-account-partner delete --integration-account-name + "testIntegrationAccount" --partner-name "testPartner" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-partner list-content-callback-url'] = """ + type: command + short-summary: Get the content callback url. + examples: + - name: Get the content callback url + text: |- + az logic integration-account-partner list-content-callback-url --integration-account-name + "testIntegrationAccount" --key-type "Primary" --not-after "2018-04-19T16:00:00Z" + --partner-name "testPartner" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-agreement'] = """ + type: group + short-summary: logic integration-account-agreement +""" + +helps['logic integration-account-agreement list'] = """ + type: command + short-summary: Gets a list of integration account agreements. + examples: + - name: Get agreements by integration account name + text: |- + az logic integration-account-agreement list --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-agreement show'] = """ + type: command + short-summary: Gets an integration account agreement. + examples: + - name: Get agreement by name + text: |- + az logic integration-account-agreement show --agreement-name "testAgreement" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-agreement create'] = """ + type: command + short-summary: Creates or updates an integration account agreement. + examples: + - name: Create or update an agreement + text: |- + az logic integration-account-agreement create --location "westus" + --properties-agreement-type "AS2" --properties-content "{\\"aS2\\":{\\"receiveAgreement\\":{\\" + protocolSettings\\":{\\"acknowledgementConnectionSettings\\":{\\"ignoreCertificateNameMismatch + \\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHt + tpHeaders\\":true},\\"envelopeSettings\\":{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\" + :\\"Test\\",\\"messageContentType\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\ + ":true,\\"transmitFileNameInMimeHeader\\":true},\\"errorSettings\\":{\\"resendIfMDNNotReceived\\ + ":true,\\"suspendDuplicateMessage\\":true},\\"mdnSettings\\":{\\"dispositionNotificationTo\\":\\" + http://tempuri.org\\",\\"mdnText\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":t + rue,\\"receiptDeliveryUrl\\":\\"http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"se + ndMDNAsynchronously\\":true,\\"signMDN\\":true,\\"signOutboundMDNIfOptional\\":true},\\"messageC + onnectionSettings\\":{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":tr + ue,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true},\\"securitySettings\\" + :{\\"enableNRRForInboundDecodedMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true, + \\"enableNRRForInboundMDN\\":true,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRFo + rOutboundEncodedMessages\\":true,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCer + tificate\\":false},\\"validationSettings\\":{\\"checkCertificateRevocationListOnReceive\\":true + ,\\"checkCertificateRevocationListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMe + ssage\\":true,\\"encryptMessage\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDupl + icatesValidityDays\\":100,\\"overrideMessageProperties\\":true,\\"signMessage\\":false}},\\"rece + iverBusinessIdentity\\":{\\"qualifier\\":\\"ZZ\\",\\"value\\":\\"ZZ\\"},\\"senderBusinessIdentity\\": + {\\"qualifier\\":\\"AA\\",\\"value\\":\\"AA\\"}},\\"sendAgreement\\":{\\"protocolSettings\\":{\\"acknow + ledgementConnectionSettings\\":{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnection + Alive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true},\\"envelope + Settings\\":{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\":\\"Test\\",\\"messageContentTy + pe\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\":true,\\"transmitFileNameInM + imeHeader\\":true},\\"errorSettings\\":{\\"resendIfMDNNotReceived\\":true,\\"suspendDuplicateMes + sage\\":true},\\"mdnSettings\\":{\\"dispositionNotificationTo\\":\\"http://tempuri.org\\",\\"mdnTe + xt\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":true,\\"receiptDeliveryUrl\\":\\ + "http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"sendMDNAsynchronously\\":true,\\ + "signMDN\\":true,\\"signOutboundMDNIfOptional\\":true},\\"messageConnectionSettings\\":{\\"ignor + eCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeCo + ntinue\\":true,\\"unfoldHttpHeaders\\":true},\\"securitySettings\\":{\\"enableNRRForInboundDecod + edMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true,\\"enableNRRForInboundMDN\\":t + rue,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRForOutboundEncodedMessages\\":t + rue,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCertificate\\":false},\\"validati + onSettings\\":{\\"checkCertificateRevocationListOnReceive\\":true,\\"checkCertificateRevocatio + nListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMessage\\":true,\\"encryptMessag + e\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDuplicatesValidityDays\\":100,\\"o + verrideMessageProperties\\":true,\\"signMessage\\":false}},\\"receiverBusinessIdentity\\":{\\"qu + alifier\\":\\"AA\\",\\"value\\":\\"AA\\"},\\"senderBusinessIdentity\\":{\\"qualifier\\":\\"ZZ\\",\\"valu + e\\":\\"ZZ\\"}}}}" --properties-guest-identity qualifier=AA value=AA + --properties-guest-partner "GuestPartner" --properties-host-identity + qualifier=ZZ value=ZZ --properties-host-partner "HostPartner" --tags + IntegrationAccountAgreement= --agreement-name + "testAgreement" --integration-account-name "testIntegrationAccount" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-agreement update'] = """ + type: command + short-summary: Creates or updates an integration account agreement. + examples: + - name: Create or update an agreement + text: |- + az logic integration-account-agreement create --location "westus" + --properties-agreement-type "AS2" --properties-content "{\\"aS2\\":{\\"receiveAgreement\\":{\\" + protocolSettings\\":{\\"acknowledgementConnectionSettings\\":{\\"ignoreCertificateNameMismatch + \\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHt + tpHeaders\\":true},\\"envelopeSettings\\":{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\" + :\\"Test\\",\\"messageContentType\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\ + ":true,\\"transmitFileNameInMimeHeader\\":true},\\"errorSettings\\":{\\"resendIfMDNNotReceived\\ + ":true,\\"suspendDuplicateMessage\\":true},\\"mdnSettings\\":{\\"dispositionNotificationTo\\":\\" + http://tempuri.org\\",\\"mdnText\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":t + rue,\\"receiptDeliveryUrl\\":\\"http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"se + ndMDNAsynchronously\\":true,\\"signMDN\\":true,\\"signOutboundMDNIfOptional\\":true},\\"messageC + onnectionSettings\\":{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":tr + ue,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true},\\"securitySettings\\" + :{\\"enableNRRForInboundDecodedMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true, + \\"enableNRRForInboundMDN\\":true,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRFo + rOutboundEncodedMessages\\":true,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCer + tificate\\":false},\\"validationSettings\\":{\\"checkCertificateRevocationListOnReceive\\":true + ,\\"checkCertificateRevocationListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMe + ssage\\":true,\\"encryptMessage\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDupl + icatesValidityDays\\":100,\\"overrideMessageProperties\\":true,\\"signMessage\\":false}},\\"rece + iverBusinessIdentity\\":{\\"qualifier\\":\\"ZZ\\",\\"value\\":\\"ZZ\\"},\\"senderBusinessIdentity\\": + {\\"qualifier\\":\\"AA\\",\\"value\\":\\"AA\\"}},\\"sendAgreement\\":{\\"protocolSettings\\":{\\"acknow + ledgementConnectionSettings\\":{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnection + Alive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true},\\"envelope + Settings\\":{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\":\\"Test\\",\\"messageContentTy + pe\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\":true,\\"transmitFileNameInM + imeHeader\\":true},\\"errorSettings\\":{\\"resendIfMDNNotReceived\\":true,\\"suspendDuplicateMes + sage\\":true},\\"mdnSettings\\":{\\"dispositionNotificationTo\\":\\"http://tempuri.org\\",\\"mdnTe + xt\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":true,\\"receiptDeliveryUrl\\":\\ + "http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"sendMDNAsynchronously\\":true,\\ + "signMDN\\":true,\\"signOutboundMDNIfOptional\\":true},\\"messageConnectionSettings\\":{\\"ignor + eCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeCo + ntinue\\":true,\\"unfoldHttpHeaders\\":true},\\"securitySettings\\":{\\"enableNRRForInboundDecod + edMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true,\\"enableNRRForInboundMDN\\":t + rue,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRForOutboundEncodedMessages\\":t + rue,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCertificate\\":false},\\"validati + onSettings\\":{\\"checkCertificateRevocationListOnReceive\\":true,\\"checkCertificateRevocatio + nListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMessage\\":true,\\"encryptMessag + e\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDuplicatesValidityDays\\":100,\\"o + verrideMessageProperties\\":true,\\"signMessage\\":false}},\\"receiverBusinessIdentity\\":{\\"qu + alifier\\":\\"AA\\",\\"value\\":\\"AA\\"},\\"senderBusinessIdentity\\":{\\"qualifier\\":\\"ZZ\\",\\"valu + e\\":\\"ZZ\\"}}}}" --properties-guest-identity qualifier=AA value=AA + --properties-guest-partner "GuestPartner" --properties-host-identity + qualifier=ZZ value=ZZ --properties-host-partner "HostPartner" --tags + IntegrationAccountAgreement= --agreement-name + "testAgreement" --integration-account-name "testIntegrationAccount" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-agreement delete'] = """ + type: command + short-summary: Deletes an integration account agreement. + examples: + - name: Delete an agreement + text: |- + az logic integration-account-agreement delete --agreement-name "testAgreement" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-agreement list-content-callback-url'] = """ + type: command + short-summary: Get the content callback url. + examples: + - name: Get the content callback url + text: |- + az logic integration-account-agreement list-content-callback-url --agreement-name + "testAgreement" --integration-account-name "testIntegrationAccount" --key-type "Primary" + --not-after "2018-04-19T16:00:00Z" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-certificate'] = """ + type: group + short-summary: logic integration-account-certificate +""" + +helps['logic integration-account-certificate list'] = """ + type: command + short-summary: Gets a list of integration account certificates. + examples: + - name: Get certificates by integration account name + text: |- + az logic integration-account-certificate list --integration-account-name + "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-certificate show'] = """ + type: command + short-summary: Gets an integration account certificate. + examples: + - name: Get certificate by name + text: |- + az logic integration-account-certificate show --certificate-name "testCertificate" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-certificate create'] = """ + type: command + short-summary: Creates or updates an integration account certificate. + examples: + - name: Create or update a certificate + text: |- + az logic integration-account-certificate create --location "brazilsouth" --properties-key + "{\\"keyName\\":\\"\\",\\"keyVault\\":{\\"id\\":\\"/subscriptions/34adfa4f-cedf-4dc0-ba29- + b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/\\"},\\"keyVersion\\":\\"87d9764197604449b9b8eb7bd8710868\\"}" + --properties-public-certificate "" --certificate-name + "testCertificate" --integration-account-name "testIntegrationAccount" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-certificate update'] = """ + type: command + short-summary: Creates or updates an integration account certificate. + examples: + - name: Create or update a certificate + text: |- + az logic integration-account-certificate create --location "brazilsouth" --properties-key + "{\\"keyName\\":\\"\\",\\"keyVault\\":{\\"id\\":\\"/subscriptions/34adfa4f-cedf-4dc0-ba29- + b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/\\"},\\"keyVersion\\":\\"87d9764197604449b9b8eb7bd8710868\\"}" + --properties-public-certificate "" --certificate-name + "testCertificate" --integration-account-name "testIntegrationAccount" --resource-group + "testResourceGroup" +""" + +helps['logic integration-account-certificate delete'] = """ + type: command + short-summary: Deletes an integration account certificate. + examples: + - name: Delete a certificate + text: |- + az logic integration-account-certificate delete --certificate-name "testCertificate" + --integration-account-name "testIntegrationAccount" --resource-group "testResourceGroup" +""" + +helps['logic integration-account-session'] = """ + type: group + short-summary: logic integration-account-session +""" + +helps['logic integration-account-session list'] = """ + type: command + short-summary: Gets a list of integration account sessions. + examples: + - name: List by integration account session examples + text: |- + az logic integration-account-session list --integration-account-name "testia123" + --resource-group "testrg123" +""" + +helps['logic integration-account-session show'] = """ + type: command + short-summary: Gets an integration account session. + examples: + - name: Get integration account session examples + text: |- + az logic integration-account-session show --integration-account-name "testia123" + --resource-group "testrg123" --session-name "testsession123-ICN" +""" + +helps['logic integration-account-session create'] = """ + type: command + short-summary: Creates or updates an integration account session. + examples: + - name: Create or update integration account session example + text: |- + az logic integration-account-session create --integration-account-name "testia123" + --resource-group "testrg123" --properties-content + controlNumber=1234 controlNumberChangedTime=2017-02-21T22:30:11.9923759Z --session-name + "testsession123-ICN" +""" + +helps['logic integration-account-session update'] = """ + type: command + short-summary: Creates or updates an integration account session. + examples: + - name: Create or update integration account session example + text: |- + az logic integration-account-session create --integration-account-name "testia123" + --resource-group "testrg123" --properties-content + controlNumber=1234 controlNumberChangedTime=2017-02-21T22:30:11.9923759Z --session-name + "testsession123-ICN" +""" + +helps['logic integration-account-session delete'] = """ + type: command + short-summary: Deletes an integration account session. + examples: + - name: Delete integration account session examples + text: |- + az logic integration-account-session delete --integration-account-name "testia123" + --resource-group "testrg123" --session-name "testsession123-ICN" +""" + +helps['logic integration-service-environment'] = """ + type: group + short-summary: logic integration-service-environment +""" + +helps['logic integration-service-environment list'] = """ + type: command + short-summary: Gets a list of integration service environments by subscription. + examples: + - name: List integration service environments by resource group name + text: |- + az logic integration-service-environment list --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment show'] = """ + type: command + short-summary: Gets an integration service environment. + examples: + - name: Get integration service environment by name + text: |- + az logic integration-service-environment show --integration-service-environment-name + "testIntegrationServiceEnvironment" --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment create'] = """ + type: command + short-summary: Creates or updates an integration service environment. + examples: + - name: Create or update an integration service environment + text: |- + az logic integration-service-environment create --location "brazilsouth" --properties "{\\" + networkConfiguration\\":{\\"accessEndpoint\\":{\\"type\\":\\"Internal\\"},\\"subnets\\":[{\\"id\\":\\" + /subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/provi + ders/Microsoft.Network/virtualNetworks/testVNET/subnets/s1\\"},{\\"id\\":\\"/subscriptions/f34 + b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Net + work/virtualNetworks/testVNET/subnets/s2\\"},{\\"id\\":\\"/subscriptions/f34b22a3-2202-4fb1-b0 + 40-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetwor + ks/testVNET/subnets/s3\\"},{\\"id\\":\\"/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/re + sourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnet + s/s4\\"}]}}" --sku name=Premium capacity=2 --integration-service-environment-name + "testIntegrationServiceEnvironment" --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment update'] = """ + type: command + short-summary: Updates an integration service environment. + examples: + - name: Patch an integration service environment + text: |- + az logic integration-service-environment update --sku name=Developer capacity=0 --tags + tag1=value1 --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment delete'] = """ + type: command + short-summary: Deletes an integration service environment. + examples: + - name: Delete an integration account + text: |- + az logic integration-service-environment delete --integration-service-environment-name + "testIntegrationServiceEnvironment" --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment restart'] = """ + type: command + short-summary: Restarts an integration service environment. + examples: + - name: Restarts an integration service environment + text: |- + az logic integration-service-environment restart --integration-service-environment-name + "testIntegrationServiceEnvironment" --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-sku'] = """ + type: group + short-summary: logic integration-service-environment-sku +""" + +helps['logic integration-service-environment-sku list'] = """ + type: command + short-summary: Gets a list of integration service environment Skus. + examples: + - name: List integration service environment skus + text: |- + az logic integration-service-environment-sku list --integration-service-environment-name + "testIntegrationServiceEnvironment" --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-network-health'] = """ + type: group + short-summary: logic integration-service-environment-network-health +""" + +helps['logic integration-service-environment-network-health show'] = """ + type: command + short-summary: Gets the integration service environment network health. + examples: + - name: Gets the integration service environment network health + text: |- + az logic integration-service-environment-network-health show + --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-managed-api'] = """ + type: group + short-summary: logic integration-service-environment-managed-api +""" + +helps['logic integration-service-environment-managed-api list'] = """ + type: command + short-summary: Gets the integration service environment managed Apis. + examples: + - name: Gets the integration service environment managed Apis + text: |- + az logic integration-service-environment-managed-api list + --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-managed-api show'] = """ + type: command + short-summary: Gets the integration service environment managed Api. + examples: + - name: Gets the integration service environment managed Apis + text: |- + az logic integration-service-environment-managed-api show --api-name "servicebus" + --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-managed-api delete'] = """ + type: command + short-summary: Deletes the integration service environment managed Api. + examples: + - name: Deletes the integration service environment managed Apis + text: |- + az logic integration-service-environment-managed-api delete --api-name "servicebus" + --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-managed-api put'] = """ + type: command + short-summary: Puts the integration service environment managed Api. + examples: + - name: Gets the integration service environment managed Apis + text: |- + az logic integration-service-environment-managed-api put --api-name "servicebus" + --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" + +helps['logic integration-service-environment-managed-api-operation'] = """ + type: group + short-summary: logic integration-service-environment-managed-api-operation +""" + +helps['logic integration-service-environment-managed-api-operation list'] = """ + type: command + short-summary: Gets the managed Api operations. + examples: + - name: Gets the integration service environment managed Apis + text: |- + az logic integration-service-environment-managed-api-operation list --api-name + "servicebus" --integration-service-environment-name "testIntegrationServiceEnvironment" + --resource-group "testResourceGroup" +""" diff --git a/src/logic/azext_logic/generated/_params.py b/src/logic/azext_logic/generated/_params.py new file mode 100644 index 00000000000..b8edba7cc81 --- /dev/null +++ b/src/logic/azext_logic/generated/_params.py @@ -0,0 +1,730 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.arguments import CLIArgumentType +from azure.cli.core.commands.parameters import ( + tags_type, + get_enum_type, + resource_group_name_type, + get_location_type +) +from azext_logic.action import ( + AddIntegrationAccount, + AddIntegrationServiceEnvironment, + AddDefinition, + AddSource, + AddSku, + AddKeyVault, + AddProperties, + AddMetadata, + AddParametersSchema, + AddHostIdentity, + AddGuestIdentity, + AddContent +) + + +def load_arguments(self, _): + + with self.argument_context('logic workflow list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic workflow show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_state', arg_type=get_enum_type(['NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended']), help='The workflow state.') + c.argument('properties_endpoints_configuration', arg_type=CLIArgumentType(options_list=['--properties-endpoints-configuration'], help='The endpoints configuration.')) + c.argument('properties_access_control', arg_type=CLIArgumentType(options_list=['--properties-access-control'], help='The access control configuration.')) + c.argument('properties_integration_account', action=AddIntegrationAccount, nargs='+', help='The resource reference.') + c.argument('properties_integration_service_environment', action=AddIntegrationServiceEnvironment, nargs='+', help='The resource reference.') + c.argument('properties_definition', action=AddDefinition, nargs='+', help='') + c.argument('properties_parameters', arg_type=CLIArgumentType(options_list=['--properties-parameters'], help='The parameters.')) + + with self.argument_context('logic workflow update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow validate-by-location') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The workflow location.') + c.argument('workflow_name', help='The workflow name.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_state', arg_type=get_enum_type(['NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended']), help='The workflow state.') + c.argument('properties_endpoints_configuration', arg_type=CLIArgumentType(options_list=['--properties-endpoints-configuration'], help='The endpoints configuration.')) + c.argument('properties_access_control', arg_type=CLIArgumentType(options_list=['--properties-access-control'], help='The access control configuration.')) + c.argument('properties_integration_account', action=AddIntegrationAccount, nargs='+', help='The resource reference.') + c.argument('properties_integration_service_environment', action=AddIntegrationServiceEnvironment, nargs='+', help='The resource reference.') + c.argument('properties_definition', action=AddDefinition, nargs='+', help='') + c.argument('properties_parameters', arg_type=CLIArgumentType(options_list=['--properties-parameters'], help='The parameters.')) + + with self.argument_context('logic workflow validate-by-resource-group') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_state', arg_type=get_enum_type(['NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended']), help='The workflow state.') + c.argument('properties_endpoints_configuration', arg_type=CLIArgumentType(options_list=['--properties-endpoints-configuration'], help='The endpoints configuration.')) + c.argument('properties_access_control', arg_type=CLIArgumentType(options_list=['--properties-access-control'], help='The access control configuration.')) + c.argument('properties_integration_account', action=AddIntegrationAccount, nargs='+', help='The resource reference.') + c.argument('properties_integration_service_environment', action=AddIntegrationServiceEnvironment, nargs='+', help='The resource reference.') + c.argument('properties_definition', action=AddDefinition, nargs='+', help='') + c.argument('properties_parameters', arg_type=CLIArgumentType(options_list=['--properties-parameters'], help='The parameters.')) + + with self.argument_context('logic workflow list-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic workflow move') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('id', help='The resource id.') + c.argument('name', help='The workflow name.') + + with self.argument_context('logic workflow generate-upgraded-definition') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('target_schema_version', help='The target schema version.') + + with self.argument_context('logic workflow regenerate-access-key') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic workflow disable') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow enable') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow list-swagger') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + + with self.argument_context('logic workflow-version list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('top', help='The number of items to be included in the result.') + + with self.argument_context('logic workflow-version show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('version_id', help='The workflow versionId.') + + with self.argument_context('logic workflow-trigger list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic workflow-trigger show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + + with self.argument_context('logic workflow-trigger reset') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + c.argument('source', action=AddSource, nargs='+', help='The workflow trigger reference.') + + with self.argument_context('logic workflow-trigger run') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + + with self.argument_context('logic workflow-trigger list-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + + with self.argument_context('logic workflow-version-trigger list-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('version_id', help='The workflow versionId.') + c.argument('trigger_name', help='The workflow trigger name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic workflow-trigger-history list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic workflow-trigger-history show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + c.argument('history_name', help='The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run.') + + with self.argument_context('logic workflow-trigger-history resubmit') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('trigger_name', help='The workflow trigger name.') + c.argument('history_name', help='The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run.') + + with self.argument_context('logic workflow-run list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic workflow-run show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + + with self.argument_context('logic workflow-run cancel') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + + with self.argument_context('logic workflow-run-action list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic workflow-run-action show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + + with self.argument_context('logic workflow-run-action list-expression-trace') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + + with self.argument_context('logic workflow-run-action-repetition list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + + with self.argument_context('logic workflow-run-action-repetition show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('repetition_name', help='The workflow repetition.') + + with self.argument_context('logic workflow-run-action-repetition list-expression-trace') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('repetition_name', help='The workflow repetition.') + + with self.argument_context('logic workflow-run-action-repetition-request-history list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('repetition_name', help='The workflow repetition.') + + with self.argument_context('logic workflow-run-action-repetition-request-history show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('repetition_name', help='The workflow repetition.') + c.argument('request_history_name', help='The request history name.') + + with self.argument_context('logic workflow-run-action-request-history list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + + with self.argument_context('logic workflow-run-action-request-history show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('request_history_name', help='The request history name.') + + with self.argument_context('logic workflow-run-action-scope-repetition list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + + with self.argument_context('logic workflow-run-action-scope-repetition show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('action_name', help='The workflow action name.') + c.argument('repetition_name', help='The workflow repetition.') + + with self.argument_context('logic workflow-run-operation show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('workflow_name', help='The workflow name.') + c.argument('run_name', help='The workflow run name.') + c.argument('operation_id', help='The workflow operation id.') + + with self.argument_context('logic integration-account list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('top', help='The number of items to be included in the result.') + + with self.argument_context('logic integration-account show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + + with self.argument_context('logic integration-account create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('sku', action=AddSku, nargs='+', help='The integration account sku.') + c.argument('properties_integration_service_environment', arg_type=CLIArgumentType(options_list=['--properties-integration-service-environment'], help='The integration service environment.')) + c.argument('properties_state', arg_type=get_enum_type(['NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended']), help='The workflow state.') + + with self.argument_context('logic integration-account update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('sku', action=AddSku, nargs='+', help='The integration account sku.') + c.argument('properties_integration_service_environment', arg_type=CLIArgumentType(options_list=['--properties-integration-service-environment'], help='The integration service environment.')) + c.argument('properties_state', arg_type=get_enum_type(['NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended']), help='The workflow state.') + + with self.argument_context('logic integration-account delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + + with self.argument_context('logic integration-account log-tracking-event') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('source_type', help='The source type.') + c.argument('track_events_options', arg_type=get_enum_type(['None', 'DisableSourceInfoEnrich']), help='The track events operation options.') + c.argument('events', arg_type=CLIArgumentType(options_list=['--events'], help='The events.')) + + with self.argument_context('logic integration-account list-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account list-key-vault-key') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('key_vault', action=AddKeyVault, nargs='+', help='The key vault reference.') + c.argument('skip_token', help='The skip token.') + + with self.argument_context('logic integration-account regenerate-access-key') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account-assembly list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + + with self.argument_context('logic integration-account-assembly show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('assembly_artifact_name', help='The assembly artifact name.') + + with self.argument_context('logic integration-account-assembly create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('assembly_artifact_name', help='The assembly artifact name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', action=AddProperties, nargs='+', help='The assembly properties definition.') + + with self.argument_context('logic integration-account-assembly update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('assembly_artifact_name', help='The assembly artifact name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', action=AddProperties, nargs='+', help='The assembly properties definition.') + + with self.argument_context('logic integration-account-assembly delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('assembly_artifact_name', help='The assembly artifact name.') + + with self.argument_context('logic integration-account-assembly list-content-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('assembly_artifact_name', help='The assembly artifact name.') + + with self.argument_context('logic integration-account-batch-configuration list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + + with self.argument_context('logic integration-account-batch-configuration show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('batch_configuration_name', help='The batch configuration name.') + + with self.argument_context('logic integration-account-batch-configuration create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('batch_configuration_name', help='The batch configuration name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', arg_type=CLIArgumentType(options_list=['--properties'], help='The batch configuration properties definition.')) + + with self.argument_context('logic integration-account-batch-configuration update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('batch_configuration_name', help='The batch configuration name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', arg_type=CLIArgumentType(options_list=['--properties'], help='The batch configuration properties definition.')) + + with self.argument_context('logic integration-account-batch-configuration delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('batch_configuration_name', help='The batch configuration name.') + + with self.argument_context('logic integration-account-schema list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic integration-account-schema show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('schema_name', help='The integration account schema name.') + + with self.argument_context('logic integration-account-schema create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('schema_name', help='The integration account schema name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_schema_type', arg_type=get_enum_type(['NotSpecified', 'Xml']), help='The schema type.') + c.argument('properties_target_namespace', help='The target namespace of the schema.') + c.argument('properties_document_name', help='The document name.') + c.argument('properties_file_name', help='The file name.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_content', help='The content.') + c.argument('properties_content_type', help='The content type.') + + with self.argument_context('logic integration-account-schema update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('schema_name', help='The integration account schema name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_schema_type', arg_type=get_enum_type(['NotSpecified', 'Xml']), help='The schema type.') + c.argument('properties_target_namespace', help='The target namespace of the schema.') + c.argument('properties_document_name', help='The document name.') + c.argument('properties_file_name', help='The file name.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_content', help='The content.') + c.argument('properties_content_type', help='The content type.') + + with self.argument_context('logic integration-account-schema delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('schema_name', help='The integration account schema name.') + + with self.argument_context('logic integration-account-schema list-content-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('schema_name', help='The integration account schema name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account-map list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic integration-account-map show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('map_name', help='The integration account map name.') + + with self.argument_context('logic integration-account-map create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('map_name', help='The integration account map name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_map_type', arg_type=get_enum_type(['NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', 'Liquid']), help='The map type.') + c.argument('properties_parameters_schema', action=AddParametersSchema, nargs='+', help='The parameters schema of integration account map.') + c.argument('properties_content', help='The content.') + c.argument('properties_content_type', help='The content type.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + + with self.argument_context('logic integration-account-map update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('map_name', help='The integration account map name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_map_type', arg_type=get_enum_type(['NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', 'Liquid']), help='The map type.') + c.argument('properties_parameters_schema', action=AddParametersSchema, nargs='+', help='The parameters schema of integration account map.') + c.argument('properties_content', help='The content.') + c.argument('properties_content_type', help='The content type.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + + with self.argument_context('logic integration-account-map delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('map_name', help='The integration account map name.') + + with self.argument_context('logic integration-account-map list-content-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('map_name', help='The integration account map name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account-partner list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic integration-account-partner show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('partner_name', help='The integration account partner name.') + + with self.argument_context('logic integration-account-partner create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('partner_name', help='The integration account partner name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_partner_type', arg_type=get_enum_type(['NotSpecified', 'B2B']), help='The partner type.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_content', arg_type=CLIArgumentType(options_list=['--properties-content'], help='The integration account partner content.')) + + with self.argument_context('logic integration-account-partner update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('partner_name', help='The integration account partner name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_partner_type', arg_type=get_enum_type(['NotSpecified', 'B2B']), help='The partner type.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_content', arg_type=CLIArgumentType(options_list=['--properties-content'], help='The integration account partner content.')) + + with self.argument_context('logic integration-account-partner delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('partner_name', help='The integration account partner name.') + + with self.argument_context('logic integration-account-partner list-content-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('partner_name', help='The integration account partner name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account-agreement list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic integration-account-agreement show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('agreement_name', help='The integration account agreement name.') + + with self.argument_context('logic integration-account-agreement create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('agreement_name', help='The integration account agreement name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_agreement_type', arg_type=get_enum_type(['NotSpecified', 'AS2', 'X12', 'Edifact']), help='The agreement type.') + c.argument('properties_host_partner', help='The integration account partner that is set as host partner for this agreement.') + c.argument('properties_guest_partner', help='The integration account partner that is set as guest partner for this agreement.') + c.argument('properties_host_identity', action=AddHostIdentity, nargs='+', help='The integration account partner\'s business identity.') + c.argument('properties_guest_identity', action=AddGuestIdentity, nargs='+', help='The integration account partner\'s business identity.') + c.argument('properties_content', arg_type=CLIArgumentType(options_list=['--properties-content'], help='The integration account agreement content.')) + + with self.argument_context('logic integration-account-agreement update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('agreement_name', help='The integration account agreement name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_agreement_type', arg_type=get_enum_type(['NotSpecified', 'AS2', 'X12', 'Edifact']), help='The agreement type.') + c.argument('properties_host_partner', help='The integration account partner that is set as host partner for this agreement.') + c.argument('properties_guest_partner', help='The integration account partner that is set as guest partner for this agreement.') + c.argument('properties_host_identity', action=AddHostIdentity, nargs='+', help='The integration account partner\'s business identity.') + c.argument('properties_guest_identity', action=AddGuestIdentity, nargs='+', help='The integration account partner\'s business identity.') + c.argument('properties_content', arg_type=CLIArgumentType(options_list=['--properties-content'], help='The integration account agreement content.')) + + with self.argument_context('logic integration-account-agreement delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('agreement_name', help='The integration account agreement name.') + + with self.argument_context('logic integration-account-agreement list-content-callback-url') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('agreement_name', help='The integration account agreement name.') + c.argument('not_after', help='The expiry time.') + c.argument('key_type', arg_type=get_enum_type(['NotSpecified', 'Primary', 'Secondary']), help='The key type.') + + with self.argument_context('logic integration-account-certificate list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + + with self.argument_context('logic integration-account-certificate show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('certificate_name', help='The integration account certificate name.') + + with self.argument_context('logic integration-account-certificate create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('certificate_name', help='The integration account certificate name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_key', arg_type=CLIArgumentType(options_list=['--properties-key'], help='The reference to the key vault key.')) + c.argument('properties_public_certificate', help='The public certificate.') + + with self.argument_context('logic integration-account-certificate update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('certificate_name', help='The integration account certificate name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_metadata', action=AddMetadata, nargs='+', help='The metadata.') + c.argument('properties_key', arg_type=CLIArgumentType(options_list=['--properties-key'], help='The reference to the key vault key.')) + c.argument('properties_public_certificate', help='The public certificate.') + + with self.argument_context('logic integration-account-certificate delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('certificate_name', help='The integration account certificate name.') + + with self.argument_context('logic integration-account-session list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('top', help='The number of items to be included in the result.') + c.argument('filter', help='The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.') + + with self.argument_context('logic integration-account-session show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('session_name', help='The integration account session name.') + + with self.argument_context('logic integration-account-session create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('session_name', help='The integration account session name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_content', action=AddContent, nargs='+', help='') + + with self.argument_context('logic integration-account-session update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('session_name', help='The integration account session name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties_content', action=AddContent, nargs='+', help='') + + with self.argument_context('logic integration-account-session delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('integration_account_name', help='The integration account name.') + c.argument('session_name', help='The integration account session name.') + + with self.argument_context('logic integration-service-environment list') as c: + c.argument('resource_group', help='The resource group.') + c.argument('top', help='The number of items to be included in the result.') + + with self.argument_context('logic integration-service-environment show') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment create') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', arg_type=CLIArgumentType(options_list=['--properties'], help='The integration service environment properties.')) + c.argument('sku', action=AddSku, nargs='+', help='The integration service environment sku.') + + with self.argument_context('logic integration-service-environment update') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='The resource location.') + c.argument('tags', tags_type, help='The resource tags.') + c.argument('properties', arg_type=CLIArgumentType(options_list=['--properties'], help='The integration service environment properties.')) + c.argument('sku', action=AddSku, nargs='+', help='The integration service environment sku.') + + with self.argument_context('logic integration-service-environment delete') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment restart') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment-sku list') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment-network-health show') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment-managed-api list') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + + with self.argument_context('logic integration-service-environment-managed-api show') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('api_name', help='The api name.') + + with self.argument_context('logic integration-service-environment-managed-api delete') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('api_name', help='The api name.') + + with self.argument_context('logic integration-service-environment-managed-api put') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('api_name', help='The api name.') + + with self.argument_context('logic integration-service-environment-managed-api-operation list') as c: + c.argument('resource_group', help='The resource group.') + c.argument('integration_service_environment_name', help='The integration service environment name.') + c.argument('api_name', help='The api name.') diff --git a/src/logic/azext_logic/generated/_validators.py b/src/logic/azext_logic/generated/_validators.py new file mode 100644 index 00000000000..25e260a7bb4 --- /dev/null +++ b/src/logic/azext_logic/generated/_validators.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +def example_name_or_id_validator(cmd, namespace): + from azure.cli.core.commands.client_factory import get_subscription_id + from msrestazure.tools import is_valid_resource_id, resource_id + if namespace.storage_account: + if not is_valid_resource_id(namespace.RESOURCE): + namespace.storage_account = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), + resource_group=namespace.resource_group_name, + namespace='Microsoft.Storage', + type='storageAccounts', + name=namespace.storage_account + ) diff --git a/src/logic/azext_logic/generated/action.py b/src/logic/azext_logic/generated/action.py new file mode 100644 index 00000000000..29e53da2a62 --- /dev/null +++ b/src/logic/azext_logic/generated/action.py @@ -0,0 +1,260 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=protected-access + +import argparse +from knack.util import CLIError + + +class AddIntegrationAccount(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_integration_account = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'id': + d['id'] = v + return d + + +class AddIntegrationServiceEnvironment(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_integration_service_environment = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'id': + d['id'] = v + return d + + +class AddDefinition(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_definition = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + return d + + +class AddSource(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.source = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'name': + d['name'] = v + elif kl == 'flow_name': + d['flow_name'] = v + elif kl == 'trigger_name': + d['trigger_name'] = v + elif kl == 'id': + d['id'] = v + return d + + +class AddSku(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.sku = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'name': + d['name'] = v + return d + + +class AddKeyVault(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.key_vault = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'name': + d['name'] = v + elif kl == 'id': + d['id'] = v + return d + + +class AddProperties(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'assembly_name': + d['assembly_name'] = v + elif kl == 'assembly_version': + d['assembly_version'] = v + elif kl == 'assembly_culture': + d['assembly_culture'] = v + elif kl == 'assembly_public_key_token': + d['assembly_public_key_token'] = v + elif kl == 'content': + d['content'] = v + elif kl == 'content_type': + d['content_type'] = v + elif kl == 'content_link': + d['content_link'] = v + elif kl == 'created_time': + d['created_time'] = v + elif kl == 'changed_time': + d['changed_time'] = v + elif kl == 'metadata': + d['metadata'] = v + return d + + +class AddMetadata(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_metadata = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + return d + + +class AddParametersSchema(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_parameters_schema = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'ref': + d['ref'] = v + return d + + +class AddHostIdentity(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_host_identity = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'qualifier': + d['qualifier'] = v + elif kl == 'value': + d['value'] = v + return d + + +class AddGuestIdentity(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_guest_identity = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'qualifier': + d['qualifier'] = v + elif kl == 'value': + d['value'] = v + return d + + +class AddContent(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.properties_content = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + return d diff --git a/src/logic/azext_logic/generated/commands.py b/src/logic/azext_logic/generated/commands.py new file mode 100644 index 00000000000..4b3d4da8394 --- /dev/null +++ b/src/logic/azext_logic/generated/commands.py @@ -0,0 +1,277 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long + +from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): + + from azext_logic.generated._client_factory import cf_workflow + logic_workflow = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_operations#WorkflowOperations.{}', + client_factory=cf_workflow) + with self.command_group('logic workflow', logic_workflow, client_factory=cf_workflow) as g: + g.custom_command('list', 'logic_workflow_list') + g.custom_show_command('show', 'logic_workflow_show') + g.custom_command('create', 'logic_workflow_create') + g.custom_command('update', 'logic_workflow_update') + g.custom_command('delete', 'logic_workflow_delete') + g.custom_command('validate-by-location', 'logic_workflow_validate_by_location') + g.custom_command('validate-by-resource-group', 'logic_workflow_validate_by_resource_group') + g.custom_command('list-callback-url', 'logic_workflow_list_callback_url') + g.custom_command('move', 'logic_workflow_move', supports_no_wait=True) + g.custom_command('generate-upgraded-definition', 'logic_workflow_generate_upgraded_definition') + g.custom_command('regenerate-access-key', 'logic_workflow_regenerate_access_key') + g.custom_command('disable', 'logic_workflow_disable') + g.custom_command('enable', 'logic_workflow_enable') + g.custom_command('list-swagger', 'logic_workflow_list_swagger') + g.wait_command('wait') + + from azext_logic.generated._client_factory import cf_workflow_version + logic_workflow_version = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_version_operations#WorkflowVersionOperations.{}', + client_factory=cf_workflow_version) + with self.command_group('logic workflow-version', logic_workflow_version, client_factory=cf_workflow_version) as g: + g.custom_command('list', 'logic_workflow_version_list') + g.custom_show_command('show', 'logic_workflow_version_show') + + from azext_logic.generated._client_factory import cf_workflow_trigger + logic_workflow_trigger = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_trigger_operations#WorkflowTriggerOperations.{}', + client_factory=cf_workflow_trigger) + with self.command_group('logic workflow-trigger', logic_workflow_trigger, client_factory=cf_workflow_trigger) as g: + g.custom_command('list', 'logic_workflow_trigger_list') + g.custom_show_command('show', 'logic_workflow_trigger_show') + g.custom_command('reset', 'logic_workflow_trigger_reset') + g.custom_command('run', 'logic_workflow_trigger_run') + g.custom_command('list-callback-url', 'logic_workflow_trigger_list_callback_url') + + from azext_logic.generated._client_factory import cf_workflow_version_trigger + logic_workflow_version_trigger = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_version_trigger_operations#WorkflowVersionTriggerOperations.{}', + client_factory=cf_workflow_version_trigger) + with self.command_group('logic workflow-version-trigger', logic_workflow_version_trigger, client_factory=cf_workflow_version_trigger) as g: + g.custom_command('list-callback-url', 'logic_workflow_version_trigger_list_callback_url') + + from azext_logic.generated._client_factory import cf_workflow_trigger_history + logic_workflow_trigger_history = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_trigger_history_operations#WorkflowTriggerHistoryOperations.{}', + client_factory=cf_workflow_trigger_history) + with self.command_group('logic workflow-trigger-history', logic_workflow_trigger_history, client_factory=cf_workflow_trigger_history) as g: + g.custom_command('list', 'logic_workflow_trigger_history_list') + g.custom_show_command('show', 'logic_workflow_trigger_history_show') + g.custom_command('resubmit', 'logic_workflow_trigger_history_resubmit') + + from azext_logic.generated._client_factory import cf_workflow_run + logic_workflow_run = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_operations#WorkflowRunOperations.{}', + client_factory=cf_workflow_run) + with self.command_group('logic workflow-run', logic_workflow_run, client_factory=cf_workflow_run) as g: + g.custom_command('list', 'logic_workflow_run_list') + g.custom_show_command('show', 'logic_workflow_run_show') + g.custom_command('cancel', 'logic_workflow_run_cancel') + + from azext_logic.generated._client_factory import cf_workflow_run_action + logic_workflow_run_action = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_action_operations#WorkflowRunActionOperations.{}', + client_factory=cf_workflow_run_action) + with self.command_group('logic workflow-run-action', logic_workflow_run_action, client_factory=cf_workflow_run_action) as g: + g.custom_command('list', 'logic_workflow_run_action_list') + g.custom_show_command('show', 'logic_workflow_run_action_show') + g.custom_command('list-expression-trace', 'logic_workflow_run_action_list_expression_trace') + + from azext_logic.generated._client_factory import cf_workflow_run_action_repetition + logic_workflow_run_action_repetition = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_action_repetition_operations#WorkflowRunActionRepetitionOperations.{}', + client_factory=cf_workflow_run_action_repetition) + with self.command_group('logic workflow-run-action-repetition', logic_workflow_run_action_repetition, client_factory=cf_workflow_run_action_repetition) as g: + g.custom_command('list', 'logic_workflow_run_action_repetition_list') + g.custom_show_command('show', 'logic_workflow_run_action_repetition_show') + g.custom_command('list-expression-trace', 'logic_workflow_run_action_repetition_list_expression_trace') + + from azext_logic.generated._client_factory import cf_workflow_run_action_repetition_request_history + logic_workflow_run_action_repetition_request_history = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_action_repetition_request_history_operations#WorkflowRunActionRepetitionRequestHistoryOperations.{}', + client_factory=cf_workflow_run_action_repetition_request_history) + with self.command_group('logic workflow-run-action-repetition-request-history', logic_workflow_run_action_repetition_request_history, client_factory=cf_workflow_run_action_repetition_request_history) as g: + g.custom_command('list', 'logic_workflow_run_action_repetition_request_history_list') + g.custom_show_command('show', 'logic_workflow_run_action_repetition_request_history_show') + + from azext_logic.generated._client_factory import cf_workflow_run_action_request_history + logic_workflow_run_action_request_history = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_action_request_history_operations#WorkflowRunActionRequestHistoryOperations.{}', + client_factory=cf_workflow_run_action_request_history) + with self.command_group('logic workflow-run-action-request-history', logic_workflow_run_action_request_history, client_factory=cf_workflow_run_action_request_history) as g: + g.custom_command('list', 'logic_workflow_run_action_request_history_list') + g.custom_show_command('show', 'logic_workflow_run_action_request_history_show') + + from azext_logic.generated._client_factory import cf_workflow_run_action_scope_repetition + logic_workflow_run_action_scope_repetition = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_action_scope_repetition_operations#WorkflowRunActionScopeRepetitionOperations.{}', + client_factory=cf_workflow_run_action_scope_repetition) + with self.command_group('logic workflow-run-action-scope-repetition', logic_workflow_run_action_scope_repetition, client_factory=cf_workflow_run_action_scope_repetition) as g: + g.custom_command('list', 'logic_workflow_run_action_scope_repetition_list') + g.custom_show_command('show', 'logic_workflow_run_action_scope_repetition_show') + + from azext_logic.generated._client_factory import cf_workflow_run_operation + logic_workflow_run_operation = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._workflow_run_operation_operations#WorkflowRunOperationOperations.{}', + client_factory=cf_workflow_run_operation) + with self.command_group('logic workflow-run-operation', logic_workflow_run_operation, client_factory=cf_workflow_run_operation) as g: + g.custom_show_command('show', 'logic_workflow_run_operation_show') + + from azext_logic.generated._client_factory import cf_integration_account + logic_integration_account = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_operations#IntegrationAccountOperations.{}', + client_factory=cf_integration_account) + with self.command_group('logic integration-account', logic_integration_account, client_factory=cf_integration_account) as g: + g.custom_command('list', 'logic_integration_account_list') + g.custom_show_command('show', 'logic_integration_account_show') + g.custom_command('create', 'logic_integration_account_create') + g.custom_command('update', 'logic_integration_account_update') + g.custom_command('delete', 'logic_integration_account_delete') + g.custom_command('log-tracking-event', 'logic_integration_account_log_tracking_event') + g.custom_command('list-callback-url', 'logic_integration_account_list_callback_url') + g.custom_command('list-key-vault-key', 'logic_integration_account_list_key_vault_key') + g.custom_command('regenerate-access-key', 'logic_integration_account_regenerate_access_key') + + from azext_logic.generated._client_factory import cf_integration_account_assembly + logic_integration_account_assembly = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_assembly_operations#IntegrationAccountAssemblyOperations.{}', + client_factory=cf_integration_account_assembly) + with self.command_group('logic integration-account-assembly', logic_integration_account_assembly, client_factory=cf_integration_account_assembly) as g: + g.custom_command('list', 'logic_integration_account_assembly_list') + g.custom_show_command('show', 'logic_integration_account_assembly_show') + g.custom_command('create', 'logic_integration_account_assembly_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_assembly_delete') + g.custom_command('list-content-callback-url', 'logic_integration_account_assembly_list_content_callback_url') + + from azext_logic.generated._client_factory import cf_integration_account_batch_configuration + logic_integration_account_batch_configuration = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_batch_configuration_operations#IntegrationAccountBatchConfigurationOperations.{}', + client_factory=cf_integration_account_batch_configuration) + with self.command_group('logic integration-account-batch-configuration', logic_integration_account_batch_configuration, client_factory=cf_integration_account_batch_configuration) as g: + g.custom_command('list', 'logic_integration_account_batch_configuration_list') + g.custom_show_command('show', 'logic_integration_account_batch_configuration_show') + g.custom_command('create', 'logic_integration_account_batch_configuration_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_batch_configuration_delete') + + from azext_logic.generated._client_factory import cf_integration_account_schema + logic_integration_account_schema = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_schema_operations#IntegrationAccountSchemaOperations.{}', + client_factory=cf_integration_account_schema) + with self.command_group('logic integration-account-schema', logic_integration_account_schema, client_factory=cf_integration_account_schema) as g: + g.custom_command('list', 'logic_integration_account_schema_list') + g.custom_show_command('show', 'logic_integration_account_schema_show') + g.custom_command('create', 'logic_integration_account_schema_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_schema_delete') + g.custom_command('list-content-callback-url', 'logic_integration_account_schema_list_content_callback_url') + + from azext_logic.generated._client_factory import cf_integration_account_map + logic_integration_account_map = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_map_operations#IntegrationAccountMapOperations.{}', + client_factory=cf_integration_account_map) + with self.command_group('logic integration-account-map', logic_integration_account_map, client_factory=cf_integration_account_map) as g: + g.custom_command('list', 'logic_integration_account_map_list') + g.custom_show_command('show', 'logic_integration_account_map_show') + g.custom_command('create', 'logic_integration_account_map_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_map_delete') + g.custom_command('list-content-callback-url', 'logic_integration_account_map_list_content_callback_url') + + from azext_logic.generated._client_factory import cf_integration_account_partner + logic_integration_account_partner = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_partner_operations#IntegrationAccountPartnerOperations.{}', + client_factory=cf_integration_account_partner) + with self.command_group('logic integration-account-partner', logic_integration_account_partner, client_factory=cf_integration_account_partner) as g: + g.custom_command('list', 'logic_integration_account_partner_list') + g.custom_show_command('show', 'logic_integration_account_partner_show') + g.custom_command('create', 'logic_integration_account_partner_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_partner_delete') + g.custom_command('list-content-callback-url', 'logic_integration_account_partner_list_content_callback_url') + + from azext_logic.generated._client_factory import cf_integration_account_agreement + logic_integration_account_agreement = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_agreement_operations#IntegrationAccountAgreementOperations.{}', + client_factory=cf_integration_account_agreement) + with self.command_group('logic integration-account-agreement', logic_integration_account_agreement, client_factory=cf_integration_account_agreement) as g: + g.custom_command('list', 'logic_integration_account_agreement_list') + g.custom_show_command('show', 'logic_integration_account_agreement_show') + g.custom_command('create', 'logic_integration_account_agreement_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_agreement_delete') + g.custom_command('list-content-callback-url', 'logic_integration_account_agreement_list_content_callback_url') + + from azext_logic.generated._client_factory import cf_integration_account_certificate + logic_integration_account_certificate = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_certificate_operations#IntegrationAccountCertificateOperations.{}', + client_factory=cf_integration_account_certificate) + with self.command_group('logic integration-account-certificate', logic_integration_account_certificate, client_factory=cf_integration_account_certificate) as g: + g.custom_command('list', 'logic_integration_account_certificate_list') + g.custom_show_command('show', 'logic_integration_account_certificate_show') + g.custom_command('create', 'logic_integration_account_certificate_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_certificate_delete') + + from azext_logic.generated._client_factory import cf_integration_account_session + logic_integration_account_session = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_account_session_operations#IntegrationAccountSessionOperations.{}', + client_factory=cf_integration_account_session) + with self.command_group('logic integration-account-session', logic_integration_account_session, client_factory=cf_integration_account_session) as g: + g.custom_command('list', 'logic_integration_account_session_list') + g.custom_show_command('show', 'logic_integration_account_session_show') + g.custom_command('create', 'logic_integration_account_session_create') + g.generic_update_command('update') + g.custom_command('delete', 'logic_integration_account_session_delete') + + from azext_logic.generated._client_factory import cf_integration_service_environment + logic_integration_service_environment = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_service_environment_operations#IntegrationServiceEnvironmentOperations.{}', + client_factory=cf_integration_service_environment) + with self.command_group('logic integration-service-environment', logic_integration_service_environment, client_factory=cf_integration_service_environment) as g: + g.custom_command('list', 'logic_integration_service_environment_list') + g.custom_show_command('show', 'logic_integration_service_environment_show') + g.custom_command('create', 'logic_integration_service_environment_create', supports_no_wait=True) + g.custom_command('update', 'logic_integration_service_environment_update', supports_no_wait=True) + g.custom_command('delete', 'logic_integration_service_environment_delete') + g.custom_command('restart', 'logic_integration_service_environment_restart') + g.wait_command('wait') + + from azext_logic.generated._client_factory import cf_integration_service_environment_sku + logic_integration_service_environment_sku = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_service_environment_sku_operations#IntegrationServiceEnvironmentSkuOperations.{}', + client_factory=cf_integration_service_environment_sku) + with self.command_group('logic integration-service-environment-sku', logic_integration_service_environment_sku, client_factory=cf_integration_service_environment_sku) as g: + g.custom_command('list', 'logic_integration_service_environment_sku_list') + + from azext_logic.generated._client_factory import cf_integration_service_environment_network_health + logic_integration_service_environment_network_health = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_service_environment_network_health_operations#IntegrationServiceEnvironmentNetworkHealthOperations.{}', + client_factory=cf_integration_service_environment_network_health) + with self.command_group('logic integration-service-environment-network-health', logic_integration_service_environment_network_health, client_factory=cf_integration_service_environment_network_health) as g: + g.custom_show_command('show', 'logic_integration_service_environment_network_health_show') + + from azext_logic.generated._client_factory import cf_integration_service_environment_managed_api + logic_integration_service_environment_managed_api = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_service_environment_managed_api_operations#IntegrationServiceEnvironmentManagedApiOperations.{}', + client_factory=cf_integration_service_environment_managed_api) + with self.command_group('logic integration-service-environment-managed-api', logic_integration_service_environment_managed_api, client_factory=cf_integration_service_environment_managed_api) as g: + g.custom_command('list', 'logic_integration_service_environment_managed_api_list') + g.custom_show_command('show', 'logic_integration_service_environment_managed_api_show') + g.custom_command('delete', 'logic_integration_service_environment_managed_api_delete', supports_no_wait=True) + g.custom_command('put', 'logic_integration_service_environment_managed_api_put', supports_no_wait=True) + g.wait_command('wait') + + from azext_logic.generated._client_factory import cf_integration_service_environment_managed_api_operation + logic_integration_service_environment_managed_api_operation = CliCommandType( + operations_tmpl='azext_logic.vendored_sdks.logic.operations._integration_service_environment_managed_api_operation_operations#IntegrationServiceEnvironmentManagedApiOperationOperations.{}', + client_factory=cf_integration_service_environment_managed_api_operation) + with self.command_group('logic integration-service-environment-managed-api-operation', logic_integration_service_environment_managed_api_operation, client_factory=cf_integration_service_environment_managed_api_operation) as g: + g.custom_command('list', 'logic_integration_service_environment_managed_api_operation_list') diff --git a/src/logic/azext_logic/generated/custom.py b/src/logic/azext_logic/generated/custom.py new file mode 100644 index 00000000000..249def620c2 --- /dev/null +++ b/src/logic/azext_logic/generated/custom.py @@ -0,0 +1,954 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long +# pylint: disable=too-many-lines + +import json + + +def logic_workflow_list(cmd, client, + resource_group_name=None, + top=None, + filter=None): + if resource_group_name is not None: + return client.list_by_resource_group(resource_group_name=resource_group_name, top=top, filter=filter) + return client.list_by_subscription(top=top, filter=filter) + + +def logic_workflow_show(cmd, client, + resource_group_name, + workflow_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_create(cmd, client, + resource_group_name, + workflow_name, + location=None, + tags=None, + properties_state=None, + properties_endpoints_configuration=None, + properties_access_control=None, + properties_integration_account=None, + properties_integration_service_environment=None, + properties_definition=None, + properties_parameters=None): + properties_endpoints_configuration = json.loads(properties_endpoints_configuration) if isinstance(properties_endpoints_configuration, str) else properties_endpoints_configuration + properties_access_control = json.loads(properties_access_control) if isinstance(properties_access_control, str) else properties_access_control + properties_parameters = json.loads(properties_parameters) if isinstance(properties_parameters, str) else properties_parameters + return client.create_or_update(resource_group_name=resource_group_name, workflow_name=workflow_name, location=location, tags=tags, state=properties_state, endpoints_configuration=properties_endpoints_configuration, access_control=properties_access_control, integration_account=properties_integration_account, integration_service_environment=properties_integration_service_environment, definition=properties_definition, parameters=properties_parameters) + + +def logic_workflow_update(cmd, client, + resource_group_name, + workflow_name): + return client.update(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_delete(cmd, client, + resource_group_name, + workflow_name): + return client.delete(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_validate_by_location(cmd, client, + resource_group_name, + workflow_name, + location=None, + tags=None, + properties_state=None, + properties_endpoints_configuration=None, + properties_access_control=None, + properties_integration_account=None, + properties_integration_service_environment=None, + properties_definition=None, + properties_parameters=None): + properties_endpoints_configuration = json.loads(properties_endpoints_configuration) if isinstance(properties_endpoints_configuration, str) else properties_endpoints_configuration + properties_access_control = json.loads(properties_access_control) if isinstance(properties_access_control, str) else properties_access_control + properties_parameters = json.loads(properties_parameters) if isinstance(properties_parameters, str) else properties_parameters + return client.validate_by_location(resource_group_name=resource_group_name, location=location, workflow_name=workflow_name, location=location, tags=tags, state=properties_state, endpoints_configuration=properties_endpoints_configuration, access_control=properties_access_control, integration_account=properties_integration_account, integration_service_environment=properties_integration_service_environment, definition=properties_definition, parameters=properties_parameters) + + +def logic_workflow_validate_by_resource_group(cmd, client, + resource_group_name, + workflow_name, + location=None, + tags=None, + properties_state=None, + properties_endpoints_configuration=None, + properties_access_control=None, + properties_integration_account=None, + properties_integration_service_environment=None, + properties_definition=None, + properties_parameters=None): + properties_endpoints_configuration = json.loads(properties_endpoints_configuration) if isinstance(properties_endpoints_configuration, str) else properties_endpoints_configuration + properties_access_control = json.loads(properties_access_control) if isinstance(properties_access_control, str) else properties_access_control + properties_parameters = json.loads(properties_parameters) if isinstance(properties_parameters, str) else properties_parameters + return client.validate_by_resource_group(resource_group_name=resource_group_name, workflow_name=workflow_name, location=location, tags=tags, state=properties_state, endpoints_configuration=properties_endpoints_configuration, access_control=properties_access_control, integration_account=properties_integration_account, integration_service_environment=properties_integration_service_environment, definition=properties_definition, parameters=properties_parameters) + + +def logic_workflow_list_callback_url(cmd, client, + resource_group_name, + workflow_name, + not_after=None, + key_type=None): + return client.list_callback_url(resource_group_name=resource_group_name, workflow_name=workflow_name, not_after=not_after, key_type=key_type) + + +def logic_workflow_move(cmd, client, + resource_group_name, + workflow_name, + id=None, + name=None): + return client.begin_move(resource_group_name=resource_group_name, workflow_name=workflow_name, id=id, name=name) + + +def logic_workflow_generate_upgraded_definition(cmd, client, + resource_group_name, + workflow_name, + target_schema_version=None): + return client.generate_upgraded_definition(resource_group_name=resource_group_name, workflow_name=workflow_name, target_schema_version=target_schema_version) + + +def logic_workflow_regenerate_access_key(cmd, client, + resource_group_name, + workflow_name, + key_type=None): + return client.regenerate_access_key(resource_group_name=resource_group_name, workflow_name=workflow_name, key_type=key_type) + + +def logic_workflow_disable(cmd, client, + resource_group_name, + workflow_name): + return client.disable(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_enable(cmd, client, + resource_group_name, + workflow_name): + return client.enable(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_list_swagger(cmd, client, + resource_group_name, + workflow_name): + return client.list_swagger(resource_group_name=resource_group_name, workflow_name=workflow_name) + + +def logic_workflow_version_list(cmd, client, + resource_group_name, + workflow_name, + top=None): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, top=top) + + +def logic_workflow_version_show(cmd, client, + resource_group_name, + workflow_name, + version_id): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, version_id=version_id) + + +def logic_workflow_trigger_list(cmd, client, + resource_group_name, + workflow_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, top=top, filter=filter) + + +def logic_workflow_trigger_show(cmd, client, + resource_group_name, + workflow_name, + trigger_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name) + + +def logic_workflow_trigger_reset(cmd, client, + resource_group_name, + workflow_name, + trigger_name, + source=None): + if resource_group_name is not None and workflow_name is not None and trigger_name is not None: + return client.get_schema_json(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name) + elif resource_group_name is not None and workflow_name is not None and trigger_name is not None and set_state is not None and source is not None: + return client.set_state(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name, source=source) + return client.reset(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name) + + +def logic_workflow_trigger_run(cmd, client, + resource_group_name, + workflow_name, + trigger_name): + return client.run(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name) + + +def logic_workflow_trigger_list_callback_url(cmd, client, + resource_group_name, + workflow_name, + trigger_name): + return client.list_callback_url(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name) + + +def logic_workflow_version_trigger_list_callback_url(cmd, client, + resource_group_name, + workflow_name, + version_id, + trigger_name, + not_after=None, + key_type=None): + return client.list_callback_url(resource_group_name=resource_group_name, workflow_name=workflow_name, version_id=version_id, trigger_name=trigger_name, not_after=not_after, key_type=key_type) + + +def logic_workflow_trigger_history_list(cmd, client, + resource_group_name, + workflow_name, + trigger_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name, top=top, filter=filter) + + +def logic_workflow_trigger_history_show(cmd, client, + resource_group_name, + workflow_name, + trigger_name, + history_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name, history_name=history_name) + + +def logic_workflow_trigger_history_resubmit(cmd, client, + resource_group_name, + workflow_name, + trigger_name, + history_name): + return client.resubmit(resource_group_name=resource_group_name, workflow_name=workflow_name, trigger_name=trigger_name, history_name=history_name) + + +def logic_workflow_run_list(cmd, client, + resource_group_name, + workflow_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, top=top, filter=filter) + + +def logic_workflow_run_show(cmd, client, + resource_group_name, + workflow_name, + run_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name) + + +def logic_workflow_run_cancel(cmd, client, + resource_group_name, + workflow_name, + run_name): + return client.cancel(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name) + + +def logic_workflow_run_action_list(cmd, client, + resource_group_name, + workflow_name, + run_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, top=top, filter=filter) + + +def logic_workflow_run_action_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name) + + +def logic_workflow_run_action_list_expression_trace(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name): + return client.list_expression_trace(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name) + + +def logic_workflow_run_action_repetition_list(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name) + + +def logic_workflow_run_action_repetition_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + repetition_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, repetition_name=repetition_name) + + +def logic_workflow_run_action_repetition_list_expression_trace(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + repetition_name): + return client.list_expression_trace(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, repetition_name=repetition_name) + + +def logic_workflow_run_action_repetition_request_history_list(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + repetition_name): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, repetition_name=repetition_name) + + +def logic_workflow_run_action_repetition_request_history_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + repetition_name, + request_history_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, repetition_name=repetition_name, request_history_name=request_history_name) + + +def logic_workflow_run_action_request_history_list(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name) + + +def logic_workflow_run_action_request_history_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + request_history_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, request_history_name=request_history_name) + + +def logic_workflow_run_action_scope_repetition_list(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name): + return client.list(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name) + + +def logic_workflow_run_action_scope_repetition_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + action_name, + repetition_name): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, action_name=action_name, repetition_name=repetition_name) + + +def logic_workflow_run_operation_show(cmd, client, + resource_group_name, + workflow_name, + run_name, + operation_id): + return client.get(resource_group_name=resource_group_name, workflow_name=workflow_name, run_name=run_name, operation_id=operation_id) + + +def logic_integration_account_list(cmd, client, + resource_group_name=None, + top=None): + if resource_group_name is not None: + return client.list_by_resource_group(resource_group_name=resource_group_name, top=top) + return client.list_by_subscription(top=top) + + +def logic_integration_account_show(cmd, client, + resource_group_name, + integration_account_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name) + + +def logic_integration_account_create(cmd, client, + resource_group_name, + integration_account_name, + location=None, + tags=None, + sku=None, + properties_integration_service_environment=None, + properties_state=None): + properties_integration_service_environment = json.loads(properties_integration_service_environment) if isinstance(properties_integration_service_environment, str) else properties_integration_service_environment + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, location=location, tags=tags, sku=sku, integration_service_environment=properties_integration_service_environment, state=properties_state) + + +def logic_integration_account_update(cmd, client, + resource_group_name, + integration_account_name, + location=None, + tags=None, + sku=None, + properties_integration_service_environment=None, + properties_state=None): + properties_integration_service_environment = json.loads(properties_integration_service_environment) if isinstance(properties_integration_service_environment, str) else properties_integration_service_environment + return client.update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, location=location, tags=tags, sku=sku, integration_service_environment=properties_integration_service_environment, state=properties_state) + + +def logic_integration_account_delete(cmd, client, + resource_group_name, + integration_account_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name) + + +def logic_integration_account_log_tracking_event(cmd, client, + resource_group_name, + integration_account_name, + source_type, + events, + track_events_options=None): + events = json.loads(events) if isinstance(events, str) else events + return client.log_tracking_event(resource_group_name=resource_group_name, integration_account_name=integration_account_name, source_type=source_type, track_events_options=track_events_options, events=events) + + +def logic_integration_account_list_callback_url(cmd, client, + resource_group_name, + integration_account_name, + not_after=None, + key_type=None): + return client.list_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, not_after=not_after, key_type=key_type) + + +def logic_integration_account_list_key_vault_key(cmd, client, + resource_group_name, + integration_account_name, + key_vault, + skip_token=None): + return client.list_key_vault_key(resource_group_name=resource_group_name, integration_account_name=integration_account_name, key_vault=key_vault, skip_token=skip_token) + + +def logic_integration_account_regenerate_access_key(cmd, client, + resource_group_name, + integration_account_name, + key_type=None): + return client.regenerate_access_key(resource_group_name=resource_group_name, integration_account_name=integration_account_name, key_type=key_type) + + +def logic_integration_account_assembly_list(cmd, client, + resource_group_name, + integration_account_name): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name) + + +def logic_integration_account_assembly_show(cmd, client, + resource_group_name, + integration_account_name, + assembly_artifact_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, assembly_artifact_name=assembly_artifact_name) + + +def logic_integration_account_assembly_create(cmd, client, + resource_group_name, + integration_account_name, + assembly_artifact_name, + properties, + location=None, + tags=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, assembly_artifact_name=assembly_artifact_name, location=location, tags=tags, properties=properties) + + +def logic_integration_account_assembly_update(cmd, client, + resource_group_name, + integration_account_name, + assembly_artifact_name, + properties, + location=None, + tags=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, assembly_artifact_name=assembly_artifact_name, location=location, tags=tags, properties=properties) + + +def logic_integration_account_assembly_delete(cmd, client, + resource_group_name, + integration_account_name, + assembly_artifact_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, assembly_artifact_name=assembly_artifact_name) + + +def logic_integration_account_assembly_list_content_callback_url(cmd, client, + resource_group_name, + integration_account_name, + assembly_artifact_name): + return client.list_content_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, assembly_artifact_name=assembly_artifact_name) + + +def logic_integration_account_batch_configuration_list(cmd, client, + resource_group_name, + integration_account_name): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name) + + +def logic_integration_account_batch_configuration_show(cmd, client, + resource_group_name, + integration_account_name, + batch_configuration_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, batch_configuration_name=batch_configuration_name) + + +def logic_integration_account_batch_configuration_create(cmd, client, + resource_group_name, + integration_account_name, + batch_configuration_name, + properties, + location=None, + tags=None): + properties = json.loads(properties) if isinstance(properties, str) else properties + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, batch_configuration_name=batch_configuration_name, location=location, tags=tags, properties=properties) + + +def logic_integration_account_batch_configuration_update(cmd, client, + resource_group_name, + integration_account_name, + batch_configuration_name, + properties, + location=None, + tags=None): + properties = json.loads(properties) if isinstance(properties, str) else properties + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, batch_configuration_name=batch_configuration_name, location=location, tags=tags, properties=properties) + + +def logic_integration_account_batch_configuration_delete(cmd, client, + resource_group_name, + integration_account_name, + batch_configuration_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, batch_configuration_name=batch_configuration_name) + + +def logic_integration_account_schema_list(cmd, client, + resource_group_name, + integration_account_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top, filter=filter) + + +def logic_integration_account_schema_show(cmd, client, + resource_group_name, + integration_account_name, + schema_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, schema_name=schema_name) + + +def logic_integration_account_schema_create(cmd, client, + resource_group_name, + integration_account_name, + schema_name, + properties_schema_type, + location=None, + tags=None, + properties_target_namespace=None, + properties_document_name=None, + properties_file_name=None, + properties_metadata=None, + properties_content=None, + properties_content_type=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, schema_name=schema_name, location=location, tags=tags, schema_type=properties_schema_type, target_namespace=properties_target_namespace, document_name=properties_document_name, file_name=properties_file_name, metadata=properties_metadata, content=properties_content, content_type=properties_content_type) + + +def logic_integration_account_schema_update(cmd, client, + resource_group_name, + integration_account_name, + schema_name, + properties_schema_type, + location=None, + tags=None, + properties_target_namespace=None, + properties_document_name=None, + properties_file_name=None, + properties_metadata=None, + properties_content=None, + properties_content_type=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, schema_name=schema_name, location=location, tags=tags, schema_type=properties_schema_type, target_namespace=properties_target_namespace, document_name=properties_document_name, file_name=properties_file_name, metadata=properties_metadata, content=properties_content, content_type=properties_content_type) + + +def logic_integration_account_schema_delete(cmd, client, + resource_group_name, + integration_account_name, + schema_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, schema_name=schema_name) + + +def logic_integration_account_schema_list_content_callback_url(cmd, client, + resource_group_name, + integration_account_name, + schema_name, + not_after=None, + key_type=None): + return client.list_content_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, schema_name=schema_name, not_after=not_after, key_type=key_type) + + +def logic_integration_account_map_list(cmd, client, + resource_group_name, + integration_account_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top, filter=filter) + + +def logic_integration_account_map_show(cmd, client, + resource_group_name, + integration_account_name, + map_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, map_name=map_name) + + +def logic_integration_account_map_create(cmd, client, + resource_group_name, + integration_account_name, + map_name, + properties_map_type, + location=None, + tags=None, + properties_parameters_schema=None, + properties_content=None, + properties_content_type=None, + properties_metadata=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, map_name=map_name, location=location, tags=tags, map_type=properties_map_type, parameters_schema=properties_parameters_schema, content=properties_content, content_type=properties_content_type, metadata=properties_metadata) + + +def logic_integration_account_map_update(cmd, client, + resource_group_name, + integration_account_name, + map_name, + properties_map_type, + location=None, + tags=None, + properties_parameters_schema=None, + properties_content=None, + properties_content_type=None, + properties_metadata=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, map_name=map_name, location=location, tags=tags, map_type=properties_map_type, parameters_schema=properties_parameters_schema, content=properties_content, content_type=properties_content_type, metadata=properties_metadata) + + +def logic_integration_account_map_delete(cmd, client, + resource_group_name, + integration_account_name, + map_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, map_name=map_name) + + +def logic_integration_account_map_list_content_callback_url(cmd, client, + resource_group_name, + integration_account_name, + map_name, + not_after=None, + key_type=None): + return client.list_content_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, map_name=map_name, not_after=not_after, key_type=key_type) + + +def logic_integration_account_partner_list(cmd, client, + resource_group_name, + integration_account_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top, filter=filter) + + +def logic_integration_account_partner_show(cmd, client, + resource_group_name, + integration_account_name, + partner_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, partner_name=partner_name) + + +def logic_integration_account_partner_create(cmd, client, + resource_group_name, + integration_account_name, + partner_name, + properties_partner_type, + properties_content, + location=None, + tags=None, + properties_metadata=None): + properties_content = json.loads(properties_content) if isinstance(properties_content, str) else properties_content + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, partner_name=partner_name, location=location, tags=tags, partner_type=properties_partner_type, metadata=properties_metadata, content=properties_content) + + +def logic_integration_account_partner_update(cmd, client, + resource_group_name, + integration_account_name, + partner_name, + properties_partner_type, + properties_content, + location=None, + tags=None, + properties_metadata=None): + properties_content = json.loads(properties_content) if isinstance(properties_content, str) else properties_content + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, partner_name=partner_name, location=location, tags=tags, partner_type=properties_partner_type, metadata=properties_metadata, content=properties_content) + + +def logic_integration_account_partner_delete(cmd, client, + resource_group_name, + integration_account_name, + partner_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, partner_name=partner_name) + + +def logic_integration_account_partner_list_content_callback_url(cmd, client, + resource_group_name, + integration_account_name, + partner_name, + not_after=None, + key_type=None): + return client.list_content_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, partner_name=partner_name, not_after=not_after, key_type=key_type) + + +def logic_integration_account_agreement_list(cmd, client, + resource_group_name, + integration_account_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top, filter=filter) + + +def logic_integration_account_agreement_show(cmd, client, + resource_group_name, + integration_account_name, + agreement_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, agreement_name=agreement_name) + + +def logic_integration_account_agreement_create(cmd, client, + resource_group_name, + integration_account_name, + agreement_name, + properties_agreement_type, + properties_host_partner, + properties_guest_partner, + properties_host_identity, + properties_guest_identity, + properties_content, + location=None, + tags=None, + properties_metadata=None): + properties_content = json.loads(properties_content) if isinstance(properties_content, str) else properties_content + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, agreement_name=agreement_name, location=location, tags=tags, metadata=properties_metadata, agreement_type=properties_agreement_type, host_partner=properties_host_partner, guest_partner=properties_guest_partner, host_identity=properties_host_identity, guest_identity=properties_guest_identity, content=properties_content) + + +def logic_integration_account_agreement_update(cmd, client, + resource_group_name, + integration_account_name, + agreement_name, + properties_agreement_type, + properties_host_partner, + properties_guest_partner, + properties_host_identity, + properties_guest_identity, + properties_content, + location=None, + tags=None, + properties_metadata=None): + properties_content = json.loads(properties_content) if isinstance(properties_content, str) else properties_content + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, agreement_name=agreement_name, location=location, tags=tags, metadata=properties_metadata, agreement_type=properties_agreement_type, host_partner=properties_host_partner, guest_partner=properties_guest_partner, host_identity=properties_host_identity, guest_identity=properties_guest_identity, content=properties_content) + + +def logic_integration_account_agreement_delete(cmd, client, + resource_group_name, + integration_account_name, + agreement_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, agreement_name=agreement_name) + + +def logic_integration_account_agreement_list_content_callback_url(cmd, client, + resource_group_name, + integration_account_name, + agreement_name, + not_after=None, + key_type=None): + return client.list_content_callback_url(resource_group_name=resource_group_name, integration_account_name=integration_account_name, agreement_name=agreement_name, not_after=not_after, key_type=key_type) + + +def logic_integration_account_certificate_list(cmd, client, + resource_group_name, + integration_account_name, + top=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top) + + +def logic_integration_account_certificate_show(cmd, client, + resource_group_name, + integration_account_name, + certificate_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, certificate_name=certificate_name) + + +def logic_integration_account_certificate_create(cmd, client, + resource_group_name, + integration_account_name, + certificate_name, + location=None, + tags=None, + properties_metadata=None, + properties_key=None, + properties_public_certificate=None): + properties_key = json.loads(properties_key) if isinstance(properties_key, str) else properties_key + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, certificate_name=certificate_name, location=location, tags=tags, metadata=properties_metadata, key=properties_key, public_certificate=properties_public_certificate) + + +def logic_integration_account_certificate_update(cmd, client, + resource_group_name, + integration_account_name, + certificate_name, + location=None, + tags=None, + properties_metadata=None, + properties_key=None, + properties_public_certificate=None): + properties_key = json.loads(properties_key) if isinstance(properties_key, str) else properties_key + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, certificate_name=certificate_name, location=location, tags=tags, metadata=properties_metadata, key=properties_key, public_certificate=properties_public_certificate) + + +def logic_integration_account_certificate_delete(cmd, client, + resource_group_name, + integration_account_name, + certificate_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, certificate_name=certificate_name) + + +def logic_integration_account_session_list(cmd, client, + resource_group_name, + integration_account_name, + top=None, + filter=None): + return client.list(resource_group_name=resource_group_name, integration_account_name=integration_account_name, top=top, filter=filter) + + +def logic_integration_account_session_show(cmd, client, + resource_group_name, + integration_account_name, + session_name): + return client.get(resource_group_name=resource_group_name, integration_account_name=integration_account_name, session_name=session_name) + + +def logic_integration_account_session_create(cmd, client, + resource_group_name, + integration_account_name, + session_name, + location=None, + tags=None, + properties_content=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, session_name=session_name, location=location, tags=tags, content=properties_content) + + +def logic_integration_account_session_update(cmd, client, + resource_group_name, + integration_account_name, + session_name, + location=None, + tags=None, + properties_content=None): + return client.create_or_update(resource_group_name=resource_group_name, integration_account_name=integration_account_name, session_name=session_name, location=location, tags=tags, content=properties_content) + + +def logic_integration_account_session_delete(cmd, client, + resource_group_name, + integration_account_name, + session_name): + return client.delete(resource_group_name=resource_group_name, integration_account_name=integration_account_name, session_name=session_name) + + +def logic_integration_service_environment_list(cmd, client, + resource_group=None, + top=None): + if resource_group is not None: + return client.list_by_resource_group(resource_group=resource_group, top=top) + return client.list_by_subscription(top=top) + + +def logic_integration_service_environment_show(cmd, client, + resource_group, + integration_service_environment_name): + return client.get(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_create(cmd, client, + resource_group, + integration_service_environment_name, + location=None, + tags=None, + properties=None, + sku=None): + properties = json.loads(properties) if isinstance(properties, str) else properties + return client.begin_create_or_update(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, location=location, tags=tags, properties=properties, sku=sku) + + +def logic_integration_service_environment_update(cmd, client, + resource_group, + integration_service_environment_name, + location=None, + tags=None, + properties=None, + sku=None): + properties = json.loads(properties) if isinstance(properties, str) else properties + return client.begin_update(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, location=location, tags=tags, properties=properties, sku=sku) + + +def logic_integration_service_environment_delete(cmd, client, + resource_group, + integration_service_environment_name): + return client.delete(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_restart(cmd, client, + resource_group, + integration_service_environment_name): + return client.restart(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_sku_list(cmd, client, + resource_group, + integration_service_environment_name): + return client.list(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_network_health_show(cmd, client, + resource_group, + integration_service_environment_name): + return client.get(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_managed_api_list(cmd, client, + resource_group, + integration_service_environment_name): + return client.list(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name) + + +def logic_integration_service_environment_managed_api_show(cmd, client, + resource_group, + integration_service_environment_name, + api_name): + return client.get(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name) + + +def logic_integration_service_environment_managed_api_delete(cmd, client, + resource_group, + integration_service_environment_name, + api_name): + return client.begin_delete(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name) + + +def logic_integration_service_environment_managed_api_put(cmd, client, + resource_group, + integration_service_environment_name, + api_name): + return client.begin_put(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name) + + +def logic_integration_service_environment_managed_api_operation_list(cmd, client, + resource_group, + integration_service_environment_name, + api_name): + return client.list(resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name) diff --git a/src/logic/azext_logic/tests/latest/__init__.py b/src/logic/azext_logic/tests/latest/__init__.py new file mode 100644 index 00000000000..944e5654667 --- /dev/null +++ b/src/logic/azext_logic/tests/latest/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/logic/azext_logic/tests/latest/preparers.py b/src/logic/azext_logic/tests/latest/preparers.py new file mode 100644 index 00000000000..48c7b77dcaf --- /dev/null +++ b/src/logic/azext_logic/tests/latest/preparers.py @@ -0,0 +1,111 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +from datetime import datetime +from azure.cli.testsdk.preparers import NoTrafficRecordingPreparer +from azure_devtools.scenario_tests import SingleValueReplacer +from azure.cli.testsdk.exceptions import CliTestError +from azure.cli.testsdk.reverse_dependency import get_dummy_cli + + +KEY_RESOURCE_GROUP = 'rg' +KEY_VIRTUAL_NETWORK = 'vnet' +KEY_VNET_SUBNET = 'subnet' + + +class VirtualNetworkPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest.vn', + parameter_name='virtual_network', + resource_group_name=None, + resource_group_key=KEY_RESOURCE_GROUP, + dev_setting_name='AZURE_CLI_TEST_DEV_VIRTUAL_NETWORK_NAME', + random_name_length=24, key=KEY_VIRTUAL_NETWORK): + if ' ' in name_prefix: + raise CliTestError( + 'Error: Space character in name prefix \'%s\'' % name_prefix) + super(VirtualNetworkPreparer, self).__init__( + name_prefix, random_name_length) + self.cli_ctx = get_dummy_cli() + self.parameter_name = parameter_name + self.key = key + self.resource_group_name = resource_group_name + self.resource_group_key = resource_group_key + self.dev_setting_name = os.environ.get(dev_setting_name, None) + + def create_resource(self, name, **kwargs): + if self.dev_setting_name: + return {self.parameter_name: self.dev_setting_name, } + + if not self.resource_group_name: + self.resource_group_name = self.test_class_instance.kwargs.get( + self.resource_group_key) + if not self.resource_group_name: + raise CliTestError("Error: No resource group configured!") + + tags = {'product': 'azurecli', 'cause': 'automation', + 'date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')} + if 'ENV_JOB_NAME' in os.environ: + tags['job'] = os.environ['ENV_JOB_NAME'] + tags = ' '.join(['{}={}'.format(key, value) + for key, value in tags.items()]) + template = 'az network vnet create --resource-group {} --name {} --tag ' + tags + self.live_only_execute(self.cli_ctx, template.format( + self.resource_group_name, name)) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # delete vnet if test is being recorded and if the vnet is not a dev rg + if not self.dev_setting_name: + self.live_only_execute( + self.cli_ctx, 'az network vnet delete --name {} --resource-group {}'.format(name, self.resource_group_name)) + + +class VnetSubnetPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest.vn', + parameter_name='subnet', + resource_group_name=None, + resource_group_key=KEY_RESOURCE_GROUP, + vnet_name=None, + vnet_key=KEY_VIRTUAL_NETWORK, + address_prefixes="11.0.0.0/24", + dev_setting_name='AZURE_CLI_TEST_DEV_VNET_SUBNET_NAME', + random_name_length=24, key=KEY_VNET_SUBNET): + if ' ' in name_prefix: + raise CliTestError( + 'Error: Space character in name prefix \'%s\'' % name_prefix) + super(VnetSubnetPreparer, self).__init__( + name_prefix, random_name_length) + self.cli_ctx = get_dummy_cli() + self.parameter_name = parameter_name + self.key = key + self.resource_group_name = resource_group_name + self.resource_group_key = resource_group_key + self.vnet_name = vnet_name + self.vnet_key = vnet_key + self.address_prefixes = address_prefixes + self.dev_setting_name = os.environ.get(dev_setting_name, None) + + def create_resource(self, name, **kwargs): + if self.dev_setting_name: + return {self.parameter_name: self.dev_setting_name, } + + if not self.resource_group_name: + self.resource_group_name = self.test_class_instance.kwargs.get( + self.resource_group_key) + if not self.resource_group_name: + raise CliTestError("Error: No resource group configured!") + if not self.vnet_name: + self.vnet_name = self.test_class_instance.kwargs.get(self.vnet_key) + if not self.vnet_name: + raise CliTestError("Error: No vnet configured!") + + self.test_class_instance.kwargs[self.key] = 'default' + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + pass diff --git a/src/logic/azext_logic/tests/latest/test_logic_scenario.py b/src/logic/azext_logic/tests/latest/test_logic_scenario.py new file mode 100644 index 00000000000..5789355e310 --- /dev/null +++ b/src/logic/azext_logic/tests/latest/test_logic_scenario.py @@ -0,0 +1,903 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure_devtools.scenario_tests import AllowLargeResponse +from azure.cli.testsdk import ScenarioTest +from azure.cli.testsdk import ResourceGroupPreparer +from .preparers import VirtualNetworkPreparer + + +TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) + + +class LogicManagementClientScenarioTest(ScenarioTest): + + def current_subscription(self): + subs = self.cmd('az account show').get_output_in_json() + return subs['id'] + + @ResourceGroupPreparer(name_prefix='cli_test_logic_test-resource-group'[:9], key='rg') + @ResourceGroupPreparer(name_prefix='cli_test_logic_testResourceGroup'[:9], key='rg_2') + @ResourceGroupPreparer(name_prefix='cli_test_logic_testrg123'[:9], key='rg_3') + @VirtualNetworkPreparer(name_prefix='cli_test_logic_testVNET'[:9], key='vn', resource_group_key='rg_2') + def test_logic(self, resource_group): + + self.kwargs.update({ + 'subscription_id': self.current_subscription() + }) + + self.kwargs.update({ + 'test-integration-account': self.create_random_name(prefix='cli_test_integration_accounts'[:9], length=24), + 'IntegrationAccounts_2': self.create_random_name(prefix='cli_test_integration_accounts'[:9], length=24), + 'IntegrationAccounts_3': self.create_random_name(prefix='cli_test_integration_accounts'[:9], length=24), + 'IntegrationAccounts_4': self.create_random_name(prefix='cli_test_integration_accounts'[:9], length=24), + 'testIntegrationServiceEnvironment': self.create_random_name(prefix='cli_test_integration_service_environments'[:9], length=24), + 'test-workflow': self.create_random_name(prefix='cli_test_workflows'[:9], length=24), + 'Workflows_2': self.create_random_name(prefix='cli_test_workflows'[:9], length=24), + 'Workflows_3': self.create_random_name(prefix='cli_test_workflows'[:9], length=24), + 'Workflows_4': self.create_random_name(prefix='cli_test_workflows'[:9], length=24), + }) + + self.cmd('az logic integration-account create ' + '--location "westus" ' + '--sku name=Standard ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow create ' + '--resource-group "{rg}" ' + '--location "brazilsouth" ' + '--properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object]=undefined contentVersion=1.0.0.0 outputs=[object Object]=undefined parameters=[object Object]=undefined triggers=[object Object]=undefined ' + '--properties-integration-account id=/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Logic/integrationAccounts/{test-integration-account} ' + '--properties-parameters "{{\\"$connections\\":{{\\"value\\":{{\\"test-custom-connector\\":{{\\"connectionId\\":\\"/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Web/connections/test-custom-connector\\",\\"connectionName\\":\\"test-custom-connector\\",\\"id\\":\\"/subscriptions/{subscription_id}/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\\"}}}}}}}}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account-map create ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--location "westus" ' + '--properties-content "\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n" ' + '--properties-content-type "application/xml" ' + '--properties-map-type "Xslt" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment create ' + '--location "brazilsouth" ' + '--properties "{{\\"networkConfiguration\\":{{\\"accessEndpoint\\":{{\\"type\\":\\"Internal\\"}},\\"subnets\\":[{{\\"id\\":\\"/subscriptions/{subscription_id}/resourceGroups/{rg_2}/providers/Microsoft.Network/virtualNetworks/{vn}/subnets/default\\"}},{{\\"id\\":\\"/subscriptions/{subscription_id}/resourceGroups/{rg_2}/providers/Microsoft.Network/virtualNetworks/{vn}/subnets/default\\"}},{{\\"id\\":\\"/subscriptions/{subscription_id}/resourceGroups/{rg_2}/providers/Microsoft.Network/virtualNetworks/{vn}/subnets/default\\"}},{{\\"id\\":\\"/subscriptions/{subscription_id}/resourceGroups/{rg_2}/providers/Microsoft.Network/virtualNetworks/{vn}/subnets/default\\"}}]}}}}" ' + '--sku name=Premium capacity=2 ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-schema create ' + '--location "westus" ' + '--properties-content "\\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n" ' + '--properties-content-type "application/xml" ' + '--properties-schema-type "Xml" ' + '--tags integrationAccountSchemaName=IntegrationAccountSchema8120 ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic integration-account-session create ' + '--integration-account-name "{IntegrationAccounts_3}" ' + '--resource-group "{rg_3}" ' + '--properties-content controlNumber=1234 controlNumberChangedTime=2017-02-21T22:30:11.9923759Z ' + '--session-name "testsession123-ICN"', + checks=[]) + + self.cmd('az logic integration-account-partner create ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--location "westus" ' + '--properties-content "{{\\"b2b\\":{{\\"businessIdentities\\":[{{\\"qualifier\\":\\"AA\\",\\"value\\":\\"ZZ\\"}}]}}}}" ' + '--properties-partner-type "B2B" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement create ' + '--location "westus" ' + '--properties-agreement-type "AS2" ' + '--properties-content "{{\\"aS2\\":{{\\"receiveAgreement\\":{{\\"protocolSettings\\":{{\\"acknowledgementConnectionSettings\\":{{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true}},\\"envelopeSettings\\":{{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\":\\"Test\\",\\"messageContentType\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\":true,\\"transmitFileNameInMimeHeader\\":true}},\\"errorSettings\\":{{\\"resendIfMDNNotReceived\\":true,\\"suspendDuplicateMessage\\":true}},\\"mdnSettings\\":{{\\"dispositionNotificationTo\\":\\"http://tempuri.org\\",\\"mdnText\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":true,\\"receiptDeliveryUrl\\":\\"http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"sendMDNAsynchronously\\":true,\\"signMDN\\":true,\\"signOutboundMDNIfOptional\\":true}},\\"messageConnectionSettings\\":{{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true}},\\"securitySettings\\":{{\\"enableNRRForInboundDecodedMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true,\\"enableNRRForInboundMDN\\":true,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRForOutboundEncodedMessages\\":true,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCertificate\\":false}},\\"validationSettings\\":{{\\"checkCertificateRevocationListOnReceive\\":true,\\"checkCertificateRevocationListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMessage\\":true,\\"encryptMessage\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDuplicatesValidityDays\\":100,\\"overrideMessageProperties\\":true,\\"signMessage\\":false}}}},\\"receiverBusinessIdentity\\":{{\\"qualifier\\":\\"ZZ\\",\\"value\\":\\"ZZ\\"}},\\"senderBusinessIdentity\\":{{\\"qualifier\\":\\"AA\\",\\"value\\":\\"AA\\"}}}},\\"sendAgreement\\":{{\\"protocolSettings\\":{{\\"acknowledgementConnectionSettings\\":{{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true}},\\"envelopeSettings\\":{{\\"autogenerateFileName\\":true,\\"fileNameTemplate\\":\\"Test\\",\\"messageContentType\\":\\"text/plain\\",\\"suspendMessageOnFileNameGenerationError\\":true,\\"transmitFileNameInMimeHeader\\":true}},\\"errorSettings\\":{{\\"resendIfMDNNotReceived\\":true,\\"suspendDuplicateMessage\\":true}},\\"mdnSettings\\":{{\\"dispositionNotificationTo\\":\\"http://tempuri.org\\",\\"mdnText\\":\\"Sample\\",\\"micHashingAlgorithm\\":\\"SHA1\\",\\"needMDN\\":true,\\"receiptDeliveryUrl\\":\\"http://tempuri.org\\",\\"sendInboundMDNToMessageBox\\":true,\\"sendMDNAsynchronously\\":true,\\"signMDN\\":true,\\"signOutboundMDNIfOptional\\":true}},\\"messageConnectionSettings\\":{{\\"ignoreCertificateNameMismatch\\":true,\\"keepHttpConnectionAlive\\":true,\\"supportHttpStatusCodeContinue\\":true,\\"unfoldHttpHeaders\\":true}},\\"securitySettings\\":{{\\"enableNRRForInboundDecodedMessages\\":true,\\"enableNRRForInboundEncodedMessages\\":true,\\"enableNRRForInboundMDN\\":true,\\"enableNRRForOutboundDecodedMessages\\":true,\\"enableNRRForOutboundEncodedMessages\\":true,\\"enableNRRForOutboundMDN\\":true,\\"overrideGroupSigningCertificate\\":false}},\\"validationSettings\\":{{\\"checkCertificateRevocationListOnReceive\\":true,\\"checkCertificateRevocationListOnSend\\":true,\\"checkDuplicateMessage\\":true,\\"compressMessage\\":true,\\"encryptMessage\\":false,\\"encryptionAlgorithm\\":\\"AES128\\",\\"interchangeDuplicatesValidityDays\\":100,\\"overrideMessageProperties\\":true,\\"signMessage\\":false}}}},\\"receiverBusinessIdentity\\":{{\\"qualifier\\":\\"AA\\",\\"value\\":\\"AA\\"}},\\"senderBusinessIdentity\\":{{\\"qualifier\\":\\"ZZ\\",\\"value\\":\\"ZZ\\"}}}}}}}}" ' + '--properties-guest-identity qualifier=AA value=AA ' + '--properties-guest-partner "GuestPartner" ' + '--properties-host-identity qualifier=ZZ value=ZZ ' + '--properties-host-partner "HostPartner" ' + '--tags IntegrationAccountAgreement= ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-certificate create ' + '--location "brazilsouth" ' + '--properties-key "{{\\"keyName\\":\\"\\",\\"keyVault\\":{{\\"id\\":\\"/subscriptions/{subscription_id}/resourcegroups/{rg_2}/providers/microsoft.keyvault/vaults/\\"}},\\"keyVersion\\":\\"87d9764197604449b9b8eb7bd8710868\\"}}" ' + '--properties-public-certificate "" ' + '--certificate-name "testCertificate" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-assembly create ' + '--location "westus" ' + '--properties assembly-name=System.IdentityModel.Tokens.Jwt content=Base64 encoded=undefined Assembly=undefined Content=undefined metadata=[object Object]=undefined ' + '--assembly-artifact-name "testAssembly" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-batch-configuration create ' + '--location "westus" ' + '--properties "{{\\"batchGroupName\\":\\"DEFAULT\\",\\"releaseCriteria\\":{{\\"batchSize\\":234567,\\"messageCount\\":10,\\"recurrence\\":{{\\"frequency\\":\\"Minute\\",\\"interval\\":1,\\"startTime\\":\\"2017-03-24T11:43:00\\",\\"timeZone\\":\\"India Standard Time\\"}}}}}}" ' + '--batch-configuration-name "testBatchConfiguration" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-run-action-repetition-request-history show ' + '--action-name "HTTP_Webhook" ' + '--repetition-name "000001" ' + '--request-history-name "08586611142732800686" ' + '--resource-group "{rg}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run-action-request-history show ' + '--action-name "HTTP_Webhook" ' + '--request-history-name "08586611142732800686" ' + '--resource-group "{rg}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run-action-scope-repetition show ' + '--action-name "for_each" ' + '--repetition-name "000000" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic workflow-run-action-repetition show ' + '--action-name "testAction" ' + '--repetition-name "000001" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic integration-account-batch-configuration show ' + '--batch-configuration-name "testBatchConfiguration" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api list ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api show ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api put ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api-operation list ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-assembly show ' + '--assembly-artifact-name "testAssembly" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment-network-health show ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-certificate show ' + '--certificate-name "testCertificate" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger-history show ' + '--history-name "08586676746934337772206998657CU22" ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTriggerName" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic integration-account-agreement show ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner show ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-session show ' + '--integration-account-name "{IntegrationAccounts_3}" ' + '--resource-group "{rg_3}" ' + '--session-name "testsession123-ICN"', + checks=[]) + + self.cmd('az logic integration-account-schema show ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic workflow-run-operation show ' + '--operation-id "ebdcbbde-c4db-43ec-987c-fd0f7726f43b" ' + '--resource-group "{rg_2}" ' + '--run-name "08586774142730039209110422528" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment show ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic workflow-run-action show ' + '--action-name "HTTP" ' + '--resource-group "{rg}" ' + '--run-name "08586676746934337772206998657CU22" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account-map show ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger show ' + '--resource-group "{rg}" ' + '--trigger-name "manual" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-version show ' + '--resource-group "{rg}" ' + '--version-id "08586676824806722526" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account show ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-run show ' + '--resource-group "{rg}" ' + '--run-name "08586676746934337772206998657CU22" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow show ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run-action-repetition-request-history list ' + '--action-name "HTTP_Webhook" ' + '--repetition-name "000001" ' + '--resource-group "{rg}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api list ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api show ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api put ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api-operation list ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic workflow-run-action-request-history list ' + '--action-name "HTTP_Webhook" ' + '--resource-group "{rg}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run-action-scope-repetition list ' + '--action-name "for_each" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api list ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api show ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api put ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api-operation list ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic workflow-run-action-repetition list ' + '--action-name "testAction" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment-sku list ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-batch-configuration list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger-history list ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTriggerName" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic integration-account-certificate list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-assembly list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-session list ' + '--integration-account-name "{IntegrationAccounts_3}" ' + '--resource-group "{rg_3}"', + checks=[]) + + self.cmd('az logic integration-account-schema list ' + '--integration-account-name "{IntegrationAccounts_4}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-map list ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-run-action list ' + '--resource-group "{rg}" ' + '--run-name "08586676746934337772206998657CU22" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-version list ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-trigger list ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run list ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-service-environment list ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account list ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow list ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az logic integration-service-environment list', + checks=[]) + + self.cmd('az logic integration-account list', + checks=[]) + + self.cmd('az logic workflow list', + checks=[]) + + self.cmd('az logic workflow-run-action-repetition list-expression-trace ' + '--action-name "testAction" ' + '--repetition-name "000001" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic integration-account-assembly list-content-callback-url ' + '--assembly-artifact-name "testAssembly" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-schema list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic integration-account-map list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement list-content-callback-url ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-schema list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic integration-account-map list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement list-content-callback-url ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-schema list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic integration-account-map list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement list-content-callback-url ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-version-trigger list-callback-url ' + '--key-type "Primary" ' + '--not-after "2017-03-05T08:00:00Z" ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTriggerName" ' + '--version-id "testWorkflowVersionId" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api list ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api show ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api put ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api-operation list ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-schema list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic integration-account-map list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner list-content-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement list-content-callback-url ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-run-action list-expression-trace ' + '--action-name "testAction" ' + '--resource-group "{rg_2}" ' + '--run-name "08586776228332053161046300351" ' + '--workflow-name "{Workflows_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger-history resubmit ' + '--history-name "testHistoryName" ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTriggerName" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic integration-service-environment restart ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account regenerate-access-key ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger list-callback-url ' + '--resource-group "{rg}" ' + '--trigger-name "manual" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account log-tracking-event ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--events "[{{\\"error\\":{{\\"code\\":\\"NotFound\\",\\"message\\":\\"Some error occurred\\"}},\\"eventLevel\\":\\"Informational\\",\\"eventTime\\":\\"2016-08-05T01:54:49.505567Z\\",\\"record\\":{{\\"agreementProperties\\":{{\\"agreementName\\":\\"testAgreement\\",\\"as2From\\":\\"testas2from\\",\\"as2To\\":\\"testas2to\\",\\"receiverPartnerName\\":\\"testPartner2\\",\\"senderPartnerName\\":\\"testPartner1\\"}},\\"messageProperties\\":{{\\"IsMessageEncrypted\\":false,\\"IsMessageSigned\\":false,\\"correlationMessageId\\":\\"Unique message identifier\\",\\"direction\\":\\"Receive\\",\\"dispositionType\\":\\"received-success\\",\\"fileName\\":\\"test\\",\\"isMdnExpected\\":true,\\"isMessageCompressed\\":false,\\"isMessageFailed\\":false,\\"isNrrEnabled\\":true,\\"mdnType\\":\\"Async\\",\\"messageId\\":\\"12345\\"}}}},\\"recordType\\":\\"AS2Message\\"}}]" ' + '--source-type "Microsoft.Logic/workflows" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment update ' + '--sku name=Developer capacity=0 ' + '--tags tag1=value1 ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account list-key-vault-key ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-vault id=subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault ' + '--skip-token "testSkipToken" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger reset ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTrigger" ' + '--workflow-name "{Workflows_4}"', + checks=[]) + + self.cmd('az logic integration-account list-callback-url ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--key-type "Primary" ' + '--not-after "2017-03-05T08:00:00Z" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow-trigger reset ' + '--resource-group "{rg_2}" ' + '--source id=subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger ' + '--trigger-name "testTrigger" ' + '--workflow-name "{Workflows_4}"', + checks=[]) + + self.cmd('az logic workflow validate-by-location ' + '--location "brazilsouth" ' + '--resource-group "{rg}" ' + '--location "brazilsouth" ' + '--properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object]=undefined contentVersion=1.0.0.0 outputs=[object Object]=undefined parameters=[object Object]=undefined triggers=[object Object]=undefined ' + '--properties-integration-account id=/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Logic/integrationAccounts/{test-integration-account} ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow validate-by-resource-group ' + '--resource-group "{rg}" ' + '--location "brazilsouth" ' + '--properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object]=undefined contentVersion=1.0.0.0 outputs=[object Object]=undefined parameters=[object Object]=undefined triggers=[object Object]=undefined ' + '--properties-integration-account id=/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Logic/integrationAccounts/{test-integration-account} ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-trigger reset ' + '--resource-group "{rg_2}" ' + '--trigger-name "testTrigger" ' + '--workflow-name "{Workflows_4}"', + checks=[]) + + self.cmd('az logic workflow generate-upgraded-definition ' + '--target-schema-version "2016-06-01" ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-trigger run ' + '--resource-group "{rg}" ' + '--trigger-name "manual" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow-run cancel ' + '--resource-group "{rg}" ' + '--run-name "08586676746934337772206998657CU22" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow regenerate-access-key ' + '--resource-group "{rg_2}" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic integration-account update ' + '--location "westus" ' + '--sku name=Standard ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic workflow list-callback-url ' + '--key-type "Primary" ' + '--not-after "2018-04-19T16:00:00Z" ' + '--resource-group "{rg_2}" ' + '--workflow-name "{Workflows_4}"', + checks=[]) + + self.cmd('az logic workflow list-swagger ' + '--resource-group "{rg_2}" ' + '--workflow-name "{Workflows_3}"', + checks=[]) + + self.cmd('az logic workflow validate-by-location ' + '--location "brazilsouth" ' + '--resource-group "{rg}" ' + '--location "brazilsouth" ' + '--properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object]=undefined contentVersion=1.0.0.0 outputs=[object Object]=undefined parameters=[object Object]=undefined triggers=[object Object]=undefined ' + '--properties-integration-account id=/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Logic/integrationAccounts/{test-integration-account} ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow validate-by-resource-group ' + '--resource-group "{rg}" ' + '--location "brazilsouth" ' + '--properties-definition $schema=https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions=[object Object]=undefined contentVersion=1.0.0.0 outputs=[object Object]=undefined parameters=[object Object]=undefined triggers=[object Object]=undefined ' + '--properties-integration-account id=/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Logic/integrationAccounts/{test-integration-account} ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow disable ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow enable ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic workflow move ' + '--id "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName" ' + '--resource-group "{rg_2}" ' + '--workflow-name "{Workflows_4}"', + checks=[]) + + self.cmd('az logic workflow update ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account-batch-configuration delete ' + '--batch-configuration-name "testBatchConfiguration" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment-managed-api delete ' + '--api-name "servicebus" ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account-assembly delete ' + '--assembly-artifact-name "testAssembly" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-certificate delete ' + '--certificate-name "testCertificate" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-agreement delete ' + '--agreement-name "testAgreement" ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-partner delete ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--partner-name "testPartner" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account-session delete ' + '--integration-account-name "{IntegrationAccounts_3}" ' + '--resource-group "{rg_3}" ' + '--session-name "testsession123-ICN"', + checks=[]) + + self.cmd('az logic integration-account-schema delete ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}" ' + '--schema-name "testSchema"', + checks=[]) + + self.cmd('az logic workflow delete ' + '--resource-group "{rg}" ' + '--workflow-name "{test-workflow}"', + checks=[]) + + self.cmd('az logic integration-account-map delete ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--map-name "testMap" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-account delete ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment delete ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) + + self.cmd('az logic integration-account delete ' + '--integration-account-name "{IntegrationAccounts_2}" ' + '--resource-group "{rg_2}"', + checks=[]) + + self.cmd('az logic integration-service-environment delete ' + '--integration-service-environment-name "{testIntegrationServiceEnvironment}" ' + '--resource-group "testResourceGroup"', + checks=[]) diff --git a/src/logic/azext_logic/vendored_sdks/__init__.py b/src/logic/azext_logic/vendored_sdks/__init__.py new file mode 100644 index 00000000000..8d86d5a6be1 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/__init__.py @@ -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__) \ No newline at end of file diff --git a/src/logic/azext_logic/vendored_sdks/logic/__init__.py b/src/logic/azext_logic/vendored_sdks/logic/__init__.py new file mode 100644 index 00000000000..6763259b4b0 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/__init__.py @@ -0,0 +1,10 @@ +# 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 ._logic_management_client import LogicManagementClient +__all__ = ['LogicManagementClient'] diff --git a/src/logic/azext_logic/vendored_sdks/logic/_configuration.py b/src/logic/azext_logic/vendored_sdks/logic/_configuration.py new file mode 100644 index 00000000000..764eac71102 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/_configuration.py @@ -0,0 +1,60 @@ +# 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 typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +VERSION = "unknown" + +class LogicManagementClientConfiguration(Configuration): + """Configuration for LogicManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription id. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(LogicManagementClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2019-05-01" + self._configure(**kwargs) + self.user_agent_policy.add_user_agent('azsdk-python-logicmanagementclient/{}'.format(VERSION)) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, **kwargs) diff --git a/src/logic/azext_logic/vendored_sdks/logic/_logic_management_client.py b/src/logic/azext_logic/vendored_sdks/logic/_logic_management_client.py new file mode 100644 index 00000000000..0d8dfe51233 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/_logic_management_client.py @@ -0,0 +1,192 @@ +# 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 typing import Any, Optional + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +from ._configuration import LogicManagementClientConfiguration +from .operations import WorkflowOperations +from .operations import WorkflowVersionOperations +from .operations import WorkflowTriggerOperations +from .operations import WorkflowVersionTriggerOperations +from .operations import WorkflowTriggerHistoryOperations +from .operations import WorkflowRunOperations +from .operations import WorkflowRunActionOperations +from .operations import WorkflowRunActionRepetitionOperations +from .operations import WorkflowRunActionRepetitionRequestHistoryOperations +from .operations import WorkflowRunActionRequestHistoryOperations +from .operations import WorkflowRunActionScopeRepetitionOperations +from .operations import WorkflowRunOperationOperations +from .operations import IntegrationAccountOperations +from .operations import IntegrationAccountAssemblyOperations +from .operations import IntegrationAccountBatchConfigurationOperations +from .operations import IntegrationAccountSchemaOperations +from .operations import IntegrationAccountMapOperations +from .operations import IntegrationAccountPartnerOperations +from .operations import IntegrationAccountAgreementOperations +from .operations import IntegrationAccountCertificateOperations +from .operations import IntegrationAccountSessionOperations +from .operations import IntegrationServiceEnvironmentOperations +from .operations import IntegrationServiceEnvironmentSkuOperations +from .operations import IntegrationServiceEnvironmentNetworkHealthOperations +from .operations import IntegrationServiceEnvironmentManagedApiOperations +from .operations import IntegrationServiceEnvironmentManagedApiOperationOperations +from .operations import OperationOperations +from . import models + + +class LogicManagementClient(object): + """REST API for Azure Logic Apps. + + :ivar workflow: WorkflowOperations operations + :vartype workflow: logic_management_client.operations.WorkflowOperations + :ivar workflow_version: WorkflowVersionOperations operations + :vartype workflow_version: logic_management_client.operations.WorkflowVersionOperations + :ivar workflow_trigger: WorkflowTriggerOperations operations + :vartype workflow_trigger: logic_management_client.operations.WorkflowTriggerOperations + :ivar workflow_version_trigger: WorkflowVersionTriggerOperations operations + :vartype workflow_version_trigger: logic_management_client.operations.WorkflowVersionTriggerOperations + :ivar workflow_trigger_history: WorkflowTriggerHistoryOperations operations + :vartype workflow_trigger_history: logic_management_client.operations.WorkflowTriggerHistoryOperations + :ivar workflow_run: WorkflowRunOperations operations + :vartype workflow_run: logic_management_client.operations.WorkflowRunOperations + :ivar workflow_run_action: WorkflowRunActionOperations operations + :vartype workflow_run_action: logic_management_client.operations.WorkflowRunActionOperations + :ivar workflow_run_action_repetition: WorkflowRunActionRepetitionOperations operations + :vartype workflow_run_action_repetition: logic_management_client.operations.WorkflowRunActionRepetitionOperations + :ivar workflow_run_action_repetition_request_history: WorkflowRunActionRepetitionRequestHistoryOperations operations + :vartype workflow_run_action_repetition_request_history: logic_management_client.operations.WorkflowRunActionRepetitionRequestHistoryOperations + :ivar workflow_run_action_request_history: WorkflowRunActionRequestHistoryOperations operations + :vartype workflow_run_action_request_history: logic_management_client.operations.WorkflowRunActionRequestHistoryOperations + :ivar workflow_run_action_scope_repetition: WorkflowRunActionScopeRepetitionOperations operations + :vartype workflow_run_action_scope_repetition: logic_management_client.operations.WorkflowRunActionScopeRepetitionOperations + :ivar workflow_run_operation: WorkflowRunOperationOperations operations + :vartype workflow_run_operation: logic_management_client.operations.WorkflowRunOperationOperations + :ivar integration_account: IntegrationAccountOperations operations + :vartype integration_account: logic_management_client.operations.IntegrationAccountOperations + :ivar integration_account_assembly: IntegrationAccountAssemblyOperations operations + :vartype integration_account_assembly: logic_management_client.operations.IntegrationAccountAssemblyOperations + :ivar integration_account_batch_configuration: IntegrationAccountBatchConfigurationOperations operations + :vartype integration_account_batch_configuration: logic_management_client.operations.IntegrationAccountBatchConfigurationOperations + :ivar integration_account_schema: IntegrationAccountSchemaOperations operations + :vartype integration_account_schema: logic_management_client.operations.IntegrationAccountSchemaOperations + :ivar integration_account_map: IntegrationAccountMapOperations operations + :vartype integration_account_map: logic_management_client.operations.IntegrationAccountMapOperations + :ivar integration_account_partner: IntegrationAccountPartnerOperations operations + :vartype integration_account_partner: logic_management_client.operations.IntegrationAccountPartnerOperations + :ivar integration_account_agreement: IntegrationAccountAgreementOperations operations + :vartype integration_account_agreement: logic_management_client.operations.IntegrationAccountAgreementOperations + :ivar integration_account_certificate: IntegrationAccountCertificateOperations operations + :vartype integration_account_certificate: logic_management_client.operations.IntegrationAccountCertificateOperations + :ivar integration_account_session: IntegrationAccountSessionOperations operations + :vartype integration_account_session: logic_management_client.operations.IntegrationAccountSessionOperations + :ivar integration_service_environment: IntegrationServiceEnvironmentOperations operations + :vartype integration_service_environment: logic_management_client.operations.IntegrationServiceEnvironmentOperations + :ivar integration_service_environment_sku: IntegrationServiceEnvironmentSkuOperations operations + :vartype integration_service_environment_sku: logic_management_client.operations.IntegrationServiceEnvironmentSkuOperations + :ivar integration_service_environment_network_health: IntegrationServiceEnvironmentNetworkHealthOperations operations + :vartype integration_service_environment_network_health: logic_management_client.operations.IntegrationServiceEnvironmentNetworkHealthOperations + :ivar integration_service_environment_managed_api: IntegrationServiceEnvironmentManagedApiOperations operations + :vartype integration_service_environment_managed_api: logic_management_client.operations.IntegrationServiceEnvironmentManagedApiOperations + :ivar integration_service_environment_managed_api_operation: IntegrationServiceEnvironmentManagedApiOperationOperations operations + :vartype integration_service_environment_managed_api_operation: logic_management_client.operations.IntegrationServiceEnvironmentManagedApiOperationOperations + :ivar operation: OperationOperations operations + :vartype operation: logic_management_client.operations.OperationOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription id. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = LogicManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.workflow = WorkflowOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_version = WorkflowVersionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_trigger = WorkflowTriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_version_trigger = WorkflowVersionTriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_trigger_history = WorkflowTriggerHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run = WorkflowRunOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action = WorkflowRunActionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_repetition = WorkflowRunActionRepetitionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_repetition_request_history = WorkflowRunActionRepetitionRequestHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_request_history = WorkflowRunActionRequestHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_scope_repetition = WorkflowRunActionScopeRepetitionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_operation = WorkflowRunOperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account = IntegrationAccountOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_assembly = IntegrationAccountAssemblyOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_batch_configuration = IntegrationAccountBatchConfigurationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_schema = IntegrationAccountSchemaOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_map = IntegrationAccountMapOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_partner = IntegrationAccountPartnerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_agreement = IntegrationAccountAgreementOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_certificate = IntegrationAccountCertificateOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_session = IntegrationAccountSessionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment = IntegrationServiceEnvironmentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_sku = IntegrationServiceEnvironmentSkuOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_network_health = IntegrationServiceEnvironmentNetworkHealthOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_managed_api = IntegrationServiceEnvironmentManagedApiOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_managed_api_operation = IntegrationServiceEnvironmentManagedApiOperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operation = OperationOperations( + self._client, self._config, self._serialize, self._deserialize) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> LogicManagementClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/__init__.py b/src/logic/azext_logic/vendored_sdks/logic/aio/__init__.py new file mode 100644 index 00000000000..d1722987ad7 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/__init__.py @@ -0,0 +1,10 @@ +# 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 ._logic_management_client_async import LogicManagementClient +__all__ = ['LogicManagementClient'] diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/_configuration_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/_configuration_async.py new file mode 100644 index 00000000000..9b0ade29340 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/_configuration_async.py @@ -0,0 +1,58 @@ +# 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 typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +VERSION = "unknown" + +class LogicManagementClientConfiguration(Configuration): + """Configuration for LogicManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription id. + :type subscription_id: str + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(LogicManagementClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2019-05-01" + self._configure(**kwargs) + self.user_agent_policy.add_user_agent('azsdk-python-logicmanagementclient/{}'.format(VERSION)) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, **kwargs) diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/_logic_management_client_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/_logic_management_client_async.py new file mode 100644 index 00000000000..31b6bf138b3 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/_logic_management_client_async.py @@ -0,0 +1,188 @@ +# 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 typing import Any, Optional + +from azure.core import AsyncPipelineClient +from msrest import Deserializer, Serializer + +from ._configuration_async import LogicManagementClientConfiguration +from .operations_async import WorkflowOperations +from .operations_async import WorkflowVersionOperations +from .operations_async import WorkflowTriggerOperations +from .operations_async import WorkflowVersionTriggerOperations +from .operations_async import WorkflowTriggerHistoryOperations +from .operations_async import WorkflowRunOperations +from .operations_async import WorkflowRunActionOperations +from .operations_async import WorkflowRunActionRepetitionOperations +from .operations_async import WorkflowRunActionRepetitionRequestHistoryOperations +from .operations_async import WorkflowRunActionRequestHistoryOperations +from .operations_async import WorkflowRunActionScopeRepetitionOperations +from .operations_async import WorkflowRunOperationOperations +from .operations_async import IntegrationAccountOperations +from .operations_async import IntegrationAccountAssemblyOperations +from .operations_async import IntegrationAccountBatchConfigurationOperations +from .operations_async import IntegrationAccountSchemaOperations +from .operations_async import IntegrationAccountMapOperations +from .operations_async import IntegrationAccountPartnerOperations +from .operations_async import IntegrationAccountAgreementOperations +from .operations_async import IntegrationAccountCertificateOperations +from .operations_async import IntegrationAccountSessionOperations +from .operations_async import IntegrationServiceEnvironmentOperations +from .operations_async import IntegrationServiceEnvironmentSkuOperations +from .operations_async import IntegrationServiceEnvironmentNetworkHealthOperations +from .operations_async import IntegrationServiceEnvironmentManagedApiOperations +from .operations_async import IntegrationServiceEnvironmentManagedApiOperationOperations +from .operations_async import OperationOperations +from .. import models + + +class LogicManagementClient(object): + """REST API for Azure Logic Apps. + + :ivar workflow: WorkflowOperations operations + :vartype workflow: logic_management_client.aio.operations_async.WorkflowOperations + :ivar workflow_version: WorkflowVersionOperations operations + :vartype workflow_version: logic_management_client.aio.operations_async.WorkflowVersionOperations + :ivar workflow_trigger: WorkflowTriggerOperations operations + :vartype workflow_trigger: logic_management_client.aio.operations_async.WorkflowTriggerOperations + :ivar workflow_version_trigger: WorkflowVersionTriggerOperations operations + :vartype workflow_version_trigger: logic_management_client.aio.operations_async.WorkflowVersionTriggerOperations + :ivar workflow_trigger_history: WorkflowTriggerHistoryOperations operations + :vartype workflow_trigger_history: logic_management_client.aio.operations_async.WorkflowTriggerHistoryOperations + :ivar workflow_run: WorkflowRunOperations operations + :vartype workflow_run: logic_management_client.aio.operations_async.WorkflowRunOperations + :ivar workflow_run_action: WorkflowRunActionOperations operations + :vartype workflow_run_action: logic_management_client.aio.operations_async.WorkflowRunActionOperations + :ivar workflow_run_action_repetition: WorkflowRunActionRepetitionOperations operations + :vartype workflow_run_action_repetition: logic_management_client.aio.operations_async.WorkflowRunActionRepetitionOperations + :ivar workflow_run_action_repetition_request_history: WorkflowRunActionRepetitionRequestHistoryOperations operations + :vartype workflow_run_action_repetition_request_history: logic_management_client.aio.operations_async.WorkflowRunActionRepetitionRequestHistoryOperations + :ivar workflow_run_action_request_history: WorkflowRunActionRequestHistoryOperations operations + :vartype workflow_run_action_request_history: logic_management_client.aio.operations_async.WorkflowRunActionRequestHistoryOperations + :ivar workflow_run_action_scope_repetition: WorkflowRunActionScopeRepetitionOperations operations + :vartype workflow_run_action_scope_repetition: logic_management_client.aio.operations_async.WorkflowRunActionScopeRepetitionOperations + :ivar workflow_run_operation: WorkflowRunOperationOperations operations + :vartype workflow_run_operation: logic_management_client.aio.operations_async.WorkflowRunOperationOperations + :ivar integration_account: IntegrationAccountOperations operations + :vartype integration_account: logic_management_client.aio.operations_async.IntegrationAccountOperations + :ivar integration_account_assembly: IntegrationAccountAssemblyOperations operations + :vartype integration_account_assembly: logic_management_client.aio.operations_async.IntegrationAccountAssemblyOperations + :ivar integration_account_batch_configuration: IntegrationAccountBatchConfigurationOperations operations + :vartype integration_account_batch_configuration: logic_management_client.aio.operations_async.IntegrationAccountBatchConfigurationOperations + :ivar integration_account_schema: IntegrationAccountSchemaOperations operations + :vartype integration_account_schema: logic_management_client.aio.operations_async.IntegrationAccountSchemaOperations + :ivar integration_account_map: IntegrationAccountMapOperations operations + :vartype integration_account_map: logic_management_client.aio.operations_async.IntegrationAccountMapOperations + :ivar integration_account_partner: IntegrationAccountPartnerOperations operations + :vartype integration_account_partner: logic_management_client.aio.operations_async.IntegrationAccountPartnerOperations + :ivar integration_account_agreement: IntegrationAccountAgreementOperations operations + :vartype integration_account_agreement: logic_management_client.aio.operations_async.IntegrationAccountAgreementOperations + :ivar integration_account_certificate: IntegrationAccountCertificateOperations operations + :vartype integration_account_certificate: logic_management_client.aio.operations_async.IntegrationAccountCertificateOperations + :ivar integration_account_session: IntegrationAccountSessionOperations operations + :vartype integration_account_session: logic_management_client.aio.operations_async.IntegrationAccountSessionOperations + :ivar integration_service_environment: IntegrationServiceEnvironmentOperations operations + :vartype integration_service_environment: logic_management_client.aio.operations_async.IntegrationServiceEnvironmentOperations + :ivar integration_service_environment_sku: IntegrationServiceEnvironmentSkuOperations operations + :vartype integration_service_environment_sku: logic_management_client.aio.operations_async.IntegrationServiceEnvironmentSkuOperations + :ivar integration_service_environment_network_health: IntegrationServiceEnvironmentNetworkHealthOperations operations + :vartype integration_service_environment_network_health: logic_management_client.aio.operations_async.IntegrationServiceEnvironmentNetworkHealthOperations + :ivar integration_service_environment_managed_api: IntegrationServiceEnvironmentManagedApiOperations operations + :vartype integration_service_environment_managed_api: logic_management_client.aio.operations_async.IntegrationServiceEnvironmentManagedApiOperations + :ivar integration_service_environment_managed_api_operation: IntegrationServiceEnvironmentManagedApiOperationOperations operations + :vartype integration_service_environment_managed_api_operation: logic_management_client.aio.operations_async.IntegrationServiceEnvironmentManagedApiOperationOperations + :ivar operation: OperationOperations operations + :vartype operation: logic_management_client.aio.operations_async.OperationOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription id. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + **kwargs: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = LogicManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.workflow = WorkflowOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_version = WorkflowVersionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_trigger = WorkflowTriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_version_trigger = WorkflowVersionTriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_trigger_history = WorkflowTriggerHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run = WorkflowRunOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action = WorkflowRunActionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_repetition = WorkflowRunActionRepetitionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_repetition_request_history = WorkflowRunActionRepetitionRequestHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_request_history = WorkflowRunActionRequestHistoryOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_action_scope_repetition = WorkflowRunActionScopeRepetitionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workflow_run_operation = WorkflowRunOperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account = IntegrationAccountOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_assembly = IntegrationAccountAssemblyOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_batch_configuration = IntegrationAccountBatchConfigurationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_schema = IntegrationAccountSchemaOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_map = IntegrationAccountMapOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_partner = IntegrationAccountPartnerOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_agreement = IntegrationAccountAgreementOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_certificate = IntegrationAccountCertificateOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_account_session = IntegrationAccountSessionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment = IntegrationServiceEnvironmentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_sku = IntegrationServiceEnvironmentSkuOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_network_health = IntegrationServiceEnvironmentNetworkHealthOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_managed_api = IntegrationServiceEnvironmentManagedApiOperations( + self._client, self._config, self._serialize, self._deserialize) + self.integration_service_environment_managed_api_operation = IntegrationServiceEnvironmentManagedApiOperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operation = OperationOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "LogicManagementClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/__init__.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/__init__.py new file mode 100644 index 00000000000..46e654ae232 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/__init__.py @@ -0,0 +1,65 @@ +# 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 ._workflow_operations_async import WorkflowOperations +from ._workflow_version_operations_async import WorkflowVersionOperations +from ._workflow_trigger_operations_async import WorkflowTriggerOperations +from ._workflow_version_trigger_operations_async import WorkflowVersionTriggerOperations +from ._workflow_trigger_history_operations_async import WorkflowTriggerHistoryOperations +from ._workflow_run_operations_async import WorkflowRunOperations +from ._workflow_run_action_operations_async import WorkflowRunActionOperations +from ._workflow_run_action_repetition_operations_async import WorkflowRunActionRepetitionOperations +from ._workflow_run_action_repetition_request_history_operations_async import WorkflowRunActionRepetitionRequestHistoryOperations +from ._workflow_run_action_request_history_operations_async import WorkflowRunActionRequestHistoryOperations +from ._workflow_run_action_scope_repetition_operations_async import WorkflowRunActionScopeRepetitionOperations +from ._workflow_run_operation_operations_async import WorkflowRunOperationOperations +from ._integration_account_operations_async import IntegrationAccountOperations +from ._integration_account_assembly_operations_async import IntegrationAccountAssemblyOperations +from ._integration_account_batch_configuration_operations_async import IntegrationAccountBatchConfigurationOperations +from ._integration_account_schema_operations_async import IntegrationAccountSchemaOperations +from ._integration_account_map_operations_async import IntegrationAccountMapOperations +from ._integration_account_partner_operations_async import IntegrationAccountPartnerOperations +from ._integration_account_agreement_operations_async import IntegrationAccountAgreementOperations +from ._integration_account_certificate_operations_async import IntegrationAccountCertificateOperations +from ._integration_account_session_operations_async import IntegrationAccountSessionOperations +from ._integration_service_environment_operations_async import IntegrationServiceEnvironmentOperations +from ._integration_service_environment_sku_operations_async import IntegrationServiceEnvironmentSkuOperations +from ._integration_service_environment_network_health_operations_async import IntegrationServiceEnvironmentNetworkHealthOperations +from ._integration_service_environment_managed_api_operations_async import IntegrationServiceEnvironmentManagedApiOperations +from ._integration_service_environment_managed_api_operation_operations_async import IntegrationServiceEnvironmentManagedApiOperationOperations +from ._operation_operations_async import OperationOperations + +__all__ = [ + 'WorkflowOperations', + 'WorkflowVersionOperations', + 'WorkflowTriggerOperations', + 'WorkflowVersionTriggerOperations', + 'WorkflowTriggerHistoryOperations', + 'WorkflowRunOperations', + 'WorkflowRunActionOperations', + 'WorkflowRunActionRepetitionOperations', + 'WorkflowRunActionRepetitionRequestHistoryOperations', + 'WorkflowRunActionRequestHistoryOperations', + 'WorkflowRunActionScopeRepetitionOperations', + 'WorkflowRunOperationOperations', + 'IntegrationAccountOperations', + 'IntegrationAccountAssemblyOperations', + 'IntegrationAccountBatchConfigurationOperations', + 'IntegrationAccountSchemaOperations', + 'IntegrationAccountMapOperations', + 'IntegrationAccountPartnerOperations', + 'IntegrationAccountAgreementOperations', + 'IntegrationAccountCertificateOperations', + 'IntegrationAccountSessionOperations', + 'IntegrationServiceEnvironmentOperations', + 'IntegrationServiceEnvironmentSkuOperations', + 'IntegrationServiceEnvironmentNetworkHealthOperations', + 'IntegrationServiceEnvironmentManagedApiOperations', + 'IntegrationServiceEnvironmentManagedApiOperationOperations', + 'OperationOperations', +] diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_agreement_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_agreement_operations_async.py new file mode 100644 index 00000000000..862b9911748 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_agreement_operations_async.py @@ -0,0 +1,406 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountAgreementOperations: + """IntegrationAccountAgreementOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountAgreementListResult": + """Gets a list of integration account agreements. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreementListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreementListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountAgreementListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountAgreementListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + agreement_name: str, + **kwargs + ) -> "models.IntegrationAccountAgreement": + """Gets an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreement or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreement + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountAgreement"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + agreement_name: str, + agreement_type: Union[str, "models.AgreementType"], + host_partner: str, + guest_partner: str, + host_identity: "models.BusinessIdentity", + guest_identity: "models.BusinessIdentity", + content: "models.AgreementContent", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["models.IntegrationAccountAgreementPropertiesMetadata"] = None, + **kwargs + ) -> "models.IntegrationAccountAgreement": + """Creates or updates an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :param agreement_type: The agreement type. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: The integration account partner that is set as host partner for this + agreement. + :type host_partner: str + :param guest_partner: The integration account partner that is set as guest partner for this + agreement. + :type guest_partner: str + :param host_identity: The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreement or IntegrationAccountAgreement or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreement or ~logic_management_client.models.IntegrationAccountAgreement + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountAgreement"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + agreement = models.IntegrationAccountAgreement(location=location, tags=tags, metadata=metadata, agreement_type=agreement_type, host_partner=host_partner, guest_partner=guest_partner, host_identity=host_identity, guest_identity=guest_identity, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(agreement, 'IntegrationAccountAgreement') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + agreement_name: str, + **kwargs + ) -> None: + """Deletes an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + async def list_content_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + agreement_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_assembly_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_assembly_operations_async.py new file mode 100644 index 00000000000..cef56930625 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_assembly_operations_async.py @@ -0,0 +1,362 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountAssemblyOperations: + """IntegrationAccountAssemblyOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + **kwargs + ) -> "models.AssemblyCollection": + """List the assemblies for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyCollection or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.AssemblyCollection"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AssemblyCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + assembly_artifact_name: str, + **kwargs + ) -> "models.AssemblyDefinition": + """Get an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.AssemblyDefinition"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + assembly_artifact_name: str, + properties: "models.AssemblyProperties", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ) -> "models.AssemblyDefinition": + """Create or update an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :param properties: The assembly properties definition. + :type properties: ~logic_management_client.models.AssemblyProperties + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyDefinition or AssemblyDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyDefinition or ~logic_management_client.models.AssemblyDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.AssemblyDefinition"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + assembly_artifact = models.AssemblyDefinition(location=location, tags=tags, properties=properties) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(assembly_artifact, 'AssemblyDefinition') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + assembly_artifact_name: str, + **kwargs + ) -> None: + """Delete an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + async def list_content_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + assembly_artifact_name: str, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the content callback url for an integration account assembly. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_batch_configuration_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_batch_configuration_operations_async.py new file mode 100644 index 00000000000..c63f19797b7 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_batch_configuration_operations_async.py @@ -0,0 +1,303 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountBatchConfigurationOperations: + """IntegrationAccountBatchConfigurationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + **kwargs + ) -> "models.BatchConfigurationCollection": + """List the batch configurations for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfigurationCollection or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfigurationCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.BatchConfigurationCollection"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('BatchConfigurationCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + batch_configuration_name: str, + **kwargs + ) -> "models.BatchConfiguration": + """Get a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfiguration or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfiguration + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.BatchConfiguration"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + batch_configuration_name: str, + properties: "models.BatchConfigurationProperties", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ) -> "models.BatchConfiguration": + """Create or update a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :param properties: The batch configuration properties definition. + :type properties: ~logic_management_client.models.BatchConfigurationProperties + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfiguration or BatchConfiguration or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfiguration or ~logic_management_client.models.BatchConfiguration + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.BatchConfiguration"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + batch_configuration = models.BatchConfiguration(location=location, tags=tags, properties=properties) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(batch_configuration, 'BatchConfiguration') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + batch_configuration_name: str, + **kwargs + ) -> None: + """Delete a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_certificate_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_certificate_operations_async.py new file mode 100644 index 00000000000..182159fb303 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_certificate_operations_async.py @@ -0,0 +1,314 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountCertificateOperations: + """IntegrationAccountCertificateOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + **kwargs + ) -> "models.IntegrationAccountCertificateListResult": + """Gets a list of integration account certificates. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificateListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificateListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountCertificateListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountCertificateListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + certificate_name: str, + **kwargs + ) -> "models.IntegrationAccountCertificate": + """Gets an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificate or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificate + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountCertificate"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + certificate_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["models.IntegrationAccountCertificatePropertiesMetadata"] = None, + key: Optional["models.KeyVaultKeyReference"] = None, + public_certificate: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountCertificate": + """Creates or updates an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificate or IntegrationAccountCertificate or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificate or ~logic_management_client.models.IntegrationAccountCertificate + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountCertificate"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + certificate = models.IntegrationAccountCertificate(location=location, tags=tags, metadata=metadata, key=key, public_certificate=public_certificate) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(certificate, 'IntegrationAccountCertificate') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + certificate_name: str, + **kwargs + ) -> None: + """Deletes an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_map_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_map_operations_async.py new file mode 100644 index 00000000000..acb48d30504 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_map_operations_async.py @@ -0,0 +1,398 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountMapOperations: + """IntegrationAccountMapOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountMapListResult": + """Gets a list of integration account maps. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMapListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMapListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountMapListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountMapListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + map_name: str, + **kwargs + ) -> "models.IntegrationAccountMap": + """Gets an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMap or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMap + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountMap"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + map_name: str, + map_type: Union[str, "models.MapType"], + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + parameters_schema: Optional["models.IntegrationAccountMapPropertiesParametersSchema"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + metadata: Optional["models.IntegrationAccountMapPropertiesMetadata"] = None, + **kwargs + ) -> "models.IntegrationAccountMap": + """Creates or updates an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :param map_type: The map type. + :type map_type: str or ~logic_management_client.models.MapType + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMap or IntegrationAccountMap or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMap or ~logic_management_client.models.IntegrationAccountMap + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountMap"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + map = models.IntegrationAccountMap(location=location, tags=tags, map_type=map_type, parameters_schema=parameters_schema, content=content, content_type=content_type, metadata=metadata) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(map, 'IntegrationAccountMap') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + map_name: str, + **kwargs + ) -> None: + """Deletes an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + async def list_content_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + map_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_operations_async.py new file mode 100644 index 00000000000..00c9a406e9c --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_operations_async.py @@ -0,0 +1,720 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountOperations: + """IntegrationAccountOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top: Optional[int] = None, + **kwargs + ) -> "models.IntegrationAccountListResult": + """Gets a list of integration accounts by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationAccounts'} + + def list_by_resource_group( + self, + resource_group_name: str, + top: Optional[int] = None, + **kwargs + ) -> "models.IntegrationAccountListResult": + """Gets a list of integration accounts by resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + **kwargs + ) -> "models.IntegrationAccount": + """Gets an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccount"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + sku: Optional["models.IntegrationAccountSku"] = None, + integration_service_environment: Optional["models.IntegrationServiceEnvironment"] = None, + state: Optional[Union[str, "models.WorkflowState"]] = None, + **kwargs + ) -> "models.IntegrationAccount": + """Creates or updates an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount or ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccount"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + integration_account = models.IntegrationAccount(location=location, tags=tags, sku=sku, integration_service_environment=integration_service_environment, state=state) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_account, 'IntegrationAccount') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + async def update( + self, + resource_group_name: str, + integration_account_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + sku: Optional["models.IntegrationAccountSku"] = None, + integration_service_environment: Optional["models.IntegrationServiceEnvironment"] = None, + state: Optional[Union[str, "models.WorkflowState"]] = None, + **kwargs + ) -> "models.IntegrationAccount": + """Updates an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccount"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + integration_account = models.IntegrationAccount(location=location, tags=tags, sku=sku, integration_service_environment=integration_service_environment, state=state) + api_version = "2019-05-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_account, 'IntegrationAccount') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + **kwargs + ) -> None: + """Deletes an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + async def list_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.CallbackUrl": + """Gets the integration account callback URL. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.CallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.CallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('CallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listCallbackUrl'} + + def list_key_vault_key( + self, + resource_group_name: str, + integration_account_name: str, + key_vault: "models.KeyVaultReference", + skip_token: Optional[str] = None, + **kwargs + ) -> "models.KeyVaultKeyCollection": + """Gets the integration account's Key Vault keys. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param key_vault: The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultReference + :param skip_token: The skip token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyVaultKeyCollection or the result of cls(response) + :rtype: ~logic_management_client.models.KeyVaultKeyCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.KeyVaultKeyCollection"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + list_key_vault_keys = models.ListKeyVaultKeysDefinition(key_vault=key_vault, skip_token=skip_token) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_key_vault_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_key_vault_keys, 'ListKeyVaultKeysDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('KeyVaultKeyCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_key_vault_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listKeyVaultKeys'} + + async def log_tracking_event( + self, + resource_group_name: str, + integration_account_name: str, + source_type: str, + events: List["TrackingEvent"], + track_events_options: Optional[Union[str, "models.TrackEventsOperationOptions"]] = None, + **kwargs + ) -> None: + """Logs the integration account's tracking events. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param source_type: The source type. + :type source_type: str + :param events: The events. + :type events: list[~logic_management_client.models.TrackingEvent] + :param track_events_options: The track events operation options. + :type track_events_options: str or ~logic_management_client.models.TrackEventsOperationOptions + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + log_tracking_events = models.TrackingEventsDefinition(source_type=source_type, track_events_options=track_events_options, events=events) + api_version = "2019-05-01" + + # Construct URL + url = self.log_tracking_event.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(log_tracking_events, 'TrackingEventsDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + log_tracking_event.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/logTrackingEvents'} + + async def regenerate_access_key( + self, + resource_group_name: str, + integration_account_name: str, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.IntegrationAccount": + """Regenerates the integration account access key. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccount"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + regenerate_access_key = models.RegenerateActionParameter(key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.regenerate_access_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(regenerate_access_key, 'RegenerateActionParameter') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + regenerate_access_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/regenerateAccessKey'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_partner_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_partner_operations_async.py new file mode 100644 index 00000000000..708d230feee --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_partner_operations_async.py @@ -0,0 +1,392 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountPartnerOperations: + """IntegrationAccountPartnerOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountPartnerListResult": + """Gets a list of integration account partners. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartnerListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartnerListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountPartnerListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountPartnerListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + partner_name: str, + **kwargs + ) -> "models.IntegrationAccountPartner": + """Gets an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartner or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartner + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountPartner"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + partner_name: str, + partner_type: Union[str, "models.PartnerType"], + content: "models.PartnerContent", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["models.IntegrationAccountPartnerPropertiesMetadata"] = None, + **kwargs + ) -> "models.IntegrationAccountPartner": + """Creates or updates an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :param partner_type: The partner type. + :type partner_type: str or ~logic_management_client.models.PartnerType + :param content: The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartner or IntegrationAccountPartner or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartner or ~logic_management_client.models.IntegrationAccountPartner + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountPartner"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + partner = models.IntegrationAccountPartner(location=location, tags=tags, partner_type=partner_type, metadata=metadata, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(partner, 'IntegrationAccountPartner') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + partner_name: str, + **kwargs + ) -> None: + """Deletes an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + async def list_content_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + partner_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_schema_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_schema_operations_async.py new file mode 100644 index 00000000000..9a01e6cb912 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_schema_operations_async.py @@ -0,0 +1,404 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountSchemaOperations: + """IntegrationAccountSchemaOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountSchemaListResult": + """Gets a list of integration account schemas. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchemaListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchemaListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSchemaListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountSchemaListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + schema_name: str, + **kwargs + ) -> "models.IntegrationAccountSchema": + """Gets an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchema or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSchema"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + schema_name: str, + schema_type: Union[str, "models.SchemaType"], + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + target_namespace: Optional[str] = None, + document_name: Optional[str] = None, + file_name: Optional[str] = None, + metadata: Optional["models.IntegrationAccountSchemaPropertiesMetadata"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountSchema": + """Creates or updates an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :param schema_type: The schema type. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchema or IntegrationAccountSchema or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchema or ~logic_management_client.models.IntegrationAccountSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSchema"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + schema = models.IntegrationAccountSchema(location=location, tags=tags, schema_type=schema_type, target_namespace=target_namespace, document_name=document_name, file_name=file_name, metadata=metadata, content=content, content_type=content_type) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(schema, 'IntegrationAccountSchema') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + schema_name: str, + **kwargs + ) -> None: + """Deletes an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + async def list_content_callback_url( + self, + resource_group_name: str, + integration_account_name: str, + schema_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_session_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_session_operations_async.py new file mode 100644 index 00000000000..ec17063d8b7 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_account_session_operations_async.py @@ -0,0 +1,314 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountSessionOperations: + """IntegrationAccountSessionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + integration_account_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.IntegrationAccountSessionListResult": + """Gets a list of integration account sessions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSessionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSessionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSessionListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountSessionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions'} + + async def get( + self, + resource_group_name: str, + integration_account_name: str, + session_name: str, + **kwargs + ) -> "models.IntegrationAccountSession": + """Gets an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSession or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSession + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSession"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} + + async def create_or_update( + self, + resource_group_name: str, + integration_account_name: str, + session_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + content: Optional["models.Object"] = None, + **kwargs + ) -> "models.IntegrationAccountSession": + """Creates or updates an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param content: + :type content: ~logic_management_client.models.Object + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSession or IntegrationAccountSession or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSession or ~logic_management_client.models.IntegrationAccountSession + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationAccountSession"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + session = models.IntegrationAccountSession(location=location, tags=tags, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(session, 'IntegrationAccountSession') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} + + async def delete( + self, + resource_group_name: str, + integration_account_name: str, + session_name: str, + **kwargs + ) -> None: + """Deletes an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operation_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operation_operations_async.py new file mode 100644 index 00000000000..61334ff2118 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operation_operations_async.py @@ -0,0 +1,114 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentManagedApiOperationOperations: + """IntegrationServiceEnvironmentManagedApiOperationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> "models.ApiOperationListResult": + """Gets the managed Api operations. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ApiOperationListResult or the result of cls(response) + :rtype: ~logic_management_client.models.ApiOperationListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.ApiOperationListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ApiOperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}/apiOperations'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operations_async.py new file mode 100644 index 00000000000..b33276d504e --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_managed_api_operations_async.py @@ -0,0 +1,363 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentManagedApiOperations: + """IntegrationServiceEnvironmentManagedApiOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> "models.ManagedApiListResult": + """Gets the integration service environment managed Apis. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ManagedApiListResult or the result of cls(response) + :rtype: ~logic_management_client.models.ManagedApiListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.ManagedApiListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ManagedApiListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis'} + + async def get( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> "models.ManagedApi": + """Gets the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ManagedApi or the result of cls(response) + :rtype: ~logic_management_client.models.ManagedApi + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.ManagedApi"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + async def _put_initial( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> "models.ManagedApi": + cls: ClsType["models.ManagedApi"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self._put_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + async def put( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> "models.ManagedApi": + """Puts the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns ManagedApi + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.ManagedApi] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.ManagedApi"] = kwargs.pop('cls', None ) + raw_result = await self._put_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + api_name=api_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + async def _delete_initial( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> None: + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + async def delete( + self, + resource_group: str, + integration_service_environment_name: str, + api_name: str, + **kwargs + ) -> None: + """Deletes the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType[None] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + api_name=api_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_network_health_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_network_health_operations_async.py new file mode 100644 index 00000000000..f9360845790 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_network_health_operations_async.py @@ -0,0 +1,94 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentNetworkHealthOperations: + """IntegrationServiceEnvironmentNetworkHealthOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> Dict[str, "IntegrationServiceEnvironmentSubnetNetworkHealth"]: + """Gets the integration service environment network health. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: dict or the result of cls(response) + :rtype: dict[str, ~logic_management_client.models.IntegrationServiceEnvironmentSubnetNetworkHealth] + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[Dict[str, "IntegrationServiceEnvironmentSubnetNetworkHealth"]] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('{IntegrationServiceEnvironmentSubnetNetworkHealth}', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/health/network'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_operations_async.py new file mode 100644 index 00000000000..7a7345aa354 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_operations_async.py @@ -0,0 +1,576 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentOperations: + """IntegrationServiceEnvironmentOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top: Optional[int] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironmentListResult": + """Gets a list of integration service environments by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationServiceEnvironmentListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationServiceEnvironments'} + + def list_by_resource_group( + self, + resource_group: str, + top: Optional[int] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironmentListResult": + """Gets a list of integration service environments by resource group. + + :param resource_group: The resource group. + :type resource_group: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationServiceEnvironmentListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments'} + + async def get( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> "models.IntegrationServiceEnvironment": + """Gets an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironment or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironment + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationServiceEnvironment"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def _create_or_update_initial( + self, + resource_group: str, + integration_service_environment_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["models.IntegrationServiceEnvironmentProperties"] = None, + sku: Optional["models.IntegrationServiceEnvironmentSku"] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironment": + cls: ClsType["models.IntegrationServiceEnvironment"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + integration_service_environment = models.IntegrationServiceEnvironment(location=location, tags=tags, properties=properties, sku=sku) + api_version = "2019-05-01" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_service_environment, 'IntegrationServiceEnvironment') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def create_or_update( + self, + resource_group: str, + integration_service_environment_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["models.IntegrationServiceEnvironmentProperties"] = None, + sku: Optional["models.IntegrationServiceEnvironmentSku"] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironment": + """Creates or updates an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns IntegrationServiceEnvironment + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.IntegrationServiceEnvironment] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.IntegrationServiceEnvironment"] = kwargs.pop('cls', None ) + raw_result = await self._create_or_update_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + location=location, + tags=tags, + properties=properties, + sku=sku, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def _update_initial( + self, + resource_group: str, + integration_service_environment_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["models.IntegrationServiceEnvironmentProperties"] = None, + sku: Optional["models.IntegrationServiceEnvironmentSku"] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironment": + cls: ClsType["models.IntegrationServiceEnvironment"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + integration_service_environment = models.IntegrationServiceEnvironment(location=location, tags=tags, properties=properties, sku=sku) + api_version = "2019-05-01" + + # Construct URL + url = self._update_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_service_environment, 'IntegrationServiceEnvironment') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def update( + self, + resource_group: str, + integration_service_environment_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["models.IntegrationServiceEnvironmentProperties"] = None, + sku: Optional["models.IntegrationServiceEnvironmentSku"] = None, + **kwargs + ) -> "models.IntegrationServiceEnvironment": + """Updates an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns IntegrationServiceEnvironment + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.IntegrationServiceEnvironment] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.IntegrationServiceEnvironment"] = kwargs.pop('cls', None ) + raw_result = await self._update_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + location=location, + tags=tags, + properties=properties, + sku=sku, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def delete( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> None: + """Deletes an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + async def restart( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> None: + """Restarts an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.restart.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/restart'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_sku_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_sku_operations_async.py new file mode 100644 index 00000000000..abbaae1bd03 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_integration_service_environment_sku_operations_async.py @@ -0,0 +1,110 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentSkuOperations: + """IntegrationServiceEnvironmentSkuOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group: str, + integration_service_environment_name: str, + **kwargs + ) -> "models.IntegrationServiceEnvironmentSkuList": + """Gets a list of integration service environment Skus. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentSkuList or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentSkuList + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.IntegrationServiceEnvironmentSkuList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentSkuList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/skus'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_operation_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_operation_operations_async.py new file mode 100644 index 00000000000..a7b4655ebe8 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_operation_operations_async.py @@ -0,0 +1,98 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class OperationOperations: + """OperationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs + ) -> "models.OperationListResult": + """Lists all of the available Logic REST API operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationListResult or the result of cls(response) + :rtype: ~logic_management_client.models.OperationListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.OperationListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('OperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/providers/Microsoft.Logic/operations'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_operations_async.py new file mode 100644 index 00000000000..e9a2ea059f4 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_operations_async.py @@ -0,0 +1,1067 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowOperations: + """WorkflowOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowListResult": + """Gets a list of workflows by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/workflows'} + + def list_by_resource_group( + self, + resource_group_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowListResult": + """Gets a list of workflows by resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> "models.Workflow": + """Gets a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.Workflow"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + async def create_or_update( + self, + resource_group_name: str, + workflow_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + state: Optional[Union[str, "models.WorkflowState"]] = None, + endpoints_configuration: Optional["models.FlowEndpointsConfiguration"] = None, + access_control: Optional["models.FlowAccessControlConfiguration"] = None, + integration_account: Optional["models.ResourceReference"] = None, + integration_service_environment: Optional["models.ResourceReference"] = None, + definition: Optional["models.Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ) -> "models.Workflow": + """Creates or updates a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow or ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.Workflow"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + workflow = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(workflow, 'Workflow') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Workflow', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + async def update( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> "models.Workflow": + """Updates a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.Workflow"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + async def delete( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> None: + """Deletes a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + async def disable( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> None: + """Disables a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.disable.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + disable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/disable'} + + async def enable( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> None: + """Enables a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.enable.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + enable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/enable'} + + async def generate_upgraded_definition( + self, + resource_group_name: str, + workflow_name: str, + target_schema_version: Optional[str] = None, + **kwargs + ) -> "models.Object": + """Generates the upgraded definition for a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param target_schema_version: The target schema version. + :type target_schema_version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Object or the result of cls(response) + :rtype: ~logic_management_client.models.Object + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.Object"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + parameters = models.GenerateUpgradedDefinitionParameters(target_schema_version=target_schema_version) + api_version = "2019-05-01" + + # Construct URL + url = self.generate_upgraded_definition.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(parameters, 'GenerateUpgradedDefinitionParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Object', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + generate_upgraded_definition.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/generateUpgradedDefinition'} + + async def list_callback_url( + self, + resource_group_name: str, + workflow_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the workflow callback Url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + list_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listCallbackUrl'} + + async def list_swagger( + self, + resource_group_name: str, + workflow_name: str, + **kwargs + ) -> "models.Object": + """Gets an OpenAPI definition for the workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Object or the result of cls(response) + :rtype: ~logic_management_client.models.Object + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.Object"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_swagger.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Object', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_swagger.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listSwagger'} + + async def _move_initial( + self, + resource_group_name: str, + workflow_name: str, + id: Optional[str] = None, + name: Optional[str] = None, + **kwargs + ) -> None: + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + move = models.WorkflowReference(id=id, name=name) + api_version = "2019-05-01" + + # Construct URL + url = self._move_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(move, 'WorkflowReference') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _move_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move'} + + async def move( + self, + resource_group_name: str, + workflow_name: str, + id: Optional[str] = None, + name: Optional[str] = None, + **kwargs + ) -> None: + """Moves an existing workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param id: The resource id. + :type id: str + :param name: The workflow name. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType[None] = kwargs.pop('cls', None ) + raw_result = await self._move_initial( + resource_group_name=resource_group_name, + workflow_name=workflow_name, + id=id, + name=name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + move.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move'} + + async def regenerate_access_key( + self, + resource_group_name: str, + workflow_name: str, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> None: + """Regenerates the callback URL access key for request triggers. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + key_type = models.RegenerateActionParameter(key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.regenerate_access_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(key_type, 'RegenerateActionParameter') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + regenerate_access_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey'} + + async def validate_by_resource_group( + self, + resource_group_name: str, + workflow_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + state: Optional[Union[str, "models.WorkflowState"]] = None, + endpoints_configuration: Optional["models.FlowEndpointsConfiguration"] = None, + access_control: Optional["models.FlowAccessControlConfiguration"] = None, + integration_account: Optional["models.ResourceReference"] = None, + integration_service_environment: Optional["models.ResourceReference"] = None, + definition: Optional["models.Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ) -> None: + """Validates the workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + validate = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.validate_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(validate, 'Workflow') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + validate_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate'} + + async def validate_by_location( + self, + resource_group_name: str, + location: str, + workflow_name: str, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + state: Optional[Union[str, "models.WorkflowState"]] = None, + endpoints_configuration: Optional["models.FlowEndpointsConfiguration"] = None, + access_control: Optional["models.FlowAccessControlConfiguration"] = None, + integration_account: Optional["models.ResourceReference"] = None, + integration_service_environment: Optional["models.ResourceReference"] = None, + definition: Optional["models.Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ) -> None: + """Validates the workflow definition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param location: The workflow location. + :type location: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + validate = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.validate_by_location.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'location': self._serialize.url("location", location, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(validate, 'Workflow') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + validate_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_operations_async.py new file mode 100644 index 00000000000..87080dddcd6 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_operations_async.py @@ -0,0 +1,266 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionOperations: + """WorkflowRunActionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowRunActionListResult": + """Gets a list of workflow run actions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunActionListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + **kwargs + ) -> "models.WorkflowRunAction": + """Gets a workflow run action. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunAction or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunAction + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunAction"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunAction', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}'} + + def list_expression_trace( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + **kwargs + ) -> "models.ExpressionTraces": + """Lists a workflow run expression trace. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExpressionTraces or the result of cls(response) + :rtype: ~logic_management_client.models.ExpressionTraces + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.ExpressionTraces"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_expression_trace.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ExpressionTraces', pipeline_response) + list_of_elem = deserialized.inputs + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_expression_trace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/listExpressionTraces'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_operations_async.py new file mode 100644 index 00000000000..e68a9ac1058 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_operations_async.py @@ -0,0 +1,267 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRepetitionOperations: + """WorkflowRunActionRepetitionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + **kwargs + ) -> "models.WorkflowRunActionRepetitionDefinitionCollection": + """Get all of a workflow run action repetitions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinitionCollection or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinitionCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunActionRepetitionDefinitionCollection"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinitionCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + repetition_name: str, + **kwargs + ) -> "models.WorkflowRunActionRepetitionDefinition": + """Get a workflow run action repetition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunActionRepetitionDefinition"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}'} + + def list_expression_trace( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + repetition_name: str, + **kwargs + ) -> "models.ExpressionTraces": + """Lists a workflow run expression trace. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExpressionTraces or the result of cls(response) + :rtype: ~logic_management_client.models.ExpressionTraces + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.ExpressionTraces"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_expression_trace.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ExpressionTraces', pipeline_response) + list_of_elem = deserialized.inputs + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_expression_trace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/listExpressionTraces'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_request_history_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_request_history_operations_async.py new file mode 100644 index 00000000000..a7c195c7407 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_repetition_request_history_operations_async.py @@ -0,0 +1,193 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRepetitionRequestHistoryOperations: + """WorkflowRunActionRepetitionRequestHistoryOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + repetition_name: str, + **kwargs + ) -> "models.RequestHistoryListResult": + """List a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.RequestHistoryListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RequestHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + repetition_name: str, + request_history_name: str, + **kwargs + ) -> "models.RequestHistory": + """Gets a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistory or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.RequestHistory"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('RequestHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_request_history_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_request_history_operations_async.py new file mode 100644 index 00000000000..eed6d678ab0 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_request_history_operations_async.py @@ -0,0 +1,185 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRequestHistoryOperations: + """WorkflowRunActionRequestHistoryOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + **kwargs + ) -> "models.RequestHistoryListResult": + """List a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.RequestHistoryListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RequestHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + request_history_name: str, + **kwargs + ) -> "models.RequestHistory": + """Gets a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistory or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.RequestHistory"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('RequestHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories/{requestHistoryName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_scope_repetition_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_scope_repetition_operations_async.py new file mode 100644 index 00000000000..669472dcabf --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_action_scope_repetition_operations_async.py @@ -0,0 +1,185 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionScopeRepetitionOperations: + """WorkflowRunActionScopeRepetitionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + **kwargs + ) -> "models.WorkflowRunActionRepetitionDefinitionCollection": + """List the workflow run action scoped repetitions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinitionCollection or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinitionCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunActionRepetitionDefinitionCollection"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinitionCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + action_name: str, + repetition_name: str, + **kwargs + ) -> "models.WorkflowRunActionRepetitionDefinition": + """Get a workflow run action scoped repetition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunActionRepetitionDefinition"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions/{repetitionName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operation_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operation_operations_async.py new file mode 100644 index 00000000000..06a01502771 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operation_operations_async.py @@ -0,0 +1,102 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunOperationOperations: + """WorkflowRunOperationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + operation_id: str, + **kwargs + ) -> "models.WorkflowRun": + """Gets an operation for a run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param operation_id: The workflow operation id. + :type operation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRun or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRun + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRun"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRun', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/operations/{operationId}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operations_async.py new file mode 100644 index 00000000000..80bd9dd94d4 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_run_operations_async.py @@ -0,0 +1,235 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunOperations: + """WorkflowRunOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowRunListResult": + """Gets a list of workflow runs. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRunListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + **kwargs + ) -> "models.WorkflowRun": + """Gets a workflow run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRun or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRun + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowRun"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRun', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}'} + + async def cancel( + self, + resource_group_name: str, + workflow_name: str, + run_name: str, + **kwargs + ) -> None: + """Cancels a workflow run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.cancel.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_history_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_history_operations_async.py new file mode 100644 index 00000000000..d8fc85e54cc --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_history_operations_async.py @@ -0,0 +1,249 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowTriggerHistoryOperations: + """WorkflowTriggerHistoryOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowTriggerHistoryListResult": + """Gets a list of workflow trigger histories. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerHistoryListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowTriggerHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + history_name: str, + **kwargs + ) -> "models.WorkflowTriggerHistory": + """Gets a workflow trigger history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param history_name: The workflow trigger history name. Corresponds to the run name for + triggers that resulted in a run. + :type history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerHistory or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerHistory"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + 'historyName': self._serialize.url("history_name", history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}'} + + async def resubmit( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + history_name: str, + **kwargs + ) -> None: + """Resubmits a workflow run based on the trigger history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param history_name: The workflow trigger history name. Corresponds to the run name for + triggers that resulted in a run. + :type history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.resubmit.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + 'historyName': self._serialize.url("history_name", history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + resubmit.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}/resubmit'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_operations_async.py new file mode 100644 index 00000000000..54a8b96bef9 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_trigger_operations_async.py @@ -0,0 +1,472 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowTriggerOperations: + """WorkflowTriggerOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + top: Optional[int] = None, + filter: Optional[str] = None, + **kwargs + ) -> "models.WorkflowTriggerListResult": + """Gets a list of workflow triggers. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowTriggerListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + **kwargs + ) -> "models.WorkflowTrigger": + """Gets a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTrigger or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTrigger + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTrigger"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTrigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}'} + + async def reset( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + **kwargs + ) -> None: + """Resets a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.reset.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/reset'} + + async def run( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + **kwargs + ) -> None: + """Runs a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.run.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + run.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/run'} + + async def get_schema_json( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + **kwargs + ) -> "models.JsonSchema": + """Get the trigger schema as JSON. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: JsonSchema or the result of cls(response) + :rtype: ~logic_management_client.models.JsonSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.JsonSchema"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get_schema_json.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('JsonSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_schema_json.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/schemas/json'} + + async def set_state( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + source: "models.WorkflowTriggerReference", + **kwargs + ) -> None: + """Sets the state of a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param source: The workflow trigger reference. + :type source: ~logic_management_client.models.WorkflowTriggerReference + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + set_state = models.SetTriggerStateActionDefinition(source=source) + api_version = "2019-05-01" + + # Construct URL + url = self.set_state.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(set_state, 'SetTriggerStateActionDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + set_state.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/setState'} + + async def list_callback_url( + self, + resource_group_name: str, + workflow_name: str, + trigger_name: str, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the callback URL for a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/listCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_operations_async.py new file mode 100644 index 00000000000..055c41f9c96 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_operations_async.py @@ -0,0 +1,174 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowVersionOperations: + """WorkflowVersionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + workflow_name: str, + top: Optional[int] = None, + **kwargs + ) -> "models.WorkflowVersionListResult": + """Gets a list of workflow versions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowVersionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowVersionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowVersionListResult"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowVersionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions'} + + async def get( + self, + resource_group_name: str, + workflow_name: str, + version_id: str, + **kwargs + ) -> "models.WorkflowVersion": + """Gets a workflow version. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param version_id: The workflow versionId. + :type version_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowVersion or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowVersion + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowVersion"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowVersion', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_trigger_operations_async.py b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_trigger_operations_async.py new file mode 100644 index 00000000000..f15689b73a0 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/aio/operations_async/_workflow_version_trigger_operations_async.py @@ -0,0 +1,118 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowVersionTriggerOperations: + """WorkflowVersionTriggerOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def list_callback_url( + self, + resource_group_name: str, + workflow_name: str, + version_id: str, + trigger_name: str, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "models.KeyType"]] = None, + **kwargs + ) -> "models.WorkflowTriggerCallbackUrl": + """Get the callback url for a trigger of a workflow version. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param version_id: The workflow versionId. + :type version_id: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls: ClsType["models.WorkflowTriggerCallbackUrl"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + if parameters is not None: + body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}/triggers/{triggerName}/listCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/models/__init__.py b/src/logic/azext_logic/vendored_sdks/logic/models/__init__.py new file mode 100644 index 00000000000..0aec75d08f2 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/models/__init__.py @@ -0,0 +1,751 @@ +# 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. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AgreementContent + from ._models_py3 import ApiDeploymentParameterMetadata + from ._models_py3 import ApiDeploymentParameterMetadataSet + from ._models_py3 import ApiOperation + from ._models_py3 import ApiOperationAnnotation + from ._models_py3 import ApiOperationListResult + from ._models_py3 import ApiOperationPropertiesDefinition + from ._models_py3 import ApiReference + from ._models_py3 import ApiResourceBackendService + from ._models_py3 import ApiResourceDefinitions + from ._models_py3 import ApiResourceGeneralInformation + from ._models_py3 import ApiResourceMetadata + from ._models_py3 import ApiResourcePolicies + from ._models_py3 import ApiResourceProperties + from ._models_py3 import ArtifactContentPropertiesDefinition + from ._models_py3 import ArtifactProperties + from ._models_py3 import As2AcknowledgementConnectionSettings + from ._models_py3 import As2AgreementContent + from ._models_py3 import As2EnvelopeSettings + from ._models_py3 import As2ErrorSettings + from ._models_py3 import As2MdnSettings + from ._models_py3 import As2MessageConnectionSettings + from ._models_py3 import As2OneWayAgreement + from ._models_py3 import As2ProtocolSettings + from ._models_py3 import As2SecuritySettings + from ._models_py3 import As2ValidationSettings + from ._models_py3 import AssemblyCollection + from ._models_py3 import AssemblyDefinition + from ._models_py3 import AssemblyProperties + from ._models_py3 import AzureResourceErrorInfo + from ._models_py3 import B2BPartnerContent + from ._models_py3 import BatchConfiguration + from ._models_py3 import BatchConfigurationCollection + from ._models_py3 import BatchConfigurationProperties + from ._models_py3 import BatchReleaseCriteria + from ._models_py3 import BusinessIdentity + from ._models_py3 import CallbackUrl + from ._models_py3 import ContentHash + from ._models_py3 import ContentLink + from ._models_py3 import Correlation + from ._models_py3 import EdifactAcknowledgementSettings + from ._models_py3 import EdifactAgreementContent + from ._models_py3 import EdifactDelimiterOverride + from ._models_py3 import EdifactEnvelopeOverride + from ._models_py3 import EdifactEnvelopeSettings + from ._models_py3 import EdifactFramingSettings + from ._models_py3 import EdifactMessageFilter + from ._models_py3 import EdifactMessageIdentifier + from ._models_py3 import EdifactOneWayAgreement + from ._models_py3 import EdifactProcessingSettings + from ._models_py3 import EdifactProtocolSettings + from ._models_py3 import EdifactSchemaReference + from ._models_py3 import EdifactValidationOverride + from ._models_py3 import EdifactValidationSettings + from ._models_py3 import ErrorInfo + from ._models_py3 import ErrorProperties + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import Expression + from ._models_py3 import ExpressionRoot + from ._models_py3 import ExpressionTraces + from ._models_py3 import ExtendedErrorInfo + from ._models_py3 import FlowAccessControlConfiguration + from ._models_py3 import FlowAccessControlConfigurationPolicy + from ._models_py3 import FlowEndpoints + from ._models_py3 import FlowEndpointsConfiguration + from ._models_py3 import GenerateUpgradedDefinitionParameters + from ._models_py3 import GetCallbackUrlParameters + from ._models_py3 import IntegrationAccount + from ._models_py3 import IntegrationAccountAgreement + from ._models_py3 import IntegrationAccountAgreementFilter + from ._models_py3 import IntegrationAccountAgreementListResult + from ._models_py3 import IntegrationAccountAgreementProperties + from ._models_py3 import IntegrationAccountAgreementPropertiesMetadata + from ._models_py3 import IntegrationAccountCertificate + from ._models_py3 import IntegrationAccountCertificateListResult + from ._models_py3 import IntegrationAccountCertificateProperties + from ._models_py3 import IntegrationAccountCertificatePropertiesMetadata + from ._models_py3 import IntegrationAccountListResult + from ._models_py3 import IntegrationAccountMap + from ._models_py3 import IntegrationAccountMapFilter + from ._models_py3 import IntegrationAccountMapListResult + from ._models_py3 import IntegrationAccountMapProperties + from ._models_py3 import IntegrationAccountMapPropertiesMetadata + from ._models_py3 import IntegrationAccountMapPropertiesParametersSchema + from ._models_py3 import IntegrationAccountPartner + from ._models_py3 import IntegrationAccountPartnerFilter + from ._models_py3 import IntegrationAccountPartnerListResult + from ._models_py3 import IntegrationAccountPartnerProperties + from ._models_py3 import IntegrationAccountPartnerPropertiesMetadata + from ._models_py3 import IntegrationAccountProperties + from ._models_py3 import IntegrationAccountSchema + from ._models_py3 import IntegrationAccountSchemaFilter + from ._models_py3 import IntegrationAccountSchemaListResult + from ._models_py3 import IntegrationAccountSchemaProperties + from ._models_py3 import IntegrationAccountSchemaPropertiesMetadata + from ._models_py3 import IntegrationAccountSession + from ._models_py3 import IntegrationAccountSessionFilter + from ._models_py3 import IntegrationAccountSessionListResult + from ._models_py3 import IntegrationAccountSessionProperties + from ._models_py3 import IntegrationAccountSku + from ._models_py3 import IntegrationServiceEnvironment + from ._models_py3 import IntegrationServiceEnvironmentAccessEndpoint + from ._models_py3 import IntegrationServiceEnvironmentListResult + from ._models_py3 import IntegrationServiceEnvironmentNetworkDependency + from ._models_py3 import IntegrationServiceEnvironmentNetworkDependencyHealth + from ._models_py3 import IntegrationServiceEnvironmentNetworkEndpoint + from ._models_py3 import IntegrationServiceEnvironmentProperties + from ._models_py3 import IntegrationServiceEnvironmentSku + from ._models_py3 import IntegrationServiceEnvironmentSkuCapacity + from ._models_py3 import IntegrationServiceEnvironmentSkuDefinition + from ._models_py3 import IntegrationServiceEnvironmentSkuDefinitionSku + from ._models_py3 import IntegrationServiceEnvironmentSkuList + from ._models_py3 import IntegrationServiceEnvironmentSubnetNetworkHealth + from ._models_py3 import IpAddress + from ._models_py3 import IpAddressRange + from ._models_py3 import JsonSchema + from ._models_py3 import KeyVaultKey + from ._models_py3 import KeyVaultKeyAttributes + from ._models_py3 import KeyVaultKeyCollection + from ._models_py3 import KeyVaultKeyReference + from ._models_py3 import KeyVaultKeyReferenceKeyVault + from ._models_py3 import KeyVaultReference + from ._models_py3 import ListKeyVaultKeysDefinition + from ._models_py3 import ManagedApi + from ._models_py3 import ManagedApiListResult + from ._models_py3 import NetworkConfiguration + from ._models_py3 import Object + from ._models_py3 import OpenAuthenticationAccessPolicies + from ._models_py3 import OpenAuthenticationAccessPolicy + from ._models_py3 import OpenAuthenticationPolicyClaim + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationListResult + from ._models_py3 import OperationResult + from ._models_py3 import OperationResultProperties + from ._models_py3 import PartnerContent + from ._models_py3 import RecurrenceSchedule + from ._models_py3 import RecurrenceScheduleOccurrence + from ._models_py3 import RegenerateActionParameter + from ._models_py3 import RepetitionIndex + from ._models_py3 import Request + from ._models_py3 import RequestHistory + from ._models_py3 import RequestHistoryListResult + from ._models_py3 import RequestHistoryProperties + from ._models_py3 import Resource + from ._models_py3 import ResourceReference + from ._models_py3 import Response + from ._models_py3 import RetryHistory + from ._models_py3 import RunActionCorrelation + from ._models_py3 import RunCorrelation + from ._models_py3 import SetTriggerStateActionDefinition + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import SwaggerCustomDynamicList + from ._models_py3 import SwaggerCustomDynamicProperties + from ._models_py3 import SwaggerCustomDynamicSchema + from ._models_py3 import SwaggerCustomDynamicTree + from ._models_py3 import SwaggerCustomDynamicTreeCommand + from ._models_py3 import SwaggerCustomDynamicTreeParameter + from ._models_py3 import SwaggerCustomDynamicTreeSettings + from ._models_py3 import SwaggerExternalDocumentation + from ._models_py3 import SwaggerSchema + from ._models_py3 import SwaggerXml + from ._models_py3 import TrackingEvent + from ._models_py3 import TrackingEventErrorInfo + from ._models_py3 import TrackingEventsDefinition + from ._models_py3 import Workflow + from ._models_py3 import WorkflowFilter + from ._models_py3 import WorkflowListResult + from ._models_py3 import WorkflowOutputParameter + from ._models_py3 import WorkflowParameter + from ._models_py3 import WorkflowProperties + from ._models_py3 import WorkflowReference + from ._models_py3 import WorkflowRun + from ._models_py3 import WorkflowRunAction + from ._models_py3 import WorkflowRunActionFilter + from ._models_py3 import WorkflowRunActionListResult + from ._models_py3 import WorkflowRunActionProperties + from ._models_py3 import WorkflowRunActionRepetitionDefinition + from ._models_py3 import WorkflowRunActionRepetitionDefinitionCollection + from ._models_py3 import WorkflowRunActionRepetitionProperties + from ._models_py3 import WorkflowRunFilter + from ._models_py3 import WorkflowRunListResult + from ._models_py3 import WorkflowRunProperties + from ._models_py3 import WorkflowRunTrigger + from ._models_py3 import WorkflowTrigger + from ._models_py3 import WorkflowTriggerCallbackUrl + from ._models_py3 import WorkflowTriggerFilter + from ._models_py3 import WorkflowTriggerHistory + from ._models_py3 import WorkflowTriggerHistoryFilter + from ._models_py3 import WorkflowTriggerHistoryListResult + from ._models_py3 import WorkflowTriggerHistoryProperties + from ._models_py3 import WorkflowTriggerListCallbackUrlQueries + from ._models_py3 import WorkflowTriggerListResult + from ._models_py3 import WorkflowTriggerProperties + from ._models_py3 import WorkflowTriggerRecurrence + from ._models_py3 import WorkflowTriggerReference + from ._models_py3 import WorkflowVersion + from ._models_py3 import WorkflowVersionListResult + from ._models_py3 import WorkflowVersionProperties + from ._models_py3 import WsdlService + from ._models_py3 import X12AcknowledgementSettings + from ._models_py3 import X12AgreementContent + from ._models_py3 import X12DelimiterOverrides + from ._models_py3 import X12EnvelopeOverride + from ._models_py3 import X12EnvelopeSettings + from ._models_py3 import X12FramingSettings + from ._models_py3 import X12MessageFilter + from ._models_py3 import X12MessageIdentifier + from ._models_py3 import X12OneWayAgreement + from ._models_py3 import X12ProcessingSettings + from ._models_py3 import X12ProtocolSettings + from ._models_py3 import X12SchemaReference + from ._models_py3 import X12SecuritySettings + from ._models_py3 import X12ValidationOverride + from ._models_py3 import X12ValidationSettings +except (SyntaxError, ImportError): + from ._models import AgreementContent # type: ignore + from ._models import ApiDeploymentParameterMetadata # type: ignore + from ._models import ApiDeploymentParameterMetadataSet # type: ignore + from ._models import ApiOperation # type: ignore + from ._models import ApiOperationAnnotation # type: ignore + from ._models import ApiOperationListResult # type: ignore + from ._models import ApiOperationPropertiesDefinition # type: ignore + from ._models import ApiReference # type: ignore + from ._models import ApiResourceBackendService # type: ignore + from ._models import ApiResourceDefinitions # type: ignore + from ._models import ApiResourceGeneralInformation # type: ignore + from ._models import ApiResourceMetadata # type: ignore + from ._models import ApiResourcePolicies # type: ignore + from ._models import ApiResourceProperties # type: ignore + from ._models import ArtifactContentPropertiesDefinition # type: ignore + from ._models import ArtifactProperties # type: ignore + from ._models import As2AcknowledgementConnectionSettings # type: ignore + from ._models import As2AgreementContent # type: ignore + from ._models import As2EnvelopeSettings # type: ignore + from ._models import As2ErrorSettings # type: ignore + from ._models import As2MdnSettings # type: ignore + from ._models import As2MessageConnectionSettings # type: ignore + from ._models import As2OneWayAgreement # type: ignore + from ._models import As2ProtocolSettings # type: ignore + from ._models import As2SecuritySettings # type: ignore + from ._models import As2ValidationSettings # type: ignore + from ._models import AssemblyCollection # type: ignore + from ._models import AssemblyDefinition # type: ignore + from ._models import AssemblyProperties # type: ignore + from ._models import AzureResourceErrorInfo # type: ignore + from ._models import B2BPartnerContent # type: ignore + from ._models import BatchConfiguration # type: ignore + from ._models import BatchConfigurationCollection # type: ignore + from ._models import BatchConfigurationProperties # type: ignore + from ._models import BatchReleaseCriteria # type: ignore + from ._models import BusinessIdentity # type: ignore + from ._models import CallbackUrl # type: ignore + from ._models import ContentHash # type: ignore + from ._models import ContentLink # type: ignore + from ._models import Correlation # type: ignore + from ._models import EdifactAcknowledgementSettings # type: ignore + from ._models import EdifactAgreementContent # type: ignore + from ._models import EdifactDelimiterOverride # type: ignore + from ._models import EdifactEnvelopeOverride # type: ignore + from ._models import EdifactEnvelopeSettings # type: ignore + from ._models import EdifactFramingSettings # type: ignore + from ._models import EdifactMessageFilter # type: ignore + from ._models import EdifactMessageIdentifier # type: ignore + from ._models import EdifactOneWayAgreement # type: ignore + from ._models import EdifactProcessingSettings # type: ignore + from ._models import EdifactProtocolSettings # type: ignore + from ._models import EdifactSchemaReference # type: ignore + from ._models import EdifactValidationOverride # type: ignore + from ._models import EdifactValidationSettings # type: ignore + from ._models import ErrorInfo # type: ignore + from ._models import ErrorProperties # type: ignore + from ._models import ErrorResponse, ErrorResponseException # type: ignore + from ._models import Expression # type: ignore + from ._models import ExpressionRoot # type: ignore + from ._models import ExpressionTraces # type: ignore + from ._models import ExtendedErrorInfo # type: ignore + from ._models import FlowAccessControlConfiguration # type: ignore + from ._models import FlowAccessControlConfigurationPolicy # type: ignore + from ._models import FlowEndpoints # type: ignore + from ._models import FlowEndpointsConfiguration # type: ignore + from ._models import GenerateUpgradedDefinitionParameters # type: ignore + from ._models import GetCallbackUrlParameters # type: ignore + from ._models import IntegrationAccount # type: ignore + from ._models import IntegrationAccountAgreement # type: ignore + from ._models import IntegrationAccountAgreementFilter # type: ignore + from ._models import IntegrationAccountAgreementListResult # type: ignore + from ._models import IntegrationAccountAgreementProperties # type: ignore + from ._models import IntegrationAccountAgreementPropertiesMetadata # type: ignore + from ._models import IntegrationAccountCertificate # type: ignore + from ._models import IntegrationAccountCertificateListResult # type: ignore + from ._models import IntegrationAccountCertificateProperties # type: ignore + from ._models import IntegrationAccountCertificatePropertiesMetadata # type: ignore + from ._models import IntegrationAccountListResult # type: ignore + from ._models import IntegrationAccountMap # type: ignore + from ._models import IntegrationAccountMapFilter # type: ignore + from ._models import IntegrationAccountMapListResult # type: ignore + from ._models import IntegrationAccountMapProperties # type: ignore + from ._models import IntegrationAccountMapPropertiesMetadata # type: ignore + from ._models import IntegrationAccountMapPropertiesParametersSchema # type: ignore + from ._models import IntegrationAccountPartner # type: ignore + from ._models import IntegrationAccountPartnerFilter # type: ignore + from ._models import IntegrationAccountPartnerListResult # type: ignore + from ._models import IntegrationAccountPartnerProperties # type: ignore + from ._models import IntegrationAccountPartnerPropertiesMetadata # type: ignore + from ._models import IntegrationAccountProperties # type: ignore + from ._models import IntegrationAccountSchema # type: ignore + from ._models import IntegrationAccountSchemaFilter # type: ignore + from ._models import IntegrationAccountSchemaListResult # type: ignore + from ._models import IntegrationAccountSchemaProperties # type: ignore + from ._models import IntegrationAccountSchemaPropertiesMetadata # type: ignore + from ._models import IntegrationAccountSession # type: ignore + from ._models import IntegrationAccountSessionFilter # type: ignore + from ._models import IntegrationAccountSessionListResult # type: ignore + from ._models import IntegrationAccountSessionProperties # type: ignore + from ._models import IntegrationAccountSku # type: ignore + from ._models import IntegrationServiceEnvironment # type: ignore + from ._models import IntegrationServiceEnvironmentAccessEndpoint # type: ignore + from ._models import IntegrationServiceEnvironmentListResult # type: ignore + from ._models import IntegrationServiceEnvironmentNetworkDependency # type: ignore + from ._models import IntegrationServiceEnvironmentNetworkDependencyHealth # type: ignore + from ._models import IntegrationServiceEnvironmentNetworkEndpoint # type: ignore + from ._models import IntegrationServiceEnvironmentProperties # type: ignore + from ._models import IntegrationServiceEnvironmentSku # type: ignore + from ._models import IntegrationServiceEnvironmentSkuCapacity # type: ignore + from ._models import IntegrationServiceEnvironmentSkuDefinition # type: ignore + from ._models import IntegrationServiceEnvironmentSkuDefinitionSku # type: ignore + from ._models import IntegrationServiceEnvironmentSkuList # type: ignore + from ._models import IntegrationServiceEnvironmentSubnetNetworkHealth # type: ignore + from ._models import IpAddress # type: ignore + from ._models import IpAddressRange # type: ignore + from ._models import JsonSchema # type: ignore + from ._models import KeyVaultKey # type: ignore + from ._models import KeyVaultKeyAttributes # type: ignore + from ._models import KeyVaultKeyCollection # type: ignore + from ._models import KeyVaultKeyReference # type: ignore + from ._models import KeyVaultKeyReferenceKeyVault # type: ignore + from ._models import KeyVaultReference # type: ignore + from ._models import ListKeyVaultKeysDefinition # type: ignore + from ._models import ManagedApi # type: ignore + from ._models import ManagedApiListResult # type: ignore + from ._models import NetworkConfiguration # type: ignore + from ._models import Object # type: ignore + from ._models import OpenAuthenticationAccessPolicies # type: ignore + from ._models import OpenAuthenticationAccessPolicy # type: ignore + from ._models import OpenAuthenticationPolicyClaim # type: ignore + from ._models import Operation # type: ignore + from ._models import OperationDisplay # type: ignore + from ._models import OperationListResult # type: ignore + from ._models import OperationResult # type: ignore + from ._models import OperationResultProperties # type: ignore + from ._models import PartnerContent # type: ignore + from ._models import RecurrenceSchedule # type: ignore + from ._models import RecurrenceScheduleOccurrence # type: ignore + from ._models import RegenerateActionParameter # type: ignore + from ._models import RepetitionIndex # type: ignore + from ._models import Request # type: ignore + from ._models import RequestHistory # type: ignore + from ._models import RequestHistoryListResult # type: ignore + from ._models import RequestHistoryProperties # type: ignore + from ._models import Resource # type: ignore + from ._models import ResourceReference # type: ignore + from ._models import Response # type: ignore + from ._models import RetryHistory # type: ignore + from ._models import RunActionCorrelation # type: ignore + from ._models import RunCorrelation # type: ignore + from ._models import SetTriggerStateActionDefinition # type: ignore + from ._models import Sku # type: ignore + from ._models import SubResource # type: ignore + from ._models import SwaggerCustomDynamicList # type: ignore + from ._models import SwaggerCustomDynamicProperties # type: ignore + from ._models import SwaggerCustomDynamicSchema # type: ignore + from ._models import SwaggerCustomDynamicTree # type: ignore + from ._models import SwaggerCustomDynamicTreeCommand # type: ignore + from ._models import SwaggerCustomDynamicTreeParameter # type: ignore + from ._models import SwaggerCustomDynamicTreeSettings # type: ignore + from ._models import SwaggerExternalDocumentation # type: ignore + from ._models import SwaggerSchema # type: ignore + from ._models import SwaggerXml # type: ignore + from ._models import TrackingEvent # type: ignore + from ._models import TrackingEventErrorInfo # type: ignore + from ._models import TrackingEventsDefinition # type: ignore + from ._models import Workflow # type: ignore + from ._models import WorkflowFilter # type: ignore + from ._models import WorkflowListResult # type: ignore + from ._models import WorkflowOutputParameter # type: ignore + from ._models import WorkflowParameter # type: ignore + from ._models import WorkflowProperties # type: ignore + from ._models import WorkflowReference # type: ignore + from ._models import WorkflowRun # type: ignore + from ._models import WorkflowRunAction # type: ignore + from ._models import WorkflowRunActionFilter # type: ignore + from ._models import WorkflowRunActionListResult # type: ignore + from ._models import WorkflowRunActionProperties # type: ignore + from ._models import WorkflowRunActionRepetitionDefinition # type: ignore + from ._models import WorkflowRunActionRepetitionDefinitionCollection # type: ignore + from ._models import WorkflowRunActionRepetitionProperties # type: ignore + from ._models import WorkflowRunFilter # type: ignore + from ._models import WorkflowRunListResult # type: ignore + from ._models import WorkflowRunProperties # type: ignore + from ._models import WorkflowRunTrigger # type: ignore + from ._models import WorkflowTrigger # type: ignore + from ._models import WorkflowTriggerCallbackUrl # type: ignore + from ._models import WorkflowTriggerFilter # type: ignore + from ._models import WorkflowTriggerHistory # type: ignore + from ._models import WorkflowTriggerHistoryFilter # type: ignore + from ._models import WorkflowTriggerHistoryListResult # type: ignore + from ._models import WorkflowTriggerHistoryProperties # type: ignore + from ._models import WorkflowTriggerListCallbackUrlQueries # type: ignore + from ._models import WorkflowTriggerListResult # type: ignore + from ._models import WorkflowTriggerProperties # type: ignore + from ._models import WorkflowTriggerRecurrence # type: ignore + from ._models import WorkflowTriggerReference # type: ignore + from ._models import WorkflowVersion # type: ignore + from ._models import WorkflowVersionListResult # type: ignore + from ._models import WorkflowVersionProperties # type: ignore + from ._models import WsdlService # type: ignore + from ._models import X12AcknowledgementSettings # type: ignore + from ._models import X12AgreementContent # type: ignore + from ._models import X12DelimiterOverrides # type: ignore + from ._models import X12EnvelopeOverride # type: ignore + from ._models import X12EnvelopeSettings # type: ignore + from ._models import X12FramingSettings # type: ignore + from ._models import X12MessageFilter # type: ignore + from ._models import X12MessageIdentifier # type: ignore + from ._models import X12OneWayAgreement # type: ignore + from ._models import X12ProcessingSettings # type: ignore + from ._models import X12ProtocolSettings # type: ignore + from ._models import X12SchemaReference # type: ignore + from ._models import X12SecuritySettings # type: ignore + from ._models import X12ValidationOverride # type: ignore + from ._models import X12ValidationSettings # type: ignore +from ._logic_management_client_enums import ( + AgreementType, + ApiDeploymentParameterVisibility, + ApiTier, + ApiType, + AzureAsyncOperationState, + DayOfWeek, + DaysOfWeek, + EdifactCharacterSet, + EdifactDecimalIndicator, + EncryptionAlgorithm, + ErrorResponseCode, + EventLevel, + HashingAlgorithm, + IntegrationAccountSkuName, + IntegrationServiceEnvironmentAccessEndpointType, + IntegrationServiceEnvironmentNetworkDependencyCategoryType, + IntegrationServiceEnvironmentNetworkDependencyHealthState, + IntegrationServiceEnvironmentNetworkEndPointAccessibilityState, + IntegrationServiceEnvironmentSkuName, + IntegrationServiceEnvironmentSkuScaleType, + KeyType, + MapType, + MessageFilterType, + ParameterType, + PartnerType, + RecurrenceFrequency, + SchemaType, + SegmentTerminatorSuffix, + SigningAlgorithm, + SkuName, + StatusAnnotation, + SwaggerSchemaType, + TrackEventsOperationOptions, + TrackingRecordType, + TrailingSeparatorPolicy, + UsageIndicator, + WorkflowProvisioningState, + WorkflowState, + WorkflowStatus, + WorkflowTriggerProvisioningState, + WsdlImportMethod, + X12CharacterSet, + X12DateFormat, + X12TimeFormat, +) + +__all__ = [ + 'AgreementContent', + 'ApiDeploymentParameterMetadata', + 'ApiDeploymentParameterMetadataSet', + 'ApiOperation', + 'ApiOperationAnnotation', + 'ApiOperationListResult', + 'ApiOperationPropertiesDefinition', + 'ApiReference', + 'ApiResourceBackendService', + 'ApiResourceDefinitions', + 'ApiResourceGeneralInformation', + 'ApiResourceMetadata', + 'ApiResourcePolicies', + 'ApiResourceProperties', + 'ArtifactContentPropertiesDefinition', + 'ArtifactProperties', + 'As2AcknowledgementConnectionSettings', + 'As2AgreementContent', + 'As2EnvelopeSettings', + 'As2ErrorSettings', + 'As2MdnSettings', + 'As2MessageConnectionSettings', + 'As2OneWayAgreement', + 'As2ProtocolSettings', + 'As2SecuritySettings', + 'As2ValidationSettings', + 'AssemblyCollection', + 'AssemblyDefinition', + 'AssemblyProperties', + 'AzureResourceErrorInfo', + 'B2BPartnerContent', + 'BatchConfiguration', + 'BatchConfigurationCollection', + 'BatchConfigurationProperties', + 'BatchReleaseCriteria', + 'BusinessIdentity', + 'CallbackUrl', + 'ContentHash', + 'ContentLink', + 'Correlation', + 'EdifactAcknowledgementSettings', + 'EdifactAgreementContent', + 'EdifactDelimiterOverride', + 'EdifactEnvelopeOverride', + 'EdifactEnvelopeSettings', + 'EdifactFramingSettings', + 'EdifactMessageFilter', + 'EdifactMessageIdentifier', + 'EdifactOneWayAgreement', + 'EdifactProcessingSettings', + 'EdifactProtocolSettings', + 'EdifactSchemaReference', + 'EdifactValidationOverride', + 'EdifactValidationSettings', + 'ErrorInfo', + 'ErrorProperties', + 'ErrorResponse', 'ErrorResponseException', + 'Expression', + 'ExpressionRoot', + 'ExpressionTraces', + 'ExtendedErrorInfo', + 'FlowAccessControlConfiguration', + 'FlowAccessControlConfigurationPolicy', + 'FlowEndpoints', + 'FlowEndpointsConfiguration', + 'GenerateUpgradedDefinitionParameters', + 'GetCallbackUrlParameters', + 'IntegrationAccount', + 'IntegrationAccountAgreement', + 'IntegrationAccountAgreementFilter', + 'IntegrationAccountAgreementListResult', + 'IntegrationAccountAgreementProperties', + 'IntegrationAccountAgreementPropertiesMetadata', + 'IntegrationAccountCertificate', + 'IntegrationAccountCertificateListResult', + 'IntegrationAccountCertificateProperties', + 'IntegrationAccountCertificatePropertiesMetadata', + 'IntegrationAccountListResult', + 'IntegrationAccountMap', + 'IntegrationAccountMapFilter', + 'IntegrationAccountMapListResult', + 'IntegrationAccountMapProperties', + 'IntegrationAccountMapPropertiesMetadata', + 'IntegrationAccountMapPropertiesParametersSchema', + 'IntegrationAccountPartner', + 'IntegrationAccountPartnerFilter', + 'IntegrationAccountPartnerListResult', + 'IntegrationAccountPartnerProperties', + 'IntegrationAccountPartnerPropertiesMetadata', + 'IntegrationAccountProperties', + 'IntegrationAccountSchema', + 'IntegrationAccountSchemaFilter', + 'IntegrationAccountSchemaListResult', + 'IntegrationAccountSchemaProperties', + 'IntegrationAccountSchemaPropertiesMetadata', + 'IntegrationAccountSession', + 'IntegrationAccountSessionFilter', + 'IntegrationAccountSessionListResult', + 'IntegrationAccountSessionProperties', + 'IntegrationAccountSku', + 'IntegrationServiceEnvironment', + 'IntegrationServiceEnvironmentAccessEndpoint', + 'IntegrationServiceEnvironmentListResult', + 'IntegrationServiceEnvironmentNetworkDependency', + 'IntegrationServiceEnvironmentNetworkDependencyHealth', + 'IntegrationServiceEnvironmentNetworkEndpoint', + 'IntegrationServiceEnvironmentProperties', + 'IntegrationServiceEnvironmentSku', + 'IntegrationServiceEnvironmentSkuCapacity', + 'IntegrationServiceEnvironmentSkuDefinition', + 'IntegrationServiceEnvironmentSkuDefinitionSku', + 'IntegrationServiceEnvironmentSkuList', + 'IntegrationServiceEnvironmentSubnetNetworkHealth', + 'IpAddress', + 'IpAddressRange', + 'JsonSchema', + 'KeyVaultKey', + 'KeyVaultKeyAttributes', + 'KeyVaultKeyCollection', + 'KeyVaultKeyReference', + 'KeyVaultKeyReferenceKeyVault', + 'KeyVaultReference', + 'ListKeyVaultKeysDefinition', + 'ManagedApi', + 'ManagedApiListResult', + 'NetworkConfiguration', + 'Object', + 'OpenAuthenticationAccessPolicies', + 'OpenAuthenticationAccessPolicy', + 'OpenAuthenticationPolicyClaim', + 'Operation', + 'OperationDisplay', + 'OperationListResult', + 'OperationResult', + 'OperationResultProperties', + 'PartnerContent', + 'RecurrenceSchedule', + 'RecurrenceScheduleOccurrence', + 'RegenerateActionParameter', + 'RepetitionIndex', + 'Request', + 'RequestHistory', + 'RequestHistoryListResult', + 'RequestHistoryProperties', + 'Resource', + 'ResourceReference', + 'Response', + 'RetryHistory', + 'RunActionCorrelation', + 'RunCorrelation', + 'SetTriggerStateActionDefinition', + 'Sku', + 'SubResource', + 'SwaggerCustomDynamicList', + 'SwaggerCustomDynamicProperties', + 'SwaggerCustomDynamicSchema', + 'SwaggerCustomDynamicTree', + 'SwaggerCustomDynamicTreeCommand', + 'SwaggerCustomDynamicTreeParameter', + 'SwaggerCustomDynamicTreeSettings', + 'SwaggerExternalDocumentation', + 'SwaggerSchema', + 'SwaggerXml', + 'TrackingEvent', + 'TrackingEventErrorInfo', + 'TrackingEventsDefinition', + 'Workflow', + 'WorkflowFilter', + 'WorkflowListResult', + 'WorkflowOutputParameter', + 'WorkflowParameter', + 'WorkflowProperties', + 'WorkflowReference', + 'WorkflowRun', + 'WorkflowRunAction', + 'WorkflowRunActionFilter', + 'WorkflowRunActionListResult', + 'WorkflowRunActionProperties', + 'WorkflowRunActionRepetitionDefinition', + 'WorkflowRunActionRepetitionDefinitionCollection', + 'WorkflowRunActionRepetitionProperties', + 'WorkflowRunFilter', + 'WorkflowRunListResult', + 'WorkflowRunProperties', + 'WorkflowRunTrigger', + 'WorkflowTrigger', + 'WorkflowTriggerCallbackUrl', + 'WorkflowTriggerFilter', + 'WorkflowTriggerHistory', + 'WorkflowTriggerHistoryFilter', + 'WorkflowTriggerHistoryListResult', + 'WorkflowTriggerHistoryProperties', + 'WorkflowTriggerListCallbackUrlQueries', + 'WorkflowTriggerListResult', + 'WorkflowTriggerProperties', + 'WorkflowTriggerRecurrence', + 'WorkflowTriggerReference', + 'WorkflowVersion', + 'WorkflowVersionListResult', + 'WorkflowVersionProperties', + 'WsdlService', + 'X12AcknowledgementSettings', + 'X12AgreementContent', + 'X12DelimiterOverrides', + 'X12EnvelopeOverride', + 'X12EnvelopeSettings', + 'X12FramingSettings', + 'X12MessageFilter', + 'X12MessageIdentifier', + 'X12OneWayAgreement', + 'X12ProcessingSettings', + 'X12ProtocolSettings', + 'X12SchemaReference', + 'X12SecuritySettings', + 'X12ValidationOverride', + 'X12ValidationSettings', + 'AgreementType', + 'ApiDeploymentParameterVisibility', + 'ApiTier', + 'ApiType', + 'AzureAsyncOperationState', + 'DayOfWeek', + 'DaysOfWeek', + 'EdifactCharacterSet', + 'EdifactDecimalIndicator', + 'EncryptionAlgorithm', + 'ErrorResponseCode', + 'EventLevel', + 'HashingAlgorithm', + 'IntegrationAccountSkuName', + 'IntegrationServiceEnvironmentAccessEndpointType', + 'IntegrationServiceEnvironmentNetworkDependencyCategoryType', + 'IntegrationServiceEnvironmentNetworkDependencyHealthState', + 'IntegrationServiceEnvironmentNetworkEndPointAccessibilityState', + 'IntegrationServiceEnvironmentSkuName', + 'IntegrationServiceEnvironmentSkuScaleType', + 'KeyType', + 'MapType', + 'MessageFilterType', + 'ParameterType', + 'PartnerType', + 'RecurrenceFrequency', + 'SchemaType', + 'SegmentTerminatorSuffix', + 'SigningAlgorithm', + 'SkuName', + 'StatusAnnotation', + 'SwaggerSchemaType', + 'TrackEventsOperationOptions', + 'TrackingRecordType', + 'TrailingSeparatorPolicy', + 'UsageIndicator', + 'WorkflowProvisioningState', + 'WorkflowState', + 'WorkflowStatus', + 'WorkflowTriggerProvisioningState', + 'WsdlImportMethod', + 'X12CharacterSet', + 'X12DateFormat', + 'X12TimeFormat', +] diff --git a/src/logic/azext_logic/vendored_sdks/logic/models/_logic_management_client_enums.py b/src/logic/azext_logic/vendored_sdks/logic/models/_logic_management_client_enums.py new file mode 100644 index 00000000000..736ad03fb34 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/models/_logic_management_client_enums.py @@ -0,0 +1,408 @@ +# 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 enum import Enum + +class WorkflowProvisioningState(str, Enum): + + not_specified = "NotSpecified" + accepted = "Accepted" + running = "Running" + ready = "Ready" + creating = "Creating" + created = "Created" + deleting = "Deleting" + deleted = "Deleted" + canceled = "Canceled" + failed = "Failed" + succeeded = "Succeeded" + moving = "Moving" + updating = "Updating" + registering = "Registering" + registered = "Registered" + unregistering = "Unregistering" + unregistered = "Unregistered" + completed = "Completed" + renewing = "Renewing" + pending = "Pending" + waiting = "Waiting" + in_progress = "InProgress" + +class WorkflowState(str, Enum): + + not_specified = "NotSpecified" + completed = "Completed" + enabled = "Enabled" + disabled = "Disabled" + deleted = "Deleted" + suspended = "Suspended" + +class SkuName(str, Enum): + + not_specified = "NotSpecified" + free = "Free" + shared = "Shared" + basic = "Basic" + standard = "Standard" + premium = "Premium" + +class ParameterType(str, Enum): + + not_specified = "NotSpecified" + string = "String" + secure_string = "SecureString" + int_enum = "Int" + float_enum = "Float" + bool_enum = "Bool" + array = "Array" + object_enum = "Object" + secure_object = "SecureObject" + +class DaysOfWeek(str, Enum): + + sunday = "Sunday" + monday = "Monday" + tuesday = "Tuesday" + wednesday = "Wednesday" + thursday = "Thursday" + friday = "Friday" + saturday = "Saturday" + +class DayOfWeek(str, Enum): + + sunday = "Sunday" + monday = "Monday" + tuesday = "Tuesday" + wednesday = "Wednesday" + thursday = "Thursday" + friday = "Friday" + saturday = "Saturday" + +class WorkflowTriggerProvisioningState(str, Enum): + + not_specified = "NotSpecified" + accepted = "Accepted" + running = "Running" + ready = "Ready" + creating = "Creating" + created = "Created" + deleting = "Deleting" + deleted = "Deleted" + canceled = "Canceled" + failed = "Failed" + succeeded = "Succeeded" + moving = "Moving" + updating = "Updating" + registering = "Registering" + registered = "Registered" + unregistering = "Unregistering" + unregistered = "Unregistered" + completed = "Completed" + +class WorkflowStatus(str, Enum): + + not_specified = "NotSpecified" + paused = "Paused" + running = "Running" + waiting = "Waiting" + succeeded = "Succeeded" + skipped = "Skipped" + suspended = "Suspended" + cancelled = "Cancelled" + failed = "Failed" + faulted = "Faulted" + timed_out = "TimedOut" + aborted = "Aborted" + ignored = "Ignored" + +class RecurrenceFrequency(str, Enum): + + not_specified = "NotSpecified" + second = "Second" + minute = "Minute" + hour = "Hour" + day = "Day" + week = "Week" + month = "Month" + year = "Year" + +class IntegrationAccountSkuName(str, Enum): + + not_specified = "NotSpecified" + free = "Free" + basic = "Basic" + standard = "Standard" + +class IntegrationServiceEnvironmentAccessEndpointType(str, Enum): + + not_specified = "NotSpecified" + external = "External" + internal = "Internal" + +class IntegrationServiceEnvironmentSkuName(str, Enum): + + not_specified = "NotSpecified" + premium = "Premium" + developer = "Developer" + +class EventLevel(str, Enum): + + log_always = "LogAlways" + critical = "Critical" + error = "Error" + warning = "Warning" + informational = "Informational" + verbose = "Verbose" + +class TrackingRecordType(str, Enum): + + not_specified = "NotSpecified" + custom = "Custom" + as2_message = "AS2Message" + as2_mdn = "AS2MDN" + x12_interchange = "X12Interchange" + x12_functional_group = "X12FunctionalGroup" + x12_transaction_set = "X12TransactionSet" + x12_interchange_acknowledgment = "X12InterchangeAcknowledgment" + x12_functional_group_acknowledgment = "X12FunctionalGroupAcknowledgment" + x12_transaction_set_acknowledgment = "X12TransactionSetAcknowledgment" + edifact_interchange = "EdifactInterchange" + edifact_functional_group = "EdifactFunctionalGroup" + edifact_transaction_set = "EdifactTransactionSet" + edifact_interchange_acknowledgment = "EdifactInterchangeAcknowledgment" + edifact_functional_group_acknowledgment = "EdifactFunctionalGroupAcknowledgment" + edifact_transaction_set_acknowledgment = "EdifactTransactionSetAcknowledgment" + +class SchemaType(str, Enum): + + not_specified = "NotSpecified" + xml = "Xml" + +class MapType(str, Enum): + + not_specified = "NotSpecified" + xslt = "Xslt" + xslt20 = "Xslt20" + xslt30 = "Xslt30" + liquid = "Liquid" + +class PartnerType(str, Enum): + + not_specified = "NotSpecified" + b2_b = "B2B" + +class X12DateFormat(str, Enum): + + not_specified = "NotSpecified" + ccyymmdd = "CCYYMMDD" + yymmdd = "YYMMDD" + +class X12TimeFormat(str, Enum): + + not_specified = "NotSpecified" + hhmm = "HHMM" + hhmmss = "HHMMSS" + hhmms_sdd = "HHMMSSdd" + hhmms_sd = "HHMMSSd" + +class TrailingSeparatorPolicy(str, Enum): + + not_specified = "NotSpecified" + not_allowed = "NotAllowed" + optional = "Optional" + mandatory = "Mandatory" + +class SegmentTerminatorSuffix(str, Enum): + + not_specified = "NotSpecified" + none = "None" + cr = "CR" + lf = "LF" + crlf = "CRLF" + +class EdifactDecimalIndicator(str, Enum): + + not_specified = "NotSpecified" + comma = "Comma" + decimal_enum = "Decimal" + +class AgreementType(str, Enum): + + not_specified = "NotSpecified" + as2 = "AS2" + x12 = "X12" + edifact = "Edifact" + +class HashingAlgorithm(str, Enum): + + not_specified = "NotSpecified" + none = "None" + md5 = "MD5" + sha1 = "SHA1" + sha2256 = "SHA2256" + sha2384 = "SHA2384" + sha2512 = "SHA2512" + +class EncryptionAlgorithm(str, Enum): + + not_specified = "NotSpecified" + none = "None" + des3 = "DES3" + rc2 = "RC2" + aes128 = "AES128" + aes192 = "AES192" + aes256 = "AES256" + +class SigningAlgorithm(str, Enum): + + not_specified = "NotSpecified" + default = "Default" + sha1 = "SHA1" + sha2256 = "SHA2256" + sha2384 = "SHA2384" + sha2512 = "SHA2512" + +class X12CharacterSet(str, Enum): + + not_specified = "NotSpecified" + basic = "Basic" + extended = "Extended" + utf8 = "UTF8" + +class UsageIndicator(str, Enum): + + not_specified = "NotSpecified" + test = "Test" + information = "Information" + production = "Production" + +class MessageFilterType(str, Enum): + + not_specified = "NotSpecified" + include = "Include" + exclude = "Exclude" + +class EdifactCharacterSet(str, Enum): + + not_specified = "NotSpecified" + unob = "UNOB" + unoa = "UNOA" + unoc = "UNOC" + unod = "UNOD" + unoe = "UNOE" + unof = "UNOF" + unog = "UNOG" + unoh = "UNOH" + unoi = "UNOI" + unoj = "UNOJ" + unok = "UNOK" + unox = "UNOX" + unoy = "UNOY" + keca = "KECA" + +class IntegrationServiceEnvironmentSkuScaleType(str, Enum): + + manual = "Manual" + automatic = "Automatic" + none = "None" + +class IntegrationServiceEnvironmentNetworkEndPointAccessibilityState(str, Enum): + + not_specified = "NotSpecified" + unknown = "Unknown" + available = "Available" + not_available = "NotAvailable" + +class IntegrationServiceEnvironmentNetworkDependencyCategoryType(str, Enum): + + not_specified = "NotSpecified" + azure_storage = "AzureStorage" + azure_management = "AzureManagement" + azure_active_directory = "AzureActiveDirectory" + ssl_certificate_verification = "SSLCertificateVerification" + diagnostic_logs_and_metrics = "DiagnosticLogsAndMetrics" + integration_service_environment_connectors = "IntegrationServiceEnvironmentConnectors" + redis_cache = "RedisCache" + access_endpoints = "AccessEndpoints" + recovery_service = "RecoveryService" + sql = "SQL" + regional_service = "RegionalService" + +class ErrorResponseCode(str, Enum): + + not_specified = "NotSpecified" + integration_service_environment_not_found = "IntegrationServiceEnvironmentNotFound" + internal_server_error = "InternalServerError" + invalid_operation_id = "InvalidOperationId" + +class ApiType(str, Enum): + + not_specified = "NotSpecified" + rest = "Rest" + soap = "Soap" + +class WsdlImportMethod(str, Enum): + + not_specified = "NotSpecified" + soap_to_rest = "SoapToRest" + soap_pass_through = "SoapPassThrough" + +class ApiDeploymentParameterVisibility(str, Enum): + + not_specified = "NotSpecified" + default = "Default" + internal = "Internal" + +class ApiTier(str, Enum): + + not_specified = "NotSpecified" + enterprise = "Enterprise" + standard = "Standard" + premium = "Premium" + +class SwaggerSchemaType(str, Enum): + + string = "String" + number = "Number" + integer = "Integer" + boolean = "Boolean" + array = "Array" + file = "File" + object_enum = "Object" + null = "Null" + +class StatusAnnotation(str, Enum): + + not_specified = "NotSpecified" + preview = "Preview" + production = "Production" + +class KeyType(str, Enum): + + not_specified = "NotSpecified" + primary = "Primary" + secondary = "Secondary" + +class TrackEventsOperationOptions(str, Enum): + + none = "None" + disable_source_info_enrich = "DisableSourceInfoEnrich" + +class IntegrationServiceEnvironmentNetworkDependencyHealthState(str, Enum): + + not_specified = "NotSpecified" + healthy = "Healthy" + unhealthy = "Unhealthy" + unknown = "Unknown" + +class AzureAsyncOperationState(str, Enum): + + failed = "Failed" + succeeded = "Succeeded" + pending = "Pending" + canceled = "Canceled" diff --git a/src/logic/azext_logic/vendored_sdks/logic/models/_models.py b/src/logic/azext_logic/vendored_sdks/logic/models/_models.py new file mode 100644 index 00000000000..e77a3a5a0a6 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/models/_models.py @@ -0,0 +1,8892 @@ +# 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 azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class AgreementContent(msrest.serialization.Model): + """The integration account agreement content. + + :param a_s2: The integration account AS2 agreement content. + :type a_s2: ~logic_management_client.models.As2AgreementContent + :param x12: The X12 agreement content. + :type x12: ~logic_management_client.models.X12AgreementContent + :param edifact: The Edifact agreement content. + :type edifact: ~logic_management_client.models.EdifactAgreementContent + """ + + _attribute_map = { + 'a_s2': {'key': 'aS2', 'type': 'As2AgreementContent'}, + 'x12': {'key': 'x12', 'type': 'X12AgreementContent'}, + 'edifact': {'key': 'edifact', 'type': 'EdifactAgreementContent'}, + } + + def __init__( + self, + **kwargs + ): + super(AgreementContent, self).__init__(**kwargs) + self.a_s2 = kwargs.get('a_s2', None) + self.x12 = kwargs.get('x12', None) + self.edifact = kwargs.get('edifact', None) + + +class ApiDeploymentParameterMetadata(msrest.serialization.Model): + """The API deployment parameter metadata. + + :param type: The type. + :type type: str + :param is_required: Indicates whether its required. + :type is_required: bool + :param display_name: The display name. + :type display_name: str + :param description: The description. + :type description: str + :param visibility: The Api deployment parameter visibility. Possible values include: + 'NotSpecified', 'Default', 'Internal'. + :type visibility: str or ~logic_management_client.models.ApiDeploymentParameterVisibility + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiDeploymentParameterMetadata, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.is_required = kwargs.get('is_required', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.visibility = kwargs.get('visibility', None) + + +class ApiDeploymentParameterMetadataSet(msrest.serialization.Model): + """The API deployment parameters metadata. + + :param package_content_link: The API deployment parameter metadata. + :type package_content_link: ~logic_management_client.models.ApiDeploymentParameterMetadata + :param redis_cache_connection_string: The API deployment parameter metadata. + :type redis_cache_connection_string: + ~logic_management_client.models.ApiDeploymentParameterMetadata + """ + + _attribute_map = { + 'package_content_link': {'key': 'packageContentLink', 'type': 'ApiDeploymentParameterMetadata'}, + 'redis_cache_connection_string': {'key': 'redisCacheConnectionString', 'type': 'ApiDeploymentParameterMetadata'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiDeploymentParameterMetadataSet, self).__init__(**kwargs) + self.package_content_link = kwargs.get('package_content_link', None) + self.redis_cache_connection_string = kwargs.get('redis_cache_connection_string', None) + + +class Resource(msrest.serialization.Model): + """The base resource type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class ApiOperation(Resource): + """The api operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The api operations properties. + :type properties: ~logic_management_client.models.ApiOperationPropertiesDefinition + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApiOperationPropertiesDefinition'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiOperation, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ApiOperationAnnotation(msrest.serialization.Model): + """The Api Operation Annotation. + + :param status: The status annotation. Possible values include: 'NotSpecified', 'Preview', + 'Production'. + :type status: str or ~logic_management_client.models.StatusAnnotation + :param family: The family. + :type family: str + :param revision: The revision. + :type revision: int + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiOperationAnnotation, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.family = kwargs.get('family', None) + self.revision = kwargs.get('revision', None) + + +class ApiOperationListResult(msrest.serialization.Model): + """The list of managed API operations. + + :param value: The api operation definitions for an API. + :type value: list[~logic_management_client.models.ApiOperation] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApiOperation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiOperationListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class ApiOperationPropertiesDefinition(msrest.serialization.Model): + """The api operations properties. + + :param summary: The summary of the api operation. + :type summary: str + :param description: The description of the api operation. + :type description: str + :param visibility: The visibility of the api operation. + :type visibility: str + :param trigger: The trigger type of api operation. + :type trigger: str + :param trigger_hint: The trigger hint for the api operation. + :type trigger_hint: str + :param pageable: Indicates whether the api operation is pageable. + :type pageable: bool + :param annotation: The Api Operation Annotation. + :type annotation: ~logic_management_client.models.ApiOperationAnnotation + :param api: The Api reference. + :type api: ~logic_management_client.models.ApiReference + :param inputs_definition: The swagger schema. + :type inputs_definition: ~logic_management_client.models.SwaggerSchema + :param responses_definition: The operation responses definition schemas. + :type responses_definition: dict[str, ~logic_management_client.models.SwaggerSchema] + :param is_webhook: Indicates whether the API operation is webhook or not. + :type is_webhook: bool + :param is_notification: Indicates whether the API operation is notification or not. + :type is_notification: bool + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'str'}, + 'trigger_hint': {'key': 'triggerHint', 'type': 'str'}, + 'pageable': {'key': 'pageable', 'type': 'bool'}, + 'annotation': {'key': 'annotation', 'type': 'ApiOperationAnnotation'}, + 'api': {'key': 'api', 'type': 'ApiReference'}, + 'inputs_definition': {'key': 'inputsDefinition', 'type': 'SwaggerSchema'}, + 'responses_definition': {'key': 'responsesDefinition', 'type': '{SwaggerSchema}'}, + 'is_webhook': {'key': 'isWebhook', 'type': 'bool'}, + 'is_notification': {'key': 'isNotification', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiOperationPropertiesDefinition, self).__init__(**kwargs) + self.summary = kwargs.get('summary', None) + self.description = kwargs.get('description', None) + self.visibility = kwargs.get('visibility', None) + self.trigger = kwargs.get('trigger', None) + self.trigger_hint = kwargs.get('trigger_hint', None) + self.pageable = kwargs.get('pageable', None) + self.annotation = kwargs.get('annotation', None) + self.api = kwargs.get('api', None) + self.inputs_definition = kwargs.get('inputs_definition', None) + self.responses_definition = kwargs.get('responses_definition', None) + self.is_webhook = kwargs.get('is_webhook', None) + self.is_notification = kwargs.get('is_notification', None) + + +class ResourceReference(msrest.serialization.Model): + """The resource reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceReference, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = None + self.type = None + + +class ApiReference(ResourceReference): + """The Api reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param display_name: The display name of the api. + :type display_name: str + :param description: The description of the api. + :type description: str + :param icon_uri: The icon uri of the api. + :type icon_uri: str + :param swagger: + :type swagger: ~logic_management_client.models.Object + :param brand_color: The brand color of the api. + :type brand_color: str + :param category: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', + 'Standard', 'Premium'. + :type category: str or ~logic_management_client.models.ApiTier + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'swagger': {'key': 'swagger', 'type': 'Object'}, + 'brand_color': {'key': 'brandColor', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiReference, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.icon_uri = kwargs.get('icon_uri', None) + self.swagger = kwargs.get('swagger', None) + self.brand_color = kwargs.get('brand_color', None) + self.category = kwargs.get('category', None) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + + +class ApiResourceBackendService(msrest.serialization.Model): + """The API backend service. + + :param service_url: The service URL. + :type service_url: str + """ + + _attribute_map = { + 'service_url': {'key': 'serviceUrl', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourceBackendService, self).__init__(**kwargs) + self.service_url = kwargs.get('service_url', None) + + +class ApiResourceDefinitions(msrest.serialization.Model): + """The Api resource definition. + + :param original_swagger_url: The original swagger url. + :type original_swagger_url: str + :param modified_swagger_url: The modified swagger url. + :type modified_swagger_url: str + """ + + _attribute_map = { + 'original_swagger_url': {'key': 'originalSwaggerUrl', 'type': 'str'}, + 'modified_swagger_url': {'key': 'modifiedSwaggerUrl', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourceDefinitions, self).__init__(**kwargs) + self.original_swagger_url = kwargs.get('original_swagger_url', None) + self.modified_swagger_url = kwargs.get('modified_swagger_url', None) + + +class ApiResourceGeneralInformation(msrest.serialization.Model): + """The API general information. + + :param icon_url: The icon url. + :type icon_url: str + :param display_name: The display name. + :type display_name: str + :param description: The description. + :type description: str + :param terms_of_use_url: The terms of use url. + :type terms_of_use_url: str + :param release_tag: The release tag. + :type release_tag: str + :param tier: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', 'Standard', + 'Premium'. + :type tier: str or ~logic_management_client.models.ApiTier + """ + + _attribute_map = { + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'terms_of_use_url': {'key': 'termsOfUseUrl', 'type': 'str'}, + 'release_tag': {'key': 'releaseTag', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourceGeneralInformation, self).__init__(**kwargs) + self.icon_url = kwargs.get('icon_url', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.terms_of_use_url = kwargs.get('terms_of_use_url', None) + self.release_tag = kwargs.get('release_tag', None) + self.tier = kwargs.get('tier', None) + + +class ApiResourceMetadata(msrest.serialization.Model): + """The api resource metadata. + + :param source: The source. + :type source: str + :param brand_color: The brand color. + :type brand_color: str + :param hide_key: The hide key. + :type hide_key: str + :param tags: A set of tags. The tags. + :type tags: dict[str, str] + :param api_type: Possible values include: 'NotSpecified', 'Rest', 'Soap'. + :type api_type: str or ~logic_management_client.models.ApiType + :param wsdl_service: The WSDL service. + :type wsdl_service: ~logic_management_client.models.WsdlService + :param wsdl_import_method: The WSDL import method. Possible values include: 'NotSpecified', + 'SoapToRest', 'SoapPassThrough'. + :type wsdl_import_method: str or ~logic_management_client.models.WsdlImportMethod + :param connection_type: The connection type. + :type connection_type: str + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param deployment_parameters: The API deployment parameters metadata. + :type deployment_parameters: ~logic_management_client.models.ApiDeploymentParameterMetadataSet + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + 'brand_color': {'key': 'brandColor', 'type': 'str'}, + 'hide_key': {'key': 'hideKey', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'api_type': {'key': 'ApiType', 'type': 'str'}, + 'wsdl_service': {'key': 'wsdlService', 'type': 'WsdlService'}, + 'wsdl_import_method': {'key': 'wsdlImportMethod', 'type': 'str'}, + 'connection_type': {'key': 'connectionType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'deployment_parameters': {'key': 'deploymentParameters', 'type': 'ApiDeploymentParameterMetadataSet'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourceMetadata, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.brand_color = kwargs.get('brand_color', None) + self.hide_key = kwargs.get('hide_key', None) + self.tags = kwargs.get('tags', None) + self.api_type = kwargs.get('api_type', None) + self.wsdl_service = kwargs.get('wsdl_service', None) + self.wsdl_import_method = kwargs.get('wsdl_import_method', None) + self.connection_type = kwargs.get('connection_type', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.deployment_parameters = kwargs.get('deployment_parameters', None) + + +class ApiResourcePolicies(msrest.serialization.Model): + """The API resource policies. + + :param content: The API level only policies XML as embedded content. + :type content: str + :param content_link: The content link to the policies. + :type content_link: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourcePolicies, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + self.content_link = kwargs.get('content_link', None) + + +class ApiResourceProperties(msrest.serialization.Model): + """The API resource properties. + + :param name: The name. + :type name: str + :param connection_parameters: The connection parameters. + :type connection_parameters: dict[str, object] + :param metadata: The api resource metadata. + :type metadata: ~logic_management_client.models.ApiResourceMetadata + :param runtime_urls: The runtime urls. + :type runtime_urls: list[str] + :param general_information: The API general information. + :type general_information: ~logic_management_client.models.ApiResourceGeneralInformation + :param capabilities: The capabilities. + :type capabilities: list[str] + :param backend_service: The API backend service. + :type backend_service: ~logic_management_client.models.ApiResourceBackendService + :param policies: The API resource policies. + :type policies: ~logic_management_client.models.ApiResourcePolicies + :param api_definition_url: The API definition. + :type api_definition_url: str + :param api_definitions: The Api resource definition. + :type api_definitions: ~logic_management_client.models.ApiResourceDefinitions + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param category: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', + 'Standard', 'Premium'. + :type category: str or ~logic_management_client.models.ApiTier + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiResourceProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.connection_parameters = kwargs.get('connection_parameters', None) + self.metadata = kwargs.get('metadata', None) + self.runtime_urls = kwargs.get('runtime_urls', None) + self.general_information = kwargs.get('general_information', None) + self.capabilities = kwargs.get('capabilities', None) + self.backend_service = kwargs.get('backend_service', None) + self.policies = kwargs.get('policies', None) + self.api_definition_url = kwargs.get('api_definition_url', None) + self.api_definitions = kwargs.get('api_definitions', None) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.category = kwargs.get('category', None) + + +class ArtifactProperties(msrest.serialization.Model): + """The artifact properties definition. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + """ + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(ArtifactProperties, self).__init__(**kwargs) + self.created_time = kwargs.get('created_time', None) + self.changed_time = kwargs.get('changed_time', None) + self.metadata = kwargs.get('metadata', None) + + +class ArtifactContentPropertiesDefinition(ArtifactProperties): + """The artifact content properties definition. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param content: Any object. + :type content: object + :param content_type: The content type. + :type content_type: str + :param content_link: The content link. + :type content_link: ~logic_management_client.models.ContentLink + """ + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'object'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + **kwargs + ): + super(ArtifactContentPropertiesDefinition, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + self.content_type = kwargs.get('content_type', None) + self.content_link = kwargs.get('content_link', None) + + +class As2AcknowledgementConnectionSettings(msrest.serialization.Model): + """The AS2 agreement acknowledgement connection settings. + + All required parameters must be populated in order to send to Azure. + + :param ignore_certificate_name_mismatch: Required. Indicates whether to ignore mismatch in + certificate name. + :type ignore_certificate_name_mismatch: bool + :param support_http_status_code_continue: Required. Indicates whether to support HTTP status + code 'CONTINUE'. + :type support_http_status_code_continue: bool + :param keep_http_connection_alive: Required. Indicates whether to keep the connection alive. + :type keep_http_connection_alive: bool + :param unfold_http_headers: Required. Indicates whether to unfold the HTTP headers. + :type unfold_http_headers: bool + """ + + _validation = { + 'ignore_certificate_name_mismatch': {'required': True}, + 'support_http_status_code_continue': {'required': True}, + 'keep_http_connection_alive': {'required': True}, + 'unfold_http_headers': {'required': True}, + } + + _attribute_map = { + 'ignore_certificate_name_mismatch': {'key': 'ignoreCertificateNameMismatch', 'type': 'bool'}, + 'support_http_status_code_continue': {'key': 'supportHttpStatusCodeContinue', 'type': 'bool'}, + 'keep_http_connection_alive': {'key': 'keepHttpConnectionAlive', 'type': 'bool'}, + 'unfold_http_headers': {'key': 'unfoldHttpHeaders', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(As2AcknowledgementConnectionSettings, self).__init__(**kwargs) + self.ignore_certificate_name_mismatch = kwargs.get('ignore_certificate_name_mismatch', None) + self.support_http_status_code_continue = kwargs.get('support_http_status_code_continue', None) + self.keep_http_connection_alive = kwargs.get('keep_http_connection_alive', None) + self.unfold_http_headers = kwargs.get('unfold_http_headers', None) + + +class As2AgreementContent(msrest.serialization.Model): + """The integration account AS2 agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The integration account AS2 one-way agreement. + :type receive_agreement: ~logic_management_client.models.As2OneWayAgreement + :param send_agreement: Required. The integration account AS2 one-way agreement. + :type send_agreement: ~logic_management_client.models.As2OneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'As2OneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'As2OneWayAgreement'}, + } + + def __init__( + self, + **kwargs + ): + super(As2AgreementContent, self).__init__(**kwargs) + self.receive_agreement = kwargs.get('receive_agreement', None) + self.send_agreement = kwargs.get('send_agreement', None) + + +class As2EnvelopeSettings(msrest.serialization.Model): + """The AS2 agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param message_content_type: Required. The message content type. + :type message_content_type: str + :param transmit_file_name_in_mime_header: Required. The value indicating whether to transmit + file name in mime header. + :type transmit_file_name_in_mime_header: bool + :param file_name_template: Required. The template for file name. + :type file_name_template: str + :param suspend_message_on_file_name_generation_error: Required. The value indicating whether to + suspend message on file name generation error. + :type suspend_message_on_file_name_generation_error: bool + :param autogenerate_file_name: Required. The value indicating whether to auto generate file + name. + :type autogenerate_file_name: bool + """ + + _validation = { + 'message_content_type': {'required': True}, + 'transmit_file_name_in_mime_header': {'required': True}, + 'file_name_template': {'required': True}, + 'suspend_message_on_file_name_generation_error': {'required': True}, + 'autogenerate_file_name': {'required': True}, + } + + _attribute_map = { + 'message_content_type': {'key': 'messageContentType', 'type': 'str'}, + 'transmit_file_name_in_mime_header': {'key': 'transmitFileNameInMimeHeader', 'type': 'bool'}, + 'file_name_template': {'key': 'fileNameTemplate', 'type': 'str'}, + 'suspend_message_on_file_name_generation_error': {'key': 'suspendMessageOnFileNameGenerationError', 'type': 'bool'}, + 'autogenerate_file_name': {'key': 'autogenerateFileName', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(As2EnvelopeSettings, self).__init__(**kwargs) + self.message_content_type = kwargs.get('message_content_type', None) + self.transmit_file_name_in_mime_header = kwargs.get('transmit_file_name_in_mime_header', None) + self.file_name_template = kwargs.get('file_name_template', None) + self.suspend_message_on_file_name_generation_error = kwargs.get('suspend_message_on_file_name_generation_error', None) + self.autogenerate_file_name = kwargs.get('autogenerate_file_name', None) + + +class As2ErrorSettings(msrest.serialization.Model): + """The AS2 agreement error settings. + + All required parameters must be populated in order to send to Azure. + + :param suspend_duplicate_message: Required. The value indicating whether to suspend duplicate + message. + :type suspend_duplicate_message: bool + :param resend_if_mdn_not_received: Required. The value indicating whether to resend message If + MDN is not received. + :type resend_if_mdn_not_received: bool + """ + + _validation = { + 'suspend_duplicate_message': {'required': True}, + 'resend_if_mdn_not_received': {'required': True}, + } + + _attribute_map = { + 'suspend_duplicate_message': {'key': 'suspendDuplicateMessage', 'type': 'bool'}, + 'resend_if_mdn_not_received': {'key': 'resendIfMDNNotReceived', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(As2ErrorSettings, self).__init__(**kwargs) + self.suspend_duplicate_message = kwargs.get('suspend_duplicate_message', None) + self.resend_if_mdn_not_received = kwargs.get('resend_if_mdn_not_received', None) + + +class As2MdnSettings(msrest.serialization.Model): + """The AS2 agreement mdn settings. + + All required parameters must be populated in order to send to Azure. + + :param need_mdn: Required. The value indicating whether to send or request a MDN. + :type need_mdn: bool + :param sign_mdn: Required. The value indicating whether the MDN needs to be signed or not. + :type sign_mdn: bool + :param send_mdn_asynchronously: Required. The value indicating whether to send the asynchronous + MDN. + :type send_mdn_asynchronously: bool + :param receipt_delivery_url: The receipt delivery URL. + :type receipt_delivery_url: str + :param disposition_notification_to: The disposition notification to header value. + :type disposition_notification_to: str + :param sign_outbound_mdn_if_optional: Required. The value indicating whether to sign the + outbound MDN if optional. + :type sign_outbound_mdn_if_optional: bool + :param mdn_text: The MDN text. + :type mdn_text: str + :param send_inbound_mdn_to_message_box: Required. The value indicating whether to send inbound + MDN to message box. + :type send_inbound_mdn_to_message_box: bool + :param mic_hashing_algorithm: Required. The signing or hashing algorithm. Possible values + include: 'NotSpecified', 'None', 'MD5', 'SHA1', 'SHA2256', 'SHA2384', 'SHA2512'. + :type mic_hashing_algorithm: str or ~logic_management_client.models.HashingAlgorithm + """ + + _validation = { + 'need_mdn': {'required': True}, + 'sign_mdn': {'required': True}, + 'send_mdn_asynchronously': {'required': True}, + 'sign_outbound_mdn_if_optional': {'required': True}, + 'send_inbound_mdn_to_message_box': {'required': True}, + 'mic_hashing_algorithm': {'required': True}, + } + + _attribute_map = { + 'need_mdn': {'key': 'needMDN', 'type': 'bool'}, + 'sign_mdn': {'key': 'signMDN', 'type': 'bool'}, + 'send_mdn_asynchronously': {'key': 'sendMDNAsynchronously', 'type': 'bool'}, + 'receipt_delivery_url': {'key': 'receiptDeliveryUrl', 'type': 'str'}, + 'disposition_notification_to': {'key': 'dispositionNotificationTo', 'type': 'str'}, + 'sign_outbound_mdn_if_optional': {'key': 'signOutboundMDNIfOptional', 'type': 'bool'}, + 'mdn_text': {'key': 'mdnText', 'type': 'str'}, + 'send_inbound_mdn_to_message_box': {'key': 'sendInboundMDNToMessageBox', 'type': 'bool'}, + 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(As2MdnSettings, self).__init__(**kwargs) + self.need_mdn = kwargs.get('need_mdn', None) + self.sign_mdn = kwargs.get('sign_mdn', None) + self.send_mdn_asynchronously = kwargs.get('send_mdn_asynchronously', None) + self.receipt_delivery_url = kwargs.get('receipt_delivery_url', None) + self.disposition_notification_to = kwargs.get('disposition_notification_to', None) + self.sign_outbound_mdn_if_optional = kwargs.get('sign_outbound_mdn_if_optional', None) + self.mdn_text = kwargs.get('mdn_text', None) + self.send_inbound_mdn_to_message_box = kwargs.get('send_inbound_mdn_to_message_box', None) + self.mic_hashing_algorithm = kwargs.get('mic_hashing_algorithm', None) + + +class As2MessageConnectionSettings(msrest.serialization.Model): + """The AS2 agreement message connection settings. + + All required parameters must be populated in order to send to Azure. + + :param ignore_certificate_name_mismatch: Required. The value indicating whether to ignore + mismatch in certificate name. + :type ignore_certificate_name_mismatch: bool + :param support_http_status_code_continue: Required. The value indicating whether to support + HTTP status code 'CONTINUE'. + :type support_http_status_code_continue: bool + :param keep_http_connection_alive: Required. The value indicating whether to keep the + connection alive. + :type keep_http_connection_alive: bool + :param unfold_http_headers: Required. The value indicating whether to unfold the HTTP headers. + :type unfold_http_headers: bool + """ + + _validation = { + 'ignore_certificate_name_mismatch': {'required': True}, + 'support_http_status_code_continue': {'required': True}, + 'keep_http_connection_alive': {'required': True}, + 'unfold_http_headers': {'required': True}, + } + + _attribute_map = { + 'ignore_certificate_name_mismatch': {'key': 'ignoreCertificateNameMismatch', 'type': 'bool'}, + 'support_http_status_code_continue': {'key': 'supportHttpStatusCodeContinue', 'type': 'bool'}, + 'keep_http_connection_alive': {'key': 'keepHttpConnectionAlive', 'type': 'bool'}, + 'unfold_http_headers': {'key': 'unfoldHttpHeaders', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(As2MessageConnectionSettings, self).__init__(**kwargs) + self.ignore_certificate_name_mismatch = kwargs.get('ignore_certificate_name_mismatch', None) + self.support_http_status_code_continue = kwargs.get('support_http_status_code_continue', None) + self.keep_http_connection_alive = kwargs.get('keep_http_connection_alive', None) + self.unfold_http_headers = kwargs.get('unfold_http_headers', None) + + +class As2OneWayAgreement(msrest.serialization.Model): + """The integration account AS2 one-way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The AS2 agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.As2ProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'As2ProtocolSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(As2OneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = kwargs.get('sender_business_identity', None) + self.receiver_business_identity = kwargs.get('receiver_business_identity', None) + self.protocol_settings = kwargs.get('protocol_settings', None) + + +class As2ProtocolSettings(msrest.serialization.Model): + """The AS2 agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param message_connection_settings: Required. The AS2 agreement message connection settings. + :type message_connection_settings: ~logic_management_client.models.As2MessageConnectionSettings + :param acknowledgement_connection_settings: Required. The AS2 agreement acknowledgement + connection settings. + :type acknowledgement_connection_settings: + ~logic_management_client.models.As2AcknowledgementConnectionSettings + :param mdn_settings: Required. The AS2 agreement mdn settings. + :type mdn_settings: ~logic_management_client.models.As2MdnSettings + :param security_settings: Required. The AS2 agreement security settings. + :type security_settings: ~logic_management_client.models.As2SecuritySettings + :param validation_settings: Required. The AS2 agreement validation settings. + :type validation_settings: ~logic_management_client.models.As2ValidationSettings + :param envelope_settings: Required. The AS2 agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.As2EnvelopeSettings + :param error_settings: Required. The AS2 agreement error settings. + :type error_settings: ~logic_management_client.models.As2ErrorSettings + """ + + _validation = { + 'message_connection_settings': {'required': True}, + 'acknowledgement_connection_settings': {'required': True}, + 'mdn_settings': {'required': True}, + 'security_settings': {'required': True}, + 'validation_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'error_settings': {'required': True}, + } + + _attribute_map = { + 'message_connection_settings': {'key': 'messageConnectionSettings', 'type': 'As2MessageConnectionSettings'}, + 'acknowledgement_connection_settings': {'key': 'acknowledgementConnectionSettings', 'type': 'As2AcknowledgementConnectionSettings'}, + 'mdn_settings': {'key': 'mdnSettings', 'type': 'As2MdnSettings'}, + 'security_settings': {'key': 'securitySettings', 'type': 'As2SecuritySettings'}, + 'validation_settings': {'key': 'validationSettings', 'type': 'As2ValidationSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'As2EnvelopeSettings'}, + 'error_settings': {'key': 'errorSettings', 'type': 'As2ErrorSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(As2ProtocolSettings, self).__init__(**kwargs) + self.message_connection_settings = kwargs.get('message_connection_settings', None) + self.acknowledgement_connection_settings = kwargs.get('acknowledgement_connection_settings', None) + self.mdn_settings = kwargs.get('mdn_settings', None) + self.security_settings = kwargs.get('security_settings', None) + self.validation_settings = kwargs.get('validation_settings', None) + self.envelope_settings = kwargs.get('envelope_settings', None) + self.error_settings = kwargs.get('error_settings', None) + + +class As2SecuritySettings(msrest.serialization.Model): + """The AS2 agreement security settings. + + All required parameters must be populated in order to send to Azure. + + :param override_group_signing_certificate: Required. The value indicating whether to send or + request a MDN. + :type override_group_signing_certificate: bool + :param signing_certificate_name: The name of the signing certificate. + :type signing_certificate_name: str + :param encryption_certificate_name: The name of the encryption certificate. + :type encryption_certificate_name: str + :param enable_nrr_for_inbound_encoded_messages: Required. The value indicating whether to + enable NRR for inbound encoded messages. + :type enable_nrr_for_inbound_encoded_messages: bool + :param enable_nrr_for_inbound_decoded_messages: Required. The value indicating whether to + enable NRR for inbound decoded messages. + :type enable_nrr_for_inbound_decoded_messages: bool + :param enable_nrr_for_outbound_mdn: Required. The value indicating whether to enable NRR for + outbound MDN. + :type enable_nrr_for_outbound_mdn: bool + :param enable_nrr_for_outbound_encoded_messages: Required. The value indicating whether to + enable NRR for outbound encoded messages. + :type enable_nrr_for_outbound_encoded_messages: bool + :param enable_nrr_for_outbound_decoded_messages: Required. The value indicating whether to + enable NRR for outbound decoded messages. + :type enable_nrr_for_outbound_decoded_messages: bool + :param enable_nrr_for_inbound_mdn: Required. The value indicating whether to enable NRR for + inbound MDN. + :type enable_nrr_for_inbound_mdn: bool + :param sha2_algorithm_format: The Sha2 algorithm format. Valid values are Sha2, ShaHashSize, + ShaHyphenHashSize, Sha2UnderscoreHashSize. + :type sha2_algorithm_format: str + """ + + _validation = { + 'override_group_signing_certificate': {'required': True}, + 'enable_nrr_for_inbound_encoded_messages': {'required': True}, + 'enable_nrr_for_inbound_decoded_messages': {'required': True}, + 'enable_nrr_for_outbound_mdn': {'required': True}, + 'enable_nrr_for_outbound_encoded_messages': {'required': True}, + 'enable_nrr_for_outbound_decoded_messages': {'required': True}, + 'enable_nrr_for_inbound_mdn': {'required': True}, + } + + _attribute_map = { + 'override_group_signing_certificate': {'key': 'overrideGroupSigningCertificate', 'type': 'bool'}, + 'signing_certificate_name': {'key': 'signingCertificateName', 'type': 'str'}, + 'encryption_certificate_name': {'key': 'encryptionCertificateName', 'type': 'str'}, + 'enable_nrr_for_inbound_encoded_messages': {'key': 'enableNRRForInboundEncodedMessages', 'type': 'bool'}, + 'enable_nrr_for_inbound_decoded_messages': {'key': 'enableNRRForInboundDecodedMessages', 'type': 'bool'}, + 'enable_nrr_for_outbound_mdn': {'key': 'enableNRRForOutboundMDN', 'type': 'bool'}, + 'enable_nrr_for_outbound_encoded_messages': {'key': 'enableNRRForOutboundEncodedMessages', 'type': 'bool'}, + 'enable_nrr_for_outbound_decoded_messages': {'key': 'enableNRRForOutboundDecodedMessages', 'type': 'bool'}, + 'enable_nrr_for_inbound_mdn': {'key': 'enableNRRForInboundMDN', 'type': 'bool'}, + 'sha2_algorithm_format': {'key': 'sha2AlgorithmFormat', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(As2SecuritySettings, self).__init__(**kwargs) + self.override_group_signing_certificate = kwargs.get('override_group_signing_certificate', None) + self.signing_certificate_name = kwargs.get('signing_certificate_name', None) + self.encryption_certificate_name = kwargs.get('encryption_certificate_name', None) + self.enable_nrr_for_inbound_encoded_messages = kwargs.get('enable_nrr_for_inbound_encoded_messages', None) + self.enable_nrr_for_inbound_decoded_messages = kwargs.get('enable_nrr_for_inbound_decoded_messages', None) + self.enable_nrr_for_outbound_mdn = kwargs.get('enable_nrr_for_outbound_mdn', None) + self.enable_nrr_for_outbound_encoded_messages = kwargs.get('enable_nrr_for_outbound_encoded_messages', None) + self.enable_nrr_for_outbound_decoded_messages = kwargs.get('enable_nrr_for_outbound_decoded_messages', None) + self.enable_nrr_for_inbound_mdn = kwargs.get('enable_nrr_for_inbound_mdn', None) + self.sha2_algorithm_format = kwargs.get('sha2_algorithm_format', None) + + +class As2ValidationSettings(msrest.serialization.Model): + """The AS2 agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param override_message_properties: Required. The value indicating whether to override incoming + message properties with those in agreement. + :type override_message_properties: bool + :param encrypt_message: Required. The value indicating whether the message has to be encrypted. + :type encrypt_message: bool + :param sign_message: Required. The value indicating whether the message has to be signed. + :type sign_message: bool + :param compress_message: Required. The value indicating whether the message has to be + compressed. + :type compress_message: bool + :param check_duplicate_message: Required. The value indicating whether to check for duplicate + message. + :type check_duplicate_message: bool + :param interchange_duplicates_validity_days: Required. The number of days to look back for + duplicate interchange. + :type interchange_duplicates_validity_days: int + :param check_certificate_revocation_list_on_send: Required. The value indicating whether to + check for certificate revocation list on send. + :type check_certificate_revocation_list_on_send: bool + :param check_certificate_revocation_list_on_receive: Required. The value indicating whether to + check for certificate revocation list on receive. + :type check_certificate_revocation_list_on_receive: bool + :param encryption_algorithm: Required. The encryption algorithm. Possible values include: + 'NotSpecified', 'None', 'DES3', 'RC2', 'AES128', 'AES192', 'AES256'. + :type encryption_algorithm: str or ~logic_management_client.models.EncryptionAlgorithm + :param signing_algorithm: The signing or hashing algorithm. Possible values include: + 'NotSpecified', 'Default', 'SHA1', 'SHA2256', 'SHA2384', 'SHA2512'. + :type signing_algorithm: str or ~logic_management_client.models.SigningAlgorithm + """ + + _validation = { + 'override_message_properties': {'required': True}, + 'encrypt_message': {'required': True}, + 'sign_message': {'required': True}, + 'compress_message': {'required': True}, + 'check_duplicate_message': {'required': True}, + 'interchange_duplicates_validity_days': {'required': True}, + 'check_certificate_revocation_list_on_send': {'required': True}, + 'check_certificate_revocation_list_on_receive': {'required': True}, + 'encryption_algorithm': {'required': True}, + } + + _attribute_map = { + 'override_message_properties': {'key': 'overrideMessageProperties', 'type': 'bool'}, + 'encrypt_message': {'key': 'encryptMessage', 'type': 'bool'}, + 'sign_message': {'key': 'signMessage', 'type': 'bool'}, + 'compress_message': {'key': 'compressMessage', 'type': 'bool'}, + 'check_duplicate_message': {'key': 'checkDuplicateMessage', 'type': 'bool'}, + 'interchange_duplicates_validity_days': {'key': 'interchangeDuplicatesValidityDays', 'type': 'int'}, + 'check_certificate_revocation_list_on_send': {'key': 'checkCertificateRevocationListOnSend', 'type': 'bool'}, + 'check_certificate_revocation_list_on_receive': {'key': 'checkCertificateRevocationListOnReceive', 'type': 'bool'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'signing_algorithm': {'key': 'signingAlgorithm', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(As2ValidationSettings, self).__init__(**kwargs) + self.override_message_properties = kwargs.get('override_message_properties', None) + self.encrypt_message = kwargs.get('encrypt_message', None) + self.sign_message = kwargs.get('sign_message', None) + self.compress_message = kwargs.get('compress_message', None) + self.check_duplicate_message = kwargs.get('check_duplicate_message', None) + self.interchange_duplicates_validity_days = kwargs.get('interchange_duplicates_validity_days', None) + self.check_certificate_revocation_list_on_send = kwargs.get('check_certificate_revocation_list_on_send', None) + self.check_certificate_revocation_list_on_receive = kwargs.get('check_certificate_revocation_list_on_receive', None) + self.encryption_algorithm = kwargs.get('encryption_algorithm', None) + self.signing_algorithm = kwargs.get('signing_algorithm', None) + + +class AssemblyCollection(msrest.serialization.Model): + """A collection of assembly definitions. + + :param value: + :type value: list[~logic_management_client.models.AssemblyDefinition] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AssemblyDefinition]'}, + } + + def __init__( + self, + **kwargs + ): + super(AssemblyCollection, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class AssemblyDefinition(Resource): + """The assembly definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: Required. The assembly properties definition. + :type properties: ~logic_management_client.models.AssemblyProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'AssemblyProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(AssemblyDefinition, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class AssemblyProperties(ArtifactContentPropertiesDefinition): + """The assembly properties definition. + + All required parameters must be populated in order to send to Azure. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param content: Any object. + :type content: object + :param content_type: The content type. + :type content_type: str + :param content_link: The content link. + :type content_link: ~logic_management_client.models.ContentLink + :param assembly_name: Required. The assembly name. + :type assembly_name: str + :param assembly_version: The assembly version. + :type assembly_version: str + :param assembly_culture: The assembly culture. + :type assembly_culture: str + :param assembly_public_key_token: The assembly public key token. + :type assembly_public_key_token: str + """ + + _validation = { + 'assembly_name': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'object'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + 'assembly_name': {'key': 'assemblyName', 'type': 'str'}, + 'assembly_version': {'key': 'assemblyVersion', 'type': 'str'}, + 'assembly_culture': {'key': 'assemblyCulture', 'type': 'str'}, + 'assembly_public_key_token': {'key': 'assemblyPublicKeyToken', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AssemblyProperties, self).__init__(**kwargs) + self.assembly_name = kwargs.get('assembly_name', None) + self.assembly_version = kwargs.get('assembly_version', None) + self.assembly_culture = kwargs.get('assembly_culture', None) + self.assembly_public_key_token = kwargs.get('assembly_public_key_token', None) + + +class ErrorInfo(msrest.serialization.Model): + """The error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + """ + + _validation = { + 'code': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorInfo, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + + +class AzureResourceErrorInfo(ErrorInfo): + """The azure resource error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + :param message: Required. The error message. + :type message: str + :param details: The error details. + :type details: list[~logic_management_client.models.AzureResourceErrorInfo] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[AzureResourceErrorInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(AzureResourceErrorInfo, self).__init__(**kwargs) + self.message = kwargs.get('message', None) + self.details = kwargs.get('details', None) + + +class B2BPartnerContent(msrest.serialization.Model): + """The B2B partner content. + + :param business_identities: The list of partner business identities. + :type business_identities: list[~logic_management_client.models.BusinessIdentity] + """ + + _attribute_map = { + 'business_identities': {'key': 'businessIdentities', 'type': '[BusinessIdentity]'}, + } + + def __init__( + self, + **kwargs + ): + super(B2BPartnerContent, self).__init__(**kwargs) + self.business_identities = kwargs.get('business_identities', None) + + +class BatchConfiguration(Resource): + """The batch configuration resource definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: Required. The batch configuration properties definition. + :type properties: ~logic_management_client.models.BatchConfigurationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'BatchConfigurationProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(BatchConfiguration, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BatchConfigurationCollection(msrest.serialization.Model): + """A collection of batch configurations. + + :param value: + :type value: list[~logic_management_client.models.BatchConfiguration] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BatchConfiguration]'}, + } + + def __init__( + self, + **kwargs + ): + super(BatchConfigurationCollection, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class BatchConfigurationProperties(ArtifactProperties): + """The batch configuration properties definition. + + All required parameters must be populated in order to send to Azure. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param batch_group_name: Required. The name of the batch group. + :type batch_group_name: str + :param release_criteria: Required. The batch release criteria. + :type release_criteria: ~logic_management_client.models.BatchReleaseCriteria + """ + + _validation = { + 'batch_group_name': {'required': True}, + 'release_criteria': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'batch_group_name': {'key': 'batchGroupName', 'type': 'str'}, + 'release_criteria': {'key': 'releaseCriteria', 'type': 'BatchReleaseCriteria'}, + } + + def __init__( + self, + **kwargs + ): + super(BatchConfigurationProperties, self).__init__(**kwargs) + self.batch_group_name = kwargs.get('batch_group_name', None) + self.release_criteria = kwargs.get('release_criteria', None) + + +class BatchReleaseCriteria(msrest.serialization.Model): + """The batch release criteria. + + :param message_count: The message count. + :type message_count: int + :param batch_size: The batch size in bytes. + :type batch_size: int + :param recurrence: The workflow trigger recurrence. + :type recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + """ + + _attribute_map = { + 'message_count': {'key': 'messageCount', 'type': 'int'}, + 'batch_size': {'key': 'batchSize', 'type': 'int'}, + 'recurrence': {'key': 'recurrence', 'type': 'WorkflowTriggerRecurrence'}, + } + + def __init__( + self, + **kwargs + ): + super(BatchReleaseCriteria, self).__init__(**kwargs) + self.message_count = kwargs.get('message_count', None) + self.batch_size = kwargs.get('batch_size', None) + self.recurrence = kwargs.get('recurrence', None) + + +class BusinessIdentity(msrest.serialization.Model): + """The integration account partner's business identity. + + All required parameters must be populated in order to send to Azure. + + :param qualifier: Required. The business identity qualifier e.g. as2identity, ZZ, ZZZ, 31, 32. + :type qualifier: str + :param value: Required. The user defined business identity value. + :type value: str + """ + + _validation = { + 'qualifier': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'qualifier': {'key': 'qualifier', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BusinessIdentity, self).__init__(**kwargs) + self.qualifier = kwargs.get('qualifier', None) + self.value = kwargs.get('value', None) + + +class CallbackUrl(msrest.serialization.Model): + """The callback url. + + :param value: The URL value. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CallbackUrl, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class ContentHash(msrest.serialization.Model): + """The content hash. + + :param algorithm: The algorithm of the content hash. + :type algorithm: str + :param value: The value of the content hash. + :type value: str + """ + + _attribute_map = { + 'algorithm': {'key': 'algorithm', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ContentHash, self).__init__(**kwargs) + self.algorithm = kwargs.get('algorithm', None) + self.value = kwargs.get('value', None) + + +class ContentLink(msrest.serialization.Model): + """The content link. + + :param uri: The content link URI. + :type uri: str + :param content_version: The content version. + :type content_version: str + :param content_size: The content size. + :type content_size: long + :param content_hash: The content hash. + :type content_hash: ~logic_management_client.models.ContentHash + :param metadata: + :type metadata: ~logic_management_client.models.Object + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'long'}, + 'content_hash': {'key': 'contentHash', 'type': 'ContentHash'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(ContentLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + self.content_size = kwargs.get('content_size', None) + self.content_hash = kwargs.get('content_hash', None) + self.metadata = kwargs.get('metadata', None) + + +class Correlation(msrest.serialization.Model): + """The correlation property. + + :param client_tracking_id: The client tracking id. + :type client_tracking_id: str + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Correlation, self).__init__(**kwargs) + self.client_tracking_id = kwargs.get('client_tracking_id', None) + + +class EdifactAcknowledgementSettings(msrest.serialization.Model): + """The Edifact agreement acknowledgement settings. + + All required parameters must be populated in order to send to Azure. + + :param need_technical_acknowledgement: Required. The value indicating whether technical + acknowledgement is needed. + :type need_technical_acknowledgement: bool + :param batch_technical_acknowledgements: Required. The value indicating whether to batch the + technical acknowledgements. + :type batch_technical_acknowledgements: bool + :param need_functional_acknowledgement: Required. The value indicating whether functional + acknowledgement is needed. + :type need_functional_acknowledgement: bool + :param batch_functional_acknowledgements: Required. The value indicating whether to batch + functional acknowledgements. + :type batch_functional_acknowledgements: bool + :param need_loop_for_valid_messages: Required. The value indicating whether a loop is needed + for valid messages. + :type need_loop_for_valid_messages: bool + :param send_synchronous_acknowledgement: Required. The value indicating whether to send + synchronous acknowledgement. + :type send_synchronous_acknowledgement: bool + :param acknowledgement_control_number_prefix: The acknowledgement control number prefix. + :type acknowledgement_control_number_prefix: str + :param acknowledgement_control_number_suffix: The acknowledgement control number suffix. + :type acknowledgement_control_number_suffix: str + :param acknowledgement_control_number_lower_bound: Required. The acknowledgement control number + lower bound. + :type acknowledgement_control_number_lower_bound: int + :param acknowledgement_control_number_upper_bound: Required. The acknowledgement control number + upper bound. + :type acknowledgement_control_number_upper_bound: int + :param rollover_acknowledgement_control_number: Required. The value indicating whether to + rollover acknowledgement control number. + :type rollover_acknowledgement_control_number: bool + """ + + _validation = { + 'need_technical_acknowledgement': {'required': True}, + 'batch_technical_acknowledgements': {'required': True}, + 'need_functional_acknowledgement': {'required': True}, + 'batch_functional_acknowledgements': {'required': True}, + 'need_loop_for_valid_messages': {'required': True}, + 'send_synchronous_acknowledgement': {'required': True}, + 'acknowledgement_control_number_lower_bound': {'required': True}, + 'acknowledgement_control_number_upper_bound': {'required': True}, + 'rollover_acknowledgement_control_number': {'required': True}, + } + + _attribute_map = { + 'need_technical_acknowledgement': {'key': 'needTechnicalAcknowledgement', 'type': 'bool'}, + 'batch_technical_acknowledgements': {'key': 'batchTechnicalAcknowledgements', 'type': 'bool'}, + 'need_functional_acknowledgement': {'key': 'needFunctionalAcknowledgement', 'type': 'bool'}, + 'batch_functional_acknowledgements': {'key': 'batchFunctionalAcknowledgements', 'type': 'bool'}, + 'need_loop_for_valid_messages': {'key': 'needLoopForValidMessages', 'type': 'bool'}, + 'send_synchronous_acknowledgement': {'key': 'sendSynchronousAcknowledgement', 'type': 'bool'}, + 'acknowledgement_control_number_prefix': {'key': 'acknowledgementControlNumberPrefix', 'type': 'str'}, + 'acknowledgement_control_number_suffix': {'key': 'acknowledgementControlNumberSuffix', 'type': 'str'}, + 'acknowledgement_control_number_lower_bound': {'key': 'acknowledgementControlNumberLowerBound', 'type': 'int'}, + 'acknowledgement_control_number_upper_bound': {'key': 'acknowledgementControlNumberUpperBound', 'type': 'int'}, + 'rollover_acknowledgement_control_number': {'key': 'rolloverAcknowledgementControlNumber', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactAcknowledgementSettings, self).__init__(**kwargs) + self.need_technical_acknowledgement = kwargs.get('need_technical_acknowledgement', None) + self.batch_technical_acknowledgements = kwargs.get('batch_technical_acknowledgements', None) + self.need_functional_acknowledgement = kwargs.get('need_functional_acknowledgement', None) + self.batch_functional_acknowledgements = kwargs.get('batch_functional_acknowledgements', None) + self.need_loop_for_valid_messages = kwargs.get('need_loop_for_valid_messages', None) + self.send_synchronous_acknowledgement = kwargs.get('send_synchronous_acknowledgement', None) + self.acknowledgement_control_number_prefix = kwargs.get('acknowledgement_control_number_prefix', None) + self.acknowledgement_control_number_suffix = kwargs.get('acknowledgement_control_number_suffix', None) + self.acknowledgement_control_number_lower_bound = kwargs.get('acknowledgement_control_number_lower_bound', None) + self.acknowledgement_control_number_upper_bound = kwargs.get('acknowledgement_control_number_upper_bound', None) + self.rollover_acknowledgement_control_number = kwargs.get('rollover_acknowledgement_control_number', None) + + +class EdifactAgreementContent(msrest.serialization.Model): + """The Edifact agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The Edifact one way agreement. + :type receive_agreement: ~logic_management_client.models.EdifactOneWayAgreement + :param send_agreement: Required. The Edifact one way agreement. + :type send_agreement: ~logic_management_client.models.EdifactOneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'EdifactOneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'EdifactOneWayAgreement'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactAgreementContent, self).__init__(**kwargs) + self.receive_agreement = kwargs.get('receive_agreement', None) + self.send_agreement = kwargs.get('send_agreement', None) + + +class EdifactDelimiterOverride(msrest.serialization.Model): + """The Edifact delimiter override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: The message id. + :type message_id: str + :param message_version: The message version. + :type message_version: str + :param message_release: The message release. + :type message_release: str + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param repetition_separator: Required. The repetition separator. + :type repetition_separator: int + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + :param decimal_point_indicator: Required. The edifact decimal indicator. Possible values + include: 'NotSpecified', 'Comma', 'Decimal'. + :type decimal_point_indicator: str or ~logic_management_client.models.EdifactDecimalIndicator + :param release_indicator: Required. The release indicator. + :type release_indicator: int + :param message_association_assigned_code: The message association assigned code. + :type message_association_assigned_code: str + :param target_namespace: The target namespace on which this delimiter settings has to be + applied. + :type target_namespace: str + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'repetition_separator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + 'decimal_point_indicator': {'required': True}, + 'release_indicator': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'str'}, + 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, + 'message_association_assigned_code': {'key': 'messageAssociationAssignedCode', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactDelimiterOverride, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.message_version = kwargs.get('message_version', None) + self.message_release = kwargs.get('message_release', None) + self.data_element_separator = kwargs.get('data_element_separator', None) + self.component_separator = kwargs.get('component_separator', None) + self.segment_terminator = kwargs.get('segment_terminator', None) + self.repetition_separator = kwargs.get('repetition_separator', None) + self.segment_terminator_suffix = kwargs.get('segment_terminator_suffix', None) + self.decimal_point_indicator = kwargs.get('decimal_point_indicator', None) + self.release_indicator = kwargs.get('release_indicator', None) + self.message_association_assigned_code = kwargs.get('message_association_assigned_code', None) + self.target_namespace = kwargs.get('target_namespace', None) + + +class EdifactEnvelopeOverride(msrest.serialization.Model): + """The Edifact envelope override settings. + + :param message_id: The message id on which this envelope settings has to be applied. + :type message_id: str + :param message_version: The message version on which this envelope settings has to be applied. + :type message_version: str + :param message_release: The message release version on which this envelope settings has to be + applied. + :type message_release: str + :param message_association_assigned_code: The message association assigned code. + :type message_association_assigned_code: str + :param target_namespace: The target namespace on which this envelope settings has to be + applied. + :type target_namespace: str + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param sender_application_qualifier: The sender application qualifier. + :type sender_application_qualifier: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param receiver_application_qualifier: The receiver application qualifier. + :type receiver_application_qualifier: str + :param receiver_application_id: The receiver application id. + :type receiver_application_id: str + :param controlling_agency_code: The controlling agency code. + :type controlling_agency_code: str + :param group_header_message_version: The group header message version. + :type group_header_message_version: str + :param group_header_message_release: The group header message release. + :type group_header_message_release: str + :param association_assigned_code: The association assigned code. + :type association_assigned_code: str + :param application_password: The application password. + :type application_password: str + """ + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'message_association_assigned_code': {'key': 'messageAssociationAssignedCode', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'sender_application_qualifier': {'key': 'senderApplicationQualifier', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_qualifier': {'key': 'receiverApplicationQualifier', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'controlling_agency_code': {'key': 'controllingAgencyCode', 'type': 'str'}, + 'group_header_message_version': {'key': 'groupHeaderMessageVersion', 'type': 'str'}, + 'group_header_message_release': {'key': 'groupHeaderMessageRelease', 'type': 'str'}, + 'association_assigned_code': {'key': 'associationAssignedCode', 'type': 'str'}, + 'application_password': {'key': 'applicationPassword', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactEnvelopeOverride, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.message_version = kwargs.get('message_version', None) + self.message_release = kwargs.get('message_release', None) + self.message_association_assigned_code = kwargs.get('message_association_assigned_code', None) + self.target_namespace = kwargs.get('target_namespace', None) + self.functional_group_id = kwargs.get('functional_group_id', None) + self.sender_application_qualifier = kwargs.get('sender_application_qualifier', None) + self.sender_application_id = kwargs.get('sender_application_id', None) + self.receiver_application_qualifier = kwargs.get('receiver_application_qualifier', None) + self.receiver_application_id = kwargs.get('receiver_application_id', None) + self.controlling_agency_code = kwargs.get('controlling_agency_code', None) + self.group_header_message_version = kwargs.get('group_header_message_version', None) + self.group_header_message_release = kwargs.get('group_header_message_release', None) + self.association_assigned_code = kwargs.get('association_assigned_code', None) + self.application_password = kwargs.get('application_password', None) + + +class EdifactEnvelopeSettings(msrest.serialization.Model): + """The Edifact agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param group_association_assigned_code: The group association assigned code. + :type group_association_assigned_code: str + :param communication_agreement_id: The communication agreement id. + :type communication_agreement_id: str + :param apply_delimiter_string_advice: Required. The value indicating whether to apply delimiter + string advice. + :type apply_delimiter_string_advice: bool + :param create_grouping_segments: Required. The value indicating whether to create grouping + segments. + :type create_grouping_segments: bool + :param enable_default_group_headers: Required. The value indicating whether to enable default + group headers. + :type enable_default_group_headers: bool + :param recipient_reference_password_value: The recipient reference password value. + :type recipient_reference_password_value: str + :param recipient_reference_password_qualifier: The recipient reference password qualifier. + :type recipient_reference_password_qualifier: str + :param application_reference_id: The application reference id. + :type application_reference_id: str + :param processing_priority_code: The processing priority code. + :type processing_priority_code: str + :param interchange_control_number_lower_bound: Required. The interchange control number lower + bound. + :type interchange_control_number_lower_bound: long + :param interchange_control_number_upper_bound: Required. The interchange control number upper + bound. + :type interchange_control_number_upper_bound: long + :param rollover_interchange_control_number: Required. The value indicating whether to rollover + interchange control number. + :type rollover_interchange_control_number: bool + :param interchange_control_number_prefix: The interchange control number prefix. + :type interchange_control_number_prefix: str + :param interchange_control_number_suffix: The interchange control number suffix. + :type interchange_control_number_suffix: str + :param sender_reverse_routing_address: The sender reverse routing address. + :type sender_reverse_routing_address: str + :param receiver_reverse_routing_address: The receiver reverse routing address. + :type receiver_reverse_routing_address: str + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param group_controlling_agency_code: The group controlling agency code. + :type group_controlling_agency_code: str + :param group_message_version: The group message version. + :type group_message_version: str + :param group_message_release: The group message release. + :type group_message_release: str + :param group_control_number_lower_bound: Required. The group control number lower bound. + :type group_control_number_lower_bound: long + :param group_control_number_upper_bound: Required. The group control number upper bound. + :type group_control_number_upper_bound: long + :param rollover_group_control_number: Required. The value indicating whether to rollover group + control number. + :type rollover_group_control_number: bool + :param group_control_number_prefix: The group control number prefix. + :type group_control_number_prefix: str + :param group_control_number_suffix: The group control number suffix. + :type group_control_number_suffix: str + :param group_application_receiver_qualifier: The group application receiver qualifier. + :type group_application_receiver_qualifier: str + :param group_application_receiver_id: The group application receiver id. + :type group_application_receiver_id: str + :param group_application_sender_qualifier: The group application sender qualifier. + :type group_application_sender_qualifier: str + :param group_application_sender_id: The group application sender id. + :type group_application_sender_id: str + :param group_application_password: The group application password. + :type group_application_password: str + :param overwrite_existing_transaction_set_control_number: Required. The value indicating + whether to overwrite existing transaction set control number. + :type overwrite_existing_transaction_set_control_number: bool + :param transaction_set_control_number_prefix: The transaction set control number prefix. + :type transaction_set_control_number_prefix: str + :param transaction_set_control_number_suffix: The transaction set control number suffix. + :type transaction_set_control_number_suffix: str + :param transaction_set_control_number_lower_bound: Required. The transaction set control number + lower bound. + :type transaction_set_control_number_lower_bound: long + :param transaction_set_control_number_upper_bound: Required. The transaction set control number + upper bound. + :type transaction_set_control_number_upper_bound: long + :param rollover_transaction_set_control_number: Required. The value indicating whether to + rollover transaction set control number. + :type rollover_transaction_set_control_number: bool + :param is_test_interchange: Required. The value indicating whether the message is a test + interchange. + :type is_test_interchange: bool + :param sender_internal_identification: The sender internal identification. + :type sender_internal_identification: str + :param sender_internal_sub_identification: The sender internal sub identification. + :type sender_internal_sub_identification: str + :param receiver_internal_identification: The receiver internal identification. + :type receiver_internal_identification: str + :param receiver_internal_sub_identification: The receiver internal sub identification. + :type receiver_internal_sub_identification: str + """ + + _validation = { + 'apply_delimiter_string_advice': {'required': True}, + 'create_grouping_segments': {'required': True}, + 'enable_default_group_headers': {'required': True}, + 'interchange_control_number_lower_bound': {'required': True}, + 'interchange_control_number_upper_bound': {'required': True}, + 'rollover_interchange_control_number': {'required': True}, + 'group_control_number_lower_bound': {'required': True}, + 'group_control_number_upper_bound': {'required': True}, + 'rollover_group_control_number': {'required': True}, + 'overwrite_existing_transaction_set_control_number': {'required': True}, + 'transaction_set_control_number_lower_bound': {'required': True}, + 'transaction_set_control_number_upper_bound': {'required': True}, + 'rollover_transaction_set_control_number': {'required': True}, + 'is_test_interchange': {'required': True}, + } + + _attribute_map = { + 'group_association_assigned_code': {'key': 'groupAssociationAssignedCode', 'type': 'str'}, + 'communication_agreement_id': {'key': 'communicationAgreementId', 'type': 'str'}, + 'apply_delimiter_string_advice': {'key': 'applyDelimiterStringAdvice', 'type': 'bool'}, + 'create_grouping_segments': {'key': 'createGroupingSegments', 'type': 'bool'}, + 'enable_default_group_headers': {'key': 'enableDefaultGroupHeaders', 'type': 'bool'}, + 'recipient_reference_password_value': {'key': 'recipientReferencePasswordValue', 'type': 'str'}, + 'recipient_reference_password_qualifier': {'key': 'recipientReferencePasswordQualifier', 'type': 'str'}, + 'application_reference_id': {'key': 'applicationReferenceId', 'type': 'str'}, + 'processing_priority_code': {'key': 'processingPriorityCode', 'type': 'str'}, + 'interchange_control_number_lower_bound': {'key': 'interchangeControlNumberLowerBound', 'type': 'long'}, + 'interchange_control_number_upper_bound': {'key': 'interchangeControlNumberUpperBound', 'type': 'long'}, + 'rollover_interchange_control_number': {'key': 'rolloverInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_prefix': {'key': 'interchangeControlNumberPrefix', 'type': 'str'}, + 'interchange_control_number_suffix': {'key': 'interchangeControlNumberSuffix', 'type': 'str'}, + 'sender_reverse_routing_address': {'key': 'senderReverseRoutingAddress', 'type': 'str'}, + 'receiver_reverse_routing_address': {'key': 'receiverReverseRoutingAddress', 'type': 'str'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'group_controlling_agency_code': {'key': 'groupControllingAgencyCode', 'type': 'str'}, + 'group_message_version': {'key': 'groupMessageVersion', 'type': 'str'}, + 'group_message_release': {'key': 'groupMessageRelease', 'type': 'str'}, + 'group_control_number_lower_bound': {'key': 'groupControlNumberLowerBound', 'type': 'long'}, + 'group_control_number_upper_bound': {'key': 'groupControlNumberUpperBound', 'type': 'long'}, + 'rollover_group_control_number': {'key': 'rolloverGroupControlNumber', 'type': 'bool'}, + 'group_control_number_prefix': {'key': 'groupControlNumberPrefix', 'type': 'str'}, + 'group_control_number_suffix': {'key': 'groupControlNumberSuffix', 'type': 'str'}, + 'group_application_receiver_qualifier': {'key': 'groupApplicationReceiverQualifier', 'type': 'str'}, + 'group_application_receiver_id': {'key': 'groupApplicationReceiverId', 'type': 'str'}, + 'group_application_sender_qualifier': {'key': 'groupApplicationSenderQualifier', 'type': 'str'}, + 'group_application_sender_id': {'key': 'groupApplicationSenderId', 'type': 'str'}, + 'group_application_password': {'key': 'groupApplicationPassword', 'type': 'str'}, + 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, + 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, + 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, + 'transaction_set_control_number_lower_bound': {'key': 'transactionSetControlNumberLowerBound', 'type': 'long'}, + 'transaction_set_control_number_upper_bound': {'key': 'transactionSetControlNumberUpperBound', 'type': 'long'}, + 'rollover_transaction_set_control_number': {'key': 'rolloverTransactionSetControlNumber', 'type': 'bool'}, + 'is_test_interchange': {'key': 'isTestInterchange', 'type': 'bool'}, + 'sender_internal_identification': {'key': 'senderInternalIdentification', 'type': 'str'}, + 'sender_internal_sub_identification': {'key': 'senderInternalSubIdentification', 'type': 'str'}, + 'receiver_internal_identification': {'key': 'receiverInternalIdentification', 'type': 'str'}, + 'receiver_internal_sub_identification': {'key': 'receiverInternalSubIdentification', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactEnvelopeSettings, self).__init__(**kwargs) + self.group_association_assigned_code = kwargs.get('group_association_assigned_code', None) + self.communication_agreement_id = kwargs.get('communication_agreement_id', None) + self.apply_delimiter_string_advice = kwargs.get('apply_delimiter_string_advice', None) + self.create_grouping_segments = kwargs.get('create_grouping_segments', None) + self.enable_default_group_headers = kwargs.get('enable_default_group_headers', None) + self.recipient_reference_password_value = kwargs.get('recipient_reference_password_value', None) + self.recipient_reference_password_qualifier = kwargs.get('recipient_reference_password_qualifier', None) + self.application_reference_id = kwargs.get('application_reference_id', None) + self.processing_priority_code = kwargs.get('processing_priority_code', None) + self.interchange_control_number_lower_bound = kwargs.get('interchange_control_number_lower_bound', None) + self.interchange_control_number_upper_bound = kwargs.get('interchange_control_number_upper_bound', None) + self.rollover_interchange_control_number = kwargs.get('rollover_interchange_control_number', None) + self.interchange_control_number_prefix = kwargs.get('interchange_control_number_prefix', None) + self.interchange_control_number_suffix = kwargs.get('interchange_control_number_suffix', None) + self.sender_reverse_routing_address = kwargs.get('sender_reverse_routing_address', None) + self.receiver_reverse_routing_address = kwargs.get('receiver_reverse_routing_address', None) + self.functional_group_id = kwargs.get('functional_group_id', None) + self.group_controlling_agency_code = kwargs.get('group_controlling_agency_code', None) + self.group_message_version = kwargs.get('group_message_version', None) + self.group_message_release = kwargs.get('group_message_release', None) + self.group_control_number_lower_bound = kwargs.get('group_control_number_lower_bound', None) + self.group_control_number_upper_bound = kwargs.get('group_control_number_upper_bound', None) + self.rollover_group_control_number = kwargs.get('rollover_group_control_number', None) + self.group_control_number_prefix = kwargs.get('group_control_number_prefix', None) + self.group_control_number_suffix = kwargs.get('group_control_number_suffix', None) + self.group_application_receiver_qualifier = kwargs.get('group_application_receiver_qualifier', None) + self.group_application_receiver_id = kwargs.get('group_application_receiver_id', None) + self.group_application_sender_qualifier = kwargs.get('group_application_sender_qualifier', None) + self.group_application_sender_id = kwargs.get('group_application_sender_id', None) + self.group_application_password = kwargs.get('group_application_password', None) + self.overwrite_existing_transaction_set_control_number = kwargs.get('overwrite_existing_transaction_set_control_number', None) + self.transaction_set_control_number_prefix = kwargs.get('transaction_set_control_number_prefix', None) + self.transaction_set_control_number_suffix = kwargs.get('transaction_set_control_number_suffix', None) + self.transaction_set_control_number_lower_bound = kwargs.get('transaction_set_control_number_lower_bound', None) + self.transaction_set_control_number_upper_bound = kwargs.get('transaction_set_control_number_upper_bound', None) + self.rollover_transaction_set_control_number = kwargs.get('rollover_transaction_set_control_number', None) + self.is_test_interchange = kwargs.get('is_test_interchange', None) + self.sender_internal_identification = kwargs.get('sender_internal_identification', None) + self.sender_internal_sub_identification = kwargs.get('sender_internal_sub_identification', None) + self.receiver_internal_identification = kwargs.get('receiver_internal_identification', None) + self.receiver_internal_sub_identification = kwargs.get('receiver_internal_sub_identification', None) + + +class EdifactFramingSettings(msrest.serialization.Model): + """The Edifact agreement framing settings. + + All required parameters must be populated in order to send to Azure. + + :param service_code_list_directory_version: The service code list directory version. + :type service_code_list_directory_version: str + :param character_encoding: The character encoding. + :type character_encoding: str + :param protocol_version: Required. The protocol version. + :type protocol_version: int + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param release_indicator: Required. The release indicator. + :type release_indicator: int + :param repetition_separator: Required. The repetition separator. + :type repetition_separator: int + :param character_set: Required. The edifact character set. Possible values include: + 'NotSpecified', 'UNOB', 'UNOA', 'UNOC', 'UNOD', 'UNOE', 'UNOF', 'UNOG', 'UNOH', 'UNOI', 'UNOJ', + 'UNOK', 'UNOX', 'UNOY', 'KECA'. + :type character_set: str or ~logic_management_client.models.EdifactCharacterSet + :param decimal_point_indicator: Required. The edifact decimal indicator. Possible values + include: 'NotSpecified', 'Comma', 'Decimal'. + :type decimal_point_indicator: str or ~logic_management_client.models.EdifactDecimalIndicator + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + """ + + _validation = { + 'protocol_version': {'required': True}, + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'release_indicator': {'required': True}, + 'repetition_separator': {'required': True}, + 'character_set': {'required': True}, + 'decimal_point_indicator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + } + + _attribute_map = { + 'service_code_list_directory_version': {'key': 'serviceCodeListDirectoryVersion', 'type': 'str'}, + 'character_encoding': {'key': 'characterEncoding', 'type': 'str'}, + 'protocol_version': {'key': 'protocolVersion', 'type': 'int'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, + 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, + 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'str'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactFramingSettings, self).__init__(**kwargs) + self.service_code_list_directory_version = kwargs.get('service_code_list_directory_version', None) + self.character_encoding = kwargs.get('character_encoding', None) + self.protocol_version = kwargs.get('protocol_version', None) + self.data_element_separator = kwargs.get('data_element_separator', None) + self.component_separator = kwargs.get('component_separator', None) + self.segment_terminator = kwargs.get('segment_terminator', None) + self.release_indicator = kwargs.get('release_indicator', None) + self.repetition_separator = kwargs.get('repetition_separator', None) + self.character_set = kwargs.get('character_set', None) + self.decimal_point_indicator = kwargs.get('decimal_point_indicator', None) + self.segment_terminator_suffix = kwargs.get('segment_terminator_suffix', None) + + +class EdifactMessageFilter(msrest.serialization.Model): + """The Edifact message filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param message_filter_type: Required. The message filter type. Possible values include: + 'NotSpecified', 'Include', 'Exclude'. + :type message_filter_type: str or ~logic_management_client.models.MessageFilterType + """ + + _validation = { + 'message_filter_type': {'required': True}, + } + + _attribute_map = { + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactMessageFilter, self).__init__(**kwargs) + self.message_filter_type = kwargs.get('message_filter_type', None) + + +class EdifactMessageIdentifier(msrest.serialization.Model): + """The Edifact message identifier. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which this envelope settings has to be applied. + :type message_id: str + """ + + _validation = { + 'message_id': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactMessageIdentifier, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + + +class EdifactOneWayAgreement(msrest.serialization.Model): + """The Edifact one way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The Edifact agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.EdifactProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'EdifactProtocolSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactOneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = kwargs.get('sender_business_identity', None) + self.receiver_business_identity = kwargs.get('receiver_business_identity', None) + self.protocol_settings = kwargs.get('protocol_settings', None) + + +class EdifactProcessingSettings(msrest.serialization.Model): + """The Edifact agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param mask_security_info: Required. The value indicating whether to mask security information. + :type mask_security_info: bool + :param preserve_interchange: Required. The value indicating whether to preserve interchange. + :type preserve_interchange: bool + :param suspend_interchange_on_error: Required. The value indicating whether to suspend + interchange on error. + :type suspend_interchange_on_error: bool + :param create_empty_xml_tags_for_trailing_separators: Required. The value indicating whether to + create empty xml tags for trailing separators. + :type create_empty_xml_tags_for_trailing_separators: bool + :param use_dot_as_decimal_separator: Required. The value indicating whether to use dot as + decimal separator. + :type use_dot_as_decimal_separator: bool + """ + + _validation = { + 'mask_security_info': {'required': True}, + 'preserve_interchange': {'required': True}, + 'suspend_interchange_on_error': {'required': True}, + 'create_empty_xml_tags_for_trailing_separators': {'required': True}, + 'use_dot_as_decimal_separator': {'required': True}, + } + + _attribute_map = { + 'mask_security_info': {'key': 'maskSecurityInfo', 'type': 'bool'}, + 'preserve_interchange': {'key': 'preserveInterchange', 'type': 'bool'}, + 'suspend_interchange_on_error': {'key': 'suspendInterchangeOnError', 'type': 'bool'}, + 'create_empty_xml_tags_for_trailing_separators': {'key': 'createEmptyXmlTagsForTrailingSeparators', 'type': 'bool'}, + 'use_dot_as_decimal_separator': {'key': 'useDotAsDecimalSeparator', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactProcessingSettings, self).__init__(**kwargs) + self.mask_security_info = kwargs.get('mask_security_info', None) + self.preserve_interchange = kwargs.get('preserve_interchange', None) + self.suspend_interchange_on_error = kwargs.get('suspend_interchange_on_error', None) + self.create_empty_xml_tags_for_trailing_separators = kwargs.get('create_empty_xml_tags_for_trailing_separators', None) + self.use_dot_as_decimal_separator = kwargs.get('use_dot_as_decimal_separator', None) + + +class EdifactProtocolSettings(msrest.serialization.Model): + """The Edifact agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param validation_settings: Required. The Edifact agreement validation settings. + :type validation_settings: ~logic_management_client.models.EdifactValidationSettings + :param framing_settings: Required. The Edifact agreement framing settings. + :type framing_settings: ~logic_management_client.models.EdifactFramingSettings + :param envelope_settings: Required. The Edifact agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.EdifactEnvelopeSettings + :param acknowledgement_settings: Required. The Edifact agreement acknowledgement settings. + :type acknowledgement_settings: ~logic_management_client.models.EdifactAcknowledgementSettings + :param message_filter: Required. The Edifact message filter for odata query. + :type message_filter: ~logic_management_client.models.EdifactMessageFilter + :param processing_settings: Required. The Edifact agreement protocol settings. + :type processing_settings: ~logic_management_client.models.EdifactProcessingSettings + :param envelope_overrides: The EDIFACT envelope override settings. + :type envelope_overrides: list[~logic_management_client.models.EdifactEnvelopeOverride] + :param message_filter_list: The EDIFACT message filter list. + :type message_filter_list: list[~logic_management_client.models.EdifactMessageIdentifier] + :param schema_references: Required. The EDIFACT schema references. + :type schema_references: list[~logic_management_client.models.EdifactSchemaReference] + :param validation_overrides: The EDIFACT validation override settings. + :type validation_overrides: list[~logic_management_client.models.EdifactValidationOverride] + :param edifact_delimiter_overrides: The EDIFACT delimiter override settings. + :type edifact_delimiter_overrides: + list[~logic_management_client.models.EdifactDelimiterOverride] + """ + + _validation = { + 'validation_settings': {'required': True}, + 'framing_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'acknowledgement_settings': {'required': True}, + 'message_filter': {'required': True}, + 'processing_settings': {'required': True}, + 'schema_references': {'required': True}, + } + + _attribute_map = { + 'validation_settings': {'key': 'validationSettings', 'type': 'EdifactValidationSettings'}, + 'framing_settings': {'key': 'framingSettings', 'type': 'EdifactFramingSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'EdifactEnvelopeSettings'}, + 'acknowledgement_settings': {'key': 'acknowledgementSettings', 'type': 'EdifactAcknowledgementSettings'}, + 'message_filter': {'key': 'messageFilter', 'type': 'EdifactMessageFilter'}, + 'processing_settings': {'key': 'processingSettings', 'type': 'EdifactProcessingSettings'}, + 'envelope_overrides': {'key': 'envelopeOverrides', 'type': '[EdifactEnvelopeOverride]'}, + 'message_filter_list': {'key': 'messageFilterList', 'type': '[EdifactMessageIdentifier]'}, + 'schema_references': {'key': 'schemaReferences', 'type': '[EdifactSchemaReference]'}, + 'validation_overrides': {'key': 'validationOverrides', 'type': '[EdifactValidationOverride]'}, + 'edifact_delimiter_overrides': {'key': 'edifactDelimiterOverrides', 'type': '[EdifactDelimiterOverride]'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactProtocolSettings, self).__init__(**kwargs) + self.validation_settings = kwargs.get('validation_settings', None) + self.framing_settings = kwargs.get('framing_settings', None) + self.envelope_settings = kwargs.get('envelope_settings', None) + self.acknowledgement_settings = kwargs.get('acknowledgement_settings', None) + self.message_filter = kwargs.get('message_filter', None) + self.processing_settings = kwargs.get('processing_settings', None) + self.envelope_overrides = kwargs.get('envelope_overrides', None) + self.message_filter_list = kwargs.get('message_filter_list', None) + self.schema_references = kwargs.get('schema_references', None) + self.validation_overrides = kwargs.get('validation_overrides', None) + self.edifact_delimiter_overrides = kwargs.get('edifact_delimiter_overrides', None) + + +class EdifactSchemaReference(msrest.serialization.Model): + """The Edifact schema reference. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + :param message_version: Required. The message version. + :type message_version: str + :param message_release: Required. The message release version. + :type message_release: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param sender_application_qualifier: The sender application qualifier. + :type sender_application_qualifier: str + :param association_assigned_code: The association assigned code. + :type association_assigned_code: str + :param schema_name: Required. The schema name. + :type schema_name: str + """ + + _validation = { + 'message_id': {'required': True}, + 'message_version': {'required': True}, + 'message_release': {'required': True}, + 'schema_name': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'sender_application_qualifier': {'key': 'senderApplicationQualifier', 'type': 'str'}, + 'association_assigned_code': {'key': 'associationAssignedCode', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactSchemaReference, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.message_version = kwargs.get('message_version', None) + self.message_release = kwargs.get('message_release', None) + self.sender_application_id = kwargs.get('sender_application_id', None) + self.sender_application_qualifier = kwargs.get('sender_application_qualifier', None) + self.association_assigned_code = kwargs.get('association_assigned_code', None) + self.schema_name = kwargs.get('schema_name', None) + + +class EdifactValidationOverride(msrest.serialization.Model): + """The Edifact validation override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which the validation settings has to be applied. + :type message_id: str + :param enforce_character_set: Required. The value indicating whether to validate character Set. + :type enforce_character_set: bool + :param validate_edi_types: Required. The value indicating whether to validate EDI types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to validate XSD types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + """ + + _validation = { + 'message_id': {'required': True}, + 'enforce_character_set': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'enforce_character_set': {'key': 'enforceCharacterSet', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactValidationOverride, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.enforce_character_set = kwargs.get('enforce_character_set', None) + self.validate_edi_types = kwargs.get('validate_edi_types', None) + self.validate_xsd_types = kwargs.get('validate_xsd_types', None) + self.allow_leading_and_trailing_spaces_and_zeroes = kwargs.get('allow_leading_and_trailing_spaces_and_zeroes', None) + self.trailing_separator_policy = kwargs.get('trailing_separator_policy', None) + self.trim_leading_and_trailing_spaces_and_zeroes = kwargs.get('trim_leading_and_trailing_spaces_and_zeroes', None) + + +class EdifactValidationSettings(msrest.serialization.Model): + """The Edifact agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param validate_character_set: Required. The value indicating whether to validate character set + in the message. + :type validate_character_set: bool + :param check_duplicate_interchange_control_number: Required. The value indicating whether to + check for duplicate interchange control number. + :type check_duplicate_interchange_control_number: bool + :param interchange_control_number_validity_days: Required. The validity period of interchange + control number. + :type interchange_control_number_validity_days: int + :param check_duplicate_group_control_number: Required. The value indicating whether to check + for duplicate group control number. + :type check_duplicate_group_control_number: bool + :param check_duplicate_transaction_set_control_number: Required. The value indicating whether + to check for duplicate transaction set control number. + :type check_duplicate_transaction_set_control_number: bool + :param validate_edi_types: Required. The value indicating whether to Whether to validate EDI + types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to Whether to validate XSD + types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'validate_character_set': {'required': True}, + 'check_duplicate_interchange_control_number': {'required': True}, + 'interchange_control_number_validity_days': {'required': True}, + 'check_duplicate_group_control_number': {'required': True}, + 'check_duplicate_transaction_set_control_number': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'check_duplicate_interchange_control_number': {'key': 'checkDuplicateInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, + 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, + 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EdifactValidationSettings, self).__init__(**kwargs) + self.validate_character_set = kwargs.get('validate_character_set', None) + self.check_duplicate_interchange_control_number = kwargs.get('check_duplicate_interchange_control_number', None) + self.interchange_control_number_validity_days = kwargs.get('interchange_control_number_validity_days', None) + self.check_duplicate_group_control_number = kwargs.get('check_duplicate_group_control_number', None) + self.check_duplicate_transaction_set_control_number = kwargs.get('check_duplicate_transaction_set_control_number', None) + self.validate_edi_types = kwargs.get('validate_edi_types', None) + self.validate_xsd_types = kwargs.get('validate_xsd_types', None) + self.allow_leading_and_trailing_spaces_and_zeroes = kwargs.get('allow_leading_and_trailing_spaces_and_zeroes', None) + self.trim_leading_and_trailing_spaces_and_zeroes = kwargs.get('trim_leading_and_trailing_spaces_and_zeroes', None) + self.trailing_separator_policy = kwargs.get('trailing_separator_policy', None) + + +class ErrorProperties(msrest.serialization.Model): + """Error properties indicate why the Logic service was not able to process the incoming request. The reason is provided in the error message. + + :param code: Error code. + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorProperties, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class ErrorResponseException(HttpResponseError): + """Server responded with exception of type: 'ErrorResponse'. + + :param response: Server response to be deserialized. + :param error_model: A deserialized model of the response body as model. + """ + + def __init__(self, response, error_model): + self.error = error_model + super(ErrorResponseException, self).__init__(response=response, error_model=error_model) + + @classmethod + def from_response(cls, response, deserialize): + """Deserialize this response as this exception, or a subclass of this exception. + + :param response: Server response to be deserialized. + :param deserialize: A deserializer + """ + model_name = 'ErrorResponse' + error = deserialize(model_name, response) + if error is None: + error = deserialize.dependencies[model_name]() + return error._EXCEPTION_TYPE(response, error) + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates Logic service is not able to process the incoming request. The error property contains the error details. + + :param error: Error properties indicate why the Logic service was not able to process the + incoming request. The reason is provided in the error message. + :type error: ~logic_management_client.models.ErrorProperties + """ + _EXCEPTION_TYPE = ErrorResponseException + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class Expression(msrest.serialization.Model): + """The expression. + + :param text: The text. + :type text: str + :param value: Any object. + :type value: object + :param subexpressions: The sub expressions. + :type subexpressions: list[~logic_management_client.models.Expression] + :param error: The azure resource error info. + :type error: ~logic_management_client.models.AzureResourceErrorInfo + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'subexpressions': {'key': 'subexpressions', 'type': '[Expression]'}, + 'error': {'key': 'error', 'type': 'AzureResourceErrorInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(Expression, self).__init__(**kwargs) + self.text = kwargs.get('text', None) + self.value = kwargs.get('value', None) + self.subexpressions = kwargs.get('subexpressions', None) + self.error = kwargs.get('error', None) + + +class ExpressionRoot(Expression): + """The expression root. + + :param text: The text. + :type text: str + :param value: Any object. + :type value: object + :param subexpressions: The sub expressions. + :type subexpressions: list[~logic_management_client.models.Expression] + :param error: The azure resource error info. + :type error: ~logic_management_client.models.AzureResourceErrorInfo + :param path: The path. + :type path: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'subexpressions': {'key': 'subexpressions', 'type': '[Expression]'}, + 'error': {'key': 'error', 'type': 'AzureResourceErrorInfo'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ExpressionRoot, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + + +class ExpressionTraces(msrest.serialization.Model): + """The expression traces. + + :param inputs: + :type inputs: list[~logic_management_client.models.ExpressionRoot] + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '[ExpressionRoot]'}, + } + + def __init__( + self, + **kwargs + ): + super(ExpressionTraces, self).__init__(**kwargs) + self.inputs = kwargs.get('inputs', None) + + +class ExtendedErrorInfo(msrest.serialization.Model): + """The extended error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error response code. Possible values include: 'NotSpecified', + 'IntegrationServiceEnvironmentNotFound', 'InternalServerError', 'InvalidOperationId'. + :type code: str or ~logic_management_client.models.ErrorResponseCode + :param message: Required. The error message. + :type message: str + :param details: The error message details. + :type details: list[~logic_management_client.models.ExtendedErrorInfo] + :param inner_error: + :type inner_error: ~logic_management_client.models.Object + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ExtendedErrorInfo]'}, + 'inner_error': {'key': 'innerError', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(ExtendedErrorInfo, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.details = kwargs.get('details', None) + self.inner_error = kwargs.get('inner_error', None) + + +class FlowAccessControlConfiguration(msrest.serialization.Model): + """The access control configuration. + + :param triggers: The access control configuration policy. + :type triggers: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param contents: The access control configuration policy. + :type contents: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param actions: The access control configuration policy. + :type actions: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param workflow_management: The access control configuration policy. + :type workflow_management: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + """ + + _attribute_map = { + 'triggers': {'key': 'triggers', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'contents': {'key': 'contents', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'actions': {'key': 'actions', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'workflow_management': {'key': 'workflowManagement', 'type': 'FlowAccessControlConfigurationPolicy'}, + } + + def __init__( + self, + **kwargs + ): + super(FlowAccessControlConfiguration, self).__init__(**kwargs) + self.triggers = kwargs.get('triggers', None) + self.contents = kwargs.get('contents', None) + self.actions = kwargs.get('actions', None) + self.workflow_management = kwargs.get('workflow_management', None) + + +class FlowAccessControlConfigurationPolicy(msrest.serialization.Model): + """The access control configuration policy. + + :param allowed_caller_ip_addresses: The allowed caller IP address ranges. + :type allowed_caller_ip_addresses: list[~logic_management_client.models.IpAddressRange] + :param open_authentication_policies: AuthenticationPolicy of type Open. + :type open_authentication_policies: + ~logic_management_client.models.OpenAuthenticationAccessPolicies + """ + + _attribute_map = { + 'allowed_caller_ip_addresses': {'key': 'allowedCallerIpAddresses', 'type': '[IpAddressRange]'}, + 'open_authentication_policies': {'key': 'openAuthenticationPolicies', 'type': 'OpenAuthenticationAccessPolicies'}, + } + + def __init__( + self, + **kwargs + ): + super(FlowAccessControlConfigurationPolicy, self).__init__(**kwargs) + self.allowed_caller_ip_addresses = kwargs.get('allowed_caller_ip_addresses', None) + self.open_authentication_policies = kwargs.get('open_authentication_policies', None) + + +class FlowEndpoints(msrest.serialization.Model): + """The flow endpoints configuration. + + :param outgoing_ip_addresses: The outgoing ip address. + :type outgoing_ip_addresses: list[~logic_management_client.models.IpAddress] + :param access_endpoint_ip_addresses: The access endpoint ip address. + :type access_endpoint_ip_addresses: list[~logic_management_client.models.IpAddress] + """ + + _attribute_map = { + 'outgoing_ip_addresses': {'key': 'outgoingIpAddresses', 'type': '[IpAddress]'}, + 'access_endpoint_ip_addresses': {'key': 'accessEndpointIpAddresses', 'type': '[IpAddress]'}, + } + + def __init__( + self, + **kwargs + ): + super(FlowEndpoints, self).__init__(**kwargs) + self.outgoing_ip_addresses = kwargs.get('outgoing_ip_addresses', None) + self.access_endpoint_ip_addresses = kwargs.get('access_endpoint_ip_addresses', None) + + +class FlowEndpointsConfiguration(msrest.serialization.Model): + """The endpoints configuration. + + :param workflow: The flow endpoints configuration. + :type workflow: ~logic_management_client.models.FlowEndpoints + :param connector: The flow endpoints configuration. + :type connector: ~logic_management_client.models.FlowEndpoints + """ + + _attribute_map = { + 'workflow': {'key': 'workflow', 'type': 'FlowEndpoints'}, + 'connector': {'key': 'connector', 'type': 'FlowEndpoints'}, + } + + def __init__( + self, + **kwargs + ): + super(FlowEndpointsConfiguration, self).__init__(**kwargs) + self.workflow = kwargs.get('workflow', None) + self.connector = kwargs.get('connector', None) + + +class GenerateUpgradedDefinitionParameters(msrest.serialization.Model): + """The parameters to generate upgraded definition. + + :param target_schema_version: The target schema version. + :type target_schema_version: str + """ + + _attribute_map = { + 'target_schema_version': {'key': 'targetSchemaVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(GenerateUpgradedDefinitionParameters, self).__init__(**kwargs) + self.target_schema_version = kwargs.get('target_schema_version', None) + + +class GetCallbackUrlParameters(msrest.serialization.Model): + """The callback url parameters. + + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. Possible values include: 'NotSpecified', 'Primary', 'Secondary'. + :type key_type: str or ~logic_management_client.models.KeyType + """ + + _attribute_map = { + 'not_after': {'key': 'notAfter', 'type': 'iso-8601'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(GetCallbackUrlParameters, self).__init__(**kwargs) + self.not_after = kwargs.get('not_after', None) + self.key_type = kwargs.get('key_type', None) + + +class IntegrationAccount(Resource): + """The integration account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: + ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'IntegrationAccountSku'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccount, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.state = kwargs.get('state', None) + + +class IntegrationAccountAgreement(Resource): + """The integration account agreement. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: Required. The integration account partner that is set as host partner for + this agreement. + :type host_partner: str + :param guest_partner: Required. The integration account partner that is set as guest partner + for this agreement. + :type guest_partner: str + :param host_identity: Required. The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: Required. The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: Required. The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'agreement_type': {'required': True}, + 'host_partner': {'required': True}, + 'guest_partner': {'required': True}, + 'host_identity': {'required': True}, + 'guest_identity': {'required': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountAgreementPropertiesMetadata'}, + 'agreement_type': {'key': 'properties.agreementType', 'type': 'str'}, + 'host_partner': {'key': 'properties.hostPartner', 'type': 'str'}, + 'guest_partner': {'key': 'properties.guestPartner', 'type': 'str'}, + 'host_identity': {'key': 'properties.hostIdentity', 'type': 'BusinessIdentity'}, + 'guest_identity': {'key': 'properties.guestIdentity', 'type': 'BusinessIdentity'}, + 'content': {'key': 'properties.content', 'type': 'AgreementContent'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreement, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.agreement_type = kwargs.get('agreement_type', None) + self.host_partner = kwargs.get('host_partner', None) + self.guest_partner = kwargs.get('guest_partner', None) + self.host_identity = kwargs.get('host_identity', None) + self.guest_identity = kwargs.get('guest_identity', None) + self.content = kwargs.get('content', None) + + +class IntegrationAccountAgreementFilter(msrest.serialization.Model): + """The integration account agreement filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + """ + + _validation = { + 'agreement_type': {'required': True}, + } + + _attribute_map = { + 'agreement_type': {'key': 'agreementType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreementFilter, self).__init__(**kwargs) + self.agreement_type = kwargs.get('agreement_type', None) + + +class IntegrationAccountAgreementListResult(msrest.serialization.Model): + """The list of integration account agreements. + + :param value: The list of integration account agreements. + :type value: list[~logic_management_client.models.IntegrationAccountAgreement] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountAgreement]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreementListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountAgreementProperties(msrest.serialization.Model): + """The integration account agreement properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: Required. The integration account partner that is set as host partner for + this agreement. + :type host_partner: str + :param guest_partner: Required. The integration account partner that is set as guest partner + for this agreement. + :type guest_partner: str + :param host_identity: Required. The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: Required. The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: Required. The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'agreement_type': {'required': True}, + 'host_partner': {'required': True}, + 'guest_partner': {'required': True}, + 'host_identity': {'required': True}, + 'guest_identity': {'required': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountAgreementPropertiesMetadata'}, + 'agreement_type': {'key': 'agreementType', 'type': 'str'}, + 'host_partner': {'key': 'hostPartner', 'type': 'str'}, + 'guest_partner': {'key': 'guestPartner', 'type': 'str'}, + 'host_identity': {'key': 'hostIdentity', 'type': 'BusinessIdentity'}, + 'guest_identity': {'key': 'guestIdentity', 'type': 'BusinessIdentity'}, + 'content': {'key': 'content', 'type': 'AgreementContent'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreementProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.agreement_type = kwargs.get('agreement_type', None) + self.host_partner = kwargs.get('host_partner', None) + self.guest_partner = kwargs.get('guest_partner', None) + self.host_identity = kwargs.get('host_identity', None) + self.guest_identity = kwargs.get('guest_identity', None) + self.content = kwargs.get('content', None) + + +class IntegrationAccountAgreementPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreementPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountCertificate(Resource): + """The integration account certificate. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountCertificatePropertiesMetadata'}, + 'key': {'key': 'properties.key', 'type': 'KeyVaultKeyReference'}, + 'public_certificate': {'key': 'properties.publicCertificate', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountCertificate, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.key = kwargs.get('key', None) + self.public_certificate = kwargs.get('public_certificate', None) + + +class IntegrationAccountCertificateListResult(msrest.serialization.Model): + """The list of integration account certificates. + + :param value: The list of integration account certificates. + :type value: list[~logic_management_client.models.IntegrationAccountCertificate] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountCertificate]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountCertificateListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountCertificateProperties(msrest.serialization.Model): + """The integration account certificate properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountCertificatePropertiesMetadata'}, + 'key': {'key': 'key', 'type': 'KeyVaultKeyReference'}, + 'public_certificate': {'key': 'publicCertificate', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountCertificateProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.key = kwargs.get('key', None) + self.public_certificate = kwargs.get('public_certificate', None) + + +class IntegrationAccountCertificatePropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountCertificatePropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountListResult(msrest.serialization.Model): + """The list of integration accounts. + + :param value: The list of integration accounts. + :type value: list[~logic_management_client.models.IntegrationAccount] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccount]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountMap(Resource): + """The integration account map. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: + ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'map_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'map_type': {'key': 'properties.mapType', 'type': 'str'}, + 'parameters_schema': {'key': 'properties.parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'properties.content', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountMapPropertiesMetadata'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMap, self).__init__(**kwargs) + self.map_type = kwargs.get('map_type', None) + self.parameters_schema = kwargs.get('parameters_schema', None) + self.created_time = None + self.changed_time = None + self.content = kwargs.get('content', None) + self.content_type = kwargs.get('content_type', None) + self.content_link = None + self.metadata = kwargs.get('metadata', None) + + +class IntegrationAccountMapFilter(msrest.serialization.Model): + """The integration account map filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + """ + + _validation = { + 'map_type': {'required': True}, + } + + _attribute_map = { + 'map_type': {'key': 'mapType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapFilter, self).__init__(**kwargs) + self.map_type = kwargs.get('map_type', None) + + +class IntegrationAccountMapListResult(msrest.serialization.Model): + """The list of integration account maps. + + :param value: The list of integration account maps. + :type value: list[~logic_management_client.models.IntegrationAccountMap] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountMap]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountMapProperties(msrest.serialization.Model): + """The integration account map. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: + ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + """ + + _validation = { + 'map_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'map_type': {'key': 'mapType', 'type': 'str'}, + 'parameters_schema': {'key': 'parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountMapPropertiesMetadata'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapProperties, self).__init__(**kwargs) + self.map_type = kwargs.get('map_type', None) + self.parameters_schema = kwargs.get('parameters_schema', None) + self.created_time = None + self.changed_time = None + self.content = kwargs.get('content', None) + self.content_type = kwargs.get('content_type', None) + self.content_link = None + self.metadata = kwargs.get('metadata', None) + + +class IntegrationAccountMapPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountMapPropertiesParametersSchema(msrest.serialization.Model): + """The parameters schema of integration account map. + + :param ref: The reference name. + :type ref: str + """ + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapPropertiesParametersSchema, self).__init__(**kwargs) + self.ref = kwargs.get('ref', None) + + +class IntegrationAccountPartner(Resource): + """The integration account partner. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :param content: Required. The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'partner_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'partner_type': {'key': 'properties.partnerType', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountPartnerPropertiesMetadata'}, + 'content': {'key': 'properties.content', 'type': 'PartnerContent'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartner, self).__init__(**kwargs) + self.partner_type = kwargs.get('partner_type', None) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.content = kwargs.get('content', None) + + +class IntegrationAccountPartnerFilter(msrest.serialization.Model): + """The integration account partner filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + """ + + _validation = { + 'partner_type': {'required': True}, + } + + _attribute_map = { + 'partner_type': {'key': 'partnerType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartnerFilter, self).__init__(**kwargs) + self.partner_type = kwargs.get('partner_type', None) + + +class IntegrationAccountPartnerListResult(msrest.serialization.Model): + """The list of integration account partners. + + :param value: The list of integration account partners. + :type value: list[~logic_management_client.models.IntegrationAccountPartner] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountPartner]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartnerListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountPartnerProperties(msrest.serialization.Model): + """The integration account partner properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :param content: Required. The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + """ + + _validation = { + 'partner_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'partner_type': {'key': 'partnerType', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountPartnerPropertiesMetadata'}, + 'content': {'key': 'content', 'type': 'PartnerContent'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartnerProperties, self).__init__(**kwargs) + self.partner_type = kwargs.get('partner_type', None) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.content = kwargs.get('content', None) + + +class IntegrationAccountPartnerPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartnerPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountProperties(msrest.serialization.Model): + """The integration account properties. + + :param integration_service_environment: The integration service environment. + :type integration_service_environment: + ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountProperties, self).__init__(**kwargs) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.state = kwargs.get('state', None) + + +class IntegrationAccountSchema(Resource): + """The integration account schema. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'schema_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, + 'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'}, + 'document_name': {'key': 'properties.documentName', 'type': 'str'}, + 'file_name': {'key': 'properties.fileName', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountSchemaPropertiesMetadata'}, + 'content': {'key': 'properties.content', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchema, self).__init__(**kwargs) + self.schema_type = kwargs.get('schema_type', None) + self.target_namespace = kwargs.get('target_namespace', None) + self.document_name = kwargs.get('document_name', None) + self.file_name = kwargs.get('file_name', None) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.content = kwargs.get('content', None) + self.content_type = kwargs.get('content_type', None) + self.content_link = None + + +class IntegrationAccountSchemaFilter(msrest.serialization.Model): + """The integration account schema filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + """ + + _validation = { + 'schema_type': {'required': True}, + } + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchemaFilter, self).__init__(**kwargs) + self.schema_type = kwargs.get('schema_type', None) + + +class IntegrationAccountSchemaListResult(msrest.serialization.Model): + """The list of integration account schemas. + + :param value: The list of integration account schemas. + :type value: list[~logic_management_client.models.IntegrationAccountSchema] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountSchema]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchemaListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountSchemaProperties(msrest.serialization.Model): + """The integration account schema properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + """ + + _validation = { + 'schema_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'document_name': {'key': 'documentName', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountSchemaPropertiesMetadata'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchemaProperties, self).__init__(**kwargs) + self.schema_type = kwargs.get('schema_type', None) + self.target_namespace = kwargs.get('target_namespace', None) + self.document_name = kwargs.get('document_name', None) + self.file_name = kwargs.get('file_name', None) + self.created_time = None + self.changed_time = None + self.metadata = kwargs.get('metadata', None) + self.content = kwargs.get('content', None) + self.content_type = kwargs.get('content_type', None) + self.content_link = None + + +class IntegrationAccountSchemaPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchemaPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountSession(Resource): + """The integration account session. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: + :type content: ~logic_management_client.models.Object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'properties.content', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSession, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.content = kwargs.get('content', None) + + +class IntegrationAccountSessionFilter(msrest.serialization.Model): + """The integration account session filter. + + All required parameters must be populated in order to send to Azure. + + :param changed_time: Required. The changed time of integration account sessions. + :type changed_time: ~datetime.datetime + """ + + _validation = { + 'changed_time': {'required': True}, + } + + _attribute_map = { + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSessionFilter, self).__init__(**kwargs) + self.changed_time = kwargs.get('changed_time', None) + + +class IntegrationAccountSessionListResult(msrest.serialization.Model): + """The list of integration account sessions. + + :param value: The list of integration account sessions. + :type value: list[~logic_management_client.models.IntegrationAccountSession] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountSession]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSessionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationAccountSessionProperties(msrest.serialization.Model): + """The integration account session properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: + :type content: ~logic_management_client.models.Object + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'content', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSessionProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.content = kwargs.get('content', None) + + +class IntegrationAccountSku(msrest.serialization.Model): + """The integration account sku. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The integration account sku name. Possible values include: + 'NotSpecified', 'Free', 'Basic', 'Standard'. + :type name: str or ~logic_management_client.models.IntegrationAccountSkuName + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class IntegrationServiceEnvironment(Resource): + """The integration service environment. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'IntegrationServiceEnvironmentProperties'}, + 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSku'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironment, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.sku = kwargs.get('sku', None) + + +class IntegrationServiceEnvironmentAccessEndpoint(msrest.serialization.Model): + """The integration service environment access endpoint. + + :param type: The integration service environment access endpoint type. Possible values include: + 'NotSpecified', 'External', 'Internal'. + :type type: str or + ~logic_management_client.models.IntegrationServiceEnvironmentAccessEndpointType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentAccessEndpoint, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + + +class IntegrationServiceEnvironmentListResult(msrest.serialization.Model): + """The list of integration service environments. + + :param value: + :type value: list[~logic_management_client.models.IntegrationServiceEnvironment] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironment]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationServiceEnvironmentNetworkDependency(msrest.serialization.Model): + """The azure async operation resource. + + :param category: The integration service environment network dependency category type. Possible + values include: 'NotSpecified', 'AzureStorage', 'AzureManagement', 'AzureActiveDirectory', + 'SSLCertificateVerification', 'DiagnosticLogsAndMetrics', + 'IntegrationServiceEnvironmentConnectors', 'RedisCache', 'AccessEndpoints', 'RecoveryService', + 'SQL', 'RegionalService'. + :type category: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyCategoryType + :param display_name: The display name. + :type display_name: str + :param endpoints: The endpoints. + :type endpoints: + list[~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndpoint] + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[IntegrationServiceEnvironmentNetworkEndpoint]'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkDependency, self).__init__(**kwargs) + self.category = kwargs.get('category', None) + self.display_name = kwargs.get('display_name', None) + self.endpoints = kwargs.get('endpoints', None) + + +class IntegrationServiceEnvironmentNetworkDependencyHealth(msrest.serialization.Model): + """The integration service environment subnet network health. + + :param error: The extended error info. + :type error: ~logic_management_client.models.ExtendedErrorInfo + :param state: The integration service environment network dependency health state. Possible + values include: 'NotSpecified', 'Healthy', 'Unhealthy', 'Unknown'. + :type state: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyHealthState + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ExtendedErrorInfo'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkDependencyHealth, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.state = kwargs.get('state', None) + + +class IntegrationServiceEnvironmentNetworkEndpoint(msrest.serialization.Model): + """The network endpoint. + + :param accessibility: The integration service environment network endpoint accessibility state. + Possible values include: 'NotSpecified', 'Unknown', 'Available', 'NotAvailable'. + :type accessibility: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndPointAccessibilityState + :param domain_name: The domain name. + :type domain_name: str + :param ports: The ports. + :type ports: list[str] + """ + + _attribute_map = { + 'accessibility': {'key': 'accessibility', 'type': 'str'}, + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'ports': {'key': 'ports', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkEndpoint, self).__init__(**kwargs) + self.accessibility = kwargs.get('accessibility', None) + self.domain_name = kwargs.get('domain_name', None) + self.ports = kwargs.get('ports', None) + + +class IntegrationServiceEnvironmentProperties(msrest.serialization.Model): + """The integration service environment properties. + + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :param integration_service_environment_id: Gets the tracking id. + :type integration_service_environment_id: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param network_configuration: The network configuration. + :type network_configuration: ~logic_management_client.models.NetworkConfiguration + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'integration_service_environment_id': {'key': 'integrationServiceEnvironmentId', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'network_configuration': {'key': 'networkConfiguration', 'type': 'NetworkConfiguration'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentProperties, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.state = kwargs.get('state', None) + self.integration_service_environment_id = kwargs.get('integration_service_environment_id', None) + self.endpoints_configuration = kwargs.get('endpoints_configuration', None) + self.network_configuration = kwargs.get('network_configuration', None) + + +class IntegrationServiceEnvironmentSku(msrest.serialization.Model): + """The integration service environment sku. + + :param name: The integration service environment sku name. Possible values include: + 'NotSpecified', 'Premium', 'Developer'. + :type name: str or ~logic_management_client.models.IntegrationServiceEnvironmentSkuName + :param capacity: The sku capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.capacity = kwargs.get('capacity', None) + + +class IntegrationServiceEnvironmentSkuCapacity(msrest.serialization.Model): + """The integration service environment sku capacity. + + :param minimum: The minimum capacity. + :type minimum: int + :param maximum: The maximum capacity. + :type maximum: int + :param default: The default capacity. + :type default: int + :param scale_type: The integration service environment sku scale type. Possible values include: + 'Manual', 'Automatic', 'None'. + :type scale_type: str or + ~logic_management_client.models.IntegrationServiceEnvironmentSkuScaleType + """ + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuCapacity, self).__init__(**kwargs) + self.minimum = kwargs.get('minimum', None) + self.maximum = kwargs.get('maximum', None) + self.default = kwargs.get('default', None) + self.scale_type = kwargs.get('scale_type', None) + + +class IntegrationServiceEnvironmentSkuDefinition(msrest.serialization.Model): + """The integration service environment sku definition. + + :param resource_type: The resource type. + :type resource_type: str + :param sku: The sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSkuDefinitionSku + :param capacity: The integration service environment sku capacity. + :type capacity: ~logic_management_client.models.IntegrationServiceEnvironmentSkuCapacity + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSkuDefinitionSku'}, + 'capacity': {'key': 'capacity', 'type': 'IntegrationServiceEnvironmentSkuCapacity'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuDefinition, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.sku = kwargs.get('sku', None) + self.capacity = kwargs.get('capacity', None) + + +class IntegrationServiceEnvironmentSkuDefinitionSku(msrest.serialization.Model): + """The sku. + + :param name: The integration service environment sku name. Possible values include: + 'NotSpecified', 'Premium', 'Developer'. + :type name: str or ~logic_management_client.models.IntegrationServiceEnvironmentSkuName + :param tier: The sku tier. + :type tier: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuDefinitionSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + + +class IntegrationServiceEnvironmentSkuList(msrest.serialization.Model): + """The list of integration service environment skus. + + :param value: The list of integration service environment skus. + :type value: list[~logic_management_client.models.IntegrationServiceEnvironmentSkuDefinition] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironmentSkuDefinition]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationServiceEnvironmentSubnetNetworkHealth(msrest.serialization.Model): + """The integration service environment subnet network health. + + All required parameters must be populated in order to send to Azure. + + :param outbound_network_dependencies: The outbound network dependencies. + :type outbound_network_dependencies: + list[~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependency] + :param outbound_network_health: The integration service environment subnet network health. + :type outbound_network_health: + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyHealth + :param network_dependency_health_state: Required. The integration service environment network + endpoint accessibility state. Possible values include: 'NotSpecified', 'Unknown', 'Available', + 'NotAvailable'. + :type network_dependency_health_state: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndPointAccessibilityState + """ + + _validation = { + 'network_dependency_health_state': {'required': True}, + } + + _attribute_map = { + 'outbound_network_dependencies': {'key': 'outboundNetworkDependencies', 'type': '[IntegrationServiceEnvironmentNetworkDependency]'}, + 'outbound_network_health': {'key': 'outboundNetworkHealth', 'type': 'IntegrationServiceEnvironmentNetworkDependencyHealth'}, + 'network_dependency_health_state': {'key': 'networkDependencyHealthState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentSubnetNetworkHealth, self).__init__(**kwargs) + self.outbound_network_dependencies = kwargs.get('outbound_network_dependencies', None) + self.outbound_network_health = kwargs.get('outbound_network_health', None) + self.network_dependency_health_state = kwargs.get('network_dependency_health_state', None) + + +class IpAddress(msrest.serialization.Model): + """The ip address. + + :param address: The address. + :type address: str + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IpAddress, self).__init__(**kwargs) + self.address = kwargs.get('address', None) + + +class IpAddressRange(msrest.serialization.Model): + """The ip address range. + + :param address_range: The IP address range. + :type address_range: str + """ + + _attribute_map = { + 'address_range': {'key': 'addressRange', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IpAddressRange, self).__init__(**kwargs) + self.address_range = kwargs.get('address_range', None) + + +class JsonSchema(msrest.serialization.Model): + """The JSON schema. + + :param title: The JSON title. + :type title: str + :param content: The JSON content. + :type content: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(JsonSchema, self).__init__(**kwargs) + self.title = kwargs.get('title', None) + self.content = kwargs.get('content', None) + + +class KeyVaultKey(msrest.serialization.Model): + """The key vault key. + + :param kid: The key id. + :type kid: str + :param attributes: The key attributes. + :type attributes: ~logic_management_client.models.KeyVaultKeyAttributes + """ + + _attribute_map = { + 'kid': {'key': 'kid', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'KeyVaultKeyAttributes'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKey, self).__init__(**kwargs) + self.kid = kwargs.get('kid', None) + self.attributes = kwargs.get('attributes', None) + + +class KeyVaultKeyAttributes(msrest.serialization.Model): + """The key attributes. + + :param enabled: Whether the key is enabled or not. + :type enabled: bool + :param created: When the key was created. + :type created: long + :param updated: When the key was updated. + :type updated: long + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'created': {'key': 'created', 'type': 'long'}, + 'updated': {'key': 'updated', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKeyAttributes, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.created = kwargs.get('created', None) + self.updated = kwargs.get('updated', None) + + +class KeyVaultKeyCollection(msrest.serialization.Model): + """Collection of key vault keys. + + :param value: The key vault keys. + :type value: list[~logic_management_client.models.KeyVaultKey] + :param skip_token: The skip token. + :type skip_token: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyVaultKey]'}, + 'skip_token': {'key': 'skipToken', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKeyCollection, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.skip_token = kwargs.get('skip_token', None) + + +class KeyVaultKeyReference(msrest.serialization.Model): + """The reference to the key vault key. + + All required parameters must be populated in order to send to Azure. + + :param key_vault: Required. The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultKeyReferenceKeyVault + :param key_name: Required. The private key name in key vault. + :type key_name: str + :param key_version: The private key version in key vault. + :type key_version: str + """ + + _validation = { + 'key_vault': {'required': True}, + 'key_name': {'required': True}, + } + + _attribute_map = { + 'key_vault': {'key': 'keyVault', 'type': 'KeyVaultKeyReferenceKeyVault'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKeyReference, self).__init__(**kwargs) + self.key_vault = kwargs.get('key_vault', None) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + + +class KeyVaultKeyReferenceKeyVault(msrest.serialization.Model): + """The key vault reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKeyReferenceKeyVault, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = None + self.type = None + + +class KeyVaultReference(ResourceReference): + """The key vault reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultReference, self).__init__(**kwargs) + + +class ListKeyVaultKeysDefinition(msrest.serialization.Model): + """The list key vault keys definition. + + All required parameters must be populated in order to send to Azure. + + :param key_vault: Required. The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultReference + :param skip_token: The skip token. + :type skip_token: str + """ + + _validation = { + 'key_vault': {'required': True}, + } + + _attribute_map = { + 'key_vault': {'key': 'keyVault', 'type': 'KeyVaultReference'}, + 'skip_token': {'key': 'skipToken', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ListKeyVaultKeysDefinition, self).__init__(**kwargs) + self.key_vault = kwargs.get('key_vault', None) + self.skip_token = kwargs.get('skip_token', None) + + +class ManagedApi(Resource): + """The managed api definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The API resource properties. + :type properties: ~logic_management_client.models.ApiResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApiResourceProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(ManagedApi, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ManagedApiListResult(msrest.serialization.Model): + """The list of managed APIs. + + :param value: The managed APIs. + :type value: list[~logic_management_client.models.ManagedApi] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ManagedApi]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ManagedApiListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class NetworkConfiguration(msrest.serialization.Model): + """The network configuration. + + :param virtual_network_address_space: Gets the virtual network address space. + :type virtual_network_address_space: str + :param access_endpoint: The integration service environment access endpoint. + :type access_endpoint: + ~logic_management_client.models.IntegrationServiceEnvironmentAccessEndpoint + :param subnets: The subnets. + :type subnets: list[~logic_management_client.models.ResourceReference] + """ + + _attribute_map = { + 'virtual_network_address_space': {'key': 'virtualNetworkAddressSpace', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'IntegrationServiceEnvironmentAccessEndpoint'}, + 'subnets': {'key': 'subnets', 'type': '[ResourceReference]'}, + } + + def __init__( + self, + **kwargs + ): + super(NetworkConfiguration, self).__init__(**kwargs) + self.virtual_network_address_space = kwargs.get('virtual_network_address_space', None) + self.access_endpoint = kwargs.get('access_endpoint', None) + self.subnets = kwargs.get('subnets', None) + + +class Object(msrest.serialization.Model): + """Object. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(Object, self).__init__(**kwargs) + + +class OpenAuthenticationAccessPolicies(msrest.serialization.Model): + """AuthenticationPolicy of type Open. + + :param policies: Open authentication policies. + :type policies: dict[str, ~logic_management_client.models.OpenAuthenticationAccessPolicy] + """ + + _attribute_map = { + 'policies': {'key': 'policies', 'type': '{OpenAuthenticationAccessPolicy}'}, + } + + def __init__( + self, + **kwargs + ): + super(OpenAuthenticationAccessPolicies, self).__init__(**kwargs) + self.policies = kwargs.get('policies', None) + + +class OpenAuthenticationAccessPolicy(msrest.serialization.Model): + """Open authentication access policy defined by user. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: Open authentication policy provider type. Default value: "AAD". + :vartype type: str + :param claims: The access policy claims. + :type claims: list[~logic_management_client.models.OpenAuthenticationPolicyClaim] + """ + + _validation = { + 'type': {'readonly': True, 'constant': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'claims': {'key': 'claims', 'type': '[OpenAuthenticationPolicyClaim]'}, + } + + type = "AAD" + + def __init__( + self, + **kwargs + ): + super(OpenAuthenticationAccessPolicy, self).__init__(**kwargs) + self.type = None + self.claims = kwargs.get('claims', None) + + +class OpenAuthenticationPolicyClaim(msrest.serialization.Model): + """Open authentication policy claim. + + :param name: The name of the claim. + :type name: str + :param value: The value of the claim. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OpenAuthenticationPolicyClaim, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + + +class Operation(msrest.serialization.Model): + """Logic REST API operation. + + :param origin: Operation: origin. + :type origin: str + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The object that represents the operation. + :type display: ~logic_management_client.models.OperationDisplay + """ + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.origin = kwargs.get('origin', None) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Logic. + :type provider: str + :param resource: Resource on which the operation is performed: Profile, endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Operation: description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationListResult(msrest.serialization.Model): + """Result of the request to list Logic operations. It contains a list of operations and a URL link to get the next set of results. + + :param value: List of Logic operations supported by the Logic resource provider. + :type value: list[~logic_management_client.models.Operation] + :param next_link: URL to get the next set of operation list results if there are any. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class OperationResultProperties(msrest.serialization.Model): + """The run operation result properties. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationResultProperties, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.correlation = kwargs.get('correlation', None) + self.status = kwargs.get('status', None) + self.code = kwargs.get('code', None) + self.error = kwargs.get('error', None) + + +class OperationResult(OperationResultProperties): + """The operation result definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + """ + + _validation = { + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'iterationCount', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationResult, self).__init__(**kwargs) + self.tracking_id = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = kwargs.get('retry_history', None) + self.iteration_count = kwargs.get('iteration_count', None) + + +class PartnerContent(msrest.serialization.Model): + """The integration account partner content. + + :param b2_b: The B2B partner content. + :type b2_b: ~logic_management_client.models.B2BPartnerContent + """ + + _attribute_map = { + 'b2_b': {'key': 'b2b', 'type': 'B2BPartnerContent'}, + } + + def __init__( + self, + **kwargs + ): + super(PartnerContent, self).__init__(**kwargs) + self.b2_b = kwargs.get('b2_b', None) + + +class RecurrenceSchedule(msrest.serialization.Model): + """The recurrence schedule. + + :param minutes: The minutes. + :type minutes: list[int] + :param hours: The hours. + :type hours: list[int] + :param week_days: The days of the week. + :type week_days: list[str or ~logic_management_client.models.DaysOfWeek] + :param month_days: The month days. + :type month_days: list[int] + :param monthly_occurrences: The monthly occurrences. + :type monthly_occurrences: list[~logic_management_client.models.RecurrenceScheduleOccurrence] + """ + + _attribute_map = { + 'minutes': {'key': 'minutes', 'type': '[int]'}, + 'hours': {'key': 'hours', 'type': '[int]'}, + 'week_days': {'key': 'weekDays', 'type': '[str]'}, + 'month_days': {'key': 'monthDays', 'type': '[int]'}, + 'monthly_occurrences': {'key': 'monthlyOccurrences', 'type': '[RecurrenceScheduleOccurrence]'}, + } + + def __init__( + self, + **kwargs + ): + super(RecurrenceSchedule, self).__init__(**kwargs) + self.minutes = kwargs.get('minutes', None) + self.hours = kwargs.get('hours', None) + self.week_days = kwargs.get('week_days', None) + self.month_days = kwargs.get('month_days', None) + self.monthly_occurrences = kwargs.get('monthly_occurrences', None) + + +class RecurrenceScheduleOccurrence(msrest.serialization.Model): + """The recurrence schedule occurrence. + + :param day: The day of the week. Possible values include: 'Sunday', 'Monday', 'Tuesday', + 'Wednesday', 'Thursday', 'Friday', 'Saturday'. + :type day: str or ~logic_management_client.models.DayOfWeek + :param occurrence: The occurrence. + :type occurrence: int + """ + + _attribute_map = { + 'day': {'key': 'day', 'type': 'str'}, + 'occurrence': {'key': 'occurrence', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RecurrenceScheduleOccurrence, self).__init__(**kwargs) + self.day = kwargs.get('day', None) + self.occurrence = kwargs.get('occurrence', None) + + +class RegenerateActionParameter(msrest.serialization.Model): + """The access key regenerate action content. + + :param key_type: The key type. Possible values include: 'NotSpecified', 'Primary', 'Secondary'. + :type key_type: str or ~logic_management_client.models.KeyType + """ + + _attribute_map = { + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RegenerateActionParameter, self).__init__(**kwargs) + self.key_type = kwargs.get('key_type', None) + + +class RepetitionIndex(msrest.serialization.Model): + """The workflow run action repetition index. + + All required parameters must be populated in order to send to Azure. + + :param scope_name: The scope. + :type scope_name: str + :param item_index: Required. The index. + :type item_index: int + """ + + _validation = { + 'item_index': {'required': True}, + } + + _attribute_map = { + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'item_index': {'key': 'itemIndex', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RepetitionIndex, self).__init__(**kwargs) + self.scope_name = kwargs.get('scope_name', None) + self.item_index = kwargs.get('item_index', None) + + +class Request(msrest.serialization.Model): + """A request. + + :param headers: + :type headers: ~logic_management_client.models.Object + :param uri: The destination for the request. + :type uri: str + :param method: The HTTP method used for the request. + :type method: str + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'Object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Request, self).__init__(**kwargs) + self.headers = kwargs.get('headers', None) + self.uri = kwargs.get('uri', None) + self.method = kwargs.get('method', None) + + +class RequestHistory(Resource): + """The request history. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The request history. + :type properties: ~logic_management_client.models.RequestHistoryProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(RequestHistory, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class RequestHistoryListResult(msrest.serialization.Model): + """The list of workflow request histories. + + :param value: A list of workflow request histories. + :type value: list[~logic_management_client.models.RequestHistory] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RequestHistory]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RequestHistoryListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class RequestHistoryProperties(msrest.serialization.Model): + """The request history. + + :param start_time: The time the request started. + :type start_time: ~datetime.datetime + :param end_time: The time the request ended. + :type end_time: ~datetime.datetime + :param request: A request. + :type request: ~logic_management_client.models.Request + :param response: A response. + :type response: ~logic_management_client.models.Response + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'Request'}, + 'response': {'key': 'response', 'type': 'Response'}, + } + + def __init__( + self, + **kwargs + ): + super(RequestHistoryProperties, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.request = kwargs.get('request', None) + self.response = kwargs.get('response', None) + + +class Response(msrest.serialization.Model): + """A response. + + :param headers: + :type headers: ~logic_management_client.models.Object + :param status_code: The status code of the response. + :type status_code: int + :param body_link: The content link. + :type body_link: ~logic_management_client.models.ContentLink + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'Object'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'body_link': {'key': 'bodyLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + **kwargs + ): + super(Response, self).__init__(**kwargs) + self.headers = kwargs.get('headers', None) + self.status_code = kwargs.get('status_code', None) + self.body_link = kwargs.get('body_link', None) + + +class RetryHistory(msrest.serialization.Model): + """The retry history. + + :param start_time: Gets the start time. + :type start_time: ~datetime.datetime + :param end_time: Gets the end time. + :type end_time: ~datetime.datetime + :param code: Gets the status code. + :type code: str + :param client_request_id: Gets the client request Id. + :type client_request_id: str + :param service_request_id: Gets the service request Id. + :type service_request_id: str + :param error: Error response indicates Logic service is not able to process the incoming + request. The error property contains the error details. + :type error: ~logic_management_client.models.ErrorResponse + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'code': {'key': 'code', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ErrorResponse'}, + } + + def __init__( + self, + **kwargs + ): + super(RetryHistory, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.code = kwargs.get('code', None) + self.client_request_id = kwargs.get('client_request_id', None) + self.service_request_id = kwargs.get('service_request_id', None) + self.error = kwargs.get('error', None) + + +class RunCorrelation(msrest.serialization.Model): + """The correlation properties. + + :param client_tracking_id: The client tracking identifier. + :type client_tracking_id: str + :param client_keywords: The client keywords. + :type client_keywords: list[str] + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + 'client_keywords': {'key': 'clientKeywords', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCorrelation, self).__init__(**kwargs) + self.client_tracking_id = kwargs.get('client_tracking_id', None) + self.client_keywords = kwargs.get('client_keywords', None) + + +class RunActionCorrelation(RunCorrelation): + """The workflow run action correlation properties. + + :param client_tracking_id: The client tracking identifier. + :type client_tracking_id: str + :param client_keywords: The client keywords. + :type client_keywords: list[str] + :param action_tracking_id: The action tracking identifier. + :type action_tracking_id: str + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + 'client_keywords': {'key': 'clientKeywords', 'type': '[str]'}, + 'action_tracking_id': {'key': 'actionTrackingId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RunActionCorrelation, self).__init__(**kwargs) + self.action_tracking_id = kwargs.get('action_tracking_id', None) + + +class SetTriggerStateActionDefinition(msrest.serialization.Model): + """The set trigger state action definition. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. The workflow trigger reference. + :type source: ~logic_management_client.models.WorkflowTriggerReference + """ + + _validation = { + 'source': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'WorkflowTriggerReference'}, + } + + def __init__( + self, + **kwargs + ): + super(SetTriggerStateActionDefinition, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + + +class Sku(msrest.serialization.Model): + """The sku type. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The sku name. Possible values include: 'NotSpecified', 'Free', 'Shared', + 'Basic', 'Standard', 'Premium'. + :type name: str or ~logic_management_client.models.SkuName + :param plan: The resource reference. + :type plan: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.plan = kwargs.get('plan', None) + + +class SubResource(msrest.serialization.Model): + """The sub resource type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResource, self).__init__(**kwargs) + self.id = None + + +class SwaggerCustomDynamicList(msrest.serialization.Model): + """The swagger custom dynamic list. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param built_in_operation: The built in operation. + :type built_in_operation: str + :param items_path: The path to a response property (relative to the response object, not the + response body) which contains an array of dynamic value items. + :type items_path: str + :param item_value_path: The path to a property which defines the value which should be used. + :type item_value_path: str + :param item_title_path: The path to an item property which defines the display name of the + item. + :type item_title_path: str + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicProperties] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'built_in_operation': {'key': 'builtInOperation', 'type': 'str'}, + 'items_path': {'key': 'itemsPath', 'type': 'str'}, + 'item_value_path': {'key': 'itemValuePath', 'type': 'str'}, + 'item_title_path': {'key': 'itemTitlePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicProperties}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicList, self).__init__(**kwargs) + self.operation_id = kwargs.get('operation_id', None) + self.built_in_operation = kwargs.get('built_in_operation', None) + self.items_path = kwargs.get('items_path', None) + self.item_value_path = kwargs.get('item_value_path', None) + self.item_title_path = kwargs.get('item_title_path', None) + self.parameters = kwargs.get('parameters', None) + + +class SwaggerCustomDynamicProperties(msrest.serialization.Model): + """The swagger custom dynamic properties. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param value_path: Json pointer to the dynamic schema on the response body. + :type value_path: str + :param parameters: The operation parameters. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicProperties] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'value_path': {'key': 'valuePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicProperties}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicProperties, self).__init__(**kwargs) + self.operation_id = kwargs.get('operation_id', None) + self.value_path = kwargs.get('value_path', None) + self.parameters = kwargs.get('parameters', None) + + +class SwaggerCustomDynamicSchema(msrest.serialization.Model): + """The swagger custom dynamic schema. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param value_path: Json pointer to the dynamic schema on the response body. + :type value_path: str + :param parameters: The operation parameters. + :type parameters: dict[str, object] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'value_path': {'key': 'valuePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicSchema, self).__init__(**kwargs) + self.operation_id = kwargs.get('operation_id', None) + self.value_path = kwargs.get('value_path', None) + self.parameters = kwargs.get('parameters', None) + + +class SwaggerCustomDynamicTree(msrest.serialization.Model): + """The swagger custom dynamic tree. + + :param settings: The swagger custom dynamic tree settings. + :type settings: ~logic_management_client.models.SwaggerCustomDynamicTreeSettings + :param open: The swagger tree command. + :type open: ~logic_management_client.models.SwaggerCustomDynamicTreeCommand + :param browse: The swagger tree command. + :type browse: ~logic_management_client.models.SwaggerCustomDynamicTreeCommand + """ + + _attribute_map = { + 'settings': {'key': 'settings', 'type': 'SwaggerCustomDynamicTreeSettings'}, + 'open': {'key': 'open', 'type': 'SwaggerCustomDynamicTreeCommand'}, + 'browse': {'key': 'browse', 'type': 'SwaggerCustomDynamicTreeCommand'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicTree, self).__init__(**kwargs) + self.settings = kwargs.get('settings', None) + self.open = kwargs.get('open', None) + self.browse = kwargs.get('browse', None) + + +class SwaggerCustomDynamicTreeCommand(msrest.serialization.Model): + """The swagger tree command. + + :param operation_id: The path to an item property which defines the display name of the item. + :type operation_id: str + :param items_path: The path to an item property which defines the display name of the item. + :type items_path: str + :param item_value_path: The path to an item property which defines the display name of the + item. + :type item_value_path: str + :param item_title_path: The path to an item property which defines the display name of the + item. + :type item_title_path: str + :param item_full_title_path: The path to an item property which defines the display name of the + item. + :type item_full_title_path: str + :param item_is_parent: The path to an item property which defines the display name of the item. + :type item_is_parent: str + :param selectable_filter: The path to an item property which defines the display name of the + item. + :type selectable_filter: str + :param parameters: Dictionary of :code:``. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicTreeParameter] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'items_path': {'key': 'itemsPath', 'type': 'str'}, + 'item_value_path': {'key': 'itemValuePath', 'type': 'str'}, + 'item_title_path': {'key': 'itemTitlePath', 'type': 'str'}, + 'item_full_title_path': {'key': 'itemFullTitlePath', 'type': 'str'}, + 'item_is_parent': {'key': 'itemIsParent', 'type': 'str'}, + 'selectable_filter': {'key': 'selectableFilter', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicTreeParameter}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicTreeCommand, self).__init__(**kwargs) + self.operation_id = kwargs.get('operation_id', None) + self.items_path = kwargs.get('items_path', None) + self.item_value_path = kwargs.get('item_value_path', None) + self.item_title_path = kwargs.get('item_title_path', None) + self.item_full_title_path = kwargs.get('item_full_title_path', None) + self.item_is_parent = kwargs.get('item_is_parent', None) + self.selectable_filter = kwargs.get('selectable_filter', None) + self.parameters = kwargs.get('parameters', None) + + +class SwaggerCustomDynamicTreeParameter(msrest.serialization.Model): + """The swagger custom dynamic tree parameter. + + :param selected_item_value_path: Gets or sets a path to a property in the currently selected + item to pass as a value to a parameter for the given operation. + :type selected_item_value_path: str + :param value: + :type value: ~logic_management_client.models.Object + :param parameter_reference: The parameter reference. + :type parameter_reference: str + :param required: Indicates whether the parameter is required. + :type required: bool + """ + + _attribute_map = { + 'selected_item_value_path': {'key': 'selectedItemValuePath', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'parameter_reference': {'key': 'parameterReference', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicTreeParameter, self).__init__(**kwargs) + self.selected_item_value_path = kwargs.get('selected_item_value_path', None) + self.value = kwargs.get('value', None) + self.parameter_reference = kwargs.get('parameter_reference', None) + self.required = kwargs.get('required', None) + + +class SwaggerCustomDynamicTreeSettings(msrest.serialization.Model): + """The swagger custom dynamic tree settings. + + :param can_select_parent_nodes: Indicates whether parent nodes can be selected. + :type can_select_parent_nodes: bool + :param can_select_leaf_nodes: Indicates whether leaf nodes can be selected. + :type can_select_leaf_nodes: bool + """ + + _attribute_map = { + 'can_select_parent_nodes': {'key': 'CanSelectParentNodes', 'type': 'bool'}, + 'can_select_leaf_nodes': {'key': 'CanSelectLeafNodes', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerCustomDynamicTreeSettings, self).__init__(**kwargs) + self.can_select_parent_nodes = kwargs.get('can_select_parent_nodes', None) + self.can_select_leaf_nodes = kwargs.get('can_select_leaf_nodes', None) + + +class SwaggerExternalDocumentation(msrest.serialization.Model): + """The swagger external documentation. + + :param description: The document description. + :type description: str + :param uri: The documentation Uri. + :type uri: str + :param extensions: The vendor extensions. + :type extensions: dict[str, object] + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'extensions': {'key': 'extensions', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerExternalDocumentation, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.uri = kwargs.get('uri', None) + self.extensions = kwargs.get('extensions', None) + + +class SwaggerSchema(msrest.serialization.Model): + """The swagger schema. + + :param ref: The reference. + :type ref: str + :param type: The swagger schema type. Possible values include: 'String', 'Number', 'Integer', + 'Boolean', 'Array', 'File', 'Object', 'Null'. + :type type: str or ~logic_management_client.models.SwaggerSchemaType + :param title: The title. + :type title: str + :param items: The swagger schema. + :type items: ~logic_management_client.models.SwaggerSchema + :param properties: The object properties. + :type properties: dict[str, ~logic_management_client.models.SwaggerSchema] + :param additional_properties: + :type additional_properties: ~logic_management_client.models.Object + :param required: The object required properties. + :type required: list[str] + :param max_properties: The maximum number of allowed properties. + :type max_properties: int + :param min_properties: The minimum number of allowed properties. + :type min_properties: int + :param all_of: The schemas which must pass validation when this schema is used. + :type all_of: list[~logic_management_client.models.SwaggerSchema] + :param discriminator: The discriminator. + :type discriminator: str + :param read_only: Indicates whether this property must be present in the a request. + :type read_only: bool + :param xml: The Swagger XML. + :type xml: ~logic_management_client.models.SwaggerXml + :param external_docs: The swagger external documentation. + :type external_docs: ~logic_management_client.models.SwaggerExternalDocumentation + :param example: + :type example: ~logic_management_client.models.Object + :param notification_url_extension: Indicates the notification url extension. If this is set, + the property's value should be a callback url for a webhook. + :type notification_url_extension: bool + :param dynamic_schema_old: The swagger custom dynamic schema. + :type dynamic_schema_old: ~logic_management_client.models.SwaggerCustomDynamicSchema + :param dynamic_schema_new: The swagger custom dynamic properties. + :type dynamic_schema_new: ~logic_management_client.models.SwaggerCustomDynamicProperties + :param dynamic_list_new: The swagger custom dynamic list. + :type dynamic_list_new: ~logic_management_client.models.SwaggerCustomDynamicList + :param dynamic_tree: The swagger custom dynamic tree. + :type dynamic_tree: ~logic_management_client.models.SwaggerCustomDynamicTree + """ + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'items': {'key': 'items', 'type': 'SwaggerSchema'}, + 'properties': {'key': 'properties', 'type': '{SwaggerSchema}'}, + 'additional_properties': {'key': 'additionalProperties', 'type': 'Object'}, + 'required': {'key': 'required', 'type': '[str]'}, + 'max_properties': {'key': 'maxProperties', 'type': 'int'}, + 'min_properties': {'key': 'minProperties', 'type': 'int'}, + 'all_of': {'key': 'allOf', 'type': '[SwaggerSchema]'}, + 'discriminator': {'key': 'discriminator', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'xml': {'key': 'xml', 'type': 'SwaggerXml'}, + 'external_docs': {'key': 'externalDocs', 'type': 'SwaggerExternalDocumentation'}, + 'example': {'key': 'example', 'type': 'Object'}, + 'notification_url_extension': {'key': 'notificationUrlExtension', 'type': 'bool'}, + 'dynamic_schema_old': {'key': 'dynamicSchemaOld', 'type': 'SwaggerCustomDynamicSchema'}, + 'dynamic_schema_new': {'key': 'dynamicSchemaNew', 'type': 'SwaggerCustomDynamicProperties'}, + 'dynamic_list_new': {'key': 'dynamicListNew', 'type': 'SwaggerCustomDynamicList'}, + 'dynamic_tree': {'key': 'dynamicTree', 'type': 'SwaggerCustomDynamicTree'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerSchema, self).__init__(**kwargs) + self.ref = kwargs.get('ref', None) + self.type = kwargs.get('type', None) + self.title = kwargs.get('title', None) + self.items = kwargs.get('items', None) + self.properties = kwargs.get('properties', None) + self.additional_properties = kwargs.get('additional_properties', None) + self.required = kwargs.get('required', None) + self.max_properties = kwargs.get('max_properties', None) + self.min_properties = kwargs.get('min_properties', None) + self.all_of = kwargs.get('all_of', None) + self.discriminator = kwargs.get('discriminator', None) + self.read_only = kwargs.get('read_only', None) + self.xml = kwargs.get('xml', None) + self.external_docs = kwargs.get('external_docs', None) + self.example = kwargs.get('example', None) + self.notification_url_extension = kwargs.get('notification_url_extension', None) + self.dynamic_schema_old = kwargs.get('dynamic_schema_old', None) + self.dynamic_schema_new = kwargs.get('dynamic_schema_new', None) + self.dynamic_list_new = kwargs.get('dynamic_list_new', None) + self.dynamic_tree = kwargs.get('dynamic_tree', None) + + +class SwaggerXml(msrest.serialization.Model): + """The Swagger XML. + + :param name: The xml element or attribute name. + :type name: str + :param namespace: The xml namespace. + :type namespace: str + :param prefix: The name prefix. + :type prefix: str + :param attribute: Indicates whether the property should be an attribute instead of an element. + :type attribute: bool + :param wrapped: Indicates whether the array elements are wrapped in a container element. + :type wrapped: bool + :param extensions: The vendor extensions. + :type extensions: dict[str, object] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'attribute': {'key': 'attribute', 'type': 'bool'}, + 'wrapped': {'key': 'wrapped', 'type': 'bool'}, + 'extensions': {'key': 'extensions', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(SwaggerXml, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.namespace = kwargs.get('namespace', None) + self.prefix = kwargs.get('prefix', None) + self.attribute = kwargs.get('attribute', None) + self.wrapped = kwargs.get('wrapped', None) + self.extensions = kwargs.get('extensions', None) + + +class TrackingEvent(msrest.serialization.Model): + """The tracking event. + + All required parameters must be populated in order to send to Azure. + + :param event_level: Required. The event level. Possible values include: 'LogAlways', + 'Critical', 'Error', 'Warning', 'Informational', 'Verbose'. + :type event_level: str or ~logic_management_client.models.EventLevel + :param event_time: Required. The event time. + :type event_time: ~datetime.datetime + :param record_type: Required. The tracking record type. Possible values include: + 'NotSpecified', 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange', 'X12FunctionalGroup', + 'X12TransactionSet', 'X12InterchangeAcknowledgment', 'X12FunctionalGroupAcknowledgment', + 'X12TransactionSetAcknowledgment', 'EdifactInterchange', 'EdifactFunctionalGroup', + 'EdifactTransactionSet', 'EdifactInterchangeAcknowledgment', + 'EdifactFunctionalGroupAcknowledgment', 'EdifactTransactionSetAcknowledgment'. + :type record_type: str or ~logic_management_client.models.TrackingRecordType + :param record: + :type record: ~logic_management_client.models.Object + :param error: The tracking event error info. + :type error: ~logic_management_client.models.TrackingEventErrorInfo + """ + + _validation = { + 'event_level': {'required': True}, + 'event_time': {'required': True}, + 'record_type': {'required': True}, + } + + _attribute_map = { + 'event_level': {'key': 'eventLevel', 'type': 'str'}, + 'event_time': {'key': 'eventTime', 'type': 'iso-8601'}, + 'record_type': {'key': 'recordType', 'type': 'str'}, + 'record': {'key': 'record', 'type': 'Object'}, + 'error': {'key': 'error', 'type': 'TrackingEventErrorInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(TrackingEvent, self).__init__(**kwargs) + self.event_level = kwargs.get('event_level', None) + self.event_time = kwargs.get('event_time', None) + self.record_type = kwargs.get('record_type', None) + self.record = kwargs.get('record', None) + self.error = kwargs.get('error', None) + + +class TrackingEventErrorInfo(msrest.serialization.Model): + """The tracking event error info. + + :param message: The message. + :type message: str + :param code: The code. + :type code: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TrackingEventErrorInfo, self).__init__(**kwargs) + self.message = kwargs.get('message', None) + self.code = kwargs.get('code', None) + + +class TrackingEventsDefinition(msrest.serialization.Model): + """The tracking events definition. + + All required parameters must be populated in order to send to Azure. + + :param source_type: Required. The source type. + :type source_type: str + :param track_events_options: The track events operation options. Possible values include: + 'None', 'DisableSourceInfoEnrich'. + :type track_events_options: str or ~logic_management_client.models.TrackEventsOperationOptions + :param events: Required. The events. + :type events: list[~logic_management_client.models.TrackingEvent] + """ + + _validation = { + 'source_type': {'required': True}, + 'events': {'required': True}, + } + + _attribute_map = { + 'source_type': {'key': 'sourceType', 'type': 'str'}, + 'track_events_options': {'key': 'trackEventsOptions', 'type': 'str'}, + 'events': {'key': 'events', 'type': '[TrackingEvent]'}, + } + + def __init__( + self, + **kwargs + ): + super(TrackingEventsDefinition, self).__init__(**kwargs) + self.source_type = kwargs.get('source_type', None) + self.track_events_options = kwargs.get('track_events_options', None) + self.events = kwargs.get('events', None) + + +class Workflow(Resource): + """The workflow type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'properties.endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'properties.sku', 'type': 'Sku'}, + 'integration_account': {'key': 'properties.integrationAccount', 'type': 'ResourceReference'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'definition': {'key': 'properties.definition', 'type': 'Object'}, + 'parameters': {'key': 'properties.parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + **kwargs + ): + super(Workflow, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = kwargs.get('state', None) + self.version = None + self.access_endpoint = None + self.endpoints_configuration = kwargs.get('endpoints_configuration', None) + self.access_control = kwargs.get('access_control', None) + self.sku = None + self.integration_account = kwargs.get('integration_account', None) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.definition = kwargs.get('definition', None) + self.parameters = kwargs.get('parameters', None) + + +class WorkflowFilter(msrest.serialization.Model): + """The workflow filter. + + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowFilter, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + + +class WorkflowListResult(msrest.serialization.Model): + """The list of workflows. + + :param value: The list of workflows. + :type value: list[~logic_management_client.models.Workflow] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Workflow]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowParameter(msrest.serialization.Model): + """The workflow parameters. + + :param type: The parameter type. Possible values include: 'NotSpecified', 'String', + 'SecureString', 'Int', 'Float', 'Bool', 'Array', 'Object', 'SecureObject'. + :type type: str or ~logic_management_client.models.ParameterType + :param value: + :type value: ~logic_management_client.models.Object + :param metadata: + :type metadata: ~logic_management_client.models.Object + :param description: The description. + :type description: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowParameter, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + self.metadata = kwargs.get('metadata', None) + self.description = kwargs.get('description', None) + + +class WorkflowOutputParameter(WorkflowParameter): + """The workflow output parameter. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param type: The parameter type. Possible values include: 'NotSpecified', 'String', + 'SecureString', 'Int', 'Float', 'Bool', 'Array', 'Object', 'SecureObject'. + :type type: str or ~logic_management_client.models.ParameterType + :param value: + :type value: ~logic_management_client.models.Object + :param metadata: + :type metadata: ~logic_management_client.models.Object + :param description: The description. + :type description: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + """ + + _validation = { + 'error': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowOutputParameter, self).__init__(**kwargs) + self.error = None + + +class WorkflowProperties(msrest.serialization.Model): + """The workflow properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'integration_account': {'key': 'integrationAccount', 'type': 'ResourceReference'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'definition': {'key': 'definition', 'type': 'Object'}, + 'parameters': {'key': 'parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = kwargs.get('state', None) + self.version = None + self.access_endpoint = None + self.endpoints_configuration = kwargs.get('endpoints_configuration', None) + self.access_control = kwargs.get('access_control', None) + self.sku = None + self.integration_account = kwargs.get('integration_account', None) + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.definition = kwargs.get('definition', None) + self.parameters = kwargs.get('parameters', None) + + +class WorkflowReference(ResourceReference): + """The workflow reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowReference, self).__init__(**kwargs) + + +class WorkflowRun(SubResource): + """The workflow run. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow run name. + :vartype name: str + :ivar type: Gets the workflow run type. + :vartype type: str + :ivar wait_end_time: Gets the wait end time. + :vartype wait_end_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar correlation_id: Gets the correlation id. + :vartype correlation_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + :ivar trigger: The workflow run trigger. + :vartype trigger: ~logic_management_client.models.WorkflowRunTrigger + :ivar outputs: Gets the outputs. + :vartype outputs: dict[str, ~logic_management_client.models.WorkflowOutputParameter] + :ivar response: The workflow run trigger. + :vartype response: ~logic_management_client.models.WorkflowRunTrigger + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'wait_end_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'workflow': {'readonly': True}, + 'trigger': {'readonly': True}, + 'outputs': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'wait_end_time': {'key': 'properties.waitEndTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'correlation_id': {'key': 'properties.correlationId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'Correlation'}, + 'workflow': {'key': 'properties.workflow', 'type': 'ResourceReference'}, + 'trigger': {'key': 'properties.trigger', 'type': 'WorkflowRunTrigger'}, + 'outputs': {'key': 'properties.outputs', 'type': '{WorkflowOutputParameter}'}, + 'response': {'key': 'properties.response', 'type': 'WorkflowRunTrigger'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRun, self).__init__(**kwargs) + self.name = None + self.type = None + self.wait_end_time = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.correlation_id = None + self.correlation = kwargs.get('correlation', None) + self.workflow = None + self.trigger = None + self.outputs = None + self.response = None + + +class WorkflowRunAction(SubResource): + """The workflow run action. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow run action name. + :vartype name: str + :ivar type: Gets the workflow run action type. + :vartype type: str + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'properties.trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'properties.retryHistory', 'type': '[RetryHistory]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunAction, self).__init__(**kwargs) + self.name = None + self.type = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = kwargs.get('correlation', None) + self.inputs_link = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = kwargs.get('retry_history', None) + + +class WorkflowRunActionFilter(msrest.serialization.Model): + """The workflow run action filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionFilter, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + + +class WorkflowRunActionListResult(msrest.serialization.Model): + """The list of workflow run actions. + + :param value: A list of workflow run actions. + :type value: list[~logic_management_client.models.WorkflowRunAction] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowRunAction]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowRunActionProperties(msrest.serialization.Model): + """The workflow run action properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + """ + + _validation = { + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionProperties, self).__init__(**kwargs) + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = kwargs.get('correlation', None) + self.inputs_link = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = kwargs.get('retry_history', None) + + +class WorkflowRunActionRepetitionDefinition(Resource): + """The workflow run action repetition definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + :param repetition_indexes: The repetition indexes. + :type repetition_indexes: list[~logic_management_client.models.RepetitionIndex] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'inputs': {'key': 'properties.inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'properties.outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'properties.trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'properties.retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'properties.iterationCount', 'type': 'int'}, + 'repetition_indexes': {'key': 'properties.repetitionIndexes', 'type': '[RepetitionIndex]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionRepetitionDefinition, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.correlation = kwargs.get('correlation', None) + self.status = kwargs.get('status', None) + self.code = kwargs.get('code', None) + self.error = kwargs.get('error', None) + self.tracking_id = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = kwargs.get('retry_history', None) + self.iteration_count = kwargs.get('iteration_count', None) + self.repetition_indexes = kwargs.get('repetition_indexes', None) + + +class WorkflowRunActionRepetitionDefinitionCollection(msrest.serialization.Model): + """A collection of workflow run action repetitions. + + :param next_link: The link used to get the next page of recommendations. + :type next_link: str + :param value: + :type value: list[~logic_management_client.models.WorkflowRunActionRepetitionDefinition] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[WorkflowRunActionRepetitionDefinition]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionRepetitionDefinitionCollection, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class WorkflowRunActionRepetitionProperties(OperationResult): + """The workflow run action repetition properties definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + :param repetition_indexes: The repetition indexes. + :type repetition_indexes: list[~logic_management_client.models.RepetitionIndex] + """ + + _validation = { + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'iterationCount', 'type': 'int'}, + 'repetition_indexes': {'key': 'repetitionIndexes', 'type': '[RepetitionIndex]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunActionRepetitionProperties, self).__init__(**kwargs) + self.repetition_indexes = kwargs.get('repetition_indexes', None) + + +class WorkflowRunFilter(msrest.serialization.Model): + """The workflow run filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunFilter, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + + +class WorkflowRunListResult(msrest.serialization.Model): + """The list of workflow runs. + + :param value: A list of workflow runs. + :type value: list[~logic_management_client.models.WorkflowRun] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowRun]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowRunProperties(msrest.serialization.Model): + """The workflow run properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar wait_end_time: Gets the wait end time. + :vartype wait_end_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar correlation_id: Gets the correlation id. + :vartype correlation_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + :ivar trigger: The workflow run trigger. + :vartype trigger: ~logic_management_client.models.WorkflowRunTrigger + :ivar outputs: Gets the outputs. + :vartype outputs: dict[str, ~logic_management_client.models.WorkflowOutputParameter] + :ivar response: The workflow run trigger. + :vartype response: ~logic_management_client.models.WorkflowRunTrigger + """ + + _validation = { + 'wait_end_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'workflow': {'readonly': True}, + 'trigger': {'readonly': True}, + 'outputs': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'wait_end_time': {'key': 'waitEndTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'workflow': {'key': 'workflow', 'type': 'ResourceReference'}, + 'trigger': {'key': 'trigger', 'type': 'WorkflowRunTrigger'}, + 'outputs': {'key': 'outputs', 'type': '{WorkflowOutputParameter}'}, + 'response': {'key': 'response', 'type': 'WorkflowRunTrigger'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunProperties, self).__init__(**kwargs) + self.wait_end_time = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.correlation_id = None + self.correlation = kwargs.get('correlation', None) + self.workflow = None + self.trigger = None + self.outputs = None + self.response = None + + +class WorkflowRunTrigger(msrest.serialization.Model): + """The workflow run trigger. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Gets the name. + :vartype name: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar scheduled_time: Gets the scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar code: Gets the code. + :vartype code: str + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + """ + + _validation = { + 'name': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'code': {'readonly': True}, + 'status': {'readonly': True}, + 'error': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'scheduled_time': {'key': 'scheduledTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'code': {'key': 'code', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowRunTrigger, self).__init__(**kwargs) + self.name = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.scheduled_time = None + self.start_time = None + self.end_time = None + self.tracking_id = None + self.correlation = kwargs.get('correlation', None) + self.code = None + self.status = None + self.error = None + self.tracked_properties = None + + +class WorkflowTrigger(SubResource): + """The workflow trigger. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow trigger name. + :vartype name: str + :ivar type: Gets the workflow trigger type. + :vartype type: str + :ivar provisioning_state: The workflow trigger provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed'. + :vartype provisioning_state: str or + ~logic_management_client.models.WorkflowTriggerProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :ivar state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :vartype state: str or ~logic_management_client.models.WorkflowState + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar last_execution_time: Gets the last execution time. + :vartype last_execution_time: ~datetime.datetime + :ivar next_execution_time: Gets the next execution time. + :vartype next_execution_time: ~datetime.datetime + :ivar recurrence: The workflow trigger recurrence. + :vartype recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'state': {'readonly': True}, + 'status': {'readonly': True}, + 'last_execution_time': {'readonly': True}, + 'next_execution_time': {'readonly': True}, + 'recurrence': {'readonly': True}, + 'workflow': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'last_execution_time': {'key': 'properties.lastExecutionTime', 'type': 'iso-8601'}, + 'next_execution_time': {'key': 'properties.nextExecutionTime', 'type': 'iso-8601'}, + 'recurrence': {'key': 'properties.recurrence', 'type': 'WorkflowTriggerRecurrence'}, + 'workflow': {'key': 'properties.workflow', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTrigger, self).__init__(**kwargs) + self.name = None + self.type = None + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = None + self.status = None + self.last_execution_time = None + self.next_execution_time = None + self.recurrence = None + self.workflow = None + + +class WorkflowTriggerCallbackUrl(msrest.serialization.Model): + """The workflow trigger callback URL. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Gets the workflow trigger callback URL. + :vartype value: str + :ivar method: Gets the workflow trigger callback URL HTTP method. + :vartype method: str + :ivar base_path: Gets the workflow trigger callback URL base path. + :vartype base_path: str + :ivar relative_path: Gets the workflow trigger callback URL relative path. + :vartype relative_path: str + :param relative_path_parameters: Gets the workflow trigger callback URL relative path + parameters. + :type relative_path_parameters: list[str] + :param queries: Gets the workflow trigger callback URL query parameters. + :type queries: ~logic_management_client.models.WorkflowTriggerListCallbackUrlQueries + """ + + _validation = { + 'value': {'readonly': True}, + 'method': {'readonly': True}, + 'base_path': {'readonly': True}, + 'relative_path': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'base_path': {'key': 'basePath', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'relative_path_parameters': {'key': 'relativePathParameters', 'type': '[str]'}, + 'queries': {'key': 'queries', 'type': 'WorkflowTriggerListCallbackUrlQueries'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerCallbackUrl, self).__init__(**kwargs) + self.value = None + self.method = None + self.base_path = None + self.relative_path = None + self.relative_path_parameters = kwargs.get('relative_path_parameters', None) + self.queries = kwargs.get('queries', None) + + +class WorkflowTriggerFilter(msrest.serialization.Model): + """The workflow trigger filter. + + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerFilter, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + + +class WorkflowTriggerHistory(SubResource): + """The workflow trigger history. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow trigger history name. + :vartype name: str + :ivar type: Gets the workflow trigger history type. + :vartype type: str + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar scheduled_time: The scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar fired: The value indicating whether trigger was fired. + :vartype fired: bool + :ivar run: The resource reference. + :vartype run: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'fired': {'readonly': True}, + 'run': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'scheduled_time': {'key': 'properties.scheduledTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'Correlation'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'fired': {'key': 'properties.fired', 'type': 'bool'}, + 'run': {'key': 'properties.run', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerHistory, self).__init__(**kwargs) + self.name = None + self.type = None + self.start_time = None + self.end_time = None + self.scheduled_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = kwargs.get('correlation', None) + self.inputs_link = None + self.outputs_link = None + self.fired = None + self.run = None + + +class WorkflowTriggerHistoryFilter(msrest.serialization.Model): + """The workflow trigger history filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerHistoryFilter, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + + +class WorkflowTriggerHistoryListResult(msrest.serialization.Model): + """The list of workflow trigger histories. + + :param value: A list of workflow trigger histories. + :type value: list[~logic_management_client.models.WorkflowTriggerHistory] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowTriggerHistory]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerHistoryListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowTriggerHistoryProperties(msrest.serialization.Model): + """The workflow trigger history properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar scheduled_time: The scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar fired: The value indicating whether trigger was fired. + :vartype fired: bool + :ivar run: The resource reference. + :vartype run: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'fired': {'readonly': True}, + 'run': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'scheduled_time': {'key': 'scheduledTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'fired': {'key': 'fired', 'type': 'bool'}, + 'run': {'key': 'run', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerHistoryProperties, self).__init__(**kwargs) + self.start_time = None + self.end_time = None + self.scheduled_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = kwargs.get('correlation', None) + self.inputs_link = None + self.outputs_link = None + self.fired = None + self.run = None + + +class WorkflowTriggerListCallbackUrlQueries(msrest.serialization.Model): + """Gets the workflow trigger callback URL query parameters. + + :param api_version: The api version. + :type api_version: str + :param sp: The SAS permissions. + :type sp: str + :param sv: The SAS version. + :type sv: str + :param sig: The SAS signature. + :type sig: str + :param se: The SAS timestamp. + :type se: str + """ + + _attribute_map = { + 'api_version': {'key': 'api-version', 'type': 'str'}, + 'sp': {'key': 'sp', 'type': 'str'}, + 'sv': {'key': 'sv', 'type': 'str'}, + 'sig': {'key': 'sig', 'type': 'str'}, + 'se': {'key': 'se', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerListCallbackUrlQueries, self).__init__(**kwargs) + self.api_version = kwargs.get('api_version', None) + self.sp = kwargs.get('sp', None) + self.sv = kwargs.get('sv', None) + self.sig = kwargs.get('sig', None) + self.se = kwargs.get('se', None) + + +class WorkflowTriggerListResult(msrest.serialization.Model): + """The list of workflow triggers. + + :param value: A list of workflow triggers. + :type value: list[~logic_management_client.models.WorkflowTrigger] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowTrigger]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowTriggerProperties(msrest.serialization.Model): + """The workflow trigger properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow trigger provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed'. + :vartype provisioning_state: str or + ~logic_management_client.models.WorkflowTriggerProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :ivar state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :vartype state: str or ~logic_management_client.models.WorkflowState + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar last_execution_time: Gets the last execution time. + :vartype last_execution_time: ~datetime.datetime + :ivar next_execution_time: Gets the next execution time. + :vartype next_execution_time: ~datetime.datetime + :ivar recurrence: The workflow trigger recurrence. + :vartype recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'state': {'readonly': True}, + 'status': {'readonly': True}, + 'last_execution_time': {'readonly': True}, + 'next_execution_time': {'readonly': True}, + 'recurrence': {'readonly': True}, + 'workflow': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_execution_time': {'key': 'lastExecutionTime', 'type': 'iso-8601'}, + 'next_execution_time': {'key': 'nextExecutionTime', 'type': 'iso-8601'}, + 'recurrence': {'key': 'recurrence', 'type': 'WorkflowTriggerRecurrence'}, + 'workflow': {'key': 'workflow', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = None + self.status = None + self.last_execution_time = None + self.next_execution_time = None + self.recurrence = None + self.workflow = None + + +class WorkflowTriggerRecurrence(msrest.serialization.Model): + """The workflow trigger recurrence. + + :param frequency: The recurrence frequency. Possible values include: 'NotSpecified', 'Second', + 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'. + :type frequency: str or ~logic_management_client.models.RecurrenceFrequency + :param interval: The interval. + :type interval: int + :param start_time: The start time. + :type start_time: str + :param end_time: The end time. + :type end_time: str + :param time_zone: The time zone. + :type time_zone: str + :param schedule: The recurrence schedule. + :type schedule: ~logic_management_client.models.RecurrenceSchedule + """ + + _attribute_map = { + 'frequency': {'key': 'frequency', 'type': 'str'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'schedule': {'key': 'schedule', 'type': 'RecurrenceSchedule'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerRecurrence, self).__init__(**kwargs) + self.frequency = kwargs.get('frequency', None) + self.interval = kwargs.get('interval', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.time_zone = kwargs.get('time_zone', None) + self.schedule = kwargs.get('schedule', None) + + +class WorkflowTriggerReference(ResourceReference): + """The workflow trigger reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param flow_name: The workflow name. + :type flow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'flow_name': {'key': 'flowName', 'type': 'str'}, + 'trigger_name': {'key': 'triggerName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerReference, self).__init__(**kwargs) + self.flow_name = kwargs.get('flow_name', None) + self.trigger_name = kwargs.get('trigger_name', None) + + +class WorkflowVersion(Resource): + """The workflow version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'properties.endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'properties.sku', 'type': 'Sku'}, + 'integration_account': {'key': 'properties.integrationAccount', 'type': 'ResourceReference'}, + 'definition': {'key': 'properties.definition', 'type': 'Object'}, + 'parameters': {'key': 'properties.parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowVersion, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = kwargs.get('state', None) + self.version = None + self.access_endpoint = None + self.endpoints_configuration = kwargs.get('endpoints_configuration', None) + self.access_control = kwargs.get('access_control', None) + self.sku = None + self.integration_account = kwargs.get('integration_account', None) + self.definition = kwargs.get('definition', None) + self.parameters = kwargs.get('parameters', None) + + +class WorkflowVersionListResult(msrest.serialization.Model): + """The list of workflow versions. + + :param value: A list of workflow versions. + :type value: list[~logic_management_client.models.WorkflowVersion] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowVersion]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowVersionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class WorkflowVersionProperties(msrest.serialization.Model): + """The workflow version properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'integration_account': {'key': 'integrationAccount', 'type': 'ResourceReference'}, + 'definition': {'key': 'definition', 'type': 'Object'}, + 'parameters': {'key': 'parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowVersionProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = kwargs.get('state', None) + self.version = None + self.access_endpoint = None + self.endpoints_configuration = kwargs.get('endpoints_configuration', None) + self.access_control = kwargs.get('access_control', None) + self.sku = None + self.integration_account = kwargs.get('integration_account', None) + self.definition = kwargs.get('definition', None) + self.parameters = kwargs.get('parameters', None) + + +class WsdlService(msrest.serialization.Model): + """The WSDL service. + + :param qualified_name: The qualified name. + :type qualified_name: str + :param endpoint_qualified_names: The list of endpoints' qualified names. + :type endpoint_qualified_names: list[str] + """ + + _attribute_map = { + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'endpoint_qualified_names': {'key': 'EndpointQualifiedNames', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(WsdlService, self).__init__(**kwargs) + self.qualified_name = kwargs.get('qualified_name', None) + self.endpoint_qualified_names = kwargs.get('endpoint_qualified_names', None) + + +class X12AcknowledgementSettings(msrest.serialization.Model): + """The X12 agreement acknowledgement settings. + + All required parameters must be populated in order to send to Azure. + + :param need_technical_acknowledgement: Required. The value indicating whether technical + acknowledgement is needed. + :type need_technical_acknowledgement: bool + :param batch_technical_acknowledgements: Required. The value indicating whether to batch the + technical acknowledgements. + :type batch_technical_acknowledgements: bool + :param need_functional_acknowledgement: Required. The value indicating whether functional + acknowledgement is needed. + :type need_functional_acknowledgement: bool + :param functional_acknowledgement_version: The functional acknowledgement version. + :type functional_acknowledgement_version: str + :param batch_functional_acknowledgements: Required. The value indicating whether to batch + functional acknowledgements. + :type batch_functional_acknowledgements: bool + :param need_implementation_acknowledgement: Required. The value indicating whether + implementation acknowledgement is needed. + :type need_implementation_acknowledgement: bool + :param implementation_acknowledgement_version: The implementation acknowledgement version. + :type implementation_acknowledgement_version: str + :param batch_implementation_acknowledgements: Required. The value indicating whether to batch + implementation acknowledgements. + :type batch_implementation_acknowledgements: bool + :param need_loop_for_valid_messages: Required. The value indicating whether a loop is needed + for valid messages. + :type need_loop_for_valid_messages: bool + :param send_synchronous_acknowledgement: Required. The value indicating whether to send + synchronous acknowledgement. + :type send_synchronous_acknowledgement: bool + :param acknowledgement_control_number_prefix: The acknowledgement control number prefix. + :type acknowledgement_control_number_prefix: str + :param acknowledgement_control_number_suffix: The acknowledgement control number suffix. + :type acknowledgement_control_number_suffix: str + :param acknowledgement_control_number_lower_bound: Required. The acknowledgement control number + lower bound. + :type acknowledgement_control_number_lower_bound: int + :param acknowledgement_control_number_upper_bound: Required. The acknowledgement control number + upper bound. + :type acknowledgement_control_number_upper_bound: int + :param rollover_acknowledgement_control_number: Required. The value indicating whether to + rollover acknowledgement control number. + :type rollover_acknowledgement_control_number: bool + """ + + _validation = { + 'need_technical_acknowledgement': {'required': True}, + 'batch_technical_acknowledgements': {'required': True}, + 'need_functional_acknowledgement': {'required': True}, + 'batch_functional_acknowledgements': {'required': True}, + 'need_implementation_acknowledgement': {'required': True}, + 'batch_implementation_acknowledgements': {'required': True}, + 'need_loop_for_valid_messages': {'required': True}, + 'send_synchronous_acknowledgement': {'required': True}, + 'acknowledgement_control_number_lower_bound': {'required': True}, + 'acknowledgement_control_number_upper_bound': {'required': True}, + 'rollover_acknowledgement_control_number': {'required': True}, + } + + _attribute_map = { + 'need_technical_acknowledgement': {'key': 'needTechnicalAcknowledgement', 'type': 'bool'}, + 'batch_technical_acknowledgements': {'key': 'batchTechnicalAcknowledgements', 'type': 'bool'}, + 'need_functional_acknowledgement': {'key': 'needFunctionalAcknowledgement', 'type': 'bool'}, + 'functional_acknowledgement_version': {'key': 'functionalAcknowledgementVersion', 'type': 'str'}, + 'batch_functional_acknowledgements': {'key': 'batchFunctionalAcknowledgements', 'type': 'bool'}, + 'need_implementation_acknowledgement': {'key': 'needImplementationAcknowledgement', 'type': 'bool'}, + 'implementation_acknowledgement_version': {'key': 'implementationAcknowledgementVersion', 'type': 'str'}, + 'batch_implementation_acknowledgements': {'key': 'batchImplementationAcknowledgements', 'type': 'bool'}, + 'need_loop_for_valid_messages': {'key': 'needLoopForValidMessages', 'type': 'bool'}, + 'send_synchronous_acknowledgement': {'key': 'sendSynchronousAcknowledgement', 'type': 'bool'}, + 'acknowledgement_control_number_prefix': {'key': 'acknowledgementControlNumberPrefix', 'type': 'str'}, + 'acknowledgement_control_number_suffix': {'key': 'acknowledgementControlNumberSuffix', 'type': 'str'}, + 'acknowledgement_control_number_lower_bound': {'key': 'acknowledgementControlNumberLowerBound', 'type': 'int'}, + 'acknowledgement_control_number_upper_bound': {'key': 'acknowledgementControlNumberUpperBound', 'type': 'int'}, + 'rollover_acknowledgement_control_number': {'key': 'rolloverAcknowledgementControlNumber', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(X12AcknowledgementSettings, self).__init__(**kwargs) + self.need_technical_acknowledgement = kwargs.get('need_technical_acknowledgement', None) + self.batch_technical_acknowledgements = kwargs.get('batch_technical_acknowledgements', None) + self.need_functional_acknowledgement = kwargs.get('need_functional_acknowledgement', None) + self.functional_acknowledgement_version = kwargs.get('functional_acknowledgement_version', None) + self.batch_functional_acknowledgements = kwargs.get('batch_functional_acknowledgements', None) + self.need_implementation_acknowledgement = kwargs.get('need_implementation_acknowledgement', None) + self.implementation_acknowledgement_version = kwargs.get('implementation_acknowledgement_version', None) + self.batch_implementation_acknowledgements = kwargs.get('batch_implementation_acknowledgements', None) + self.need_loop_for_valid_messages = kwargs.get('need_loop_for_valid_messages', None) + self.send_synchronous_acknowledgement = kwargs.get('send_synchronous_acknowledgement', None) + self.acknowledgement_control_number_prefix = kwargs.get('acknowledgement_control_number_prefix', None) + self.acknowledgement_control_number_suffix = kwargs.get('acknowledgement_control_number_suffix', None) + self.acknowledgement_control_number_lower_bound = kwargs.get('acknowledgement_control_number_lower_bound', None) + self.acknowledgement_control_number_upper_bound = kwargs.get('acknowledgement_control_number_upper_bound', None) + self.rollover_acknowledgement_control_number = kwargs.get('rollover_acknowledgement_control_number', None) + + +class X12AgreementContent(msrest.serialization.Model): + """The X12 agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The X12 one-way agreement. + :type receive_agreement: ~logic_management_client.models.X12OneWayAgreement + :param send_agreement: Required. The X12 one-way agreement. + :type send_agreement: ~logic_management_client.models.X12OneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'X12OneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'X12OneWayAgreement'}, + } + + def __init__( + self, + **kwargs + ): + super(X12AgreementContent, self).__init__(**kwargs) + self.receive_agreement = kwargs.get('receive_agreement', None) + self.send_agreement = kwargs.get('send_agreement', None) + + +class X12DelimiterOverrides(msrest.serialization.Model): + """The X12 delimiter override settings. + + All required parameters must be populated in order to send to Azure. + + :param protocol_version: The protocol version. + :type protocol_version: str + :param message_id: The message id. + :type message_id: str + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + :param replace_character: Required. The replacement character. + :type replace_character: int + :param replace_separators_in_payload: Required. The value indicating whether to replace + separators in payload. + :type replace_separators_in_payload: bool + :param target_namespace: The target namespace on which this delimiter settings has to be + applied. + :type target_namespace: str + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + 'replace_character': {'required': True}, + 'replace_separators_in_payload': {'required': True}, + } + + _attribute_map = { + 'protocol_version': {'key': 'protocolVersion', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, + 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12DelimiterOverrides, self).__init__(**kwargs) + self.protocol_version = kwargs.get('protocol_version', None) + self.message_id = kwargs.get('message_id', None) + self.data_element_separator = kwargs.get('data_element_separator', None) + self.component_separator = kwargs.get('component_separator', None) + self.segment_terminator = kwargs.get('segment_terminator', None) + self.segment_terminator_suffix = kwargs.get('segment_terminator_suffix', None) + self.replace_character = kwargs.get('replace_character', None) + self.replace_separators_in_payload = kwargs.get('replace_separators_in_payload', None) + self.target_namespace = kwargs.get('target_namespace', None) + + +class X12EnvelopeOverride(msrest.serialization.Model): + """The X12 envelope override settings. + + All required parameters must be populated in order to send to Azure. + + :param target_namespace: Required. The target namespace on which this envelope settings has to + be applied. + :type target_namespace: str + :param protocol_version: Required. The protocol version on which this envelope settings has to + be applied. + :type protocol_version: str + :param message_id: Required. The message id on which this envelope settings has to be applied. + :type message_id: str + :param responsible_agency_code: Required. The responsible agency code. + :type responsible_agency_code: str + :param header_version: Required. The header version. + :type header_version: str + :param sender_application_id: Required. The sender application id. + :type sender_application_id: str + :param receiver_application_id: Required. The receiver application id. + :type receiver_application_id: str + :param functional_identifier_code: The functional identifier code. + :type functional_identifier_code: str + :param date_format: Required. The x12 date format. Possible values include: 'NotSpecified', + 'CCYYMMDD', 'YYMMDD'. + :type date_format: str or ~logic_management_client.models.X12DateFormat + :param time_format: Required. The x12 time format. Possible values include: 'NotSpecified', + 'HHMM', 'HHMMSS', 'HHMMSSdd', 'HHMMSSd'. + :type time_format: str or ~logic_management_client.models.X12TimeFormat + """ + + _validation = { + 'target_namespace': {'required': True}, + 'protocol_version': {'required': True}, + 'message_id': {'required': True}, + 'responsible_agency_code': {'required': True}, + 'header_version': {'required': True}, + 'sender_application_id': {'required': True}, + 'receiver_application_id': {'required': True}, + 'date_format': {'required': True}, + 'time_format': {'required': True}, + } + + _attribute_map = { + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'protocol_version': {'key': 'protocolVersion', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'responsible_agency_code': {'key': 'responsibleAgencyCode', 'type': 'str'}, + 'header_version': {'key': 'headerVersion', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'functional_identifier_code': {'key': 'functionalIdentifierCode', 'type': 'str'}, + 'date_format': {'key': 'dateFormat', 'type': 'str'}, + 'time_format': {'key': 'timeFormat', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12EnvelopeOverride, self).__init__(**kwargs) + self.target_namespace = kwargs.get('target_namespace', None) + self.protocol_version = kwargs.get('protocol_version', None) + self.message_id = kwargs.get('message_id', None) + self.responsible_agency_code = kwargs.get('responsible_agency_code', None) + self.header_version = kwargs.get('header_version', None) + self.sender_application_id = kwargs.get('sender_application_id', None) + self.receiver_application_id = kwargs.get('receiver_application_id', None) + self.functional_identifier_code = kwargs.get('functional_identifier_code', None) + self.date_format = kwargs.get('date_format', None) + self.time_format = kwargs.get('time_format', None) + + +class X12EnvelopeSettings(msrest.serialization.Model): + """The X12 agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param control_standards_id: Required. The controls standards id. + :type control_standards_id: int + :param use_control_standards_id_as_repetition_character: Required. The value indicating whether + to use control standards id as repetition character. + :type use_control_standards_id_as_repetition_character: bool + :param sender_application_id: Required. The sender application id. + :type sender_application_id: str + :param receiver_application_id: Required. The receiver application id. + :type receiver_application_id: str + :param control_version_number: Required. The control version number. + :type control_version_number: str + :param interchange_control_number_lower_bound: Required. The interchange control number lower + bound. + :type interchange_control_number_lower_bound: int + :param interchange_control_number_upper_bound: Required. The interchange control number upper + bound. + :type interchange_control_number_upper_bound: int + :param rollover_interchange_control_number: Required. The value indicating whether to rollover + interchange control number. + :type rollover_interchange_control_number: bool + :param enable_default_group_headers: Required. The value indicating whether to enable default + group headers. + :type enable_default_group_headers: bool + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param group_control_number_lower_bound: Required. The group control number lower bound. + :type group_control_number_lower_bound: int + :param group_control_number_upper_bound: Required. The group control number upper bound. + :type group_control_number_upper_bound: int + :param rollover_group_control_number: Required. The value indicating whether to rollover group + control number. + :type rollover_group_control_number: bool + :param group_header_agency_code: Required. The group header agency code. + :type group_header_agency_code: str + :param group_header_version: Required. The group header version. + :type group_header_version: str + :param transaction_set_control_number_lower_bound: Required. The transaction set control number + lower bound. + :type transaction_set_control_number_lower_bound: int + :param transaction_set_control_number_upper_bound: Required. The transaction set control number + upper bound. + :type transaction_set_control_number_upper_bound: int + :param rollover_transaction_set_control_number: Required. The value indicating whether to + rollover transaction set control number. + :type rollover_transaction_set_control_number: bool + :param transaction_set_control_number_prefix: The transaction set control number prefix. + :type transaction_set_control_number_prefix: str + :param transaction_set_control_number_suffix: The transaction set control number suffix. + :type transaction_set_control_number_suffix: str + :param overwrite_existing_transaction_set_control_number: Required. The value indicating + whether to overwrite existing transaction set control number. + :type overwrite_existing_transaction_set_control_number: bool + :param group_header_date_format: Required. The x12 date format. Possible values include: + 'NotSpecified', 'CCYYMMDD', 'YYMMDD'. + :type group_header_date_format: str or ~logic_management_client.models.X12DateFormat + :param group_header_time_format: Required. The x12 time format. Possible values include: + 'NotSpecified', 'HHMM', 'HHMMSS', 'HHMMSSdd', 'HHMMSSd'. + :type group_header_time_format: str or ~logic_management_client.models.X12TimeFormat + :param usage_indicator: Required. The usage indicator. Possible values include: 'NotSpecified', + 'Test', 'Information', 'Production'. + :type usage_indicator: str or ~logic_management_client.models.UsageIndicator + """ + + _validation = { + 'control_standards_id': {'required': True}, + 'use_control_standards_id_as_repetition_character': {'required': True}, + 'sender_application_id': {'required': True}, + 'receiver_application_id': {'required': True}, + 'control_version_number': {'required': True}, + 'interchange_control_number_lower_bound': {'required': True}, + 'interchange_control_number_upper_bound': {'required': True}, + 'rollover_interchange_control_number': {'required': True}, + 'enable_default_group_headers': {'required': True}, + 'group_control_number_lower_bound': {'required': True}, + 'group_control_number_upper_bound': {'required': True}, + 'rollover_group_control_number': {'required': True}, + 'group_header_agency_code': {'required': True}, + 'group_header_version': {'required': True}, + 'transaction_set_control_number_lower_bound': {'required': True}, + 'transaction_set_control_number_upper_bound': {'required': True}, + 'rollover_transaction_set_control_number': {'required': True}, + 'overwrite_existing_transaction_set_control_number': {'required': True}, + 'group_header_date_format': {'required': True}, + 'group_header_time_format': {'required': True}, + 'usage_indicator': {'required': True}, + } + + _attribute_map = { + 'control_standards_id': {'key': 'controlStandardsId', 'type': 'int'}, + 'use_control_standards_id_as_repetition_character': {'key': 'useControlStandardsIdAsRepetitionCharacter', 'type': 'bool'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'control_version_number': {'key': 'controlVersionNumber', 'type': 'str'}, + 'interchange_control_number_lower_bound': {'key': 'interchangeControlNumberLowerBound', 'type': 'int'}, + 'interchange_control_number_upper_bound': {'key': 'interchangeControlNumberUpperBound', 'type': 'int'}, + 'rollover_interchange_control_number': {'key': 'rolloverInterchangeControlNumber', 'type': 'bool'}, + 'enable_default_group_headers': {'key': 'enableDefaultGroupHeaders', 'type': 'bool'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'group_control_number_lower_bound': {'key': 'groupControlNumberLowerBound', 'type': 'int'}, + 'group_control_number_upper_bound': {'key': 'groupControlNumberUpperBound', 'type': 'int'}, + 'rollover_group_control_number': {'key': 'rolloverGroupControlNumber', 'type': 'bool'}, + 'group_header_agency_code': {'key': 'groupHeaderAgencyCode', 'type': 'str'}, + 'group_header_version': {'key': 'groupHeaderVersion', 'type': 'str'}, + 'transaction_set_control_number_lower_bound': {'key': 'transactionSetControlNumberLowerBound', 'type': 'int'}, + 'transaction_set_control_number_upper_bound': {'key': 'transactionSetControlNumberUpperBound', 'type': 'int'}, + 'rollover_transaction_set_control_number': {'key': 'rolloverTransactionSetControlNumber', 'type': 'bool'}, + 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, + 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, + 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, + 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'str'}, + 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'str'}, + 'usage_indicator': {'key': 'usageIndicator', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12EnvelopeSettings, self).__init__(**kwargs) + self.control_standards_id = kwargs.get('control_standards_id', None) + self.use_control_standards_id_as_repetition_character = kwargs.get('use_control_standards_id_as_repetition_character', None) + self.sender_application_id = kwargs.get('sender_application_id', None) + self.receiver_application_id = kwargs.get('receiver_application_id', None) + self.control_version_number = kwargs.get('control_version_number', None) + self.interchange_control_number_lower_bound = kwargs.get('interchange_control_number_lower_bound', None) + self.interchange_control_number_upper_bound = kwargs.get('interchange_control_number_upper_bound', None) + self.rollover_interchange_control_number = kwargs.get('rollover_interchange_control_number', None) + self.enable_default_group_headers = kwargs.get('enable_default_group_headers', None) + self.functional_group_id = kwargs.get('functional_group_id', None) + self.group_control_number_lower_bound = kwargs.get('group_control_number_lower_bound', None) + self.group_control_number_upper_bound = kwargs.get('group_control_number_upper_bound', None) + self.rollover_group_control_number = kwargs.get('rollover_group_control_number', None) + self.group_header_agency_code = kwargs.get('group_header_agency_code', None) + self.group_header_version = kwargs.get('group_header_version', None) + self.transaction_set_control_number_lower_bound = kwargs.get('transaction_set_control_number_lower_bound', None) + self.transaction_set_control_number_upper_bound = kwargs.get('transaction_set_control_number_upper_bound', None) + self.rollover_transaction_set_control_number = kwargs.get('rollover_transaction_set_control_number', None) + self.transaction_set_control_number_prefix = kwargs.get('transaction_set_control_number_prefix', None) + self.transaction_set_control_number_suffix = kwargs.get('transaction_set_control_number_suffix', None) + self.overwrite_existing_transaction_set_control_number = kwargs.get('overwrite_existing_transaction_set_control_number', None) + self.group_header_date_format = kwargs.get('group_header_date_format', None) + self.group_header_time_format = kwargs.get('group_header_time_format', None) + self.usage_indicator = kwargs.get('usage_indicator', None) + + +class X12FramingSettings(msrest.serialization.Model): + """The X12 agreement framing settings. + + All required parameters must be populated in order to send to Azure. + + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param replace_separators_in_payload: Required. The value indicating whether to replace + separators in payload. + :type replace_separators_in_payload: bool + :param replace_character: Required. The replacement character. + :type replace_character: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param character_set: Required. The X12 character set. Possible values include: 'NotSpecified', + 'Basic', 'Extended', 'UTF8'. + :type character_set: str or ~logic_management_client.models.X12CharacterSet + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'replace_separators_in_payload': {'required': True}, + 'replace_character': {'required': True}, + 'segment_terminator': {'required': True}, + 'character_set': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + } + + _attribute_map = { + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, + 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12FramingSettings, self).__init__(**kwargs) + self.data_element_separator = kwargs.get('data_element_separator', None) + self.component_separator = kwargs.get('component_separator', None) + self.replace_separators_in_payload = kwargs.get('replace_separators_in_payload', None) + self.replace_character = kwargs.get('replace_character', None) + self.segment_terminator = kwargs.get('segment_terminator', None) + self.character_set = kwargs.get('character_set', None) + self.segment_terminator_suffix = kwargs.get('segment_terminator_suffix', None) + + +class X12MessageFilter(msrest.serialization.Model): + """The X12 message filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param message_filter_type: Required. The message filter type. Possible values include: + 'NotSpecified', 'Include', 'Exclude'. + :type message_filter_type: str or ~logic_management_client.models.MessageFilterType + """ + + _validation = { + 'message_filter_type': {'required': True}, + } + + _attribute_map = { + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12MessageFilter, self).__init__(**kwargs) + self.message_filter_type = kwargs.get('message_filter_type', None) + + +class X12MessageIdentifier(msrest.serialization.Model): + """The X12 message identifier. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + """ + + _validation = { + 'message_id': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12MessageIdentifier, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + + +class X12OneWayAgreement(msrest.serialization.Model): + """The X12 one-way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The X12 agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.X12ProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'X12ProtocolSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(X12OneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = kwargs.get('sender_business_identity', None) + self.receiver_business_identity = kwargs.get('receiver_business_identity', None) + self.protocol_settings = kwargs.get('protocol_settings', None) + + +class X12ProcessingSettings(msrest.serialization.Model): + """The X12 processing settings. + + All required parameters must be populated in order to send to Azure. + + :param mask_security_info: Required. The value indicating whether to mask security information. + :type mask_security_info: bool + :param convert_implied_decimal: Required. The value indicating whether to convert numerical + type to implied decimal. + :type convert_implied_decimal: bool + :param preserve_interchange: Required. The value indicating whether to preserve interchange. + :type preserve_interchange: bool + :param suspend_interchange_on_error: Required. The value indicating whether to suspend + interchange on error. + :type suspend_interchange_on_error: bool + :param create_empty_xml_tags_for_trailing_separators: Required. The value indicating whether to + create empty xml tags for trailing separators. + :type create_empty_xml_tags_for_trailing_separators: bool + :param use_dot_as_decimal_separator: Required. The value indicating whether to use dot as + decimal separator. + :type use_dot_as_decimal_separator: bool + """ + + _validation = { + 'mask_security_info': {'required': True}, + 'convert_implied_decimal': {'required': True}, + 'preserve_interchange': {'required': True}, + 'suspend_interchange_on_error': {'required': True}, + 'create_empty_xml_tags_for_trailing_separators': {'required': True}, + 'use_dot_as_decimal_separator': {'required': True}, + } + + _attribute_map = { + 'mask_security_info': {'key': 'maskSecurityInfo', 'type': 'bool'}, + 'convert_implied_decimal': {'key': 'convertImpliedDecimal', 'type': 'bool'}, + 'preserve_interchange': {'key': 'preserveInterchange', 'type': 'bool'}, + 'suspend_interchange_on_error': {'key': 'suspendInterchangeOnError', 'type': 'bool'}, + 'create_empty_xml_tags_for_trailing_separators': {'key': 'createEmptyXmlTagsForTrailingSeparators', 'type': 'bool'}, + 'use_dot_as_decimal_separator': {'key': 'useDotAsDecimalSeparator', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(X12ProcessingSettings, self).__init__(**kwargs) + self.mask_security_info = kwargs.get('mask_security_info', None) + self.convert_implied_decimal = kwargs.get('convert_implied_decimal', None) + self.preserve_interchange = kwargs.get('preserve_interchange', None) + self.suspend_interchange_on_error = kwargs.get('suspend_interchange_on_error', None) + self.create_empty_xml_tags_for_trailing_separators = kwargs.get('create_empty_xml_tags_for_trailing_separators', None) + self.use_dot_as_decimal_separator = kwargs.get('use_dot_as_decimal_separator', None) + + +class X12ProtocolSettings(msrest.serialization.Model): + """The X12 agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param validation_settings: Required. The X12 agreement validation settings. + :type validation_settings: ~logic_management_client.models.X12ValidationSettings + :param framing_settings: Required. The X12 agreement framing settings. + :type framing_settings: ~logic_management_client.models.X12FramingSettings + :param envelope_settings: Required. The X12 agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.X12EnvelopeSettings + :param acknowledgement_settings: Required. The X12 agreement acknowledgement settings. + :type acknowledgement_settings: ~logic_management_client.models.X12AcknowledgementSettings + :param message_filter: Required. The X12 message filter for odata query. + :type message_filter: ~logic_management_client.models.X12MessageFilter + :param security_settings: Required. The X12 agreement security settings. + :type security_settings: ~logic_management_client.models.X12SecuritySettings + :param processing_settings: Required. The X12 processing settings. + :type processing_settings: ~logic_management_client.models.X12ProcessingSettings + :param envelope_overrides: The X12 envelope override settings. + :type envelope_overrides: list[~logic_management_client.models.X12EnvelopeOverride] + :param validation_overrides: The X12 validation override settings. + :type validation_overrides: list[~logic_management_client.models.X12ValidationOverride] + :param message_filter_list: The X12 message filter list. + :type message_filter_list: list[~logic_management_client.models.X12MessageIdentifier] + :param schema_references: Required. The X12 schema references. + :type schema_references: list[~logic_management_client.models.X12SchemaReference] + :param x12_delimiter_overrides: The X12 delimiter override settings. + :type x12_delimiter_overrides: list[~logic_management_client.models.X12DelimiterOverrides] + """ + + _validation = { + 'validation_settings': {'required': True}, + 'framing_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'acknowledgement_settings': {'required': True}, + 'message_filter': {'required': True}, + 'security_settings': {'required': True}, + 'processing_settings': {'required': True}, + 'schema_references': {'required': True}, + } + + _attribute_map = { + 'validation_settings': {'key': 'validationSettings', 'type': 'X12ValidationSettings'}, + 'framing_settings': {'key': 'framingSettings', 'type': 'X12FramingSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'X12EnvelopeSettings'}, + 'acknowledgement_settings': {'key': 'acknowledgementSettings', 'type': 'X12AcknowledgementSettings'}, + 'message_filter': {'key': 'messageFilter', 'type': 'X12MessageFilter'}, + 'security_settings': {'key': 'securitySettings', 'type': 'X12SecuritySettings'}, + 'processing_settings': {'key': 'processingSettings', 'type': 'X12ProcessingSettings'}, + 'envelope_overrides': {'key': 'envelopeOverrides', 'type': '[X12EnvelopeOverride]'}, + 'validation_overrides': {'key': 'validationOverrides', 'type': '[X12ValidationOverride]'}, + 'message_filter_list': {'key': 'messageFilterList', 'type': '[X12MessageIdentifier]'}, + 'schema_references': {'key': 'schemaReferences', 'type': '[X12SchemaReference]'}, + 'x12_delimiter_overrides': {'key': 'x12DelimiterOverrides', 'type': '[X12DelimiterOverrides]'}, + } + + def __init__( + self, + **kwargs + ): + super(X12ProtocolSettings, self).__init__(**kwargs) + self.validation_settings = kwargs.get('validation_settings', None) + self.framing_settings = kwargs.get('framing_settings', None) + self.envelope_settings = kwargs.get('envelope_settings', None) + self.acknowledgement_settings = kwargs.get('acknowledgement_settings', None) + self.message_filter = kwargs.get('message_filter', None) + self.security_settings = kwargs.get('security_settings', None) + self.processing_settings = kwargs.get('processing_settings', None) + self.envelope_overrides = kwargs.get('envelope_overrides', None) + self.validation_overrides = kwargs.get('validation_overrides', None) + self.message_filter_list = kwargs.get('message_filter_list', None) + self.schema_references = kwargs.get('schema_references', None) + self.x12_delimiter_overrides = kwargs.get('x12_delimiter_overrides', None) + + +class X12SchemaReference(msrest.serialization.Model): + """The X12 schema reference. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param schema_version: Required. The schema version. + :type schema_version: str + :param schema_name: Required. The schema name. + :type schema_name: str + """ + + _validation = { + 'message_id': {'required': True}, + 'schema_version': {'required': True}, + 'schema_name': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12SchemaReference, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.sender_application_id = kwargs.get('sender_application_id', None) + self.schema_version = kwargs.get('schema_version', None) + self.schema_name = kwargs.get('schema_name', None) + + +class X12SecuritySettings(msrest.serialization.Model): + """The X12 agreement security settings. + + All required parameters must be populated in order to send to Azure. + + :param authorization_qualifier: Required. The authorization qualifier. + :type authorization_qualifier: str + :param authorization_value: The authorization value. + :type authorization_value: str + :param security_qualifier: Required. The security qualifier. + :type security_qualifier: str + :param password_value: The password value. + :type password_value: str + """ + + _validation = { + 'authorization_qualifier': {'required': True}, + 'security_qualifier': {'required': True}, + } + + _attribute_map = { + 'authorization_qualifier': {'key': 'authorizationQualifier', 'type': 'str'}, + 'authorization_value': {'key': 'authorizationValue', 'type': 'str'}, + 'security_qualifier': {'key': 'securityQualifier', 'type': 'str'}, + 'password_value': {'key': 'passwordValue', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12SecuritySettings, self).__init__(**kwargs) + self.authorization_qualifier = kwargs.get('authorization_qualifier', None) + self.authorization_value = kwargs.get('authorization_value', None) + self.security_qualifier = kwargs.get('security_qualifier', None) + self.password_value = kwargs.get('password_value', None) + + +class X12ValidationOverride(msrest.serialization.Model): + """The X12 validation override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which the validation settings has to be applied. + :type message_id: str + :param validate_edi_types: Required. The value indicating whether to validate EDI types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to validate XSD types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param validate_character_set: Required. The value indicating whether to validate character + Set. + :type validate_character_set: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'message_id': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'validate_character_set': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12ValidationOverride, self).__init__(**kwargs) + self.message_id = kwargs.get('message_id', None) + self.validate_edi_types = kwargs.get('validate_edi_types', None) + self.validate_xsd_types = kwargs.get('validate_xsd_types', None) + self.allow_leading_and_trailing_spaces_and_zeroes = kwargs.get('allow_leading_and_trailing_spaces_and_zeroes', None) + self.validate_character_set = kwargs.get('validate_character_set', None) + self.trim_leading_and_trailing_spaces_and_zeroes = kwargs.get('trim_leading_and_trailing_spaces_and_zeroes', None) + self.trailing_separator_policy = kwargs.get('trailing_separator_policy', None) + + +class X12ValidationSettings(msrest.serialization.Model): + """The X12 agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param validate_character_set: Required. The value indicating whether to validate character set + in the message. + :type validate_character_set: bool + :param check_duplicate_interchange_control_number: Required. The value indicating whether to + check for duplicate interchange control number. + :type check_duplicate_interchange_control_number: bool + :param interchange_control_number_validity_days: Required. The validity period of interchange + control number. + :type interchange_control_number_validity_days: int + :param check_duplicate_group_control_number: Required. The value indicating whether to check + for duplicate group control number. + :type check_duplicate_group_control_number: bool + :param check_duplicate_transaction_set_control_number: Required. The value indicating whether + to check for duplicate transaction set control number. + :type check_duplicate_transaction_set_control_number: bool + :param validate_edi_types: Required. The value indicating whether to Whether to validate EDI + types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to Whether to validate XSD + types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'validate_character_set': {'required': True}, + 'check_duplicate_interchange_control_number': {'required': True}, + 'interchange_control_number_validity_days': {'required': True}, + 'check_duplicate_group_control_number': {'required': True}, + 'check_duplicate_transaction_set_control_number': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'check_duplicate_interchange_control_number': {'key': 'checkDuplicateInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, + 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, + 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(X12ValidationSettings, self).__init__(**kwargs) + self.validate_character_set = kwargs.get('validate_character_set', None) + self.check_duplicate_interchange_control_number = kwargs.get('check_duplicate_interchange_control_number', None) + self.interchange_control_number_validity_days = kwargs.get('interchange_control_number_validity_days', None) + self.check_duplicate_group_control_number = kwargs.get('check_duplicate_group_control_number', None) + self.check_duplicate_transaction_set_control_number = kwargs.get('check_duplicate_transaction_set_control_number', None) + self.validate_edi_types = kwargs.get('validate_edi_types', None) + self.validate_xsd_types = kwargs.get('validate_xsd_types', None) + self.allow_leading_and_trailing_spaces_and_zeroes = kwargs.get('allow_leading_and_trailing_spaces_and_zeroes', None) + self.trim_leading_and_trailing_spaces_and_zeroes = kwargs.get('trim_leading_and_trailing_spaces_and_zeroes', None) + self.trailing_separator_policy = kwargs.get('trailing_separator_policy', None) diff --git a/src/logic/azext_logic/vendored_sdks/logic/models/_models_py3.py b/src/logic/azext_logic/vendored_sdks/logic/models/_models_py3.py new file mode 100644 index 00000000000..06e5281095e --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/models/_models_py3.py @@ -0,0 +1,9960 @@ +# 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. +# -------------------------------------------------------------------------- + +import datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class AgreementContent(msrest.serialization.Model): + """The integration account agreement content. + + :param a_s2: The integration account AS2 agreement content. + :type a_s2: ~logic_management_client.models.As2AgreementContent + :param x12: The X12 agreement content. + :type x12: ~logic_management_client.models.X12AgreementContent + :param edifact: The Edifact agreement content. + :type edifact: ~logic_management_client.models.EdifactAgreementContent + """ + + _attribute_map = { + 'a_s2': {'key': 'aS2', 'type': 'As2AgreementContent'}, + 'x12': {'key': 'x12', 'type': 'X12AgreementContent'}, + 'edifact': {'key': 'edifact', 'type': 'EdifactAgreementContent'}, + } + + def __init__( + self, + *, + a_s2: Optional["As2AgreementContent"] = None, + x12: Optional["X12AgreementContent"] = None, + edifact: Optional["EdifactAgreementContent"] = None, + **kwargs + ): + super(AgreementContent, self).__init__(**kwargs) + self.a_s2 = a_s2 + self.x12 = x12 + self.edifact = edifact + + +class ApiDeploymentParameterMetadata(msrest.serialization.Model): + """The API deployment parameter metadata. + + :param type: The type. + :type type: str + :param is_required: Indicates whether its required. + :type is_required: bool + :param display_name: The display name. + :type display_name: str + :param description: The description. + :type description: str + :param visibility: The Api deployment parameter visibility. Possible values include: + 'NotSpecified', 'Default', 'Internal'. + :type visibility: str or ~logic_management_client.models.ApiDeploymentParameterVisibility + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'is_required': {'key': 'isRequired', 'type': 'bool'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Optional[str] = None, + is_required: Optional[bool] = None, + display_name: Optional[str] = None, + description: Optional[str] = None, + visibility: Optional[Union[str, "ApiDeploymentParameterVisibility"]] = None, + **kwargs + ): + super(ApiDeploymentParameterMetadata, self).__init__(**kwargs) + self.type = type + self.is_required = is_required + self.display_name = display_name + self.description = description + self.visibility = visibility + + +class ApiDeploymentParameterMetadataSet(msrest.serialization.Model): + """The API deployment parameters metadata. + + :param package_content_link: The API deployment parameter metadata. + :type package_content_link: ~logic_management_client.models.ApiDeploymentParameterMetadata + :param redis_cache_connection_string: The API deployment parameter metadata. + :type redis_cache_connection_string: + ~logic_management_client.models.ApiDeploymentParameterMetadata + """ + + _attribute_map = { + 'package_content_link': {'key': 'packageContentLink', 'type': 'ApiDeploymentParameterMetadata'}, + 'redis_cache_connection_string': {'key': 'redisCacheConnectionString', 'type': 'ApiDeploymentParameterMetadata'}, + } + + def __init__( + self, + *, + package_content_link: Optional["ApiDeploymentParameterMetadata"] = None, + redis_cache_connection_string: Optional["ApiDeploymentParameterMetadata"] = None, + **kwargs + ): + super(ApiDeploymentParameterMetadataSet, self).__init__(**kwargs) + self.package_content_link = package_content_link + self.redis_cache_connection_string = redis_cache_connection_string + + +class Resource(msrest.serialization.Model): + """The base resource type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class ApiOperation(Resource): + """The api operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The api operations properties. + :type properties: ~logic_management_client.models.ApiOperationPropertiesDefinition + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApiOperationPropertiesDefinition'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["ApiOperationPropertiesDefinition"] = None, + **kwargs + ): + super(ApiOperation, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + + +class ApiOperationAnnotation(msrest.serialization.Model): + """The Api Operation Annotation. + + :param status: The status annotation. Possible values include: 'NotSpecified', 'Preview', + 'Production'. + :type status: str or ~logic_management_client.models.StatusAnnotation + :param family: The family. + :type family: str + :param revision: The revision. + :type revision: int + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'revision': {'key': 'revision', 'type': 'int'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "StatusAnnotation"]] = None, + family: Optional[str] = None, + revision: Optional[int] = None, + **kwargs + ): + super(ApiOperationAnnotation, self).__init__(**kwargs) + self.status = status + self.family = family + self.revision = revision + + +class ApiOperationListResult(msrest.serialization.Model): + """The list of managed API operations. + + :param value: The api operation definitions for an API. + :type value: list[~logic_management_client.models.ApiOperation] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApiOperation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["ApiOperation"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(ApiOperationListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ApiOperationPropertiesDefinition(msrest.serialization.Model): + """The api operations properties. + + :param summary: The summary of the api operation. + :type summary: str + :param description: The description of the api operation. + :type description: str + :param visibility: The visibility of the api operation. + :type visibility: str + :param trigger: The trigger type of api operation. + :type trigger: str + :param trigger_hint: The trigger hint for the api operation. + :type trigger_hint: str + :param pageable: Indicates whether the api operation is pageable. + :type pageable: bool + :param annotation: The Api Operation Annotation. + :type annotation: ~logic_management_client.models.ApiOperationAnnotation + :param api: The Api reference. + :type api: ~logic_management_client.models.ApiReference + :param inputs_definition: The swagger schema. + :type inputs_definition: ~logic_management_client.models.SwaggerSchema + :param responses_definition: The operation responses definition schemas. + :type responses_definition: dict[str, ~logic_management_client.models.SwaggerSchema] + :param is_webhook: Indicates whether the API operation is webhook or not. + :type is_webhook: bool + :param is_notification: Indicates whether the API operation is notification or not. + :type is_notification: bool + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'str'}, + 'trigger_hint': {'key': 'triggerHint', 'type': 'str'}, + 'pageable': {'key': 'pageable', 'type': 'bool'}, + 'annotation': {'key': 'annotation', 'type': 'ApiOperationAnnotation'}, + 'api': {'key': 'api', 'type': 'ApiReference'}, + 'inputs_definition': {'key': 'inputsDefinition', 'type': 'SwaggerSchema'}, + 'responses_definition': {'key': 'responsesDefinition', 'type': '{SwaggerSchema}'}, + 'is_webhook': {'key': 'isWebhook', 'type': 'bool'}, + 'is_notification': {'key': 'isNotification', 'type': 'bool'}, + } + + def __init__( + self, + *, + summary: Optional[str] = None, + description: Optional[str] = None, + visibility: Optional[str] = None, + trigger: Optional[str] = None, + trigger_hint: Optional[str] = None, + pageable: Optional[bool] = None, + annotation: Optional["ApiOperationAnnotation"] = None, + api: Optional["ApiReference"] = None, + inputs_definition: Optional["SwaggerSchema"] = None, + responses_definition: Optional[Dict[str, "SwaggerSchema"]] = None, + is_webhook: Optional[bool] = None, + is_notification: Optional[bool] = None, + **kwargs + ): + super(ApiOperationPropertiesDefinition, self).__init__(**kwargs) + self.summary = summary + self.description = description + self.visibility = visibility + self.trigger = trigger + self.trigger_hint = trigger_hint + self.pageable = pageable + self.annotation = annotation + self.api = api + self.inputs_definition = inputs_definition + self.responses_definition = responses_definition + self.is_webhook = is_webhook + self.is_notification = is_notification + + +class ResourceReference(msrest.serialization.Model): + """The resource reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(ResourceReference, self).__init__(**kwargs) + self.id = id + self.name = None + self.type = None + + +class ApiReference(ResourceReference): + """The Api reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param display_name: The display name of the api. + :type display_name: str + :param description: The description of the api. + :type description: str + :param icon_uri: The icon uri of the api. + :type icon_uri: str + :param swagger: + :type swagger: ~logic_management_client.models.Object + :param brand_color: The brand color of the api. + :type brand_color: str + :param category: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', + 'Standard', 'Premium'. + :type category: str or ~logic_management_client.models.ApiTier + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'icon_uri': {'key': 'iconUri', 'type': 'str'}, + 'swagger': {'key': 'swagger', 'type': 'Object'}, + 'brand_color': {'key': 'brandColor', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + display_name: Optional[str] = None, + description: Optional[str] = None, + icon_uri: Optional[str] = None, + swagger: Optional["Object"] = None, + brand_color: Optional[str] = None, + category: Optional[Union[str, "ApiTier"]] = None, + integration_service_environment: Optional["ResourceReference"] = None, + **kwargs + ): + super(ApiReference, self).__init__(id=id, **kwargs) + self.display_name = display_name + self.description = description + self.icon_uri = icon_uri + self.swagger = swagger + self.brand_color = brand_color + self.category = category + self.integration_service_environment = integration_service_environment + + +class ApiResourceBackendService(msrest.serialization.Model): + """The API backend service. + + :param service_url: The service URL. + :type service_url: str + """ + + _attribute_map = { + 'service_url': {'key': 'serviceUrl', 'type': 'str'}, + } + + def __init__( + self, + *, + service_url: Optional[str] = None, + **kwargs + ): + super(ApiResourceBackendService, self).__init__(**kwargs) + self.service_url = service_url + + +class ApiResourceDefinitions(msrest.serialization.Model): + """The Api resource definition. + + :param original_swagger_url: The original swagger url. + :type original_swagger_url: str + :param modified_swagger_url: The modified swagger url. + :type modified_swagger_url: str + """ + + _attribute_map = { + 'original_swagger_url': {'key': 'originalSwaggerUrl', 'type': 'str'}, + 'modified_swagger_url': {'key': 'modifiedSwaggerUrl', 'type': 'str'}, + } + + def __init__( + self, + *, + original_swagger_url: Optional[str] = None, + modified_swagger_url: Optional[str] = None, + **kwargs + ): + super(ApiResourceDefinitions, self).__init__(**kwargs) + self.original_swagger_url = original_swagger_url + self.modified_swagger_url = modified_swagger_url + + +class ApiResourceGeneralInformation(msrest.serialization.Model): + """The API general information. + + :param icon_url: The icon url. + :type icon_url: str + :param display_name: The display name. + :type display_name: str + :param description: The description. + :type description: str + :param terms_of_use_url: The terms of use url. + :type terms_of_use_url: str + :param release_tag: The release tag. + :type release_tag: str + :param tier: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', 'Standard', + 'Premium'. + :type tier: str or ~logic_management_client.models.ApiTier + """ + + _attribute_map = { + 'icon_url': {'key': 'iconUrl', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'terms_of_use_url': {'key': 'termsOfUseUrl', 'type': 'str'}, + 'release_tag': {'key': 'releaseTag', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + *, + icon_url: Optional[str] = None, + display_name: Optional[str] = None, + description: Optional[str] = None, + terms_of_use_url: Optional[str] = None, + release_tag: Optional[str] = None, + tier: Optional[Union[str, "ApiTier"]] = None, + **kwargs + ): + super(ApiResourceGeneralInformation, self).__init__(**kwargs) + self.icon_url = icon_url + self.display_name = display_name + self.description = description + self.terms_of_use_url = terms_of_use_url + self.release_tag = release_tag + self.tier = tier + + +class ApiResourceMetadata(msrest.serialization.Model): + """The api resource metadata. + + :param source: The source. + :type source: str + :param brand_color: The brand color. + :type brand_color: str + :param hide_key: The hide key. + :type hide_key: str + :param tags: A set of tags. The tags. + :type tags: dict[str, str] + :param api_type: Possible values include: 'NotSpecified', 'Rest', 'Soap'. + :type api_type: str or ~logic_management_client.models.ApiType + :param wsdl_service: The WSDL service. + :type wsdl_service: ~logic_management_client.models.WsdlService + :param wsdl_import_method: The WSDL import method. Possible values include: 'NotSpecified', + 'SoapToRest', 'SoapPassThrough'. + :type wsdl_import_method: str or ~logic_management_client.models.WsdlImportMethod + :param connection_type: The connection type. + :type connection_type: str + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param deployment_parameters: The API deployment parameters metadata. + :type deployment_parameters: ~logic_management_client.models.ApiDeploymentParameterMetadataSet + """ + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + 'brand_color': {'key': 'brandColor', 'type': 'str'}, + 'hide_key': {'key': 'hideKey', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'api_type': {'key': 'ApiType', 'type': 'str'}, + 'wsdl_service': {'key': 'wsdlService', 'type': 'WsdlService'}, + 'wsdl_import_method': {'key': 'wsdlImportMethod', 'type': 'str'}, + 'connection_type': {'key': 'connectionType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'deployment_parameters': {'key': 'deploymentParameters', 'type': 'ApiDeploymentParameterMetadataSet'}, + } + + def __init__( + self, + *, + source: Optional[str] = None, + brand_color: Optional[str] = None, + hide_key: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + api_type: Optional[Union[str, "ApiType"]] = None, + wsdl_service: Optional["WsdlService"] = None, + wsdl_import_method: Optional[Union[str, "WsdlImportMethod"]] = None, + connection_type: Optional[str] = None, + provisioning_state: Optional[Union[str, "WorkflowProvisioningState"]] = None, + deployment_parameters: Optional["ApiDeploymentParameterMetadataSet"] = None, + **kwargs + ): + super(ApiResourceMetadata, self).__init__(**kwargs) + self.source = source + self.brand_color = brand_color + self.hide_key = hide_key + self.tags = tags + self.api_type = api_type + self.wsdl_service = wsdl_service + self.wsdl_import_method = wsdl_import_method + self.connection_type = connection_type + self.provisioning_state = provisioning_state + self.deployment_parameters = deployment_parameters + + +class ApiResourcePolicies(msrest.serialization.Model): + """The API resource policies. + + :param content: The API level only policies XML as embedded content. + :type content: str + :param content_link: The content link to the policies. + :type content_link: str + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'str'}, + } + + def __init__( + self, + *, + content: Optional[str] = None, + content_link: Optional[str] = None, + **kwargs + ): + super(ApiResourcePolicies, self).__init__(**kwargs) + self.content = content + self.content_link = content_link + + +class ApiResourceProperties(msrest.serialization.Model): + """The API resource properties. + + :param name: The name. + :type name: str + :param connection_parameters: The connection parameters. + :type connection_parameters: dict[str, object] + :param metadata: The api resource metadata. + :type metadata: ~logic_management_client.models.ApiResourceMetadata + :param runtime_urls: The runtime urls. + :type runtime_urls: list[str] + :param general_information: The API general information. + :type general_information: ~logic_management_client.models.ApiResourceGeneralInformation + :param capabilities: The capabilities. + :type capabilities: list[str] + :param backend_service: The API backend service. + :type backend_service: ~logic_management_client.models.ApiResourceBackendService + :param policies: The API resource policies. + :type policies: ~logic_management_client.models.ApiResourcePolicies + :param api_definition_url: The API definition. + :type api_definition_url: str + :param api_definitions: The Api resource definition. + :type api_definitions: ~logic_management_client.models.ApiResourceDefinitions + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param category: The Api tier. Possible values include: 'NotSpecified', 'Enterprise', + 'Standard', 'Premium'. + :type category: str or ~logic_management_client.models.ApiTier + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + connection_parameters: Optional[Dict[str, object]] = None, + metadata: Optional["ApiResourceMetadata"] = None, + runtime_urls: Optional[List[str]] = None, + general_information: Optional["ApiResourceGeneralInformation"] = None, + capabilities: Optional[List[str]] = None, + backend_service: Optional["ApiResourceBackendService"] = None, + policies: Optional["ApiResourcePolicies"] = None, + api_definition_url: Optional[str] = None, + api_definitions: Optional["ApiResourceDefinitions"] = None, + integration_service_environment: Optional["ResourceReference"] = None, + provisioning_state: Optional[Union[str, "WorkflowProvisioningState"]] = None, + category: Optional[Union[str, "ApiTier"]] = None, + **kwargs + ): + super(ApiResourceProperties, self).__init__(**kwargs) + self.name = name + self.connection_parameters = connection_parameters + self.metadata = metadata + self.runtime_urls = runtime_urls + self.general_information = general_information + self.capabilities = capabilities + self.backend_service = backend_service + self.policies = policies + self.api_definition_url = api_definition_url + self.api_definitions = api_definitions + self.integration_service_environment = integration_service_environment + self.provisioning_state = provisioning_state + self.category = category + + +class ArtifactProperties(msrest.serialization.Model): + """The artifact properties definition. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + """ + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + } + + def __init__( + self, + *, + created_time: Optional[datetime.datetime] = None, + changed_time: Optional[datetime.datetime] = None, + metadata: Optional[object] = None, + **kwargs + ): + super(ArtifactProperties, self).__init__(**kwargs) + self.created_time = created_time + self.changed_time = changed_time + self.metadata = metadata + + +class ArtifactContentPropertiesDefinition(ArtifactProperties): + """The artifact content properties definition. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param content: Any object. + :type content: object + :param content_type: The content type. + :type content_type: str + :param content_link: The content link. + :type content_link: ~logic_management_client.models.ContentLink + """ + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'object'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + *, + created_time: Optional[datetime.datetime] = None, + changed_time: Optional[datetime.datetime] = None, + metadata: Optional[object] = None, + content: Optional[object] = None, + content_type: Optional[str] = None, + content_link: Optional["ContentLink"] = None, + **kwargs + ): + super(ArtifactContentPropertiesDefinition, self).__init__(created_time=created_time, changed_time=changed_time, metadata=metadata, **kwargs) + self.content = content + self.content_type = content_type + self.content_link = content_link + + +class As2AcknowledgementConnectionSettings(msrest.serialization.Model): + """The AS2 agreement acknowledgement connection settings. + + All required parameters must be populated in order to send to Azure. + + :param ignore_certificate_name_mismatch: Required. Indicates whether to ignore mismatch in + certificate name. + :type ignore_certificate_name_mismatch: bool + :param support_http_status_code_continue: Required. Indicates whether to support HTTP status + code 'CONTINUE'. + :type support_http_status_code_continue: bool + :param keep_http_connection_alive: Required. Indicates whether to keep the connection alive. + :type keep_http_connection_alive: bool + :param unfold_http_headers: Required. Indicates whether to unfold the HTTP headers. + :type unfold_http_headers: bool + """ + + _validation = { + 'ignore_certificate_name_mismatch': {'required': True}, + 'support_http_status_code_continue': {'required': True}, + 'keep_http_connection_alive': {'required': True}, + 'unfold_http_headers': {'required': True}, + } + + _attribute_map = { + 'ignore_certificate_name_mismatch': {'key': 'ignoreCertificateNameMismatch', 'type': 'bool'}, + 'support_http_status_code_continue': {'key': 'supportHttpStatusCodeContinue', 'type': 'bool'}, + 'keep_http_connection_alive': {'key': 'keepHttpConnectionAlive', 'type': 'bool'}, + 'unfold_http_headers': {'key': 'unfoldHttpHeaders', 'type': 'bool'}, + } + + def __init__( + self, + *, + ignore_certificate_name_mismatch: bool, + support_http_status_code_continue: bool, + keep_http_connection_alive: bool, + unfold_http_headers: bool, + **kwargs + ): + super(As2AcknowledgementConnectionSettings, self).__init__(**kwargs) + self.ignore_certificate_name_mismatch = ignore_certificate_name_mismatch + self.support_http_status_code_continue = support_http_status_code_continue + self.keep_http_connection_alive = keep_http_connection_alive + self.unfold_http_headers = unfold_http_headers + + +class As2AgreementContent(msrest.serialization.Model): + """The integration account AS2 agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The integration account AS2 one-way agreement. + :type receive_agreement: ~logic_management_client.models.As2OneWayAgreement + :param send_agreement: Required. The integration account AS2 one-way agreement. + :type send_agreement: ~logic_management_client.models.As2OneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'As2OneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'As2OneWayAgreement'}, + } + + def __init__( + self, + *, + receive_agreement: "As2OneWayAgreement", + send_agreement: "As2OneWayAgreement", + **kwargs + ): + super(As2AgreementContent, self).__init__(**kwargs) + self.receive_agreement = receive_agreement + self.send_agreement = send_agreement + + +class As2EnvelopeSettings(msrest.serialization.Model): + """The AS2 agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param message_content_type: Required. The message content type. + :type message_content_type: str + :param transmit_file_name_in_mime_header: Required. The value indicating whether to transmit + file name in mime header. + :type transmit_file_name_in_mime_header: bool + :param file_name_template: Required. The template for file name. + :type file_name_template: str + :param suspend_message_on_file_name_generation_error: Required. The value indicating whether to + suspend message on file name generation error. + :type suspend_message_on_file_name_generation_error: bool + :param autogenerate_file_name: Required. The value indicating whether to auto generate file + name. + :type autogenerate_file_name: bool + """ + + _validation = { + 'message_content_type': {'required': True}, + 'transmit_file_name_in_mime_header': {'required': True}, + 'file_name_template': {'required': True}, + 'suspend_message_on_file_name_generation_error': {'required': True}, + 'autogenerate_file_name': {'required': True}, + } + + _attribute_map = { + 'message_content_type': {'key': 'messageContentType', 'type': 'str'}, + 'transmit_file_name_in_mime_header': {'key': 'transmitFileNameInMimeHeader', 'type': 'bool'}, + 'file_name_template': {'key': 'fileNameTemplate', 'type': 'str'}, + 'suspend_message_on_file_name_generation_error': {'key': 'suspendMessageOnFileNameGenerationError', 'type': 'bool'}, + 'autogenerate_file_name': {'key': 'autogenerateFileName', 'type': 'bool'}, + } + + def __init__( + self, + *, + message_content_type: str, + transmit_file_name_in_mime_header: bool, + file_name_template: str, + suspend_message_on_file_name_generation_error: bool, + autogenerate_file_name: bool, + **kwargs + ): + super(As2EnvelopeSettings, self).__init__(**kwargs) + self.message_content_type = message_content_type + self.transmit_file_name_in_mime_header = transmit_file_name_in_mime_header + self.file_name_template = file_name_template + self.suspend_message_on_file_name_generation_error = suspend_message_on_file_name_generation_error + self.autogenerate_file_name = autogenerate_file_name + + +class As2ErrorSettings(msrest.serialization.Model): + """The AS2 agreement error settings. + + All required parameters must be populated in order to send to Azure. + + :param suspend_duplicate_message: Required. The value indicating whether to suspend duplicate + message. + :type suspend_duplicate_message: bool + :param resend_if_mdn_not_received: Required. The value indicating whether to resend message If + MDN is not received. + :type resend_if_mdn_not_received: bool + """ + + _validation = { + 'suspend_duplicate_message': {'required': True}, + 'resend_if_mdn_not_received': {'required': True}, + } + + _attribute_map = { + 'suspend_duplicate_message': {'key': 'suspendDuplicateMessage', 'type': 'bool'}, + 'resend_if_mdn_not_received': {'key': 'resendIfMDNNotReceived', 'type': 'bool'}, + } + + def __init__( + self, + *, + suspend_duplicate_message: bool, + resend_if_mdn_not_received: bool, + **kwargs + ): + super(As2ErrorSettings, self).__init__(**kwargs) + self.suspend_duplicate_message = suspend_duplicate_message + self.resend_if_mdn_not_received = resend_if_mdn_not_received + + +class As2MdnSettings(msrest.serialization.Model): + """The AS2 agreement mdn settings. + + All required parameters must be populated in order to send to Azure. + + :param need_mdn: Required. The value indicating whether to send or request a MDN. + :type need_mdn: bool + :param sign_mdn: Required. The value indicating whether the MDN needs to be signed or not. + :type sign_mdn: bool + :param send_mdn_asynchronously: Required. The value indicating whether to send the asynchronous + MDN. + :type send_mdn_asynchronously: bool + :param receipt_delivery_url: The receipt delivery URL. + :type receipt_delivery_url: str + :param disposition_notification_to: The disposition notification to header value. + :type disposition_notification_to: str + :param sign_outbound_mdn_if_optional: Required. The value indicating whether to sign the + outbound MDN if optional. + :type sign_outbound_mdn_if_optional: bool + :param mdn_text: The MDN text. + :type mdn_text: str + :param send_inbound_mdn_to_message_box: Required. The value indicating whether to send inbound + MDN to message box. + :type send_inbound_mdn_to_message_box: bool + :param mic_hashing_algorithm: Required. The signing or hashing algorithm. Possible values + include: 'NotSpecified', 'None', 'MD5', 'SHA1', 'SHA2256', 'SHA2384', 'SHA2512'. + :type mic_hashing_algorithm: str or ~logic_management_client.models.HashingAlgorithm + """ + + _validation = { + 'need_mdn': {'required': True}, + 'sign_mdn': {'required': True}, + 'send_mdn_asynchronously': {'required': True}, + 'sign_outbound_mdn_if_optional': {'required': True}, + 'send_inbound_mdn_to_message_box': {'required': True}, + 'mic_hashing_algorithm': {'required': True}, + } + + _attribute_map = { + 'need_mdn': {'key': 'needMDN', 'type': 'bool'}, + 'sign_mdn': {'key': 'signMDN', 'type': 'bool'}, + 'send_mdn_asynchronously': {'key': 'sendMDNAsynchronously', 'type': 'bool'}, + 'receipt_delivery_url': {'key': 'receiptDeliveryUrl', 'type': 'str'}, + 'disposition_notification_to': {'key': 'dispositionNotificationTo', 'type': 'str'}, + 'sign_outbound_mdn_if_optional': {'key': 'signOutboundMDNIfOptional', 'type': 'bool'}, + 'mdn_text': {'key': 'mdnText', 'type': 'str'}, + 'send_inbound_mdn_to_message_box': {'key': 'sendInboundMDNToMessageBox', 'type': 'bool'}, + 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'str'}, + } + + def __init__( + self, + *, + need_mdn: bool, + sign_mdn: bool, + send_mdn_asynchronously: bool, + sign_outbound_mdn_if_optional: bool, + send_inbound_mdn_to_message_box: bool, + mic_hashing_algorithm: Union[str, "HashingAlgorithm"], + receipt_delivery_url: Optional[str] = None, + disposition_notification_to: Optional[str] = None, + mdn_text: Optional[str] = None, + **kwargs + ): + super(As2MdnSettings, self).__init__(**kwargs) + self.need_mdn = need_mdn + self.sign_mdn = sign_mdn + self.send_mdn_asynchronously = send_mdn_asynchronously + self.receipt_delivery_url = receipt_delivery_url + self.disposition_notification_to = disposition_notification_to + self.sign_outbound_mdn_if_optional = sign_outbound_mdn_if_optional + self.mdn_text = mdn_text + self.send_inbound_mdn_to_message_box = send_inbound_mdn_to_message_box + self.mic_hashing_algorithm = mic_hashing_algorithm + + +class As2MessageConnectionSettings(msrest.serialization.Model): + """The AS2 agreement message connection settings. + + All required parameters must be populated in order to send to Azure. + + :param ignore_certificate_name_mismatch: Required. The value indicating whether to ignore + mismatch in certificate name. + :type ignore_certificate_name_mismatch: bool + :param support_http_status_code_continue: Required. The value indicating whether to support + HTTP status code 'CONTINUE'. + :type support_http_status_code_continue: bool + :param keep_http_connection_alive: Required. The value indicating whether to keep the + connection alive. + :type keep_http_connection_alive: bool + :param unfold_http_headers: Required. The value indicating whether to unfold the HTTP headers. + :type unfold_http_headers: bool + """ + + _validation = { + 'ignore_certificate_name_mismatch': {'required': True}, + 'support_http_status_code_continue': {'required': True}, + 'keep_http_connection_alive': {'required': True}, + 'unfold_http_headers': {'required': True}, + } + + _attribute_map = { + 'ignore_certificate_name_mismatch': {'key': 'ignoreCertificateNameMismatch', 'type': 'bool'}, + 'support_http_status_code_continue': {'key': 'supportHttpStatusCodeContinue', 'type': 'bool'}, + 'keep_http_connection_alive': {'key': 'keepHttpConnectionAlive', 'type': 'bool'}, + 'unfold_http_headers': {'key': 'unfoldHttpHeaders', 'type': 'bool'}, + } + + def __init__( + self, + *, + ignore_certificate_name_mismatch: bool, + support_http_status_code_continue: bool, + keep_http_connection_alive: bool, + unfold_http_headers: bool, + **kwargs + ): + super(As2MessageConnectionSettings, self).__init__(**kwargs) + self.ignore_certificate_name_mismatch = ignore_certificate_name_mismatch + self.support_http_status_code_continue = support_http_status_code_continue + self.keep_http_connection_alive = keep_http_connection_alive + self.unfold_http_headers = unfold_http_headers + + +class As2OneWayAgreement(msrest.serialization.Model): + """The integration account AS2 one-way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The AS2 agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.As2ProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'As2ProtocolSettings'}, + } + + def __init__( + self, + *, + sender_business_identity: "BusinessIdentity", + receiver_business_identity: "BusinessIdentity", + protocol_settings: "As2ProtocolSettings", + **kwargs + ): + super(As2OneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = sender_business_identity + self.receiver_business_identity = receiver_business_identity + self.protocol_settings = protocol_settings + + +class As2ProtocolSettings(msrest.serialization.Model): + """The AS2 agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param message_connection_settings: Required. The AS2 agreement message connection settings. + :type message_connection_settings: ~logic_management_client.models.As2MessageConnectionSettings + :param acknowledgement_connection_settings: Required. The AS2 agreement acknowledgement + connection settings. + :type acknowledgement_connection_settings: + ~logic_management_client.models.As2AcknowledgementConnectionSettings + :param mdn_settings: Required. The AS2 agreement mdn settings. + :type mdn_settings: ~logic_management_client.models.As2MdnSettings + :param security_settings: Required. The AS2 agreement security settings. + :type security_settings: ~logic_management_client.models.As2SecuritySettings + :param validation_settings: Required. The AS2 agreement validation settings. + :type validation_settings: ~logic_management_client.models.As2ValidationSettings + :param envelope_settings: Required. The AS2 agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.As2EnvelopeSettings + :param error_settings: Required. The AS2 agreement error settings. + :type error_settings: ~logic_management_client.models.As2ErrorSettings + """ + + _validation = { + 'message_connection_settings': {'required': True}, + 'acknowledgement_connection_settings': {'required': True}, + 'mdn_settings': {'required': True}, + 'security_settings': {'required': True}, + 'validation_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'error_settings': {'required': True}, + } + + _attribute_map = { + 'message_connection_settings': {'key': 'messageConnectionSettings', 'type': 'As2MessageConnectionSettings'}, + 'acknowledgement_connection_settings': {'key': 'acknowledgementConnectionSettings', 'type': 'As2AcknowledgementConnectionSettings'}, + 'mdn_settings': {'key': 'mdnSettings', 'type': 'As2MdnSettings'}, + 'security_settings': {'key': 'securitySettings', 'type': 'As2SecuritySettings'}, + 'validation_settings': {'key': 'validationSettings', 'type': 'As2ValidationSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'As2EnvelopeSettings'}, + 'error_settings': {'key': 'errorSettings', 'type': 'As2ErrorSettings'}, + } + + def __init__( + self, + *, + message_connection_settings: "As2MessageConnectionSettings", + acknowledgement_connection_settings: "As2AcknowledgementConnectionSettings", + mdn_settings: "As2MdnSettings", + security_settings: "As2SecuritySettings", + validation_settings: "As2ValidationSettings", + envelope_settings: "As2EnvelopeSettings", + error_settings: "As2ErrorSettings", + **kwargs + ): + super(As2ProtocolSettings, self).__init__(**kwargs) + self.message_connection_settings = message_connection_settings + self.acknowledgement_connection_settings = acknowledgement_connection_settings + self.mdn_settings = mdn_settings + self.security_settings = security_settings + self.validation_settings = validation_settings + self.envelope_settings = envelope_settings + self.error_settings = error_settings + + +class As2SecuritySettings(msrest.serialization.Model): + """The AS2 agreement security settings. + + All required parameters must be populated in order to send to Azure. + + :param override_group_signing_certificate: Required. The value indicating whether to send or + request a MDN. + :type override_group_signing_certificate: bool + :param signing_certificate_name: The name of the signing certificate. + :type signing_certificate_name: str + :param encryption_certificate_name: The name of the encryption certificate. + :type encryption_certificate_name: str + :param enable_nrr_for_inbound_encoded_messages: Required. The value indicating whether to + enable NRR for inbound encoded messages. + :type enable_nrr_for_inbound_encoded_messages: bool + :param enable_nrr_for_inbound_decoded_messages: Required. The value indicating whether to + enable NRR for inbound decoded messages. + :type enable_nrr_for_inbound_decoded_messages: bool + :param enable_nrr_for_outbound_mdn: Required. The value indicating whether to enable NRR for + outbound MDN. + :type enable_nrr_for_outbound_mdn: bool + :param enable_nrr_for_outbound_encoded_messages: Required. The value indicating whether to + enable NRR for outbound encoded messages. + :type enable_nrr_for_outbound_encoded_messages: bool + :param enable_nrr_for_outbound_decoded_messages: Required. The value indicating whether to + enable NRR for outbound decoded messages. + :type enable_nrr_for_outbound_decoded_messages: bool + :param enable_nrr_for_inbound_mdn: Required. The value indicating whether to enable NRR for + inbound MDN. + :type enable_nrr_for_inbound_mdn: bool + :param sha2_algorithm_format: The Sha2 algorithm format. Valid values are Sha2, ShaHashSize, + ShaHyphenHashSize, Sha2UnderscoreHashSize. + :type sha2_algorithm_format: str + """ + + _validation = { + 'override_group_signing_certificate': {'required': True}, + 'enable_nrr_for_inbound_encoded_messages': {'required': True}, + 'enable_nrr_for_inbound_decoded_messages': {'required': True}, + 'enable_nrr_for_outbound_mdn': {'required': True}, + 'enable_nrr_for_outbound_encoded_messages': {'required': True}, + 'enable_nrr_for_outbound_decoded_messages': {'required': True}, + 'enable_nrr_for_inbound_mdn': {'required': True}, + } + + _attribute_map = { + 'override_group_signing_certificate': {'key': 'overrideGroupSigningCertificate', 'type': 'bool'}, + 'signing_certificate_name': {'key': 'signingCertificateName', 'type': 'str'}, + 'encryption_certificate_name': {'key': 'encryptionCertificateName', 'type': 'str'}, + 'enable_nrr_for_inbound_encoded_messages': {'key': 'enableNRRForInboundEncodedMessages', 'type': 'bool'}, + 'enable_nrr_for_inbound_decoded_messages': {'key': 'enableNRRForInboundDecodedMessages', 'type': 'bool'}, + 'enable_nrr_for_outbound_mdn': {'key': 'enableNRRForOutboundMDN', 'type': 'bool'}, + 'enable_nrr_for_outbound_encoded_messages': {'key': 'enableNRRForOutboundEncodedMessages', 'type': 'bool'}, + 'enable_nrr_for_outbound_decoded_messages': {'key': 'enableNRRForOutboundDecodedMessages', 'type': 'bool'}, + 'enable_nrr_for_inbound_mdn': {'key': 'enableNRRForInboundMDN', 'type': 'bool'}, + 'sha2_algorithm_format': {'key': 'sha2AlgorithmFormat', 'type': 'str'}, + } + + def __init__( + self, + *, + override_group_signing_certificate: bool, + enable_nrr_for_inbound_encoded_messages: bool, + enable_nrr_for_inbound_decoded_messages: bool, + enable_nrr_for_outbound_mdn: bool, + enable_nrr_for_outbound_encoded_messages: bool, + enable_nrr_for_outbound_decoded_messages: bool, + enable_nrr_for_inbound_mdn: bool, + signing_certificate_name: Optional[str] = None, + encryption_certificate_name: Optional[str] = None, + sha2_algorithm_format: Optional[str] = None, + **kwargs + ): + super(As2SecuritySettings, self).__init__(**kwargs) + self.override_group_signing_certificate = override_group_signing_certificate + self.signing_certificate_name = signing_certificate_name + self.encryption_certificate_name = encryption_certificate_name + self.enable_nrr_for_inbound_encoded_messages = enable_nrr_for_inbound_encoded_messages + self.enable_nrr_for_inbound_decoded_messages = enable_nrr_for_inbound_decoded_messages + self.enable_nrr_for_outbound_mdn = enable_nrr_for_outbound_mdn + self.enable_nrr_for_outbound_encoded_messages = enable_nrr_for_outbound_encoded_messages + self.enable_nrr_for_outbound_decoded_messages = enable_nrr_for_outbound_decoded_messages + self.enable_nrr_for_inbound_mdn = enable_nrr_for_inbound_mdn + self.sha2_algorithm_format = sha2_algorithm_format + + +class As2ValidationSettings(msrest.serialization.Model): + """The AS2 agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param override_message_properties: Required. The value indicating whether to override incoming + message properties with those in agreement. + :type override_message_properties: bool + :param encrypt_message: Required. The value indicating whether the message has to be encrypted. + :type encrypt_message: bool + :param sign_message: Required. The value indicating whether the message has to be signed. + :type sign_message: bool + :param compress_message: Required. The value indicating whether the message has to be + compressed. + :type compress_message: bool + :param check_duplicate_message: Required. The value indicating whether to check for duplicate + message. + :type check_duplicate_message: bool + :param interchange_duplicates_validity_days: Required. The number of days to look back for + duplicate interchange. + :type interchange_duplicates_validity_days: int + :param check_certificate_revocation_list_on_send: Required. The value indicating whether to + check for certificate revocation list on send. + :type check_certificate_revocation_list_on_send: bool + :param check_certificate_revocation_list_on_receive: Required. The value indicating whether to + check for certificate revocation list on receive. + :type check_certificate_revocation_list_on_receive: bool + :param encryption_algorithm: Required. The encryption algorithm. Possible values include: + 'NotSpecified', 'None', 'DES3', 'RC2', 'AES128', 'AES192', 'AES256'. + :type encryption_algorithm: str or ~logic_management_client.models.EncryptionAlgorithm + :param signing_algorithm: The signing or hashing algorithm. Possible values include: + 'NotSpecified', 'Default', 'SHA1', 'SHA2256', 'SHA2384', 'SHA2512'. + :type signing_algorithm: str or ~logic_management_client.models.SigningAlgorithm + """ + + _validation = { + 'override_message_properties': {'required': True}, + 'encrypt_message': {'required': True}, + 'sign_message': {'required': True}, + 'compress_message': {'required': True}, + 'check_duplicate_message': {'required': True}, + 'interchange_duplicates_validity_days': {'required': True}, + 'check_certificate_revocation_list_on_send': {'required': True}, + 'check_certificate_revocation_list_on_receive': {'required': True}, + 'encryption_algorithm': {'required': True}, + } + + _attribute_map = { + 'override_message_properties': {'key': 'overrideMessageProperties', 'type': 'bool'}, + 'encrypt_message': {'key': 'encryptMessage', 'type': 'bool'}, + 'sign_message': {'key': 'signMessage', 'type': 'bool'}, + 'compress_message': {'key': 'compressMessage', 'type': 'bool'}, + 'check_duplicate_message': {'key': 'checkDuplicateMessage', 'type': 'bool'}, + 'interchange_duplicates_validity_days': {'key': 'interchangeDuplicatesValidityDays', 'type': 'int'}, + 'check_certificate_revocation_list_on_send': {'key': 'checkCertificateRevocationListOnSend', 'type': 'bool'}, + 'check_certificate_revocation_list_on_receive': {'key': 'checkCertificateRevocationListOnReceive', 'type': 'bool'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'signing_algorithm': {'key': 'signingAlgorithm', 'type': 'str'}, + } + + def __init__( + self, + *, + override_message_properties: bool, + encrypt_message: bool, + sign_message: bool, + compress_message: bool, + check_duplicate_message: bool, + interchange_duplicates_validity_days: int, + check_certificate_revocation_list_on_send: bool, + check_certificate_revocation_list_on_receive: bool, + encryption_algorithm: Union[str, "EncryptionAlgorithm"], + signing_algorithm: Optional[Union[str, "SigningAlgorithm"]] = None, + **kwargs + ): + super(As2ValidationSettings, self).__init__(**kwargs) + self.override_message_properties = override_message_properties + self.encrypt_message = encrypt_message + self.sign_message = sign_message + self.compress_message = compress_message + self.check_duplicate_message = check_duplicate_message + self.interchange_duplicates_validity_days = interchange_duplicates_validity_days + self.check_certificate_revocation_list_on_send = check_certificate_revocation_list_on_send + self.check_certificate_revocation_list_on_receive = check_certificate_revocation_list_on_receive + self.encryption_algorithm = encryption_algorithm + self.signing_algorithm = signing_algorithm + + +class AssemblyCollection(msrest.serialization.Model): + """A collection of assembly definitions. + + :param value: + :type value: list[~logic_management_client.models.AssemblyDefinition] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AssemblyDefinition]'}, + } + + def __init__( + self, + *, + value: Optional[List["AssemblyDefinition"]] = None, + **kwargs + ): + super(AssemblyCollection, self).__init__(**kwargs) + self.value = value + + +class AssemblyDefinition(Resource): + """The assembly definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: Required. The assembly properties definition. + :type properties: ~logic_management_client.models.AssemblyProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'AssemblyProperties'}, + } + + def __init__( + self, + *, + properties: "AssemblyProperties", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(AssemblyDefinition, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + + +class AssemblyProperties(ArtifactContentPropertiesDefinition): + """The assembly properties definition. + + All required parameters must be populated in order to send to Azure. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param content: Any object. + :type content: object + :param content_type: The content type. + :type content_type: str + :param content_link: The content link. + :type content_link: ~logic_management_client.models.ContentLink + :param assembly_name: Required. The assembly name. + :type assembly_name: str + :param assembly_version: The assembly version. + :type assembly_version: str + :param assembly_culture: The assembly culture. + :type assembly_culture: str + :param assembly_public_key_token: The assembly public key token. + :type assembly_public_key_token: str + """ + + _validation = { + 'assembly_name': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'content': {'key': 'content', 'type': 'object'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + 'assembly_name': {'key': 'assemblyName', 'type': 'str'}, + 'assembly_version': {'key': 'assemblyVersion', 'type': 'str'}, + 'assembly_culture': {'key': 'assemblyCulture', 'type': 'str'}, + 'assembly_public_key_token': {'key': 'assemblyPublicKeyToken', 'type': 'str'}, + } + + def __init__( + self, + *, + assembly_name: str, + created_time: Optional[datetime.datetime] = None, + changed_time: Optional[datetime.datetime] = None, + metadata: Optional[object] = None, + content: Optional[object] = None, + content_type: Optional[str] = None, + content_link: Optional["ContentLink"] = None, + assembly_version: Optional[str] = None, + assembly_culture: Optional[str] = None, + assembly_public_key_token: Optional[str] = None, + **kwargs + ): + super(AssemblyProperties, self).__init__(created_time=created_time, changed_time=changed_time, metadata=metadata, content=content, content_type=content_type, content_link=content_link, **kwargs) + self.assembly_name = assembly_name + self.assembly_version = assembly_version + self.assembly_culture = assembly_culture + self.assembly_public_key_token = assembly_public_key_token + + +class ErrorInfo(msrest.serialization.Model): + """The error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + """ + + _validation = { + 'code': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + } + + def __init__( + self, + *, + code: str, + **kwargs + ): + super(ErrorInfo, self).__init__(**kwargs) + self.code = code + + +class AzureResourceErrorInfo(ErrorInfo): + """The azure resource error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + :param message: Required. The error message. + :type message: str + :param details: The error details. + :type details: list[~logic_management_client.models.AzureResourceErrorInfo] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[AzureResourceErrorInfo]'}, + } + + def __init__( + self, + *, + code: str, + message: str, + details: Optional[List["AzureResourceErrorInfo"]] = None, + **kwargs + ): + super(AzureResourceErrorInfo, self).__init__(code=code, **kwargs) + self.message = message + self.details = details + + +class B2BPartnerContent(msrest.serialization.Model): + """The B2B partner content. + + :param business_identities: The list of partner business identities. + :type business_identities: list[~logic_management_client.models.BusinessIdentity] + """ + + _attribute_map = { + 'business_identities': {'key': 'businessIdentities', 'type': '[BusinessIdentity]'}, + } + + def __init__( + self, + *, + business_identities: Optional[List["BusinessIdentity"]] = None, + **kwargs + ): + super(B2BPartnerContent, self).__init__(**kwargs) + self.business_identities = business_identities + + +class BatchConfiguration(Resource): + """The batch configuration resource definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: Required. The batch configuration properties definition. + :type properties: ~logic_management_client.models.BatchConfigurationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'BatchConfigurationProperties'}, + } + + def __init__( + self, + *, + properties: "BatchConfigurationProperties", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(BatchConfiguration, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + + +class BatchConfigurationCollection(msrest.serialization.Model): + """A collection of batch configurations. + + :param value: + :type value: list[~logic_management_client.models.BatchConfiguration] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BatchConfiguration]'}, + } + + def __init__( + self, + *, + value: Optional[List["BatchConfiguration"]] = None, + **kwargs + ): + super(BatchConfigurationCollection, self).__init__(**kwargs) + self.value = value + + +class BatchConfigurationProperties(ArtifactProperties): + """The batch configuration properties definition. + + All required parameters must be populated in order to send to Azure. + + :param created_time: The artifact creation time. + :type created_time: ~datetime.datetime + :param changed_time: The artifact changed time. + :type changed_time: ~datetime.datetime + :param metadata: Any object. + :type metadata: object + :param batch_group_name: Required. The name of the batch group. + :type batch_group_name: str + :param release_criteria: Required. The batch release criteria. + :type release_criteria: ~logic_management_client.models.BatchReleaseCriteria + """ + + _validation = { + 'batch_group_name': {'required': True}, + 'release_criteria': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'object'}, + 'batch_group_name': {'key': 'batchGroupName', 'type': 'str'}, + 'release_criteria': {'key': 'releaseCriteria', 'type': 'BatchReleaseCriteria'}, + } + + def __init__( + self, + *, + batch_group_name: str, + release_criteria: "BatchReleaseCriteria", + created_time: Optional[datetime.datetime] = None, + changed_time: Optional[datetime.datetime] = None, + metadata: Optional[object] = None, + **kwargs + ): + super(BatchConfigurationProperties, self).__init__(created_time=created_time, changed_time=changed_time, metadata=metadata, **kwargs) + self.batch_group_name = batch_group_name + self.release_criteria = release_criteria + + +class BatchReleaseCriteria(msrest.serialization.Model): + """The batch release criteria. + + :param message_count: The message count. + :type message_count: int + :param batch_size: The batch size in bytes. + :type batch_size: int + :param recurrence: The workflow trigger recurrence. + :type recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + """ + + _attribute_map = { + 'message_count': {'key': 'messageCount', 'type': 'int'}, + 'batch_size': {'key': 'batchSize', 'type': 'int'}, + 'recurrence': {'key': 'recurrence', 'type': 'WorkflowTriggerRecurrence'}, + } + + def __init__( + self, + *, + message_count: Optional[int] = None, + batch_size: Optional[int] = None, + recurrence: Optional["WorkflowTriggerRecurrence"] = None, + **kwargs + ): + super(BatchReleaseCriteria, self).__init__(**kwargs) + self.message_count = message_count + self.batch_size = batch_size + self.recurrence = recurrence + + +class BusinessIdentity(msrest.serialization.Model): + """The integration account partner's business identity. + + All required parameters must be populated in order to send to Azure. + + :param qualifier: Required. The business identity qualifier e.g. as2identity, ZZ, ZZZ, 31, 32. + :type qualifier: str + :param value: Required. The user defined business identity value. + :type value: str + """ + + _validation = { + 'qualifier': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'qualifier': {'key': 'qualifier', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + qualifier: str, + value: str, + **kwargs + ): + super(BusinessIdentity, self).__init__(**kwargs) + self.qualifier = qualifier + self.value = value + + +class CallbackUrl(msrest.serialization.Model): + """The callback url. + + :param value: The URL value. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[str] = None, + **kwargs + ): + super(CallbackUrl, self).__init__(**kwargs) + self.value = value + + +class ContentHash(msrest.serialization.Model): + """The content hash. + + :param algorithm: The algorithm of the content hash. + :type algorithm: str + :param value: The value of the content hash. + :type value: str + """ + + _attribute_map = { + 'algorithm': {'key': 'algorithm', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + algorithm: Optional[str] = None, + value: Optional[str] = None, + **kwargs + ): + super(ContentHash, self).__init__(**kwargs) + self.algorithm = algorithm + self.value = value + + +class ContentLink(msrest.serialization.Model): + """The content link. + + :param uri: The content link URI. + :type uri: str + :param content_version: The content version. + :type content_version: str + :param content_size: The content size. + :type content_size: long + :param content_hash: The content hash. + :type content_hash: ~logic_management_client.models.ContentHash + :param metadata: + :type metadata: ~logic_management_client.models.Object + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'long'}, + 'content_hash': {'key': 'contentHash', 'type': 'ContentHash'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + } + + def __init__( + self, + *, + uri: Optional[str] = None, + content_version: Optional[str] = None, + content_size: Optional[int] = None, + content_hash: Optional["ContentHash"] = None, + metadata: Optional["Object"] = None, + **kwargs + ): + super(ContentLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + self.content_size = content_size + self.content_hash = content_hash + self.metadata = metadata + + +class Correlation(msrest.serialization.Model): + """The correlation property. + + :param client_tracking_id: The client tracking id. + :type client_tracking_id: str + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + } + + def __init__( + self, + *, + client_tracking_id: Optional[str] = None, + **kwargs + ): + super(Correlation, self).__init__(**kwargs) + self.client_tracking_id = client_tracking_id + + +class EdifactAcknowledgementSettings(msrest.serialization.Model): + """The Edifact agreement acknowledgement settings. + + All required parameters must be populated in order to send to Azure. + + :param need_technical_acknowledgement: Required. The value indicating whether technical + acknowledgement is needed. + :type need_technical_acknowledgement: bool + :param batch_technical_acknowledgements: Required. The value indicating whether to batch the + technical acknowledgements. + :type batch_technical_acknowledgements: bool + :param need_functional_acknowledgement: Required. The value indicating whether functional + acknowledgement is needed. + :type need_functional_acknowledgement: bool + :param batch_functional_acknowledgements: Required. The value indicating whether to batch + functional acknowledgements. + :type batch_functional_acknowledgements: bool + :param need_loop_for_valid_messages: Required. The value indicating whether a loop is needed + for valid messages. + :type need_loop_for_valid_messages: bool + :param send_synchronous_acknowledgement: Required. The value indicating whether to send + synchronous acknowledgement. + :type send_synchronous_acknowledgement: bool + :param acknowledgement_control_number_prefix: The acknowledgement control number prefix. + :type acknowledgement_control_number_prefix: str + :param acknowledgement_control_number_suffix: The acknowledgement control number suffix. + :type acknowledgement_control_number_suffix: str + :param acknowledgement_control_number_lower_bound: Required. The acknowledgement control number + lower bound. + :type acknowledgement_control_number_lower_bound: int + :param acknowledgement_control_number_upper_bound: Required. The acknowledgement control number + upper bound. + :type acknowledgement_control_number_upper_bound: int + :param rollover_acknowledgement_control_number: Required. The value indicating whether to + rollover acknowledgement control number. + :type rollover_acknowledgement_control_number: bool + """ + + _validation = { + 'need_technical_acknowledgement': {'required': True}, + 'batch_technical_acknowledgements': {'required': True}, + 'need_functional_acknowledgement': {'required': True}, + 'batch_functional_acknowledgements': {'required': True}, + 'need_loop_for_valid_messages': {'required': True}, + 'send_synchronous_acknowledgement': {'required': True}, + 'acknowledgement_control_number_lower_bound': {'required': True}, + 'acknowledgement_control_number_upper_bound': {'required': True}, + 'rollover_acknowledgement_control_number': {'required': True}, + } + + _attribute_map = { + 'need_technical_acknowledgement': {'key': 'needTechnicalAcknowledgement', 'type': 'bool'}, + 'batch_technical_acknowledgements': {'key': 'batchTechnicalAcknowledgements', 'type': 'bool'}, + 'need_functional_acknowledgement': {'key': 'needFunctionalAcknowledgement', 'type': 'bool'}, + 'batch_functional_acknowledgements': {'key': 'batchFunctionalAcknowledgements', 'type': 'bool'}, + 'need_loop_for_valid_messages': {'key': 'needLoopForValidMessages', 'type': 'bool'}, + 'send_synchronous_acknowledgement': {'key': 'sendSynchronousAcknowledgement', 'type': 'bool'}, + 'acknowledgement_control_number_prefix': {'key': 'acknowledgementControlNumberPrefix', 'type': 'str'}, + 'acknowledgement_control_number_suffix': {'key': 'acknowledgementControlNumberSuffix', 'type': 'str'}, + 'acknowledgement_control_number_lower_bound': {'key': 'acknowledgementControlNumberLowerBound', 'type': 'int'}, + 'acknowledgement_control_number_upper_bound': {'key': 'acknowledgementControlNumberUpperBound', 'type': 'int'}, + 'rollover_acknowledgement_control_number': {'key': 'rolloverAcknowledgementControlNumber', 'type': 'bool'}, + } + + def __init__( + self, + *, + need_technical_acknowledgement: bool, + batch_technical_acknowledgements: bool, + need_functional_acknowledgement: bool, + batch_functional_acknowledgements: bool, + need_loop_for_valid_messages: bool, + send_synchronous_acknowledgement: bool, + acknowledgement_control_number_lower_bound: int, + acknowledgement_control_number_upper_bound: int, + rollover_acknowledgement_control_number: bool, + acknowledgement_control_number_prefix: Optional[str] = None, + acknowledgement_control_number_suffix: Optional[str] = None, + **kwargs + ): + super(EdifactAcknowledgementSettings, self).__init__(**kwargs) + self.need_technical_acknowledgement = need_technical_acknowledgement + self.batch_technical_acknowledgements = batch_technical_acknowledgements + self.need_functional_acknowledgement = need_functional_acknowledgement + self.batch_functional_acknowledgements = batch_functional_acknowledgements + self.need_loop_for_valid_messages = need_loop_for_valid_messages + self.send_synchronous_acknowledgement = send_synchronous_acknowledgement + self.acknowledgement_control_number_prefix = acknowledgement_control_number_prefix + self.acknowledgement_control_number_suffix = acknowledgement_control_number_suffix + self.acknowledgement_control_number_lower_bound = acknowledgement_control_number_lower_bound + self.acknowledgement_control_number_upper_bound = acknowledgement_control_number_upper_bound + self.rollover_acknowledgement_control_number = rollover_acknowledgement_control_number + + +class EdifactAgreementContent(msrest.serialization.Model): + """The Edifact agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The Edifact one way agreement. + :type receive_agreement: ~logic_management_client.models.EdifactOneWayAgreement + :param send_agreement: Required. The Edifact one way agreement. + :type send_agreement: ~logic_management_client.models.EdifactOneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'EdifactOneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'EdifactOneWayAgreement'}, + } + + def __init__( + self, + *, + receive_agreement: "EdifactOneWayAgreement", + send_agreement: "EdifactOneWayAgreement", + **kwargs + ): + super(EdifactAgreementContent, self).__init__(**kwargs) + self.receive_agreement = receive_agreement + self.send_agreement = send_agreement + + +class EdifactDelimiterOverride(msrest.serialization.Model): + """The Edifact delimiter override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: The message id. + :type message_id: str + :param message_version: The message version. + :type message_version: str + :param message_release: The message release. + :type message_release: str + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param repetition_separator: Required. The repetition separator. + :type repetition_separator: int + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + :param decimal_point_indicator: Required. The edifact decimal indicator. Possible values + include: 'NotSpecified', 'Comma', 'Decimal'. + :type decimal_point_indicator: str or ~logic_management_client.models.EdifactDecimalIndicator + :param release_indicator: Required. The release indicator. + :type release_indicator: int + :param message_association_assigned_code: The message association assigned code. + :type message_association_assigned_code: str + :param target_namespace: The target namespace on which this delimiter settings has to be + applied. + :type target_namespace: str + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'repetition_separator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + 'decimal_point_indicator': {'required': True}, + 'release_indicator': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'str'}, + 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, + 'message_association_assigned_code': {'key': 'messageAssociationAssignedCode', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + } + + def __init__( + self, + *, + data_element_separator: int, + component_separator: int, + segment_terminator: int, + repetition_separator: int, + segment_terminator_suffix: Union[str, "SegmentTerminatorSuffix"], + decimal_point_indicator: Union[str, "EdifactDecimalIndicator"], + release_indicator: int, + message_id: Optional[str] = None, + message_version: Optional[str] = None, + message_release: Optional[str] = None, + message_association_assigned_code: Optional[str] = None, + target_namespace: Optional[str] = None, + **kwargs + ): + super(EdifactDelimiterOverride, self).__init__(**kwargs) + self.message_id = message_id + self.message_version = message_version + self.message_release = message_release + self.data_element_separator = data_element_separator + self.component_separator = component_separator + self.segment_terminator = segment_terminator + self.repetition_separator = repetition_separator + self.segment_terminator_suffix = segment_terminator_suffix + self.decimal_point_indicator = decimal_point_indicator + self.release_indicator = release_indicator + self.message_association_assigned_code = message_association_assigned_code + self.target_namespace = target_namespace + + +class EdifactEnvelopeOverride(msrest.serialization.Model): + """The Edifact envelope override settings. + + :param message_id: The message id on which this envelope settings has to be applied. + :type message_id: str + :param message_version: The message version on which this envelope settings has to be applied. + :type message_version: str + :param message_release: The message release version on which this envelope settings has to be + applied. + :type message_release: str + :param message_association_assigned_code: The message association assigned code. + :type message_association_assigned_code: str + :param target_namespace: The target namespace on which this envelope settings has to be + applied. + :type target_namespace: str + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param sender_application_qualifier: The sender application qualifier. + :type sender_application_qualifier: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param receiver_application_qualifier: The receiver application qualifier. + :type receiver_application_qualifier: str + :param receiver_application_id: The receiver application id. + :type receiver_application_id: str + :param controlling_agency_code: The controlling agency code. + :type controlling_agency_code: str + :param group_header_message_version: The group header message version. + :type group_header_message_version: str + :param group_header_message_release: The group header message release. + :type group_header_message_release: str + :param association_assigned_code: The association assigned code. + :type association_assigned_code: str + :param application_password: The application password. + :type application_password: str + """ + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'message_association_assigned_code': {'key': 'messageAssociationAssignedCode', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'sender_application_qualifier': {'key': 'senderApplicationQualifier', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_qualifier': {'key': 'receiverApplicationQualifier', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'controlling_agency_code': {'key': 'controllingAgencyCode', 'type': 'str'}, + 'group_header_message_version': {'key': 'groupHeaderMessageVersion', 'type': 'str'}, + 'group_header_message_release': {'key': 'groupHeaderMessageRelease', 'type': 'str'}, + 'association_assigned_code': {'key': 'associationAssignedCode', 'type': 'str'}, + 'application_password': {'key': 'applicationPassword', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: Optional[str] = None, + message_version: Optional[str] = None, + message_release: Optional[str] = None, + message_association_assigned_code: Optional[str] = None, + target_namespace: Optional[str] = None, + functional_group_id: Optional[str] = None, + sender_application_qualifier: Optional[str] = None, + sender_application_id: Optional[str] = None, + receiver_application_qualifier: Optional[str] = None, + receiver_application_id: Optional[str] = None, + controlling_agency_code: Optional[str] = None, + group_header_message_version: Optional[str] = None, + group_header_message_release: Optional[str] = None, + association_assigned_code: Optional[str] = None, + application_password: Optional[str] = None, + **kwargs + ): + super(EdifactEnvelopeOverride, self).__init__(**kwargs) + self.message_id = message_id + self.message_version = message_version + self.message_release = message_release + self.message_association_assigned_code = message_association_assigned_code + self.target_namespace = target_namespace + self.functional_group_id = functional_group_id + self.sender_application_qualifier = sender_application_qualifier + self.sender_application_id = sender_application_id + self.receiver_application_qualifier = receiver_application_qualifier + self.receiver_application_id = receiver_application_id + self.controlling_agency_code = controlling_agency_code + self.group_header_message_version = group_header_message_version + self.group_header_message_release = group_header_message_release + self.association_assigned_code = association_assigned_code + self.application_password = application_password + + +class EdifactEnvelopeSettings(msrest.serialization.Model): + """The Edifact agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param group_association_assigned_code: The group association assigned code. + :type group_association_assigned_code: str + :param communication_agreement_id: The communication agreement id. + :type communication_agreement_id: str + :param apply_delimiter_string_advice: Required. The value indicating whether to apply delimiter + string advice. + :type apply_delimiter_string_advice: bool + :param create_grouping_segments: Required. The value indicating whether to create grouping + segments. + :type create_grouping_segments: bool + :param enable_default_group_headers: Required. The value indicating whether to enable default + group headers. + :type enable_default_group_headers: bool + :param recipient_reference_password_value: The recipient reference password value. + :type recipient_reference_password_value: str + :param recipient_reference_password_qualifier: The recipient reference password qualifier. + :type recipient_reference_password_qualifier: str + :param application_reference_id: The application reference id. + :type application_reference_id: str + :param processing_priority_code: The processing priority code. + :type processing_priority_code: str + :param interchange_control_number_lower_bound: Required. The interchange control number lower + bound. + :type interchange_control_number_lower_bound: long + :param interchange_control_number_upper_bound: Required. The interchange control number upper + bound. + :type interchange_control_number_upper_bound: long + :param rollover_interchange_control_number: Required. The value indicating whether to rollover + interchange control number. + :type rollover_interchange_control_number: bool + :param interchange_control_number_prefix: The interchange control number prefix. + :type interchange_control_number_prefix: str + :param interchange_control_number_suffix: The interchange control number suffix. + :type interchange_control_number_suffix: str + :param sender_reverse_routing_address: The sender reverse routing address. + :type sender_reverse_routing_address: str + :param receiver_reverse_routing_address: The receiver reverse routing address. + :type receiver_reverse_routing_address: str + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param group_controlling_agency_code: The group controlling agency code. + :type group_controlling_agency_code: str + :param group_message_version: The group message version. + :type group_message_version: str + :param group_message_release: The group message release. + :type group_message_release: str + :param group_control_number_lower_bound: Required. The group control number lower bound. + :type group_control_number_lower_bound: long + :param group_control_number_upper_bound: Required. The group control number upper bound. + :type group_control_number_upper_bound: long + :param rollover_group_control_number: Required. The value indicating whether to rollover group + control number. + :type rollover_group_control_number: bool + :param group_control_number_prefix: The group control number prefix. + :type group_control_number_prefix: str + :param group_control_number_suffix: The group control number suffix. + :type group_control_number_suffix: str + :param group_application_receiver_qualifier: The group application receiver qualifier. + :type group_application_receiver_qualifier: str + :param group_application_receiver_id: The group application receiver id. + :type group_application_receiver_id: str + :param group_application_sender_qualifier: The group application sender qualifier. + :type group_application_sender_qualifier: str + :param group_application_sender_id: The group application sender id. + :type group_application_sender_id: str + :param group_application_password: The group application password. + :type group_application_password: str + :param overwrite_existing_transaction_set_control_number: Required. The value indicating + whether to overwrite existing transaction set control number. + :type overwrite_existing_transaction_set_control_number: bool + :param transaction_set_control_number_prefix: The transaction set control number prefix. + :type transaction_set_control_number_prefix: str + :param transaction_set_control_number_suffix: The transaction set control number suffix. + :type transaction_set_control_number_suffix: str + :param transaction_set_control_number_lower_bound: Required. The transaction set control number + lower bound. + :type transaction_set_control_number_lower_bound: long + :param transaction_set_control_number_upper_bound: Required. The transaction set control number + upper bound. + :type transaction_set_control_number_upper_bound: long + :param rollover_transaction_set_control_number: Required. The value indicating whether to + rollover transaction set control number. + :type rollover_transaction_set_control_number: bool + :param is_test_interchange: Required. The value indicating whether the message is a test + interchange. + :type is_test_interchange: bool + :param sender_internal_identification: The sender internal identification. + :type sender_internal_identification: str + :param sender_internal_sub_identification: The sender internal sub identification. + :type sender_internal_sub_identification: str + :param receiver_internal_identification: The receiver internal identification. + :type receiver_internal_identification: str + :param receiver_internal_sub_identification: The receiver internal sub identification. + :type receiver_internal_sub_identification: str + """ + + _validation = { + 'apply_delimiter_string_advice': {'required': True}, + 'create_grouping_segments': {'required': True}, + 'enable_default_group_headers': {'required': True}, + 'interchange_control_number_lower_bound': {'required': True}, + 'interchange_control_number_upper_bound': {'required': True}, + 'rollover_interchange_control_number': {'required': True}, + 'group_control_number_lower_bound': {'required': True}, + 'group_control_number_upper_bound': {'required': True}, + 'rollover_group_control_number': {'required': True}, + 'overwrite_existing_transaction_set_control_number': {'required': True}, + 'transaction_set_control_number_lower_bound': {'required': True}, + 'transaction_set_control_number_upper_bound': {'required': True}, + 'rollover_transaction_set_control_number': {'required': True}, + 'is_test_interchange': {'required': True}, + } + + _attribute_map = { + 'group_association_assigned_code': {'key': 'groupAssociationAssignedCode', 'type': 'str'}, + 'communication_agreement_id': {'key': 'communicationAgreementId', 'type': 'str'}, + 'apply_delimiter_string_advice': {'key': 'applyDelimiterStringAdvice', 'type': 'bool'}, + 'create_grouping_segments': {'key': 'createGroupingSegments', 'type': 'bool'}, + 'enable_default_group_headers': {'key': 'enableDefaultGroupHeaders', 'type': 'bool'}, + 'recipient_reference_password_value': {'key': 'recipientReferencePasswordValue', 'type': 'str'}, + 'recipient_reference_password_qualifier': {'key': 'recipientReferencePasswordQualifier', 'type': 'str'}, + 'application_reference_id': {'key': 'applicationReferenceId', 'type': 'str'}, + 'processing_priority_code': {'key': 'processingPriorityCode', 'type': 'str'}, + 'interchange_control_number_lower_bound': {'key': 'interchangeControlNumberLowerBound', 'type': 'long'}, + 'interchange_control_number_upper_bound': {'key': 'interchangeControlNumberUpperBound', 'type': 'long'}, + 'rollover_interchange_control_number': {'key': 'rolloverInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_prefix': {'key': 'interchangeControlNumberPrefix', 'type': 'str'}, + 'interchange_control_number_suffix': {'key': 'interchangeControlNumberSuffix', 'type': 'str'}, + 'sender_reverse_routing_address': {'key': 'senderReverseRoutingAddress', 'type': 'str'}, + 'receiver_reverse_routing_address': {'key': 'receiverReverseRoutingAddress', 'type': 'str'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'group_controlling_agency_code': {'key': 'groupControllingAgencyCode', 'type': 'str'}, + 'group_message_version': {'key': 'groupMessageVersion', 'type': 'str'}, + 'group_message_release': {'key': 'groupMessageRelease', 'type': 'str'}, + 'group_control_number_lower_bound': {'key': 'groupControlNumberLowerBound', 'type': 'long'}, + 'group_control_number_upper_bound': {'key': 'groupControlNumberUpperBound', 'type': 'long'}, + 'rollover_group_control_number': {'key': 'rolloverGroupControlNumber', 'type': 'bool'}, + 'group_control_number_prefix': {'key': 'groupControlNumberPrefix', 'type': 'str'}, + 'group_control_number_suffix': {'key': 'groupControlNumberSuffix', 'type': 'str'}, + 'group_application_receiver_qualifier': {'key': 'groupApplicationReceiverQualifier', 'type': 'str'}, + 'group_application_receiver_id': {'key': 'groupApplicationReceiverId', 'type': 'str'}, + 'group_application_sender_qualifier': {'key': 'groupApplicationSenderQualifier', 'type': 'str'}, + 'group_application_sender_id': {'key': 'groupApplicationSenderId', 'type': 'str'}, + 'group_application_password': {'key': 'groupApplicationPassword', 'type': 'str'}, + 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, + 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, + 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, + 'transaction_set_control_number_lower_bound': {'key': 'transactionSetControlNumberLowerBound', 'type': 'long'}, + 'transaction_set_control_number_upper_bound': {'key': 'transactionSetControlNumberUpperBound', 'type': 'long'}, + 'rollover_transaction_set_control_number': {'key': 'rolloverTransactionSetControlNumber', 'type': 'bool'}, + 'is_test_interchange': {'key': 'isTestInterchange', 'type': 'bool'}, + 'sender_internal_identification': {'key': 'senderInternalIdentification', 'type': 'str'}, + 'sender_internal_sub_identification': {'key': 'senderInternalSubIdentification', 'type': 'str'}, + 'receiver_internal_identification': {'key': 'receiverInternalIdentification', 'type': 'str'}, + 'receiver_internal_sub_identification': {'key': 'receiverInternalSubIdentification', 'type': 'str'}, + } + + def __init__( + self, + *, + apply_delimiter_string_advice: bool, + create_grouping_segments: bool, + enable_default_group_headers: bool, + interchange_control_number_lower_bound: int, + interchange_control_number_upper_bound: int, + rollover_interchange_control_number: bool, + group_control_number_lower_bound: int, + group_control_number_upper_bound: int, + rollover_group_control_number: bool, + overwrite_existing_transaction_set_control_number: bool, + transaction_set_control_number_lower_bound: int, + transaction_set_control_number_upper_bound: int, + rollover_transaction_set_control_number: bool, + is_test_interchange: bool, + group_association_assigned_code: Optional[str] = None, + communication_agreement_id: Optional[str] = None, + recipient_reference_password_value: Optional[str] = None, + recipient_reference_password_qualifier: Optional[str] = None, + application_reference_id: Optional[str] = None, + processing_priority_code: Optional[str] = None, + interchange_control_number_prefix: Optional[str] = None, + interchange_control_number_suffix: Optional[str] = None, + sender_reverse_routing_address: Optional[str] = None, + receiver_reverse_routing_address: Optional[str] = None, + functional_group_id: Optional[str] = None, + group_controlling_agency_code: Optional[str] = None, + group_message_version: Optional[str] = None, + group_message_release: Optional[str] = None, + group_control_number_prefix: Optional[str] = None, + group_control_number_suffix: Optional[str] = None, + group_application_receiver_qualifier: Optional[str] = None, + group_application_receiver_id: Optional[str] = None, + group_application_sender_qualifier: Optional[str] = None, + group_application_sender_id: Optional[str] = None, + group_application_password: Optional[str] = None, + transaction_set_control_number_prefix: Optional[str] = None, + transaction_set_control_number_suffix: Optional[str] = None, + sender_internal_identification: Optional[str] = None, + sender_internal_sub_identification: Optional[str] = None, + receiver_internal_identification: Optional[str] = None, + receiver_internal_sub_identification: Optional[str] = None, + **kwargs + ): + super(EdifactEnvelopeSettings, self).__init__(**kwargs) + self.group_association_assigned_code = group_association_assigned_code + self.communication_agreement_id = communication_agreement_id + self.apply_delimiter_string_advice = apply_delimiter_string_advice + self.create_grouping_segments = create_grouping_segments + self.enable_default_group_headers = enable_default_group_headers + self.recipient_reference_password_value = recipient_reference_password_value + self.recipient_reference_password_qualifier = recipient_reference_password_qualifier + self.application_reference_id = application_reference_id + self.processing_priority_code = processing_priority_code + self.interchange_control_number_lower_bound = interchange_control_number_lower_bound + self.interchange_control_number_upper_bound = interchange_control_number_upper_bound + self.rollover_interchange_control_number = rollover_interchange_control_number + self.interchange_control_number_prefix = interchange_control_number_prefix + self.interchange_control_number_suffix = interchange_control_number_suffix + self.sender_reverse_routing_address = sender_reverse_routing_address + self.receiver_reverse_routing_address = receiver_reverse_routing_address + self.functional_group_id = functional_group_id + self.group_controlling_agency_code = group_controlling_agency_code + self.group_message_version = group_message_version + self.group_message_release = group_message_release + self.group_control_number_lower_bound = group_control_number_lower_bound + self.group_control_number_upper_bound = group_control_number_upper_bound + self.rollover_group_control_number = rollover_group_control_number + self.group_control_number_prefix = group_control_number_prefix + self.group_control_number_suffix = group_control_number_suffix + self.group_application_receiver_qualifier = group_application_receiver_qualifier + self.group_application_receiver_id = group_application_receiver_id + self.group_application_sender_qualifier = group_application_sender_qualifier + self.group_application_sender_id = group_application_sender_id + self.group_application_password = group_application_password + self.overwrite_existing_transaction_set_control_number = overwrite_existing_transaction_set_control_number + self.transaction_set_control_number_prefix = transaction_set_control_number_prefix + self.transaction_set_control_number_suffix = transaction_set_control_number_suffix + self.transaction_set_control_number_lower_bound = transaction_set_control_number_lower_bound + self.transaction_set_control_number_upper_bound = transaction_set_control_number_upper_bound + self.rollover_transaction_set_control_number = rollover_transaction_set_control_number + self.is_test_interchange = is_test_interchange + self.sender_internal_identification = sender_internal_identification + self.sender_internal_sub_identification = sender_internal_sub_identification + self.receiver_internal_identification = receiver_internal_identification + self.receiver_internal_sub_identification = receiver_internal_sub_identification + + +class EdifactFramingSettings(msrest.serialization.Model): + """The Edifact agreement framing settings. + + All required parameters must be populated in order to send to Azure. + + :param service_code_list_directory_version: The service code list directory version. + :type service_code_list_directory_version: str + :param character_encoding: The character encoding. + :type character_encoding: str + :param protocol_version: Required. The protocol version. + :type protocol_version: int + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param release_indicator: Required. The release indicator. + :type release_indicator: int + :param repetition_separator: Required. The repetition separator. + :type repetition_separator: int + :param character_set: Required. The edifact character set. Possible values include: + 'NotSpecified', 'UNOB', 'UNOA', 'UNOC', 'UNOD', 'UNOE', 'UNOF', 'UNOG', 'UNOH', 'UNOI', 'UNOJ', + 'UNOK', 'UNOX', 'UNOY', 'KECA'. + :type character_set: str or ~logic_management_client.models.EdifactCharacterSet + :param decimal_point_indicator: Required. The edifact decimal indicator. Possible values + include: 'NotSpecified', 'Comma', 'Decimal'. + :type decimal_point_indicator: str or ~logic_management_client.models.EdifactDecimalIndicator + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + """ + + _validation = { + 'protocol_version': {'required': True}, + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'release_indicator': {'required': True}, + 'repetition_separator': {'required': True}, + 'character_set': {'required': True}, + 'decimal_point_indicator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + } + + _attribute_map = { + 'service_code_list_directory_version': {'key': 'serviceCodeListDirectoryVersion', 'type': 'str'}, + 'character_encoding': {'key': 'characterEncoding', 'type': 'str'}, + 'protocol_version': {'key': 'protocolVersion', 'type': 'int'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, + 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, + 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'str'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + } + + def __init__( + self, + *, + protocol_version: int, + data_element_separator: int, + component_separator: int, + segment_terminator: int, + release_indicator: int, + repetition_separator: int, + character_set: Union[str, "EdifactCharacterSet"], + decimal_point_indicator: Union[str, "EdifactDecimalIndicator"], + segment_terminator_suffix: Union[str, "SegmentTerminatorSuffix"], + service_code_list_directory_version: Optional[str] = None, + character_encoding: Optional[str] = None, + **kwargs + ): + super(EdifactFramingSettings, self).__init__(**kwargs) + self.service_code_list_directory_version = service_code_list_directory_version + self.character_encoding = character_encoding + self.protocol_version = protocol_version + self.data_element_separator = data_element_separator + self.component_separator = component_separator + self.segment_terminator = segment_terminator + self.release_indicator = release_indicator + self.repetition_separator = repetition_separator + self.character_set = character_set + self.decimal_point_indicator = decimal_point_indicator + self.segment_terminator_suffix = segment_terminator_suffix + + +class EdifactMessageFilter(msrest.serialization.Model): + """The Edifact message filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param message_filter_type: Required. The message filter type. Possible values include: + 'NotSpecified', 'Include', 'Exclude'. + :type message_filter_type: str or ~logic_management_client.models.MessageFilterType + """ + + _validation = { + 'message_filter_type': {'required': True}, + } + + _attribute_map = { + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, + } + + def __init__( + self, + *, + message_filter_type: Union[str, "MessageFilterType"], + **kwargs + ): + super(EdifactMessageFilter, self).__init__(**kwargs) + self.message_filter_type = message_filter_type + + +class EdifactMessageIdentifier(msrest.serialization.Model): + """The Edifact message identifier. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which this envelope settings has to be applied. + :type message_id: str + """ + + _validation = { + 'message_id': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: str, + **kwargs + ): + super(EdifactMessageIdentifier, self).__init__(**kwargs) + self.message_id = message_id + + +class EdifactOneWayAgreement(msrest.serialization.Model): + """The Edifact one way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The Edifact agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.EdifactProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'EdifactProtocolSettings'}, + } + + def __init__( + self, + *, + sender_business_identity: "BusinessIdentity", + receiver_business_identity: "BusinessIdentity", + protocol_settings: "EdifactProtocolSettings", + **kwargs + ): + super(EdifactOneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = sender_business_identity + self.receiver_business_identity = receiver_business_identity + self.protocol_settings = protocol_settings + + +class EdifactProcessingSettings(msrest.serialization.Model): + """The Edifact agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param mask_security_info: Required. The value indicating whether to mask security information. + :type mask_security_info: bool + :param preserve_interchange: Required. The value indicating whether to preserve interchange. + :type preserve_interchange: bool + :param suspend_interchange_on_error: Required. The value indicating whether to suspend + interchange on error. + :type suspend_interchange_on_error: bool + :param create_empty_xml_tags_for_trailing_separators: Required. The value indicating whether to + create empty xml tags for trailing separators. + :type create_empty_xml_tags_for_trailing_separators: bool + :param use_dot_as_decimal_separator: Required. The value indicating whether to use dot as + decimal separator. + :type use_dot_as_decimal_separator: bool + """ + + _validation = { + 'mask_security_info': {'required': True}, + 'preserve_interchange': {'required': True}, + 'suspend_interchange_on_error': {'required': True}, + 'create_empty_xml_tags_for_trailing_separators': {'required': True}, + 'use_dot_as_decimal_separator': {'required': True}, + } + + _attribute_map = { + 'mask_security_info': {'key': 'maskSecurityInfo', 'type': 'bool'}, + 'preserve_interchange': {'key': 'preserveInterchange', 'type': 'bool'}, + 'suspend_interchange_on_error': {'key': 'suspendInterchangeOnError', 'type': 'bool'}, + 'create_empty_xml_tags_for_trailing_separators': {'key': 'createEmptyXmlTagsForTrailingSeparators', 'type': 'bool'}, + 'use_dot_as_decimal_separator': {'key': 'useDotAsDecimalSeparator', 'type': 'bool'}, + } + + def __init__( + self, + *, + mask_security_info: bool, + preserve_interchange: bool, + suspend_interchange_on_error: bool, + create_empty_xml_tags_for_trailing_separators: bool, + use_dot_as_decimal_separator: bool, + **kwargs + ): + super(EdifactProcessingSettings, self).__init__(**kwargs) + self.mask_security_info = mask_security_info + self.preserve_interchange = preserve_interchange + self.suspend_interchange_on_error = suspend_interchange_on_error + self.create_empty_xml_tags_for_trailing_separators = create_empty_xml_tags_for_trailing_separators + self.use_dot_as_decimal_separator = use_dot_as_decimal_separator + + +class EdifactProtocolSettings(msrest.serialization.Model): + """The Edifact agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param validation_settings: Required. The Edifact agreement validation settings. + :type validation_settings: ~logic_management_client.models.EdifactValidationSettings + :param framing_settings: Required. The Edifact agreement framing settings. + :type framing_settings: ~logic_management_client.models.EdifactFramingSettings + :param envelope_settings: Required. The Edifact agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.EdifactEnvelopeSettings + :param acknowledgement_settings: Required. The Edifact agreement acknowledgement settings. + :type acknowledgement_settings: ~logic_management_client.models.EdifactAcknowledgementSettings + :param message_filter: Required. The Edifact message filter for odata query. + :type message_filter: ~logic_management_client.models.EdifactMessageFilter + :param processing_settings: Required. The Edifact agreement protocol settings. + :type processing_settings: ~logic_management_client.models.EdifactProcessingSettings + :param envelope_overrides: The EDIFACT envelope override settings. + :type envelope_overrides: list[~logic_management_client.models.EdifactEnvelopeOverride] + :param message_filter_list: The EDIFACT message filter list. + :type message_filter_list: list[~logic_management_client.models.EdifactMessageIdentifier] + :param schema_references: Required. The EDIFACT schema references. + :type schema_references: list[~logic_management_client.models.EdifactSchemaReference] + :param validation_overrides: The EDIFACT validation override settings. + :type validation_overrides: list[~logic_management_client.models.EdifactValidationOverride] + :param edifact_delimiter_overrides: The EDIFACT delimiter override settings. + :type edifact_delimiter_overrides: + list[~logic_management_client.models.EdifactDelimiterOverride] + """ + + _validation = { + 'validation_settings': {'required': True}, + 'framing_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'acknowledgement_settings': {'required': True}, + 'message_filter': {'required': True}, + 'processing_settings': {'required': True}, + 'schema_references': {'required': True}, + } + + _attribute_map = { + 'validation_settings': {'key': 'validationSettings', 'type': 'EdifactValidationSettings'}, + 'framing_settings': {'key': 'framingSettings', 'type': 'EdifactFramingSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'EdifactEnvelopeSettings'}, + 'acknowledgement_settings': {'key': 'acknowledgementSettings', 'type': 'EdifactAcknowledgementSettings'}, + 'message_filter': {'key': 'messageFilter', 'type': 'EdifactMessageFilter'}, + 'processing_settings': {'key': 'processingSettings', 'type': 'EdifactProcessingSettings'}, + 'envelope_overrides': {'key': 'envelopeOverrides', 'type': '[EdifactEnvelopeOverride]'}, + 'message_filter_list': {'key': 'messageFilterList', 'type': '[EdifactMessageIdentifier]'}, + 'schema_references': {'key': 'schemaReferences', 'type': '[EdifactSchemaReference]'}, + 'validation_overrides': {'key': 'validationOverrides', 'type': '[EdifactValidationOverride]'}, + 'edifact_delimiter_overrides': {'key': 'edifactDelimiterOverrides', 'type': '[EdifactDelimiterOverride]'}, + } + + def __init__( + self, + *, + validation_settings: "EdifactValidationSettings", + framing_settings: "EdifactFramingSettings", + envelope_settings: "EdifactEnvelopeSettings", + acknowledgement_settings: "EdifactAcknowledgementSettings", + message_filter: "EdifactMessageFilter", + processing_settings: "EdifactProcessingSettings", + schema_references: List["EdifactSchemaReference"], + envelope_overrides: Optional[List["EdifactEnvelopeOverride"]] = None, + message_filter_list: Optional[List["EdifactMessageIdentifier"]] = None, + validation_overrides: Optional[List["EdifactValidationOverride"]] = None, + edifact_delimiter_overrides: Optional[List["EdifactDelimiterOverride"]] = None, + **kwargs + ): + super(EdifactProtocolSettings, self).__init__(**kwargs) + self.validation_settings = validation_settings + self.framing_settings = framing_settings + self.envelope_settings = envelope_settings + self.acknowledgement_settings = acknowledgement_settings + self.message_filter = message_filter + self.processing_settings = processing_settings + self.envelope_overrides = envelope_overrides + self.message_filter_list = message_filter_list + self.schema_references = schema_references + self.validation_overrides = validation_overrides + self.edifact_delimiter_overrides = edifact_delimiter_overrides + + +class EdifactSchemaReference(msrest.serialization.Model): + """The Edifact schema reference. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + :param message_version: Required. The message version. + :type message_version: str + :param message_release: Required. The message release version. + :type message_release: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param sender_application_qualifier: The sender application qualifier. + :type sender_application_qualifier: str + :param association_assigned_code: The association assigned code. + :type association_assigned_code: str + :param schema_name: Required. The schema name. + :type schema_name: str + """ + + _validation = { + 'message_id': {'required': True}, + 'message_version': {'required': True}, + 'message_release': {'required': True}, + 'schema_name': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'message_version': {'key': 'messageVersion', 'type': 'str'}, + 'message_release': {'key': 'messageRelease', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'sender_application_qualifier': {'key': 'senderApplicationQualifier', 'type': 'str'}, + 'association_assigned_code': {'key': 'associationAssignedCode', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: str, + message_version: str, + message_release: str, + schema_name: str, + sender_application_id: Optional[str] = None, + sender_application_qualifier: Optional[str] = None, + association_assigned_code: Optional[str] = None, + **kwargs + ): + super(EdifactSchemaReference, self).__init__(**kwargs) + self.message_id = message_id + self.message_version = message_version + self.message_release = message_release + self.sender_application_id = sender_application_id + self.sender_application_qualifier = sender_application_qualifier + self.association_assigned_code = association_assigned_code + self.schema_name = schema_name + + +class EdifactValidationOverride(msrest.serialization.Model): + """The Edifact validation override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which the validation settings has to be applied. + :type message_id: str + :param enforce_character_set: Required. The value indicating whether to validate character Set. + :type enforce_character_set: bool + :param validate_edi_types: Required. The value indicating whether to validate EDI types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to validate XSD types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + """ + + _validation = { + 'message_id': {'required': True}, + 'enforce_character_set': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'enforce_character_set': {'key': 'enforceCharacterSet', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + } + + def __init__( + self, + *, + message_id: str, + enforce_character_set: bool, + validate_edi_types: bool, + validate_xsd_types: bool, + allow_leading_and_trailing_spaces_and_zeroes: bool, + trailing_separator_policy: Union[str, "TrailingSeparatorPolicy"], + trim_leading_and_trailing_spaces_and_zeroes: bool, + **kwargs + ): + super(EdifactValidationOverride, self).__init__(**kwargs) + self.message_id = message_id + self.enforce_character_set = enforce_character_set + self.validate_edi_types = validate_edi_types + self.validate_xsd_types = validate_xsd_types + self.allow_leading_and_trailing_spaces_and_zeroes = allow_leading_and_trailing_spaces_and_zeroes + self.trailing_separator_policy = trailing_separator_policy + self.trim_leading_and_trailing_spaces_and_zeroes = trim_leading_and_trailing_spaces_and_zeroes + + +class EdifactValidationSettings(msrest.serialization.Model): + """The Edifact agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param validate_character_set: Required. The value indicating whether to validate character set + in the message. + :type validate_character_set: bool + :param check_duplicate_interchange_control_number: Required. The value indicating whether to + check for duplicate interchange control number. + :type check_duplicate_interchange_control_number: bool + :param interchange_control_number_validity_days: Required. The validity period of interchange + control number. + :type interchange_control_number_validity_days: int + :param check_duplicate_group_control_number: Required. The value indicating whether to check + for duplicate group control number. + :type check_duplicate_group_control_number: bool + :param check_duplicate_transaction_set_control_number: Required. The value indicating whether + to check for duplicate transaction set control number. + :type check_duplicate_transaction_set_control_number: bool + :param validate_edi_types: Required. The value indicating whether to Whether to validate EDI + types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to Whether to validate XSD + types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'validate_character_set': {'required': True}, + 'check_duplicate_interchange_control_number': {'required': True}, + 'interchange_control_number_validity_days': {'required': True}, + 'check_duplicate_group_control_number': {'required': True}, + 'check_duplicate_transaction_set_control_number': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'check_duplicate_interchange_control_number': {'key': 'checkDuplicateInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, + 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, + 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + *, + validate_character_set: bool, + check_duplicate_interchange_control_number: bool, + interchange_control_number_validity_days: int, + check_duplicate_group_control_number: bool, + check_duplicate_transaction_set_control_number: bool, + validate_edi_types: bool, + validate_xsd_types: bool, + allow_leading_and_trailing_spaces_and_zeroes: bool, + trim_leading_and_trailing_spaces_and_zeroes: bool, + trailing_separator_policy: Union[str, "TrailingSeparatorPolicy"], + **kwargs + ): + super(EdifactValidationSettings, self).__init__(**kwargs) + self.validate_character_set = validate_character_set + self.check_duplicate_interchange_control_number = check_duplicate_interchange_control_number + self.interchange_control_number_validity_days = interchange_control_number_validity_days + self.check_duplicate_group_control_number = check_duplicate_group_control_number + self.check_duplicate_transaction_set_control_number = check_duplicate_transaction_set_control_number + self.validate_edi_types = validate_edi_types + self.validate_xsd_types = validate_xsd_types + self.allow_leading_and_trailing_spaces_and_zeroes = allow_leading_and_trailing_spaces_and_zeroes + self.trim_leading_and_trailing_spaces_and_zeroes = trim_leading_and_trailing_spaces_and_zeroes + self.trailing_separator_policy = trailing_separator_policy + + +class ErrorProperties(msrest.serialization.Model): + """Error properties indicate why the Logic service was not able to process the incoming request. The reason is provided in the error message. + + :param code: Error code. + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + **kwargs + ): + super(ErrorProperties, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorResponseException(HttpResponseError): + """Server responded with exception of type: 'ErrorResponse'. + + :param response: Server response to be deserialized. + :param error_model: A deserialized model of the response body as model. + """ + + def __init__(self, response, error_model): + self.error = error_model + super(ErrorResponseException, self).__init__(response=response, error_model=error_model) + + @classmethod + def from_response(cls, response, deserialize): + """Deserialize this response as this exception, or a subclass of this exception. + + :param response: Server response to be deserialized. + :param deserialize: A deserializer + """ + model_name = 'ErrorResponse' + error = deserialize(model_name, response) + if error is None: + error = deserialize.dependencies[model_name]() + return error._EXCEPTION_TYPE(response, error) + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates Logic service is not able to process the incoming request. The error property contains the error details. + + :param error: Error properties indicate why the Logic service was not able to process the + incoming request. The reason is provided in the error message. + :type error: ~logic_management_client.models.ErrorProperties + """ + _EXCEPTION_TYPE = ErrorResponseException + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorProperties'}, + } + + def __init__( + self, + *, + error: Optional["ErrorProperties"] = None, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class Expression(msrest.serialization.Model): + """The expression. + + :param text: The text. + :type text: str + :param value: Any object. + :type value: object + :param subexpressions: The sub expressions. + :type subexpressions: list[~logic_management_client.models.Expression] + :param error: The azure resource error info. + :type error: ~logic_management_client.models.AzureResourceErrorInfo + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'subexpressions': {'key': 'subexpressions', 'type': '[Expression]'}, + 'error': {'key': 'error', 'type': 'AzureResourceErrorInfo'}, + } + + def __init__( + self, + *, + text: Optional[str] = None, + value: Optional[object] = None, + subexpressions: Optional[List["Expression"]] = None, + error: Optional["AzureResourceErrorInfo"] = None, + **kwargs + ): + super(Expression, self).__init__(**kwargs) + self.text = text + self.value = value + self.subexpressions = subexpressions + self.error = error + + +class ExpressionRoot(Expression): + """The expression root. + + :param text: The text. + :type text: str + :param value: Any object. + :type value: object + :param subexpressions: The sub expressions. + :type subexpressions: list[~logic_management_client.models.Expression] + :param error: The azure resource error info. + :type error: ~logic_management_client.models.AzureResourceErrorInfo + :param path: The path. + :type path: str + """ + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'object'}, + 'subexpressions': {'key': 'subexpressions', 'type': '[Expression]'}, + 'error': {'key': 'error', 'type': 'AzureResourceErrorInfo'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__( + self, + *, + text: Optional[str] = None, + value: Optional[object] = None, + subexpressions: Optional[List["Expression"]] = None, + error: Optional["AzureResourceErrorInfo"] = None, + path: Optional[str] = None, + **kwargs + ): + super(ExpressionRoot, self).__init__(text=text, value=value, subexpressions=subexpressions, error=error, **kwargs) + self.path = path + + +class ExpressionTraces(msrest.serialization.Model): + """The expression traces. + + :param inputs: + :type inputs: list[~logic_management_client.models.ExpressionRoot] + """ + + _attribute_map = { + 'inputs': {'key': 'inputs', 'type': '[ExpressionRoot]'}, + } + + def __init__( + self, + *, + inputs: Optional[List["ExpressionRoot"]] = None, + **kwargs + ): + super(ExpressionTraces, self).__init__(**kwargs) + self.inputs = inputs + + +class ExtendedErrorInfo(msrest.serialization.Model): + """The extended error info. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error response code. Possible values include: 'NotSpecified', + 'IntegrationServiceEnvironmentNotFound', 'InternalServerError', 'InvalidOperationId'. + :type code: str or ~logic_management_client.models.ErrorResponseCode + :param message: Required. The error message. + :type message: str + :param details: The error message details. + :type details: list[~logic_management_client.models.ExtendedErrorInfo] + :param inner_error: + :type inner_error: ~logic_management_client.models.Object + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ExtendedErrorInfo]'}, + 'inner_error': {'key': 'innerError', 'type': 'Object'}, + } + + def __init__( + self, + *, + code: Union[str, "ErrorResponseCode"], + message: str, + details: Optional[List["ExtendedErrorInfo"]] = None, + inner_error: Optional["Object"] = None, + **kwargs + ): + super(ExtendedErrorInfo, self).__init__(**kwargs) + self.code = code + self.message = message + self.details = details + self.inner_error = inner_error + + +class FlowAccessControlConfiguration(msrest.serialization.Model): + """The access control configuration. + + :param triggers: The access control configuration policy. + :type triggers: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param contents: The access control configuration policy. + :type contents: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param actions: The access control configuration policy. + :type actions: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + :param workflow_management: The access control configuration policy. + :type workflow_management: ~logic_management_client.models.FlowAccessControlConfigurationPolicy + """ + + _attribute_map = { + 'triggers': {'key': 'triggers', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'contents': {'key': 'contents', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'actions': {'key': 'actions', 'type': 'FlowAccessControlConfigurationPolicy'}, + 'workflow_management': {'key': 'workflowManagement', 'type': 'FlowAccessControlConfigurationPolicy'}, + } + + def __init__( + self, + *, + triggers: Optional["FlowAccessControlConfigurationPolicy"] = None, + contents: Optional["FlowAccessControlConfigurationPolicy"] = None, + actions: Optional["FlowAccessControlConfigurationPolicy"] = None, + workflow_management: Optional["FlowAccessControlConfigurationPolicy"] = None, + **kwargs + ): + super(FlowAccessControlConfiguration, self).__init__(**kwargs) + self.triggers = triggers + self.contents = contents + self.actions = actions + self.workflow_management = workflow_management + + +class FlowAccessControlConfigurationPolicy(msrest.serialization.Model): + """The access control configuration policy. + + :param allowed_caller_ip_addresses: The allowed caller IP address ranges. + :type allowed_caller_ip_addresses: list[~logic_management_client.models.IpAddressRange] + :param open_authentication_policies: AuthenticationPolicy of type Open. + :type open_authentication_policies: + ~logic_management_client.models.OpenAuthenticationAccessPolicies + """ + + _attribute_map = { + 'allowed_caller_ip_addresses': {'key': 'allowedCallerIpAddresses', 'type': '[IpAddressRange]'}, + 'open_authentication_policies': {'key': 'openAuthenticationPolicies', 'type': 'OpenAuthenticationAccessPolicies'}, + } + + def __init__( + self, + *, + allowed_caller_ip_addresses: Optional[List["IpAddressRange"]] = None, + open_authentication_policies: Optional["OpenAuthenticationAccessPolicies"] = None, + **kwargs + ): + super(FlowAccessControlConfigurationPolicy, self).__init__(**kwargs) + self.allowed_caller_ip_addresses = allowed_caller_ip_addresses + self.open_authentication_policies = open_authentication_policies + + +class FlowEndpoints(msrest.serialization.Model): + """The flow endpoints configuration. + + :param outgoing_ip_addresses: The outgoing ip address. + :type outgoing_ip_addresses: list[~logic_management_client.models.IpAddress] + :param access_endpoint_ip_addresses: The access endpoint ip address. + :type access_endpoint_ip_addresses: list[~logic_management_client.models.IpAddress] + """ + + _attribute_map = { + 'outgoing_ip_addresses': {'key': 'outgoingIpAddresses', 'type': '[IpAddress]'}, + 'access_endpoint_ip_addresses': {'key': 'accessEndpointIpAddresses', 'type': '[IpAddress]'}, + } + + def __init__( + self, + *, + outgoing_ip_addresses: Optional[List["IpAddress"]] = None, + access_endpoint_ip_addresses: Optional[List["IpAddress"]] = None, + **kwargs + ): + super(FlowEndpoints, self).__init__(**kwargs) + self.outgoing_ip_addresses = outgoing_ip_addresses + self.access_endpoint_ip_addresses = access_endpoint_ip_addresses + + +class FlowEndpointsConfiguration(msrest.serialization.Model): + """The endpoints configuration. + + :param workflow: The flow endpoints configuration. + :type workflow: ~logic_management_client.models.FlowEndpoints + :param connector: The flow endpoints configuration. + :type connector: ~logic_management_client.models.FlowEndpoints + """ + + _attribute_map = { + 'workflow': {'key': 'workflow', 'type': 'FlowEndpoints'}, + 'connector': {'key': 'connector', 'type': 'FlowEndpoints'}, + } + + def __init__( + self, + *, + workflow: Optional["FlowEndpoints"] = None, + connector: Optional["FlowEndpoints"] = None, + **kwargs + ): + super(FlowEndpointsConfiguration, self).__init__(**kwargs) + self.workflow = workflow + self.connector = connector + + +class GenerateUpgradedDefinitionParameters(msrest.serialization.Model): + """The parameters to generate upgraded definition. + + :param target_schema_version: The target schema version. + :type target_schema_version: str + """ + + _attribute_map = { + 'target_schema_version': {'key': 'targetSchemaVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + target_schema_version: Optional[str] = None, + **kwargs + ): + super(GenerateUpgradedDefinitionParameters, self).__init__(**kwargs) + self.target_schema_version = target_schema_version + + +class GetCallbackUrlParameters(msrest.serialization.Model): + """The callback url parameters. + + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. Possible values include: 'NotSpecified', 'Primary', 'Secondary'. + :type key_type: str or ~logic_management_client.models.KeyType + """ + + _attribute_map = { + 'not_after': {'key': 'notAfter', 'type': 'iso-8601'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__( + self, + *, + not_after: Optional[datetime.datetime] = None, + key_type: Optional[Union[str, "KeyType"]] = None, + **kwargs + ): + super(GetCallbackUrlParameters, self).__init__(**kwargs) + self.not_after = not_after + self.key_type = key_type + + +class IntegrationAccount(Resource): + """The integration account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: + ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'IntegrationAccountSku'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + sku: Optional["IntegrationAccountSku"] = None, + integration_service_environment: Optional["IntegrationServiceEnvironment"] = None, + state: Optional[Union[str, "WorkflowState"]] = None, + **kwargs + ): + super(IntegrationAccount, self).__init__(location=location, tags=tags, **kwargs) + self.sku = sku + self.integration_service_environment = integration_service_environment + self.state = state + + +class IntegrationAccountAgreement(Resource): + """The integration account agreement. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: Required. The integration account partner that is set as host partner for + this agreement. + :type host_partner: str + :param guest_partner: Required. The integration account partner that is set as guest partner + for this agreement. + :type guest_partner: str + :param host_identity: Required. The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: Required. The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: Required. The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'agreement_type': {'required': True}, + 'host_partner': {'required': True}, + 'guest_partner': {'required': True}, + 'host_identity': {'required': True}, + 'guest_identity': {'required': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountAgreementPropertiesMetadata'}, + 'agreement_type': {'key': 'properties.agreementType', 'type': 'str'}, + 'host_partner': {'key': 'properties.hostPartner', 'type': 'str'}, + 'guest_partner': {'key': 'properties.guestPartner', 'type': 'str'}, + 'host_identity': {'key': 'properties.hostIdentity', 'type': 'BusinessIdentity'}, + 'guest_identity': {'key': 'properties.guestIdentity', 'type': 'BusinessIdentity'}, + 'content': {'key': 'properties.content', 'type': 'AgreementContent'}, + } + + def __init__( + self, + *, + agreement_type: Union[str, "AgreementType"], + host_partner: str, + guest_partner: str, + host_identity: "BusinessIdentity", + guest_identity: "BusinessIdentity", + content: "AgreementContent", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["IntegrationAccountAgreementPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountAgreement, self).__init__(location=location, tags=tags, **kwargs) + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.agreement_type = agreement_type + self.host_partner = host_partner + self.guest_partner = guest_partner + self.host_identity = host_identity + self.guest_identity = guest_identity + self.content = content + + +class IntegrationAccountAgreementFilter(msrest.serialization.Model): + """The integration account agreement filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + """ + + _validation = { + 'agreement_type': {'required': True}, + } + + _attribute_map = { + 'agreement_type': {'key': 'agreementType', 'type': 'str'}, + } + + def __init__( + self, + *, + agreement_type: Union[str, "AgreementType"], + **kwargs + ): + super(IntegrationAccountAgreementFilter, self).__init__(**kwargs) + self.agreement_type = agreement_type + + +class IntegrationAccountAgreementListResult(msrest.serialization.Model): + """The list of integration account agreements. + + :param value: The list of integration account agreements. + :type value: list[~logic_management_client.models.IntegrationAccountAgreement] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountAgreement]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountAgreement"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountAgreementListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountAgreementProperties(msrest.serialization.Model): + """The integration account agreement properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :param agreement_type: Required. The agreement type. Possible values include: 'NotSpecified', + 'AS2', 'X12', 'Edifact'. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: Required. The integration account partner that is set as host partner for + this agreement. + :type host_partner: str + :param guest_partner: Required. The integration account partner that is set as guest partner + for this agreement. + :type guest_partner: str + :param host_identity: Required. The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: Required. The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: Required. The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'agreement_type': {'required': True}, + 'host_partner': {'required': True}, + 'guest_partner': {'required': True}, + 'host_identity': {'required': True}, + 'guest_identity': {'required': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountAgreementPropertiesMetadata'}, + 'agreement_type': {'key': 'agreementType', 'type': 'str'}, + 'host_partner': {'key': 'hostPartner', 'type': 'str'}, + 'guest_partner': {'key': 'guestPartner', 'type': 'str'}, + 'host_identity': {'key': 'hostIdentity', 'type': 'BusinessIdentity'}, + 'guest_identity': {'key': 'guestIdentity', 'type': 'BusinessIdentity'}, + 'content': {'key': 'content', 'type': 'AgreementContent'}, + } + + def __init__( + self, + *, + agreement_type: Union[str, "AgreementType"], + host_partner: str, + guest_partner: str, + host_identity: "BusinessIdentity", + guest_identity: "BusinessIdentity", + content: "AgreementContent", + metadata: Optional["IntegrationAccountAgreementPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountAgreementProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.agreement_type = agreement_type + self.host_partner = host_partner + self.guest_partner = guest_partner + self.host_identity = host_identity + self.guest_identity = guest_identity + self.content = content + + +class IntegrationAccountAgreementPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountAgreementPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountCertificate(Resource): + """The integration account certificate. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountCertificatePropertiesMetadata'}, + 'key': {'key': 'properties.key', 'type': 'KeyVaultKeyReference'}, + 'public_certificate': {'key': 'properties.publicCertificate', 'type': 'str'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["IntegrationAccountCertificatePropertiesMetadata"] = None, + key: Optional["KeyVaultKeyReference"] = None, + public_certificate: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountCertificate, self).__init__(location=location, tags=tags, **kwargs) + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.key = key + self.public_certificate = public_certificate + + +class IntegrationAccountCertificateListResult(msrest.serialization.Model): + """The list of integration account certificates. + + :param value: The list of integration account certificates. + :type value: list[~logic_management_client.models.IntegrationAccountCertificate] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountCertificate]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountCertificate"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountCertificateListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountCertificateProperties(msrest.serialization.Model): + """The integration account certificate properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountCertificatePropertiesMetadata'}, + 'key': {'key': 'key', 'type': 'KeyVaultKeyReference'}, + 'public_certificate': {'key': 'publicCertificate', 'type': 'str'}, + } + + def __init__( + self, + *, + metadata: Optional["IntegrationAccountCertificatePropertiesMetadata"] = None, + key: Optional["KeyVaultKeyReference"] = None, + public_certificate: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountCertificateProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.key = key + self.public_certificate = public_certificate + + +class IntegrationAccountCertificatePropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountCertificatePropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountListResult(msrest.serialization.Model): + """The list of integration accounts. + + :param value: The list of integration accounts. + :type value: list[~logic_management_client.models.IntegrationAccount] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccount]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccount"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountMap(Resource): + """The integration account map. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: + ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'map_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'map_type': {'key': 'properties.mapType', 'type': 'str'}, + 'parameters_schema': {'key': 'properties.parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'properties.content', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountMapPropertiesMetadata'}, + } + + def __init__( + self, + *, + map_type: Union[str, "MapType"], + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + parameters_schema: Optional["IntegrationAccountMapPropertiesParametersSchema"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + metadata: Optional["IntegrationAccountMapPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountMap, self).__init__(location=location, tags=tags, **kwargs) + self.map_type = map_type + self.parameters_schema = parameters_schema + self.created_time = None + self.changed_time = None + self.content = content + self.content_type = content_type + self.content_link = None + self.metadata = metadata + + +class IntegrationAccountMapFilter(msrest.serialization.Model): + """The integration account map filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + """ + + _validation = { + 'map_type': {'required': True}, + } + + _attribute_map = { + 'map_type': {'key': 'mapType', 'type': 'str'}, + } + + def __init__( + self, + *, + map_type: Union[str, "MapType"], + **kwargs + ): + super(IntegrationAccountMapFilter, self).__init__(**kwargs) + self.map_type = map_type + + +class IntegrationAccountMapListResult(msrest.serialization.Model): + """The list of integration account maps. + + :param value: The list of integration account maps. + :type value: list[~logic_management_client.models.IntegrationAccountMap] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountMap]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountMap"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountMapListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountMapProperties(msrest.serialization.Model): + """The integration account map. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param map_type: Required. The map type. Possible values include: 'NotSpecified', 'Xslt', + 'Xslt20', 'Xslt30', 'Liquid'. + :type map_type: str or ~logic_management_client.models.MapType + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: + ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + """ + + _validation = { + 'map_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'map_type': {'key': 'mapType', 'type': 'str'}, + 'parameters_schema': {'key': 'parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountMapPropertiesMetadata'}, + } + + def __init__( + self, + *, + map_type: Union[str, "MapType"], + parameters_schema: Optional["IntegrationAccountMapPropertiesParametersSchema"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + metadata: Optional["IntegrationAccountMapPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountMapProperties, self).__init__(**kwargs) + self.map_type = map_type + self.parameters_schema = parameters_schema + self.created_time = None + self.changed_time = None + self.content = content + self.content_type = content_type + self.content_link = None + self.metadata = metadata + + +class IntegrationAccountMapPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountMapPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountMapPropertiesParametersSchema(msrest.serialization.Model): + """The parameters schema of integration account map. + + :param ref: The reference name. + :type ref: str + """ + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + *, + ref: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountMapPropertiesParametersSchema, self).__init__(**kwargs) + self.ref = ref + + +class IntegrationAccountPartner(Resource): + """The integration account partner. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :param content: Required. The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'partner_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'partner_type': {'key': 'properties.partnerType', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountPartnerPropertiesMetadata'}, + 'content': {'key': 'properties.content', 'type': 'PartnerContent'}, + } + + def __init__( + self, + *, + partner_type: Union[str, "PartnerType"], + content: "PartnerContent", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + metadata: Optional["IntegrationAccountPartnerPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountPartner, self).__init__(location=location, tags=tags, **kwargs) + self.partner_type = partner_type + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.content = content + + +class IntegrationAccountPartnerFilter(msrest.serialization.Model): + """The integration account partner filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + """ + + _validation = { + 'partner_type': {'required': True}, + } + + _attribute_map = { + 'partner_type': {'key': 'partnerType', 'type': 'str'}, + } + + def __init__( + self, + *, + partner_type: Union[str, "PartnerType"], + **kwargs + ): + super(IntegrationAccountPartnerFilter, self).__init__(**kwargs) + self.partner_type = partner_type + + +class IntegrationAccountPartnerListResult(msrest.serialization.Model): + """The list of integration account partners. + + :param value: The list of integration account partners. + :type value: list[~logic_management_client.models.IntegrationAccountPartner] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountPartner]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountPartner"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountPartnerListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountPartnerProperties(msrest.serialization.Model): + """The integration account partner properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param partner_type: Required. The partner type. Possible values include: 'NotSpecified', + 'B2B'. + :type partner_type: str or ~logic_management_client.models.PartnerType + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :param content: Required. The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + """ + + _validation = { + 'partner_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content': {'required': True}, + } + + _attribute_map = { + 'partner_type': {'key': 'partnerType', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountPartnerPropertiesMetadata'}, + 'content': {'key': 'content', 'type': 'PartnerContent'}, + } + + def __init__( + self, + *, + partner_type: Union[str, "PartnerType"], + content: "PartnerContent", + metadata: Optional["IntegrationAccountPartnerPropertiesMetadata"] = None, + **kwargs + ): + super(IntegrationAccountPartnerProperties, self).__init__(**kwargs) + self.partner_type = partner_type + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.content = content + + +class IntegrationAccountPartnerPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountPartnerPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountProperties(msrest.serialization.Model): + """The integration account properties. + + :param integration_service_environment: The integration service environment. + :type integration_service_environment: + ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + *, + integration_service_environment: Optional["IntegrationServiceEnvironment"] = None, + state: Optional[Union[str, "WorkflowState"]] = None, + **kwargs + ): + super(IntegrationAccountProperties, self).__init__(**kwargs) + self.integration_service_environment = integration_service_environment + self.state = state + + +class IntegrationAccountSchema(Resource): + """The integration account schema. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'schema_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, + 'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'}, + 'document_name': {'key': 'properties.documentName', 'type': 'str'}, + 'file_name': {'key': 'properties.fileName', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'properties.metadata', 'type': 'IntegrationAccountSchemaPropertiesMetadata'}, + 'content': {'key': 'properties.content', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + *, + schema_type: Union[str, "SchemaType"], + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + target_namespace: Optional[str] = None, + document_name: Optional[str] = None, + file_name: Optional[str] = None, + metadata: Optional["IntegrationAccountSchemaPropertiesMetadata"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountSchema, self).__init__(location=location, tags=tags, **kwargs) + self.schema_type = schema_type + self.target_namespace = target_namespace + self.document_name = document_name + self.file_name = file_name + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.content = content + self.content_type = content_type + self.content_link = None + + +class IntegrationAccountSchemaFilter(msrest.serialization.Model): + """The integration account schema filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + """ + + _validation = { + 'schema_type': {'required': True}, + } + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + } + + def __init__( + self, + *, + schema_type: Union[str, "SchemaType"], + **kwargs + ): + super(IntegrationAccountSchemaFilter, self).__init__(**kwargs) + self.schema_type = schema_type + + +class IntegrationAccountSchemaListResult(msrest.serialization.Model): + """The list of integration account schemas. + + :param value: The list of integration account schemas. + :type value: list[~logic_management_client.models.IntegrationAccountSchema] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountSchema]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountSchema"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountSchemaListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountSchemaProperties(msrest.serialization.Model): + """The integration account schema properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param schema_type: Required. The schema type. Possible values include: 'NotSpecified', 'Xml'. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :ivar content_link: The content link. + :vartype content_link: ~logic_management_client.models.ContentLink + """ + + _validation = { + 'schema_type': {'required': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'content_link': {'readonly': True}, + } + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'document_name': {'key': 'documentName', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'metadata': {'key': 'metadata', 'type': 'IntegrationAccountSchemaPropertiesMetadata'}, + 'content': {'key': 'content', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_link': {'key': 'contentLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + *, + schema_type: Union[str, "SchemaType"], + target_namespace: Optional[str] = None, + document_name: Optional[str] = None, + file_name: Optional[str] = None, + metadata: Optional["IntegrationAccountSchemaPropertiesMetadata"] = None, + content: Optional[str] = None, + content_type: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountSchemaProperties, self).__init__(**kwargs) + self.schema_type = schema_type + self.target_namespace = target_namespace + self.document_name = document_name + self.file_name = file_name + self.created_time = None + self.changed_time = None + self.metadata = metadata + self.content = content + self.content_type = content_type + self.content_link = None + + +class IntegrationAccountSchemaPropertiesMetadata(msrest.serialization.Model): + """The metadata. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(IntegrationAccountSchemaPropertiesMetadata, self).__init__(**kwargs) + + +class IntegrationAccountSession(Resource): + """The integration account session. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: + :type content: ~logic_management_client.models.Object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'properties.content', 'type': 'Object'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + content: Optional["Object"] = None, + **kwargs + ): + super(IntegrationAccountSession, self).__init__(location=location, tags=tags, **kwargs) + self.created_time = None + self.changed_time = None + self.content = content + + +class IntegrationAccountSessionFilter(msrest.serialization.Model): + """The integration account session filter. + + All required parameters must be populated in order to send to Azure. + + :param changed_time: Required. The changed time of integration account sessions. + :type changed_time: ~datetime.datetime + """ + + _validation = { + 'changed_time': {'required': True}, + } + + _attribute_map = { + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + changed_time: datetime.datetime, + **kwargs + ): + super(IntegrationAccountSessionFilter, self).__init__(**kwargs) + self.changed_time = changed_time + + +class IntegrationAccountSessionListResult(msrest.serialization.Model): + """The list of integration account sessions. + + :param value: The list of integration account sessions. + :type value: list[~logic_management_client.models.IntegrationAccountSession] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationAccountSession]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationAccountSession"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationAccountSessionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationAccountSessionProperties(msrest.serialization.Model): + """The integration account session properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_time: The created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: The changed time. + :vartype changed_time: ~datetime.datetime + :param content: + :type content: ~logic_management_client.models.Object + """ + + _validation = { + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + } + + _attribute_map = { + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'content': {'key': 'content', 'type': 'Object'}, + } + + def __init__( + self, + *, + content: Optional["Object"] = None, + **kwargs + ): + super(IntegrationAccountSessionProperties, self).__init__(**kwargs) + self.created_time = None + self.changed_time = None + self.content = content + + +class IntegrationAccountSku(msrest.serialization.Model): + """The integration account sku. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The integration account sku name. Possible values include: + 'NotSpecified', 'Free', 'Basic', 'Standard'. + :type name: str or ~logic_management_client.models.IntegrationAccountSkuName + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Union[str, "IntegrationAccountSkuName"], + **kwargs + ): + super(IntegrationAccountSku, self).__init__(**kwargs) + self.name = name + + +class IntegrationServiceEnvironment(Resource): + """The integration service environment. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'IntegrationServiceEnvironmentProperties'}, + 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSku'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["IntegrationServiceEnvironmentProperties"] = None, + sku: Optional["IntegrationServiceEnvironmentSku"] = None, + **kwargs + ): + super(IntegrationServiceEnvironment, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + self.sku = sku + + +class IntegrationServiceEnvironmentAccessEndpoint(msrest.serialization.Model): + """The integration service environment access endpoint. + + :param type: The integration service environment access endpoint type. Possible values include: + 'NotSpecified', 'External', 'Internal'. + :type type: str or + ~logic_management_client.models.IntegrationServiceEnvironmentAccessEndpointType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "IntegrationServiceEnvironmentAccessEndpointType"]] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentAccessEndpoint, self).__init__(**kwargs) + self.type = type + + +class IntegrationServiceEnvironmentListResult(msrest.serialization.Model): + """The list of integration service environments. + + :param value: + :type value: list[~logic_management_client.models.IntegrationServiceEnvironment] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironment]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationServiceEnvironment"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationServiceEnvironmentNetworkDependency(msrest.serialization.Model): + """The azure async operation resource. + + :param category: The integration service environment network dependency category type. Possible + values include: 'NotSpecified', 'AzureStorage', 'AzureManagement', 'AzureActiveDirectory', + 'SSLCertificateVerification', 'DiagnosticLogsAndMetrics', + 'IntegrationServiceEnvironmentConnectors', 'RedisCache', 'AccessEndpoints', 'RecoveryService', + 'SQL', 'RegionalService'. + :type category: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyCategoryType + :param display_name: The display name. + :type display_name: str + :param endpoints: The endpoints. + :type endpoints: + list[~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndpoint] + """ + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[IntegrationServiceEnvironmentNetworkEndpoint]'}, + } + + def __init__( + self, + *, + category: Optional[Union[str, "IntegrationServiceEnvironmentNetworkDependencyCategoryType"]] = None, + display_name: Optional[str] = None, + endpoints: Optional[List["IntegrationServiceEnvironmentNetworkEndpoint"]] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkDependency, self).__init__(**kwargs) + self.category = category + self.display_name = display_name + self.endpoints = endpoints + + +class IntegrationServiceEnvironmentNetworkDependencyHealth(msrest.serialization.Model): + """The integration service environment subnet network health. + + :param error: The extended error info. + :type error: ~logic_management_client.models.ExtendedErrorInfo + :param state: The integration service environment network dependency health state. Possible + values include: 'NotSpecified', 'Healthy', 'Unhealthy', 'Unknown'. + :type state: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyHealthState + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ExtendedErrorInfo'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + *, + error: Optional["ExtendedErrorInfo"] = None, + state: Optional[Union[str, "IntegrationServiceEnvironmentNetworkDependencyHealthState"]] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkDependencyHealth, self).__init__(**kwargs) + self.error = error + self.state = state + + +class IntegrationServiceEnvironmentNetworkEndpoint(msrest.serialization.Model): + """The network endpoint. + + :param accessibility: The integration service environment network endpoint accessibility state. + Possible values include: 'NotSpecified', 'Unknown', 'Available', 'NotAvailable'. + :type accessibility: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndPointAccessibilityState + :param domain_name: The domain name. + :type domain_name: str + :param ports: The ports. + :type ports: list[str] + """ + + _attribute_map = { + 'accessibility': {'key': 'accessibility', 'type': 'str'}, + 'domain_name': {'key': 'domainName', 'type': 'str'}, + 'ports': {'key': 'ports', 'type': '[str]'}, + } + + def __init__( + self, + *, + accessibility: Optional[Union[str, "IntegrationServiceEnvironmentNetworkEndPointAccessibilityState"]] = None, + domain_name: Optional[str] = None, + ports: Optional[List[str]] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentNetworkEndpoint, self).__init__(**kwargs) + self.accessibility = accessibility + self.domain_name = domain_name + self.ports = ports + + +class IntegrationServiceEnvironmentProperties(msrest.serialization.Model): + """The integration service environment properties. + + :param provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :type provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :param integration_service_environment_id: Gets the tracking id. + :type integration_service_environment_id: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param network_configuration: The network configuration. + :type network_configuration: ~logic_management_client.models.NetworkConfiguration + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'integration_service_environment_id': {'key': 'integrationServiceEnvironmentId', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'network_configuration': {'key': 'networkConfiguration', 'type': 'NetworkConfiguration'}, + } + + def __init__( + self, + *, + provisioning_state: Optional[Union[str, "WorkflowProvisioningState"]] = None, + state: Optional[Union[str, "WorkflowState"]] = None, + integration_service_environment_id: Optional[str] = None, + endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, + network_configuration: Optional["NetworkConfiguration"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentProperties, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + self.state = state + self.integration_service_environment_id = integration_service_environment_id + self.endpoints_configuration = endpoints_configuration + self.network_configuration = network_configuration + + +class IntegrationServiceEnvironmentSku(msrest.serialization.Model): + """The integration service environment sku. + + :param name: The integration service environment sku name. Possible values include: + 'NotSpecified', 'Premium', 'Developer'. + :type name: str or ~logic_management_client.models.IntegrationServiceEnvironmentSkuName + :param capacity: The sku capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__( + self, + *, + name: Optional[Union[str, "IntegrationServiceEnvironmentSkuName"]] = None, + capacity: Optional[int] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSku, self).__init__(**kwargs) + self.name = name + self.capacity = capacity + + +class IntegrationServiceEnvironmentSkuCapacity(msrest.serialization.Model): + """The integration service environment sku capacity. + + :param minimum: The minimum capacity. + :type minimum: int + :param maximum: The maximum capacity. + :type maximum: int + :param default: The default capacity. + :type default: int + :param scale_type: The integration service environment sku scale type. Possible values include: + 'Manual', 'Automatic', 'None'. + :type scale_type: str or + ~logic_management_client.models.IntegrationServiceEnvironmentSkuScaleType + """ + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__( + self, + *, + minimum: Optional[int] = None, + maximum: Optional[int] = None, + default: Optional[int] = None, + scale_type: Optional[Union[str, "IntegrationServiceEnvironmentSkuScaleType"]] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuCapacity, self).__init__(**kwargs) + self.minimum = minimum + self.maximum = maximum + self.default = default + self.scale_type = scale_type + + +class IntegrationServiceEnvironmentSkuDefinition(msrest.serialization.Model): + """The integration service environment sku definition. + + :param resource_type: The resource type. + :type resource_type: str + :param sku: The sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSkuDefinitionSku + :param capacity: The integration service environment sku capacity. + :type capacity: ~logic_management_client.models.IntegrationServiceEnvironmentSkuCapacity + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSkuDefinitionSku'}, + 'capacity': {'key': 'capacity', 'type': 'IntegrationServiceEnvironmentSkuCapacity'}, + } + + def __init__( + self, + *, + resource_type: Optional[str] = None, + sku: Optional["IntegrationServiceEnvironmentSkuDefinitionSku"] = None, + capacity: Optional["IntegrationServiceEnvironmentSkuCapacity"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuDefinition, self).__init__(**kwargs) + self.resource_type = resource_type + self.sku = sku + self.capacity = capacity + + +class IntegrationServiceEnvironmentSkuDefinitionSku(msrest.serialization.Model): + """The sku. + + :param name: The integration service environment sku name. Possible values include: + 'NotSpecified', 'Premium', 'Developer'. + :type name: str or ~logic_management_client.models.IntegrationServiceEnvironmentSkuName + :param tier: The sku tier. + :type tier: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[Union[str, "IntegrationServiceEnvironmentSkuName"]] = None, + tier: Optional[str] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuDefinitionSku, self).__init__(**kwargs) + self.name = name + self.tier = tier + + +class IntegrationServiceEnvironmentSkuList(msrest.serialization.Model): + """The list of integration service environment skus. + + :param value: The list of integration service environment skus. + :type value: list[~logic_management_client.models.IntegrationServiceEnvironmentSkuDefinition] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironmentSkuDefinition]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationServiceEnvironmentSkuDefinition"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSkuList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationServiceEnvironmentSubnetNetworkHealth(msrest.serialization.Model): + """The integration service environment subnet network health. + + All required parameters must be populated in order to send to Azure. + + :param outbound_network_dependencies: The outbound network dependencies. + :type outbound_network_dependencies: + list[~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependency] + :param outbound_network_health: The integration service environment subnet network health. + :type outbound_network_health: + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkDependencyHealth + :param network_dependency_health_state: Required. The integration service environment network + endpoint accessibility state. Possible values include: 'NotSpecified', 'Unknown', 'Available', + 'NotAvailable'. + :type network_dependency_health_state: str or + ~logic_management_client.models.IntegrationServiceEnvironmentNetworkEndPointAccessibilityState + """ + + _validation = { + 'network_dependency_health_state': {'required': True}, + } + + _attribute_map = { + 'outbound_network_dependencies': {'key': 'outboundNetworkDependencies', 'type': '[IntegrationServiceEnvironmentNetworkDependency]'}, + 'outbound_network_health': {'key': 'outboundNetworkHealth', 'type': 'IntegrationServiceEnvironmentNetworkDependencyHealth'}, + 'network_dependency_health_state': {'key': 'networkDependencyHealthState', 'type': 'str'}, + } + + def __init__( + self, + *, + network_dependency_health_state: Union[str, "IntegrationServiceEnvironmentNetworkEndPointAccessibilityState"], + outbound_network_dependencies: Optional[List["IntegrationServiceEnvironmentNetworkDependency"]] = None, + outbound_network_health: Optional["IntegrationServiceEnvironmentNetworkDependencyHealth"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentSubnetNetworkHealth, self).__init__(**kwargs) + self.outbound_network_dependencies = outbound_network_dependencies + self.outbound_network_health = outbound_network_health + self.network_dependency_health_state = network_dependency_health_state + + +class IpAddress(msrest.serialization.Model): + """The ip address. + + :param address: The address. + :type address: str + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + } + + def __init__( + self, + *, + address: Optional[str] = None, + **kwargs + ): + super(IpAddress, self).__init__(**kwargs) + self.address = address + + +class IpAddressRange(msrest.serialization.Model): + """The ip address range. + + :param address_range: The IP address range. + :type address_range: str + """ + + _attribute_map = { + 'address_range': {'key': 'addressRange', 'type': 'str'}, + } + + def __init__( + self, + *, + address_range: Optional[str] = None, + **kwargs + ): + super(IpAddressRange, self).__init__(**kwargs) + self.address_range = address_range + + +class JsonSchema(msrest.serialization.Model): + """The JSON schema. + + :param title: The JSON title. + :type title: str + :param content: The JSON content. + :type content: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'str'}, + } + + def __init__( + self, + *, + title: Optional[str] = None, + content: Optional[str] = None, + **kwargs + ): + super(JsonSchema, self).__init__(**kwargs) + self.title = title + self.content = content + + +class KeyVaultKey(msrest.serialization.Model): + """The key vault key. + + :param kid: The key id. + :type kid: str + :param attributes: The key attributes. + :type attributes: ~logic_management_client.models.KeyVaultKeyAttributes + """ + + _attribute_map = { + 'kid': {'key': 'kid', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'KeyVaultKeyAttributes'}, + } + + def __init__( + self, + *, + kid: Optional[str] = None, + attributes: Optional["KeyVaultKeyAttributes"] = None, + **kwargs + ): + super(KeyVaultKey, self).__init__(**kwargs) + self.kid = kid + self.attributes = attributes + + +class KeyVaultKeyAttributes(msrest.serialization.Model): + """The key attributes. + + :param enabled: Whether the key is enabled or not. + :type enabled: bool + :param created: When the key was created. + :type created: long + :param updated: When the key was updated. + :type updated: long + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'created': {'key': 'created', 'type': 'long'}, + 'updated': {'key': 'updated', 'type': 'long'}, + } + + def __init__( + self, + *, + enabled: Optional[bool] = None, + created: Optional[int] = None, + updated: Optional[int] = None, + **kwargs + ): + super(KeyVaultKeyAttributes, self).__init__(**kwargs) + self.enabled = enabled + self.created = created + self.updated = updated + + +class KeyVaultKeyCollection(msrest.serialization.Model): + """Collection of key vault keys. + + :param value: The key vault keys. + :type value: list[~logic_management_client.models.KeyVaultKey] + :param skip_token: The skip token. + :type skip_token: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyVaultKey]'}, + 'skip_token': {'key': 'skipToken', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["KeyVaultKey"]] = None, + skip_token: Optional[str] = None, + **kwargs + ): + super(KeyVaultKeyCollection, self).__init__(**kwargs) + self.value = value + self.skip_token = skip_token + + +class KeyVaultKeyReference(msrest.serialization.Model): + """The reference to the key vault key. + + All required parameters must be populated in order to send to Azure. + + :param key_vault: Required. The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultKeyReferenceKeyVault + :param key_name: Required. The private key name in key vault. + :type key_name: str + :param key_version: The private key version in key vault. + :type key_version: str + """ + + _validation = { + 'key_vault': {'required': True}, + 'key_name': {'required': True}, + } + + _attribute_map = { + 'key_vault': {'key': 'keyVault', 'type': 'KeyVaultKeyReferenceKeyVault'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + key_vault: "KeyVaultKeyReferenceKeyVault", + key_name: str, + key_version: Optional[str] = None, + **kwargs + ): + super(KeyVaultKeyReference, self).__init__(**kwargs) + self.key_vault = key_vault + self.key_name = key_name + self.key_version = key_version + + +class KeyVaultKeyReferenceKeyVault(msrest.serialization.Model): + """The key vault reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(KeyVaultKeyReferenceKeyVault, self).__init__(**kwargs) + self.id = id + self.name = None + self.type = None + + +class KeyVaultReference(ResourceReference): + """The key vault reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(KeyVaultReference, self).__init__(id=id, **kwargs) + + +class ListKeyVaultKeysDefinition(msrest.serialization.Model): + """The list key vault keys definition. + + All required parameters must be populated in order to send to Azure. + + :param key_vault: Required. The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultReference + :param skip_token: The skip token. + :type skip_token: str + """ + + _validation = { + 'key_vault': {'required': True}, + } + + _attribute_map = { + 'key_vault': {'key': 'keyVault', 'type': 'KeyVaultReference'}, + 'skip_token': {'key': 'skipToken', 'type': 'str'}, + } + + def __init__( + self, + *, + key_vault: "KeyVaultReference", + skip_token: Optional[str] = None, + **kwargs + ): + super(ListKeyVaultKeysDefinition, self).__init__(**kwargs) + self.key_vault = key_vault + self.skip_token = skip_token + + +class ManagedApi(Resource): + """The managed api definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The API resource properties. + :type properties: ~logic_management_client.models.ApiResourceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApiResourceProperties'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["ApiResourceProperties"] = None, + **kwargs + ): + super(ManagedApi, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + + +class ManagedApiListResult(msrest.serialization.Model): + """The list of managed APIs. + + :param value: The managed APIs. + :type value: list[~logic_management_client.models.ManagedApi] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ManagedApi]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["ManagedApi"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(ManagedApiListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class NetworkConfiguration(msrest.serialization.Model): + """The network configuration. + + :param virtual_network_address_space: Gets the virtual network address space. + :type virtual_network_address_space: str + :param access_endpoint: The integration service environment access endpoint. + :type access_endpoint: + ~logic_management_client.models.IntegrationServiceEnvironmentAccessEndpoint + :param subnets: The subnets. + :type subnets: list[~logic_management_client.models.ResourceReference] + """ + + _attribute_map = { + 'virtual_network_address_space': {'key': 'virtualNetworkAddressSpace', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'IntegrationServiceEnvironmentAccessEndpoint'}, + 'subnets': {'key': 'subnets', 'type': '[ResourceReference]'}, + } + + def __init__( + self, + *, + virtual_network_address_space: Optional[str] = None, + access_endpoint: Optional["IntegrationServiceEnvironmentAccessEndpoint"] = None, + subnets: Optional[List["ResourceReference"]] = None, + **kwargs + ): + super(NetworkConfiguration, self).__init__(**kwargs) + self.virtual_network_address_space = virtual_network_address_space + self.access_endpoint = access_endpoint + self.subnets = subnets + + +class Object(msrest.serialization.Model): + """Object. + + """ + + _attribute_map = { + } + + def __init__( + self, + **kwargs + ): + super(Object, self).__init__(**kwargs) + + +class OpenAuthenticationAccessPolicies(msrest.serialization.Model): + """AuthenticationPolicy of type Open. + + :param policies: Open authentication policies. + :type policies: dict[str, ~logic_management_client.models.OpenAuthenticationAccessPolicy] + """ + + _attribute_map = { + 'policies': {'key': 'policies', 'type': '{OpenAuthenticationAccessPolicy}'}, + } + + def __init__( + self, + *, + policies: Optional[Dict[str, "OpenAuthenticationAccessPolicy"]] = None, + **kwargs + ): + super(OpenAuthenticationAccessPolicies, self).__init__(**kwargs) + self.policies = policies + + +class OpenAuthenticationAccessPolicy(msrest.serialization.Model): + """Open authentication access policy defined by user. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: Open authentication policy provider type. Default value: "AAD". + :vartype type: str + :param claims: The access policy claims. + :type claims: list[~logic_management_client.models.OpenAuthenticationPolicyClaim] + """ + + _validation = { + 'type': {'readonly': True, 'constant': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'claims': {'key': 'claims', 'type': '[OpenAuthenticationPolicyClaim]'}, + } + + type = "AAD" + + def __init__( + self, + *, + claims: Optional[List["OpenAuthenticationPolicyClaim"]] = None, + **kwargs + ): + super(OpenAuthenticationAccessPolicy, self).__init__(**kwargs) + self.type = None + self.claims = claims + + +class OpenAuthenticationPolicyClaim(msrest.serialization.Model): + """Open authentication policy claim. + + :param name: The name of the claim. + :type name: str + :param value: The value of the claim. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + **kwargs + ): + super(OpenAuthenticationPolicyClaim, self).__init__(**kwargs) + self.name = name + self.value = value + + +class Operation(msrest.serialization.Model): + """Logic REST API operation. + + :param origin: Operation: origin. + :type origin: str + :param name: Operation name: {provider}/{resource}/{operation}. + :type name: str + :param display: The object that represents the operation. + :type display: ~logic_management_client.models.OperationDisplay + """ + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + *, + origin: Optional[str] = None, + name: Optional[str] = None, + display: Optional["OperationDisplay"] = None, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.origin = origin + self.name = name + self.display = display + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Logic. + :type provider: str + :param resource: Resource on which the operation is performed: Profile, endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Operation: description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationListResult(msrest.serialization.Model): + """Result of the request to list Logic operations. It contains a list of operations and a URL link to get the next set of results. + + :param value: List of Logic operations supported by the Logic resource provider. + :type value: list[~logic_management_client.models.Operation] + :param next_link: URL to get the next set of operation list results if there are any. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["Operation"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class OperationResultProperties(msrest.serialization.Model): + """The run operation result properties. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + } + + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + correlation: Optional["RunActionCorrelation"] = None, + status: Optional[Union[str, "WorkflowStatus"]] = None, + code: Optional[str] = None, + error: Optional[object] = None, + **kwargs + ): + super(OperationResultProperties, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + self.correlation = correlation + self.status = status + self.code = code + self.error = error + + +class OperationResult(OperationResultProperties): + """The operation result definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + """ + + _validation = { + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'iterationCount', 'type': 'int'}, + } + + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + correlation: Optional["RunActionCorrelation"] = None, + status: Optional[Union[str, "WorkflowStatus"]] = None, + code: Optional[str] = None, + error: Optional[object] = None, + retry_history: Optional[List["RetryHistory"]] = None, + iteration_count: Optional[int] = None, + **kwargs + ): + super(OperationResult, self).__init__(start_time=start_time, end_time=end_time, correlation=correlation, status=status, code=code, error=error, **kwargs) + self.tracking_id = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = retry_history + self.iteration_count = iteration_count + + +class PartnerContent(msrest.serialization.Model): + """The integration account partner content. + + :param b2_b: The B2B partner content. + :type b2_b: ~logic_management_client.models.B2BPartnerContent + """ + + _attribute_map = { + 'b2_b': {'key': 'b2b', 'type': 'B2BPartnerContent'}, + } + + def __init__( + self, + *, + b2_b: Optional["B2BPartnerContent"] = None, + **kwargs + ): + super(PartnerContent, self).__init__(**kwargs) + self.b2_b = b2_b + + +class RecurrenceSchedule(msrest.serialization.Model): + """The recurrence schedule. + + :param minutes: The minutes. + :type minutes: list[int] + :param hours: The hours. + :type hours: list[int] + :param week_days: The days of the week. + :type week_days: list[str or ~logic_management_client.models.DaysOfWeek] + :param month_days: The month days. + :type month_days: list[int] + :param monthly_occurrences: The monthly occurrences. + :type monthly_occurrences: list[~logic_management_client.models.RecurrenceScheduleOccurrence] + """ + + _attribute_map = { + 'minutes': {'key': 'minutes', 'type': '[int]'}, + 'hours': {'key': 'hours', 'type': '[int]'}, + 'week_days': {'key': 'weekDays', 'type': '[str]'}, + 'month_days': {'key': 'monthDays', 'type': '[int]'}, + 'monthly_occurrences': {'key': 'monthlyOccurrences', 'type': '[RecurrenceScheduleOccurrence]'}, + } + + def __init__( + self, + *, + minutes: Optional[List[int]] = None, + hours: Optional[List[int]] = None, + week_days: Optional[List[Union[str, "DaysOfWeek"]]] = None, + month_days: Optional[List[int]] = None, + monthly_occurrences: Optional[List["RecurrenceScheduleOccurrence"]] = None, + **kwargs + ): + super(RecurrenceSchedule, self).__init__(**kwargs) + self.minutes = minutes + self.hours = hours + self.week_days = week_days + self.month_days = month_days + self.monthly_occurrences = monthly_occurrences + + +class RecurrenceScheduleOccurrence(msrest.serialization.Model): + """The recurrence schedule occurrence. + + :param day: The day of the week. Possible values include: 'Sunday', 'Monday', 'Tuesday', + 'Wednesday', 'Thursday', 'Friday', 'Saturday'. + :type day: str or ~logic_management_client.models.DayOfWeek + :param occurrence: The occurrence. + :type occurrence: int + """ + + _attribute_map = { + 'day': {'key': 'day', 'type': 'str'}, + 'occurrence': {'key': 'occurrence', 'type': 'int'}, + } + + def __init__( + self, + *, + day: Optional[Union[str, "DayOfWeek"]] = None, + occurrence: Optional[int] = None, + **kwargs + ): + super(RecurrenceScheduleOccurrence, self).__init__(**kwargs) + self.day = day + self.occurrence = occurrence + + +class RegenerateActionParameter(msrest.serialization.Model): + """The access key regenerate action content. + + :param key_type: The key type. Possible values include: 'NotSpecified', 'Primary', 'Secondary'. + :type key_type: str or ~logic_management_client.models.KeyType + """ + + _attribute_map = { + 'key_type': {'key': 'keyType', 'type': 'str'}, + } + + def __init__( + self, + *, + key_type: Optional[Union[str, "KeyType"]] = None, + **kwargs + ): + super(RegenerateActionParameter, self).__init__(**kwargs) + self.key_type = key_type + + +class RepetitionIndex(msrest.serialization.Model): + """The workflow run action repetition index. + + All required parameters must be populated in order to send to Azure. + + :param scope_name: The scope. + :type scope_name: str + :param item_index: Required. The index. + :type item_index: int + """ + + _validation = { + 'item_index': {'required': True}, + } + + _attribute_map = { + 'scope_name': {'key': 'scopeName', 'type': 'str'}, + 'item_index': {'key': 'itemIndex', 'type': 'int'}, + } + + def __init__( + self, + *, + item_index: int, + scope_name: Optional[str] = None, + **kwargs + ): + super(RepetitionIndex, self).__init__(**kwargs) + self.scope_name = scope_name + self.item_index = item_index + + +class Request(msrest.serialization.Model): + """A request. + + :param headers: + :type headers: ~logic_management_client.models.Object + :param uri: The destination for the request. + :type uri: str + :param method: The HTTP method used for the request. + :type method: str + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'Object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + } + + def __init__( + self, + *, + headers: Optional["Object"] = None, + uri: Optional[str] = None, + method: Optional[str] = None, + **kwargs + ): + super(Request, self).__init__(**kwargs) + self.headers = headers + self.uri = uri + self.method = method + + +class RequestHistory(Resource): + """The request history. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param properties: The request history. + :type properties: ~logic_management_client.models.RequestHistoryProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["RequestHistoryProperties"] = None, + **kwargs + ): + super(RequestHistory, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties + + +class RequestHistoryListResult(msrest.serialization.Model): + """The list of workflow request histories. + + :param value: A list of workflow request histories. + :type value: list[~logic_management_client.models.RequestHistory] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RequestHistory]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["RequestHistory"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(RequestHistoryListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class RequestHistoryProperties(msrest.serialization.Model): + """The request history. + + :param start_time: The time the request started. + :type start_time: ~datetime.datetime + :param end_time: The time the request ended. + :type end_time: ~datetime.datetime + :param request: A request. + :type request: ~logic_management_client.models.Request + :param response: A response. + :type response: ~logic_management_client.models.Response + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'Request'}, + 'response': {'key': 'response', 'type': 'Response'}, + } + + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + request: Optional["Request"] = None, + response: Optional["Response"] = None, + **kwargs + ): + super(RequestHistoryProperties, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + self.request = request + self.response = response + + +class Response(msrest.serialization.Model): + """A response. + + :param headers: + :type headers: ~logic_management_client.models.Object + :param status_code: The status code of the response. + :type status_code: int + :param body_link: The content link. + :type body_link: ~logic_management_client.models.ContentLink + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'Object'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'body_link': {'key': 'bodyLink', 'type': 'ContentLink'}, + } + + def __init__( + self, + *, + headers: Optional["Object"] = None, + status_code: Optional[int] = None, + body_link: Optional["ContentLink"] = None, + **kwargs + ): + super(Response, self).__init__(**kwargs) + self.headers = headers + self.status_code = status_code + self.body_link = body_link + + +class RetryHistory(msrest.serialization.Model): + """The retry history. + + :param start_time: Gets the start time. + :type start_time: ~datetime.datetime + :param end_time: Gets the end time. + :type end_time: ~datetime.datetime + :param code: Gets the status code. + :type code: str + :param client_request_id: Gets the client request Id. + :type client_request_id: str + :param service_request_id: Gets the service request Id. + :type service_request_id: str + :param error: Error response indicates Logic service is not able to process the incoming + request. The error property contains the error details. + :type error: ~logic_management_client.models.ErrorResponse + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'code': {'key': 'code', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ErrorResponse'}, + } + + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + code: Optional[str] = None, + client_request_id: Optional[str] = None, + service_request_id: Optional[str] = None, + error: Optional["ErrorResponse"] = None, + **kwargs + ): + super(RetryHistory, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + self.code = code + self.client_request_id = client_request_id + self.service_request_id = service_request_id + self.error = error + + +class RunCorrelation(msrest.serialization.Model): + """The correlation properties. + + :param client_tracking_id: The client tracking identifier. + :type client_tracking_id: str + :param client_keywords: The client keywords. + :type client_keywords: list[str] + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + 'client_keywords': {'key': 'clientKeywords', 'type': '[str]'}, + } + + def __init__( + self, + *, + client_tracking_id: Optional[str] = None, + client_keywords: Optional[List[str]] = None, + **kwargs + ): + super(RunCorrelation, self).__init__(**kwargs) + self.client_tracking_id = client_tracking_id + self.client_keywords = client_keywords + + +class RunActionCorrelation(RunCorrelation): + """The workflow run action correlation properties. + + :param client_tracking_id: The client tracking identifier. + :type client_tracking_id: str + :param client_keywords: The client keywords. + :type client_keywords: list[str] + :param action_tracking_id: The action tracking identifier. + :type action_tracking_id: str + """ + + _attribute_map = { + 'client_tracking_id': {'key': 'clientTrackingId', 'type': 'str'}, + 'client_keywords': {'key': 'clientKeywords', 'type': '[str]'}, + 'action_tracking_id': {'key': 'actionTrackingId', 'type': 'str'}, + } + + def __init__( + self, + *, + client_tracking_id: Optional[str] = None, + client_keywords: Optional[List[str]] = None, + action_tracking_id: Optional[str] = None, + **kwargs + ): + super(RunActionCorrelation, self).__init__(client_tracking_id=client_tracking_id, client_keywords=client_keywords, **kwargs) + self.action_tracking_id = action_tracking_id + + +class SetTriggerStateActionDefinition(msrest.serialization.Model): + """The set trigger state action definition. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. The workflow trigger reference. + :type source: ~logic_management_client.models.WorkflowTriggerReference + """ + + _validation = { + 'source': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'WorkflowTriggerReference'}, + } + + def __init__( + self, + *, + source: "WorkflowTriggerReference", + **kwargs + ): + super(SetTriggerStateActionDefinition, self).__init__(**kwargs) + self.source = source + + +class Sku(msrest.serialization.Model): + """The sku type. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The sku name. Possible values include: 'NotSpecified', 'Free', 'Shared', + 'Basic', 'Standard', 'Premium'. + :type name: str or ~logic_management_client.models.SkuName + :param plan: The resource reference. + :type plan: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'ResourceReference'}, + } + + def __init__( + self, + *, + name: Union[str, "SkuName"], + plan: Optional["ResourceReference"] = None, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = name + self.plan = plan + + +class SubResource(msrest.serialization.Model): + """The sub resource type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResource, self).__init__(**kwargs) + self.id = None + + +class SwaggerCustomDynamicList(msrest.serialization.Model): + """The swagger custom dynamic list. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param built_in_operation: The built in operation. + :type built_in_operation: str + :param items_path: The path to a response property (relative to the response object, not the + response body) which contains an array of dynamic value items. + :type items_path: str + :param item_value_path: The path to a property which defines the value which should be used. + :type item_value_path: str + :param item_title_path: The path to an item property which defines the display name of the + item. + :type item_title_path: str + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicProperties] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'built_in_operation': {'key': 'builtInOperation', 'type': 'str'}, + 'items_path': {'key': 'itemsPath', 'type': 'str'}, + 'item_value_path': {'key': 'itemValuePath', 'type': 'str'}, + 'item_title_path': {'key': 'itemTitlePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicProperties}'}, + } + + def __init__( + self, + *, + operation_id: Optional[str] = None, + built_in_operation: Optional[str] = None, + items_path: Optional[str] = None, + item_value_path: Optional[str] = None, + item_title_path: Optional[str] = None, + parameters: Optional[Dict[str, "SwaggerCustomDynamicProperties"]] = None, + **kwargs + ): + super(SwaggerCustomDynamicList, self).__init__(**kwargs) + self.operation_id = operation_id + self.built_in_operation = built_in_operation + self.items_path = items_path + self.item_value_path = item_value_path + self.item_title_path = item_title_path + self.parameters = parameters + + +class SwaggerCustomDynamicProperties(msrest.serialization.Model): + """The swagger custom dynamic properties. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param value_path: Json pointer to the dynamic schema on the response body. + :type value_path: str + :param parameters: The operation parameters. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicProperties] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'value_path': {'key': 'valuePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicProperties}'}, + } + + def __init__( + self, + *, + operation_id: Optional[str] = None, + value_path: Optional[str] = None, + parameters: Optional[Dict[str, "SwaggerCustomDynamicProperties"]] = None, + **kwargs + ): + super(SwaggerCustomDynamicProperties, self).__init__(**kwargs) + self.operation_id = operation_id + self.value_path = value_path + self.parameters = parameters + + +class SwaggerCustomDynamicSchema(msrest.serialization.Model): + """The swagger custom dynamic schema. + + :param operation_id: The operation id to fetch dynamic schema. + :type operation_id: str + :param value_path: Json pointer to the dynamic schema on the response body. + :type value_path: str + :param parameters: The operation parameters. + :type parameters: dict[str, object] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'value_path': {'key': 'valuePath', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{object}'}, + } + + def __init__( + self, + *, + operation_id: Optional[str] = None, + value_path: Optional[str] = None, + parameters: Optional[Dict[str, object]] = None, + **kwargs + ): + super(SwaggerCustomDynamicSchema, self).__init__(**kwargs) + self.operation_id = operation_id + self.value_path = value_path + self.parameters = parameters + + +class SwaggerCustomDynamicTree(msrest.serialization.Model): + """The swagger custom dynamic tree. + + :param settings: The swagger custom dynamic tree settings. + :type settings: ~logic_management_client.models.SwaggerCustomDynamicTreeSettings + :param open: The swagger tree command. + :type open: ~logic_management_client.models.SwaggerCustomDynamicTreeCommand + :param browse: The swagger tree command. + :type browse: ~logic_management_client.models.SwaggerCustomDynamicTreeCommand + """ + + _attribute_map = { + 'settings': {'key': 'settings', 'type': 'SwaggerCustomDynamicTreeSettings'}, + 'open': {'key': 'open', 'type': 'SwaggerCustomDynamicTreeCommand'}, + 'browse': {'key': 'browse', 'type': 'SwaggerCustomDynamicTreeCommand'}, + } + + def __init__( + self, + *, + settings: Optional["SwaggerCustomDynamicTreeSettings"] = None, + open: Optional["SwaggerCustomDynamicTreeCommand"] = None, + browse: Optional["SwaggerCustomDynamicTreeCommand"] = None, + **kwargs + ): + super(SwaggerCustomDynamicTree, self).__init__(**kwargs) + self.settings = settings + self.open = open + self.browse = browse + + +class SwaggerCustomDynamicTreeCommand(msrest.serialization.Model): + """The swagger tree command. + + :param operation_id: The path to an item property which defines the display name of the item. + :type operation_id: str + :param items_path: The path to an item property which defines the display name of the item. + :type items_path: str + :param item_value_path: The path to an item property which defines the display name of the + item. + :type item_value_path: str + :param item_title_path: The path to an item property which defines the display name of the + item. + :type item_title_path: str + :param item_full_title_path: The path to an item property which defines the display name of the + item. + :type item_full_title_path: str + :param item_is_parent: The path to an item property which defines the display name of the item. + :type item_is_parent: str + :param selectable_filter: The path to an item property which defines the display name of the + item. + :type selectable_filter: str + :param parameters: Dictionary of :code:``. + :type parameters: dict[str, ~logic_management_client.models.SwaggerCustomDynamicTreeParameter] + """ + + _attribute_map = { + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'items_path': {'key': 'itemsPath', 'type': 'str'}, + 'item_value_path': {'key': 'itemValuePath', 'type': 'str'}, + 'item_title_path': {'key': 'itemTitlePath', 'type': 'str'}, + 'item_full_title_path': {'key': 'itemFullTitlePath', 'type': 'str'}, + 'item_is_parent': {'key': 'itemIsParent', 'type': 'str'}, + 'selectable_filter': {'key': 'selectableFilter', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '{SwaggerCustomDynamicTreeParameter}'}, + } + + def __init__( + self, + *, + operation_id: Optional[str] = None, + items_path: Optional[str] = None, + item_value_path: Optional[str] = None, + item_title_path: Optional[str] = None, + item_full_title_path: Optional[str] = None, + item_is_parent: Optional[str] = None, + selectable_filter: Optional[str] = None, + parameters: Optional[Dict[str, "SwaggerCustomDynamicTreeParameter"]] = None, + **kwargs + ): + super(SwaggerCustomDynamicTreeCommand, self).__init__(**kwargs) + self.operation_id = operation_id + self.items_path = items_path + self.item_value_path = item_value_path + self.item_title_path = item_title_path + self.item_full_title_path = item_full_title_path + self.item_is_parent = item_is_parent + self.selectable_filter = selectable_filter + self.parameters = parameters + + +class SwaggerCustomDynamicTreeParameter(msrest.serialization.Model): + """The swagger custom dynamic tree parameter. + + :param selected_item_value_path: Gets or sets a path to a property in the currently selected + item to pass as a value to a parameter for the given operation. + :type selected_item_value_path: str + :param value: + :type value: ~logic_management_client.models.Object + :param parameter_reference: The parameter reference. + :type parameter_reference: str + :param required: Indicates whether the parameter is required. + :type required: bool + """ + + _attribute_map = { + 'selected_item_value_path': {'key': 'selectedItemValuePath', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'parameter_reference': {'key': 'parameterReference', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__( + self, + *, + selected_item_value_path: Optional[str] = None, + value: Optional["Object"] = None, + parameter_reference: Optional[str] = None, + required: Optional[bool] = None, + **kwargs + ): + super(SwaggerCustomDynamicTreeParameter, self).__init__(**kwargs) + self.selected_item_value_path = selected_item_value_path + self.value = value + self.parameter_reference = parameter_reference + self.required = required + + +class SwaggerCustomDynamicTreeSettings(msrest.serialization.Model): + """The swagger custom dynamic tree settings. + + :param can_select_parent_nodes: Indicates whether parent nodes can be selected. + :type can_select_parent_nodes: bool + :param can_select_leaf_nodes: Indicates whether leaf nodes can be selected. + :type can_select_leaf_nodes: bool + """ + + _attribute_map = { + 'can_select_parent_nodes': {'key': 'CanSelectParentNodes', 'type': 'bool'}, + 'can_select_leaf_nodes': {'key': 'CanSelectLeafNodes', 'type': 'bool'}, + } + + def __init__( + self, + *, + can_select_parent_nodes: Optional[bool] = None, + can_select_leaf_nodes: Optional[bool] = None, + **kwargs + ): + super(SwaggerCustomDynamicTreeSettings, self).__init__(**kwargs) + self.can_select_parent_nodes = can_select_parent_nodes + self.can_select_leaf_nodes = can_select_leaf_nodes + + +class SwaggerExternalDocumentation(msrest.serialization.Model): + """The swagger external documentation. + + :param description: The document description. + :type description: str + :param uri: The documentation Uri. + :type uri: str + :param extensions: The vendor extensions. + :type extensions: dict[str, object] + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'extensions': {'key': 'extensions', 'type': '{object}'}, + } + + def __init__( + self, + *, + description: Optional[str] = None, + uri: Optional[str] = None, + extensions: Optional[Dict[str, object]] = None, + **kwargs + ): + super(SwaggerExternalDocumentation, self).__init__(**kwargs) + self.description = description + self.uri = uri + self.extensions = extensions + + +class SwaggerSchema(msrest.serialization.Model): + """The swagger schema. + + :param ref: The reference. + :type ref: str + :param type: The swagger schema type. Possible values include: 'String', 'Number', 'Integer', + 'Boolean', 'Array', 'File', 'Object', 'Null'. + :type type: str or ~logic_management_client.models.SwaggerSchemaType + :param title: The title. + :type title: str + :param items: The swagger schema. + :type items: ~logic_management_client.models.SwaggerSchema + :param properties: The object properties. + :type properties: dict[str, ~logic_management_client.models.SwaggerSchema] + :param additional_properties: + :type additional_properties: ~logic_management_client.models.Object + :param required: The object required properties. + :type required: list[str] + :param max_properties: The maximum number of allowed properties. + :type max_properties: int + :param min_properties: The minimum number of allowed properties. + :type min_properties: int + :param all_of: The schemas which must pass validation when this schema is used. + :type all_of: list[~logic_management_client.models.SwaggerSchema] + :param discriminator: The discriminator. + :type discriminator: str + :param read_only: Indicates whether this property must be present in the a request. + :type read_only: bool + :param xml: The Swagger XML. + :type xml: ~logic_management_client.models.SwaggerXml + :param external_docs: The swagger external documentation. + :type external_docs: ~logic_management_client.models.SwaggerExternalDocumentation + :param example: + :type example: ~logic_management_client.models.Object + :param notification_url_extension: Indicates the notification url extension. If this is set, + the property's value should be a callback url for a webhook. + :type notification_url_extension: bool + :param dynamic_schema_old: The swagger custom dynamic schema. + :type dynamic_schema_old: ~logic_management_client.models.SwaggerCustomDynamicSchema + :param dynamic_schema_new: The swagger custom dynamic properties. + :type dynamic_schema_new: ~logic_management_client.models.SwaggerCustomDynamicProperties + :param dynamic_list_new: The swagger custom dynamic list. + :type dynamic_list_new: ~logic_management_client.models.SwaggerCustomDynamicList + :param dynamic_tree: The swagger custom dynamic tree. + :type dynamic_tree: ~logic_management_client.models.SwaggerCustomDynamicTree + """ + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'title': {'key': 'title', 'type': 'str'}, + 'items': {'key': 'items', 'type': 'SwaggerSchema'}, + 'properties': {'key': 'properties', 'type': '{SwaggerSchema}'}, + 'additional_properties': {'key': 'additionalProperties', 'type': 'Object'}, + 'required': {'key': 'required', 'type': '[str]'}, + 'max_properties': {'key': 'maxProperties', 'type': 'int'}, + 'min_properties': {'key': 'minProperties', 'type': 'int'}, + 'all_of': {'key': 'allOf', 'type': '[SwaggerSchema]'}, + 'discriminator': {'key': 'discriminator', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'xml': {'key': 'xml', 'type': 'SwaggerXml'}, + 'external_docs': {'key': 'externalDocs', 'type': 'SwaggerExternalDocumentation'}, + 'example': {'key': 'example', 'type': 'Object'}, + 'notification_url_extension': {'key': 'notificationUrlExtension', 'type': 'bool'}, + 'dynamic_schema_old': {'key': 'dynamicSchemaOld', 'type': 'SwaggerCustomDynamicSchema'}, + 'dynamic_schema_new': {'key': 'dynamicSchemaNew', 'type': 'SwaggerCustomDynamicProperties'}, + 'dynamic_list_new': {'key': 'dynamicListNew', 'type': 'SwaggerCustomDynamicList'}, + 'dynamic_tree': {'key': 'dynamicTree', 'type': 'SwaggerCustomDynamicTree'}, + } + + def __init__( + self, + *, + ref: Optional[str] = None, + type: Optional[Union[str, "SwaggerSchemaType"]] = None, + title: Optional[str] = None, + items: Optional["SwaggerSchema"] = None, + properties: Optional[Dict[str, "SwaggerSchema"]] = None, + additional_properties: Optional["Object"] = None, + required: Optional[List[str]] = None, + max_properties: Optional[int] = None, + min_properties: Optional[int] = None, + all_of: Optional[List["SwaggerSchema"]] = None, + discriminator: Optional[str] = None, + read_only: Optional[bool] = None, + xml: Optional["SwaggerXml"] = None, + external_docs: Optional["SwaggerExternalDocumentation"] = None, + example: Optional["Object"] = None, + notification_url_extension: Optional[bool] = None, + dynamic_schema_old: Optional["SwaggerCustomDynamicSchema"] = None, + dynamic_schema_new: Optional["SwaggerCustomDynamicProperties"] = None, + dynamic_list_new: Optional["SwaggerCustomDynamicList"] = None, + dynamic_tree: Optional["SwaggerCustomDynamicTree"] = None, + **kwargs + ): + super(SwaggerSchema, self).__init__(**kwargs) + self.ref = ref + self.type = type + self.title = title + self.items = items + self.properties = properties + self.additional_properties = additional_properties + self.required = required + self.max_properties = max_properties + self.min_properties = min_properties + self.all_of = all_of + self.discriminator = discriminator + self.read_only = read_only + self.xml = xml + self.external_docs = external_docs + self.example = example + self.notification_url_extension = notification_url_extension + self.dynamic_schema_old = dynamic_schema_old + self.dynamic_schema_new = dynamic_schema_new + self.dynamic_list_new = dynamic_list_new + self.dynamic_tree = dynamic_tree + + +class SwaggerXml(msrest.serialization.Model): + """The Swagger XML. + + :param name: The xml element or attribute name. + :type name: str + :param namespace: The xml namespace. + :type namespace: str + :param prefix: The name prefix. + :type prefix: str + :param attribute: Indicates whether the property should be an attribute instead of an element. + :type attribute: bool + :param wrapped: Indicates whether the array elements are wrapped in a container element. + :type wrapped: bool + :param extensions: The vendor extensions. + :type extensions: dict[str, object] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'attribute': {'key': 'attribute', 'type': 'bool'}, + 'wrapped': {'key': 'wrapped', 'type': 'bool'}, + 'extensions': {'key': 'extensions', 'type': '{object}'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + namespace: Optional[str] = None, + prefix: Optional[str] = None, + attribute: Optional[bool] = None, + wrapped: Optional[bool] = None, + extensions: Optional[Dict[str, object]] = None, + **kwargs + ): + super(SwaggerXml, self).__init__(**kwargs) + self.name = name + self.namespace = namespace + self.prefix = prefix + self.attribute = attribute + self.wrapped = wrapped + self.extensions = extensions + + +class TrackingEvent(msrest.serialization.Model): + """The tracking event. + + All required parameters must be populated in order to send to Azure. + + :param event_level: Required. The event level. Possible values include: 'LogAlways', + 'Critical', 'Error', 'Warning', 'Informational', 'Verbose'. + :type event_level: str or ~logic_management_client.models.EventLevel + :param event_time: Required. The event time. + :type event_time: ~datetime.datetime + :param record_type: Required. The tracking record type. Possible values include: + 'NotSpecified', 'Custom', 'AS2Message', 'AS2MDN', 'X12Interchange', 'X12FunctionalGroup', + 'X12TransactionSet', 'X12InterchangeAcknowledgment', 'X12FunctionalGroupAcknowledgment', + 'X12TransactionSetAcknowledgment', 'EdifactInterchange', 'EdifactFunctionalGroup', + 'EdifactTransactionSet', 'EdifactInterchangeAcknowledgment', + 'EdifactFunctionalGroupAcknowledgment', 'EdifactTransactionSetAcknowledgment'. + :type record_type: str or ~logic_management_client.models.TrackingRecordType + :param record: + :type record: ~logic_management_client.models.Object + :param error: The tracking event error info. + :type error: ~logic_management_client.models.TrackingEventErrorInfo + """ + + _validation = { + 'event_level': {'required': True}, + 'event_time': {'required': True}, + 'record_type': {'required': True}, + } + + _attribute_map = { + 'event_level': {'key': 'eventLevel', 'type': 'str'}, + 'event_time': {'key': 'eventTime', 'type': 'iso-8601'}, + 'record_type': {'key': 'recordType', 'type': 'str'}, + 'record': {'key': 'record', 'type': 'Object'}, + 'error': {'key': 'error', 'type': 'TrackingEventErrorInfo'}, + } + + def __init__( + self, + *, + event_level: Union[str, "EventLevel"], + event_time: datetime.datetime, + record_type: Union[str, "TrackingRecordType"], + record: Optional["Object"] = None, + error: Optional["TrackingEventErrorInfo"] = None, + **kwargs + ): + super(TrackingEvent, self).__init__(**kwargs) + self.event_level = event_level + self.event_time = event_time + self.record_type = record_type + self.record = record + self.error = error + + +class TrackingEventErrorInfo(msrest.serialization.Model): + """The tracking event error info. + + :param message: The message. + :type message: str + :param code: The code. + :type code: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + } + + def __init__( + self, + *, + message: Optional[str] = None, + code: Optional[str] = None, + **kwargs + ): + super(TrackingEventErrorInfo, self).__init__(**kwargs) + self.message = message + self.code = code + + +class TrackingEventsDefinition(msrest.serialization.Model): + """The tracking events definition. + + All required parameters must be populated in order to send to Azure. + + :param source_type: Required. The source type. + :type source_type: str + :param track_events_options: The track events operation options. Possible values include: + 'None', 'DisableSourceInfoEnrich'. + :type track_events_options: str or ~logic_management_client.models.TrackEventsOperationOptions + :param events: Required. The events. + :type events: list[~logic_management_client.models.TrackingEvent] + """ + + _validation = { + 'source_type': {'required': True}, + 'events': {'required': True}, + } + + _attribute_map = { + 'source_type': {'key': 'sourceType', 'type': 'str'}, + 'track_events_options': {'key': 'trackEventsOptions', 'type': 'str'}, + 'events': {'key': 'events', 'type': '[TrackingEvent]'}, + } + + def __init__( + self, + *, + source_type: str, + events: List["TrackingEvent"], + track_events_options: Optional[Union[str, "TrackEventsOperationOptions"]] = None, + **kwargs + ): + super(TrackingEventsDefinition, self).__init__(**kwargs) + self.source_type = source_type + self.track_events_options = track_events_options + self.events = events + + +class Workflow(Resource): + """The workflow type. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'properties.endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'properties.sku', 'type': 'Sku'}, + 'integration_account': {'key': 'properties.integrationAccount', 'type': 'ResourceReference'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'definition': {'key': 'properties.definition', 'type': 'Object'}, + 'parameters': {'key': 'properties.parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + state: Optional[Union[str, "WorkflowState"]] = None, + endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, + access_control: Optional["FlowAccessControlConfiguration"] = None, + integration_account: Optional["ResourceReference"] = None, + integration_service_environment: Optional["ResourceReference"] = None, + definition: Optional["Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ): + super(Workflow, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = state + self.version = None + self.access_endpoint = None + self.endpoints_configuration = endpoints_configuration + self.access_control = access_control + self.sku = None + self.integration_account = integration_account + self.integration_service_environment = integration_service_environment + self.definition = definition + self.parameters = parameters + + +class WorkflowFilter(msrest.serialization.Model): + """The workflow filter. + + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "WorkflowState"]] = None, + **kwargs + ): + super(WorkflowFilter, self).__init__(**kwargs) + self.state = state + + +class WorkflowListResult(msrest.serialization.Model): + """The list of workflows. + + :param value: The list of workflows. + :type value: list[~logic_management_client.models.Workflow] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Workflow]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["Workflow"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowParameter(msrest.serialization.Model): + """The workflow parameters. + + :param type: The parameter type. Possible values include: 'NotSpecified', 'String', + 'SecureString', 'Int', 'Float', 'Bool', 'Array', 'Object', 'SecureObject'. + :type type: str or ~logic_management_client.models.ParameterType + :param value: + :type value: ~logic_management_client.models.Object + :param metadata: + :type metadata: ~logic_management_client.models.Object + :param description: The description. + :type description: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "ParameterType"]] = None, + value: Optional["Object"] = None, + metadata: Optional["Object"] = None, + description: Optional[str] = None, + **kwargs + ): + super(WorkflowParameter, self).__init__(**kwargs) + self.type = type + self.value = value + self.metadata = metadata + self.description = description + + +class WorkflowOutputParameter(WorkflowParameter): + """The workflow output parameter. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param type: The parameter type. Possible values include: 'NotSpecified', 'String', + 'SecureString', 'Int', 'Float', 'Bool', 'Array', 'Object', 'SecureObject'. + :type type: str or ~logic_management_client.models.ParameterType + :param value: + :type value: ~logic_management_client.models.Object + :param metadata: + :type metadata: ~logic_management_client.models.Object + :param description: The description. + :type description: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + """ + + _validation = { + 'error': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'Object'}, + 'metadata': {'key': 'metadata', 'type': 'Object'}, + 'description': {'key': 'description', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "ParameterType"]] = None, + value: Optional["Object"] = None, + metadata: Optional["Object"] = None, + description: Optional[str] = None, + **kwargs + ): + super(WorkflowOutputParameter, self).__init__(type=type, value=value, metadata=metadata, description=description, **kwargs) + self.error = None + + +class WorkflowProperties(msrest.serialization.Model): + """The workflow properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'integration_account': {'key': 'integrationAccount', 'type': 'ResourceReference'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'definition': {'key': 'definition', 'type': 'Object'}, + 'parameters': {'key': 'parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "WorkflowState"]] = None, + endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, + access_control: Optional["FlowAccessControlConfiguration"] = None, + integration_account: Optional["ResourceReference"] = None, + integration_service_environment: Optional["ResourceReference"] = None, + definition: Optional["Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ): + super(WorkflowProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = state + self.version = None + self.access_endpoint = None + self.endpoints_configuration = endpoints_configuration + self.access_control = access_control + self.sku = None + self.integration_account = integration_account + self.integration_service_environment = integration_service_environment + self.definition = definition + self.parameters = parameters + + +class WorkflowReference(ResourceReference): + """The workflow reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(WorkflowReference, self).__init__(id=id, **kwargs) + + +class WorkflowRun(SubResource): + """The workflow run. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow run name. + :vartype name: str + :ivar type: Gets the workflow run type. + :vartype type: str + :ivar wait_end_time: Gets the wait end time. + :vartype wait_end_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar correlation_id: Gets the correlation id. + :vartype correlation_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + :ivar trigger: The workflow run trigger. + :vartype trigger: ~logic_management_client.models.WorkflowRunTrigger + :ivar outputs: Gets the outputs. + :vartype outputs: dict[str, ~logic_management_client.models.WorkflowOutputParameter] + :ivar response: The workflow run trigger. + :vartype response: ~logic_management_client.models.WorkflowRunTrigger + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'wait_end_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'workflow': {'readonly': True}, + 'trigger': {'readonly': True}, + 'outputs': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'wait_end_time': {'key': 'properties.waitEndTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'correlation_id': {'key': 'properties.correlationId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'Correlation'}, + 'workflow': {'key': 'properties.workflow', 'type': 'ResourceReference'}, + 'trigger': {'key': 'properties.trigger', 'type': 'WorkflowRunTrigger'}, + 'outputs': {'key': 'properties.outputs', 'type': '{WorkflowOutputParameter}'}, + 'response': {'key': 'properties.response', 'type': 'WorkflowRunTrigger'}, + } + + def __init__( + self, + *, + correlation: Optional["Correlation"] = None, + **kwargs + ): + super(WorkflowRun, self).__init__(**kwargs) + self.name = None + self.type = None + self.wait_end_time = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.correlation_id = None + self.correlation = correlation + self.workflow = None + self.trigger = None + self.outputs = None + self.response = None + + +class WorkflowRunAction(SubResource): + """The workflow run action. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow run action name. + :vartype name: str + :ivar type: Gets the workflow run action type. + :vartype type: str + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'properties.trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'properties.retryHistory', 'type': '[RetryHistory]'}, + } + + def __init__( + self, + *, + correlation: Optional["RunActionCorrelation"] = None, + retry_history: Optional[List["RetryHistory"]] = None, + **kwargs + ): + super(WorkflowRunAction, self).__init__(**kwargs) + self.name = None + self.type = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = correlation + self.inputs_link = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = retry_history + + +class WorkflowRunActionFilter(msrest.serialization.Model): + """The workflow run action filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "WorkflowStatus"]] = None, + **kwargs + ): + super(WorkflowRunActionFilter, self).__init__(**kwargs) + self.status = status + + +class WorkflowRunActionListResult(msrest.serialization.Model): + """The list of workflow run actions. + + :param value: A list of workflow run actions. + :type value: list[~logic_management_client.models.WorkflowRunAction] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowRunAction]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["WorkflowRunAction"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowRunActionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowRunActionProperties(msrest.serialization.Model): + """The workflow run action properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + """ + + _validation = { + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + } + + def __init__( + self, + *, + correlation: Optional["RunActionCorrelation"] = None, + retry_history: Optional[List["RetryHistory"]] = None, + **kwargs + ): + super(WorkflowRunActionProperties, self).__init__(**kwargs) + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = correlation + self.inputs_link = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = retry_history + + +class WorkflowRunActionRepetitionDefinition(Resource): + """The workflow run action repetition definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + :param repetition_indexes: The repetition indexes. + :type repetition_indexes: list[~logic_management_client.models.RepetitionIndex] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'inputs': {'key': 'properties.inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'properties.outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'properties.trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'properties.retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'properties.iterationCount', 'type': 'int'}, + 'repetition_indexes': {'key': 'properties.repetitionIndexes', 'type': '[RepetitionIndex]'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + correlation: Optional["RunActionCorrelation"] = None, + status: Optional[Union[str, "WorkflowStatus"]] = None, + code: Optional[str] = None, + error: Optional[object] = None, + retry_history: Optional[List["RetryHistory"]] = None, + iteration_count: Optional[int] = None, + repetition_indexes: Optional[List["RepetitionIndex"]] = None, + **kwargs + ): + super(WorkflowRunActionRepetitionDefinition, self).__init__(location=location, tags=tags, **kwargs) + self.start_time = start_time + self.end_time = end_time + self.correlation = correlation + self.status = status + self.code = code + self.error = error + self.tracking_id = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.tracked_properties = None + self.retry_history = retry_history + self.iteration_count = iteration_count + self.repetition_indexes = repetition_indexes + + +class WorkflowRunActionRepetitionDefinitionCollection(msrest.serialization.Model): + """A collection of workflow run action repetitions. + + :param next_link: The link used to get the next page of recommendations. + :type next_link: str + :param value: + :type value: list[~logic_management_client.models.WorkflowRunActionRepetitionDefinition] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[WorkflowRunActionRepetitionDefinition]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["WorkflowRunActionRepetitionDefinition"]] = None, + **kwargs + ): + super(WorkflowRunActionRepetitionDefinitionCollection, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class WorkflowRunActionRepetitionProperties(OperationResult): + """The workflow run action repetition properties definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param start_time: The start time of the workflow scope repetition. + :type start_time: ~datetime.datetime + :param end_time: The end time of the workflow scope repetition. + :type end_time: ~datetime.datetime + :param correlation: The workflow run action correlation properties. + :type correlation: ~logic_management_client.models.RunActionCorrelation + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + :param code: The workflow scope repetition code. + :type code: str + :param error: Any object. + :type error: object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + :param retry_history: Gets the retry histories. + :type retry_history: list[~logic_management_client.models.RetryHistory] + :param iteration_count: + :type iteration_count: int + :param repetition_indexes: The repetition indexes. + :type repetition_indexes: list[~logic_management_client.models.RepetitionIndex] + """ + + _validation = { + 'tracking_id': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + 'retry_history': {'key': 'retryHistory', 'type': '[RetryHistory]'}, + 'iteration_count': {'key': 'iterationCount', 'type': 'int'}, + 'repetition_indexes': {'key': 'repetitionIndexes', 'type': '[RepetitionIndex]'}, + } + + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + correlation: Optional["RunActionCorrelation"] = None, + status: Optional[Union[str, "WorkflowStatus"]] = None, + code: Optional[str] = None, + error: Optional[object] = None, + retry_history: Optional[List["RetryHistory"]] = None, + iteration_count: Optional[int] = None, + repetition_indexes: Optional[List["RepetitionIndex"]] = None, + **kwargs + ): + super(WorkflowRunActionRepetitionProperties, self).__init__(start_time=start_time, end_time=end_time, correlation=correlation, status=status, code=code, error=error, retry_history=retry_history, iteration_count=iteration_count, **kwargs) + self.repetition_indexes = repetition_indexes + + +class WorkflowRunFilter(msrest.serialization.Model): + """The workflow run filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "WorkflowStatus"]] = None, + **kwargs + ): + super(WorkflowRunFilter, self).__init__(**kwargs) + self.status = status + + +class WorkflowRunListResult(msrest.serialization.Model): + """The list of workflow runs. + + :param value: A list of workflow runs. + :type value: list[~logic_management_client.models.WorkflowRun] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowRun]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["WorkflowRun"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowRunListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowRunProperties(msrest.serialization.Model): + """The workflow run properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar wait_end_time: Gets the wait end time. + :vartype wait_end_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar correlation_id: Gets the correlation id. + :vartype correlation_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + :ivar trigger: The workflow run trigger. + :vartype trigger: ~logic_management_client.models.WorkflowRunTrigger + :ivar outputs: Gets the outputs. + :vartype outputs: dict[str, ~logic_management_client.models.WorkflowOutputParameter] + :ivar response: The workflow run trigger. + :vartype response: ~logic_management_client.models.WorkflowRunTrigger + """ + + _validation = { + 'wait_end_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'workflow': {'readonly': True}, + 'trigger': {'readonly': True}, + 'outputs': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'wait_end_time': {'key': 'waitEndTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'workflow': {'key': 'workflow', 'type': 'ResourceReference'}, + 'trigger': {'key': 'trigger', 'type': 'WorkflowRunTrigger'}, + 'outputs': {'key': 'outputs', 'type': '{WorkflowOutputParameter}'}, + 'response': {'key': 'response', 'type': 'WorkflowRunTrigger'}, + } + + def __init__( + self, + *, + correlation: Optional["Correlation"] = None, + **kwargs + ): + super(WorkflowRunProperties, self).__init__(**kwargs) + self.wait_end_time = None + self.start_time = None + self.end_time = None + self.status = None + self.code = None + self.error = None + self.correlation_id = None + self.correlation = correlation + self.workflow = None + self.trigger = None + self.outputs = None + self.response = None + + +class WorkflowRunTrigger(msrest.serialization.Model): + """The workflow run trigger. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Gets the name. + :vartype name: str + :ivar inputs: + :vartype inputs: ~logic_management_client.models.Object + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs: + :vartype outputs: ~logic_management_client.models.Object + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar scheduled_time: Gets the scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar code: Gets the code. + :vartype code: str + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracked_properties: + :vartype tracked_properties: ~logic_management_client.models.Object + """ + + _validation = { + 'name': {'readonly': True}, + 'inputs': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'code': {'readonly': True}, + 'status': {'readonly': True}, + 'error': {'readonly': True}, + 'tracked_properties': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': 'Object'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs': {'key': 'outputs', 'type': 'Object'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'scheduled_time': {'key': 'scheduledTime', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'code': {'key': 'code', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracked_properties': {'key': 'trackedProperties', 'type': 'Object'}, + } + + def __init__( + self, + *, + correlation: Optional["Correlation"] = None, + **kwargs + ): + super(WorkflowRunTrigger, self).__init__(**kwargs) + self.name = None + self.inputs = None + self.inputs_link = None + self.outputs = None + self.outputs_link = None + self.scheduled_time = None + self.start_time = None + self.end_time = None + self.tracking_id = None + self.correlation = correlation + self.code = None + self.status = None + self.error = None + self.tracked_properties = None + + +class WorkflowTrigger(SubResource): + """The workflow trigger. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow trigger name. + :vartype name: str + :ivar type: Gets the workflow trigger type. + :vartype type: str + :ivar provisioning_state: The workflow trigger provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed'. + :vartype provisioning_state: str or + ~logic_management_client.models.WorkflowTriggerProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :ivar state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :vartype state: str or ~logic_management_client.models.WorkflowState + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar last_execution_time: Gets the last execution time. + :vartype last_execution_time: ~datetime.datetime + :ivar next_execution_time: Gets the next execution time. + :vartype next_execution_time: ~datetime.datetime + :ivar recurrence: The workflow trigger recurrence. + :vartype recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'state': {'readonly': True}, + 'status': {'readonly': True}, + 'last_execution_time': {'readonly': True}, + 'next_execution_time': {'readonly': True}, + 'recurrence': {'readonly': True}, + 'workflow': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'last_execution_time': {'key': 'properties.lastExecutionTime', 'type': 'iso-8601'}, + 'next_execution_time': {'key': 'properties.nextExecutionTime', 'type': 'iso-8601'}, + 'recurrence': {'key': 'properties.recurrence', 'type': 'WorkflowTriggerRecurrence'}, + 'workflow': {'key': 'properties.workflow', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTrigger, self).__init__(**kwargs) + self.name = None + self.type = None + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = None + self.status = None + self.last_execution_time = None + self.next_execution_time = None + self.recurrence = None + self.workflow = None + + +class WorkflowTriggerCallbackUrl(msrest.serialization.Model): + """The workflow trigger callback URL. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Gets the workflow trigger callback URL. + :vartype value: str + :ivar method: Gets the workflow trigger callback URL HTTP method. + :vartype method: str + :ivar base_path: Gets the workflow trigger callback URL base path. + :vartype base_path: str + :ivar relative_path: Gets the workflow trigger callback URL relative path. + :vartype relative_path: str + :param relative_path_parameters: Gets the workflow trigger callback URL relative path + parameters. + :type relative_path_parameters: list[str] + :param queries: Gets the workflow trigger callback URL query parameters. + :type queries: ~logic_management_client.models.WorkflowTriggerListCallbackUrlQueries + """ + + _validation = { + 'value': {'readonly': True}, + 'method': {'readonly': True}, + 'base_path': {'readonly': True}, + 'relative_path': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'base_path': {'key': 'basePath', 'type': 'str'}, + 'relative_path': {'key': 'relativePath', 'type': 'str'}, + 'relative_path_parameters': {'key': 'relativePathParameters', 'type': '[str]'}, + 'queries': {'key': 'queries', 'type': 'WorkflowTriggerListCallbackUrlQueries'}, + } + + def __init__( + self, + *, + relative_path_parameters: Optional[List[str]] = None, + queries: Optional["WorkflowTriggerListCallbackUrlQueries"] = None, + **kwargs + ): + super(WorkflowTriggerCallbackUrl, self).__init__(**kwargs) + self.value = None + self.method = None + self.base_path = None + self.relative_path = None + self.relative_path_parameters = relative_path_parameters + self.queries = queries + + +class WorkflowTriggerFilter(msrest.serialization.Model): + """The workflow trigger filter. + + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "WorkflowState"]] = None, + **kwargs + ): + super(WorkflowTriggerFilter, self).__init__(**kwargs) + self.state = state + + +class WorkflowTriggerHistory(SubResource): + """The workflow trigger history. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the workflow trigger history name. + :vartype name: str + :ivar type: Gets the workflow trigger history type. + :vartype type: str + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar scheduled_time: The scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar fired: The value indicating whether trigger was fired. + :vartype fired: bool + :ivar run: The resource reference. + :vartype run: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'fired': {'readonly': True}, + 'run': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'scheduled_time': {'key': 'properties.scheduledTime', 'type': 'iso-8601'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'code': {'key': 'properties.code', 'type': 'str'}, + 'error': {'key': 'properties.error', 'type': 'Object'}, + 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, + 'correlation': {'key': 'properties.correlation', 'type': 'Correlation'}, + 'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'}, + 'fired': {'key': 'properties.fired', 'type': 'bool'}, + 'run': {'key': 'properties.run', 'type': 'ResourceReference'}, + } + + def __init__( + self, + *, + correlation: Optional["Correlation"] = None, + **kwargs + ): + super(WorkflowTriggerHistory, self).__init__(**kwargs) + self.name = None + self.type = None + self.start_time = None + self.end_time = None + self.scheduled_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = correlation + self.inputs_link = None + self.outputs_link = None + self.fired = None + self.run = None + + +class WorkflowTriggerHistoryFilter(msrest.serialization.Model): + """The workflow trigger history filter. + + :param status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :type status: str or ~logic_management_client.models.WorkflowStatus + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "WorkflowStatus"]] = None, + **kwargs + ): + super(WorkflowTriggerHistoryFilter, self).__init__(**kwargs) + self.status = status + + +class WorkflowTriggerHistoryListResult(msrest.serialization.Model): + """The list of workflow trigger histories. + + :param value: A list of workflow trigger histories. + :type value: list[~logic_management_client.models.WorkflowTriggerHistory] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowTriggerHistory]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["WorkflowTriggerHistory"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowTriggerHistoryListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowTriggerHistoryProperties(msrest.serialization.Model): + """The workflow trigger history properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar start_time: Gets the start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Gets the end time. + :vartype end_time: ~datetime.datetime + :ivar scheduled_time: The scheduled time. + :vartype scheduled_time: ~datetime.datetime + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar code: Gets the code. + :vartype code: str + :ivar error: + :vartype error: ~logic_management_client.models.Object + :ivar tracking_id: Gets the tracking id. + :vartype tracking_id: str + :param correlation: The correlation property. + :type correlation: ~logic_management_client.models.Correlation + :ivar inputs_link: The content link. + :vartype inputs_link: ~logic_management_client.models.ContentLink + :ivar outputs_link: The content link. + :vartype outputs_link: ~logic_management_client.models.ContentLink + :ivar fired: The value indicating whether trigger was fired. + :vartype fired: bool + :ivar run: The resource reference. + :vartype run: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'scheduled_time': {'readonly': True}, + 'status': {'readonly': True}, + 'code': {'readonly': True}, + 'error': {'readonly': True}, + 'tracking_id': {'readonly': True}, + 'inputs_link': {'readonly': True}, + 'outputs_link': {'readonly': True}, + 'fired': {'readonly': True}, + 'run': {'readonly': True}, + } + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'scheduled_time': {'key': 'scheduledTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Object'}, + 'tracking_id': {'key': 'trackingId', 'type': 'str'}, + 'correlation': {'key': 'correlation', 'type': 'Correlation'}, + 'inputs_link': {'key': 'inputsLink', 'type': 'ContentLink'}, + 'outputs_link': {'key': 'outputsLink', 'type': 'ContentLink'}, + 'fired': {'key': 'fired', 'type': 'bool'}, + 'run': {'key': 'run', 'type': 'ResourceReference'}, + } + + def __init__( + self, + *, + correlation: Optional["Correlation"] = None, + **kwargs + ): + super(WorkflowTriggerHistoryProperties, self).__init__(**kwargs) + self.start_time = None + self.end_time = None + self.scheduled_time = None + self.status = None + self.code = None + self.error = None + self.tracking_id = None + self.correlation = correlation + self.inputs_link = None + self.outputs_link = None + self.fired = None + self.run = None + + +class WorkflowTriggerListCallbackUrlQueries(msrest.serialization.Model): + """Gets the workflow trigger callback URL query parameters. + + :param api_version: The api version. + :type api_version: str + :param sp: The SAS permissions. + :type sp: str + :param sv: The SAS version. + :type sv: str + :param sig: The SAS signature. + :type sig: str + :param se: The SAS timestamp. + :type se: str + """ + + _attribute_map = { + 'api_version': {'key': 'api-version', 'type': 'str'}, + 'sp': {'key': 'sp', 'type': 'str'}, + 'sv': {'key': 'sv', 'type': 'str'}, + 'sig': {'key': 'sig', 'type': 'str'}, + 'se': {'key': 'se', 'type': 'str'}, + } + + def __init__( + self, + *, + api_version: Optional[str] = None, + sp: Optional[str] = None, + sv: Optional[str] = None, + sig: Optional[str] = None, + se: Optional[str] = None, + **kwargs + ): + super(WorkflowTriggerListCallbackUrlQueries, self).__init__(**kwargs) + self.api_version = api_version + self.sp = sp + self.sv = sv + self.sig = sig + self.se = se + + +class WorkflowTriggerListResult(msrest.serialization.Model): + """The list of workflow triggers. + + :param value: A list of workflow triggers. + :type value: list[~logic_management_client.models.WorkflowTrigger] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowTrigger]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["WorkflowTrigger"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowTriggerListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowTriggerProperties(msrest.serialization.Model): + """The workflow trigger properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow trigger provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed'. + :vartype provisioning_state: str or + ~logic_management_client.models.WorkflowTriggerProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :ivar state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :vartype state: str or ~logic_management_client.models.WorkflowState + :ivar status: The workflow status. Possible values include: 'NotSpecified', 'Paused', + 'Running', 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', + 'TimedOut', 'Aborted', 'Ignored'. + :vartype status: str or ~logic_management_client.models.WorkflowStatus + :ivar last_execution_time: Gets the last execution time. + :vartype last_execution_time: ~datetime.datetime + :ivar next_execution_time: Gets the next execution time. + :vartype next_execution_time: ~datetime.datetime + :ivar recurrence: The workflow trigger recurrence. + :vartype recurrence: ~logic_management_client.models.WorkflowTriggerRecurrence + :ivar workflow: The resource reference. + :vartype workflow: ~logic_management_client.models.ResourceReference + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'state': {'readonly': True}, + 'status': {'readonly': True}, + 'last_execution_time': {'readonly': True}, + 'next_execution_time': {'readonly': True}, + 'recurrence': {'readonly': True}, + 'workflow': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_execution_time': {'key': 'lastExecutionTime', 'type': 'iso-8601'}, + 'next_execution_time': {'key': 'nextExecutionTime', 'type': 'iso-8601'}, + 'recurrence': {'key': 'recurrence', 'type': 'WorkflowTriggerRecurrence'}, + 'workflow': {'key': 'workflow', 'type': 'ResourceReference'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkflowTriggerProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = None + self.status = None + self.last_execution_time = None + self.next_execution_time = None + self.recurrence = None + self.workflow = None + + +class WorkflowTriggerRecurrence(msrest.serialization.Model): + """The workflow trigger recurrence. + + :param frequency: The recurrence frequency. Possible values include: 'NotSpecified', 'Second', + 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'. + :type frequency: str or ~logic_management_client.models.RecurrenceFrequency + :param interval: The interval. + :type interval: int + :param start_time: The start time. + :type start_time: str + :param end_time: The end time. + :type end_time: str + :param time_zone: The time zone. + :type time_zone: str + :param schedule: The recurrence schedule. + :type schedule: ~logic_management_client.models.RecurrenceSchedule + """ + + _attribute_map = { + 'frequency': {'key': 'frequency', 'type': 'str'}, + 'interval': {'key': 'interval', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'schedule': {'key': 'schedule', 'type': 'RecurrenceSchedule'}, + } + + def __init__( + self, + *, + frequency: Optional[Union[str, "RecurrenceFrequency"]] = None, + interval: Optional[int] = None, + start_time: Optional[str] = None, + end_time: Optional[str] = None, + time_zone: Optional[str] = None, + schedule: Optional["RecurrenceSchedule"] = None, + **kwargs + ): + super(WorkflowTriggerRecurrence, self).__init__(**kwargs) + self.frequency = frequency + self.interval = interval + self.start_time = start_time + self.end_time = end_time + self.time_zone = time_zone + self.schedule = schedule + + +class WorkflowTriggerReference(ResourceReference): + """The workflow trigger reference. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: The resource id. + :type id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param flow_name: The workflow name. + :type flow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'flow_name': {'key': 'flowName', 'type': 'str'}, + 'trigger_name': {'key': 'triggerName', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + flow_name: Optional[str] = None, + trigger_name: Optional[str] = None, + **kwargs + ): + super(WorkflowTriggerReference, self).__init__(id=id, **kwargs) + self.flow_name = flow_name + self.trigger_name = trigger_name + + +class WorkflowVersion(Resource): + """The workflow version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'properties.endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'properties.sku', 'type': 'Sku'}, + 'integration_account': {'key': 'properties.integrationAccount', 'type': 'ResourceReference'}, + 'definition': {'key': 'properties.definition', 'type': 'Object'}, + 'parameters': {'key': 'properties.parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + state: Optional[Union[str, "WorkflowState"]] = None, + endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, + access_control: Optional["FlowAccessControlConfiguration"] = None, + integration_account: Optional["ResourceReference"] = None, + definition: Optional["Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ): + super(WorkflowVersion, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = state + self.version = None + self.access_endpoint = None + self.endpoints_configuration = endpoints_configuration + self.access_control = access_control + self.sku = None + self.integration_account = integration_account + self.definition = definition + self.parameters = parameters + + +class WorkflowVersionListResult(msrest.serialization.Model): + """The list of workflow versions. + + :param value: A list of workflow versions. + :type value: list[~logic_management_client.models.WorkflowVersion] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WorkflowVersion]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["WorkflowVersion"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(WorkflowVersionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class WorkflowVersionProperties(msrest.serialization.Model): + """The workflow version properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The workflow provisioning state. Possible values include: + 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', + 'Canceled', 'Failed', 'Succeeded', 'Moving', 'Updating', 'Registering', 'Registered', + 'Unregistering', 'Unregistered', 'Completed', 'Renewing', 'Pending', 'Waiting', 'InProgress'. + :vartype provisioning_state: str or ~logic_management_client.models.WorkflowProvisioningState + :ivar created_time: Gets the created time. + :vartype created_time: ~datetime.datetime + :ivar changed_time: Gets the changed time. + :vartype changed_time: ~datetime.datetime + :param state: The workflow state. Possible values include: 'NotSpecified', 'Completed', + 'Enabled', 'Disabled', 'Deleted', 'Suspended'. + :type state: str or ~logic_management_client.models.WorkflowState + :ivar version: Gets the version. + :vartype version: str + :ivar access_endpoint: Gets the access endpoint. + :vartype access_endpoint: str + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :ivar sku: The sku type. + :vartype sku: ~logic_management_client.models.Sku + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'created_time': {'readonly': True}, + 'changed_time': {'readonly': True}, + 'version': {'readonly': True}, + 'access_endpoint': {'readonly': True}, + 'sku': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, + 'changed_time': {'key': 'changedTime', 'type': 'iso-8601'}, + 'state': {'key': 'state', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'access_endpoint': {'key': 'accessEndpoint', 'type': 'str'}, + 'endpoints_configuration': {'key': 'endpointsConfiguration', 'type': 'FlowEndpointsConfiguration'}, + 'access_control': {'key': 'accessControl', 'type': 'FlowAccessControlConfiguration'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'integration_account': {'key': 'integrationAccount', 'type': 'ResourceReference'}, + 'definition': {'key': 'definition', 'type': 'Object'}, + 'parameters': {'key': 'parameters', 'type': '{WorkflowParameter}'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "WorkflowState"]] = None, + endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, + access_control: Optional["FlowAccessControlConfiguration"] = None, + integration_account: Optional["ResourceReference"] = None, + definition: Optional["Object"] = None, + parameters: Optional[Dict[str, "WorkflowParameter"]] = None, + **kwargs + ): + super(WorkflowVersionProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.created_time = None + self.changed_time = None + self.state = state + self.version = None + self.access_endpoint = None + self.endpoints_configuration = endpoints_configuration + self.access_control = access_control + self.sku = None + self.integration_account = integration_account + self.definition = definition + self.parameters = parameters + + +class WsdlService(msrest.serialization.Model): + """The WSDL service. + + :param qualified_name: The qualified name. + :type qualified_name: str + :param endpoint_qualified_names: The list of endpoints' qualified names. + :type endpoint_qualified_names: list[str] + """ + + _attribute_map = { + 'qualified_name': {'key': 'qualifiedName', 'type': 'str'}, + 'endpoint_qualified_names': {'key': 'EndpointQualifiedNames', 'type': '[str]'}, + } + + def __init__( + self, + *, + qualified_name: Optional[str] = None, + endpoint_qualified_names: Optional[List[str]] = None, + **kwargs + ): + super(WsdlService, self).__init__(**kwargs) + self.qualified_name = qualified_name + self.endpoint_qualified_names = endpoint_qualified_names + + +class X12AcknowledgementSettings(msrest.serialization.Model): + """The X12 agreement acknowledgement settings. + + All required parameters must be populated in order to send to Azure. + + :param need_technical_acknowledgement: Required. The value indicating whether technical + acknowledgement is needed. + :type need_technical_acknowledgement: bool + :param batch_technical_acknowledgements: Required. The value indicating whether to batch the + technical acknowledgements. + :type batch_technical_acknowledgements: bool + :param need_functional_acknowledgement: Required. The value indicating whether functional + acknowledgement is needed. + :type need_functional_acknowledgement: bool + :param functional_acknowledgement_version: The functional acknowledgement version. + :type functional_acknowledgement_version: str + :param batch_functional_acknowledgements: Required. The value indicating whether to batch + functional acknowledgements. + :type batch_functional_acknowledgements: bool + :param need_implementation_acknowledgement: Required. The value indicating whether + implementation acknowledgement is needed. + :type need_implementation_acknowledgement: bool + :param implementation_acknowledgement_version: The implementation acknowledgement version. + :type implementation_acknowledgement_version: str + :param batch_implementation_acknowledgements: Required. The value indicating whether to batch + implementation acknowledgements. + :type batch_implementation_acknowledgements: bool + :param need_loop_for_valid_messages: Required. The value indicating whether a loop is needed + for valid messages. + :type need_loop_for_valid_messages: bool + :param send_synchronous_acknowledgement: Required. The value indicating whether to send + synchronous acknowledgement. + :type send_synchronous_acknowledgement: bool + :param acknowledgement_control_number_prefix: The acknowledgement control number prefix. + :type acknowledgement_control_number_prefix: str + :param acknowledgement_control_number_suffix: The acknowledgement control number suffix. + :type acknowledgement_control_number_suffix: str + :param acknowledgement_control_number_lower_bound: Required. The acknowledgement control number + lower bound. + :type acknowledgement_control_number_lower_bound: int + :param acknowledgement_control_number_upper_bound: Required. The acknowledgement control number + upper bound. + :type acknowledgement_control_number_upper_bound: int + :param rollover_acknowledgement_control_number: Required. The value indicating whether to + rollover acknowledgement control number. + :type rollover_acknowledgement_control_number: bool + """ + + _validation = { + 'need_technical_acknowledgement': {'required': True}, + 'batch_technical_acknowledgements': {'required': True}, + 'need_functional_acknowledgement': {'required': True}, + 'batch_functional_acknowledgements': {'required': True}, + 'need_implementation_acknowledgement': {'required': True}, + 'batch_implementation_acknowledgements': {'required': True}, + 'need_loop_for_valid_messages': {'required': True}, + 'send_synchronous_acknowledgement': {'required': True}, + 'acknowledgement_control_number_lower_bound': {'required': True}, + 'acknowledgement_control_number_upper_bound': {'required': True}, + 'rollover_acknowledgement_control_number': {'required': True}, + } + + _attribute_map = { + 'need_technical_acknowledgement': {'key': 'needTechnicalAcknowledgement', 'type': 'bool'}, + 'batch_technical_acknowledgements': {'key': 'batchTechnicalAcknowledgements', 'type': 'bool'}, + 'need_functional_acknowledgement': {'key': 'needFunctionalAcknowledgement', 'type': 'bool'}, + 'functional_acknowledgement_version': {'key': 'functionalAcknowledgementVersion', 'type': 'str'}, + 'batch_functional_acknowledgements': {'key': 'batchFunctionalAcknowledgements', 'type': 'bool'}, + 'need_implementation_acknowledgement': {'key': 'needImplementationAcknowledgement', 'type': 'bool'}, + 'implementation_acknowledgement_version': {'key': 'implementationAcknowledgementVersion', 'type': 'str'}, + 'batch_implementation_acknowledgements': {'key': 'batchImplementationAcknowledgements', 'type': 'bool'}, + 'need_loop_for_valid_messages': {'key': 'needLoopForValidMessages', 'type': 'bool'}, + 'send_synchronous_acknowledgement': {'key': 'sendSynchronousAcknowledgement', 'type': 'bool'}, + 'acknowledgement_control_number_prefix': {'key': 'acknowledgementControlNumberPrefix', 'type': 'str'}, + 'acknowledgement_control_number_suffix': {'key': 'acknowledgementControlNumberSuffix', 'type': 'str'}, + 'acknowledgement_control_number_lower_bound': {'key': 'acknowledgementControlNumberLowerBound', 'type': 'int'}, + 'acknowledgement_control_number_upper_bound': {'key': 'acknowledgementControlNumberUpperBound', 'type': 'int'}, + 'rollover_acknowledgement_control_number': {'key': 'rolloverAcknowledgementControlNumber', 'type': 'bool'}, + } + + def __init__( + self, + *, + need_technical_acknowledgement: bool, + batch_technical_acknowledgements: bool, + need_functional_acknowledgement: bool, + batch_functional_acknowledgements: bool, + need_implementation_acknowledgement: bool, + batch_implementation_acknowledgements: bool, + need_loop_for_valid_messages: bool, + send_synchronous_acknowledgement: bool, + acknowledgement_control_number_lower_bound: int, + acknowledgement_control_number_upper_bound: int, + rollover_acknowledgement_control_number: bool, + functional_acknowledgement_version: Optional[str] = None, + implementation_acknowledgement_version: Optional[str] = None, + acknowledgement_control_number_prefix: Optional[str] = None, + acknowledgement_control_number_suffix: Optional[str] = None, + **kwargs + ): + super(X12AcknowledgementSettings, self).__init__(**kwargs) + self.need_technical_acknowledgement = need_technical_acknowledgement + self.batch_technical_acknowledgements = batch_technical_acknowledgements + self.need_functional_acknowledgement = need_functional_acknowledgement + self.functional_acknowledgement_version = functional_acknowledgement_version + self.batch_functional_acknowledgements = batch_functional_acknowledgements + self.need_implementation_acknowledgement = need_implementation_acknowledgement + self.implementation_acknowledgement_version = implementation_acknowledgement_version + self.batch_implementation_acknowledgements = batch_implementation_acknowledgements + self.need_loop_for_valid_messages = need_loop_for_valid_messages + self.send_synchronous_acknowledgement = send_synchronous_acknowledgement + self.acknowledgement_control_number_prefix = acknowledgement_control_number_prefix + self.acknowledgement_control_number_suffix = acknowledgement_control_number_suffix + self.acknowledgement_control_number_lower_bound = acknowledgement_control_number_lower_bound + self.acknowledgement_control_number_upper_bound = acknowledgement_control_number_upper_bound + self.rollover_acknowledgement_control_number = rollover_acknowledgement_control_number + + +class X12AgreementContent(msrest.serialization.Model): + """The X12 agreement content. + + All required parameters must be populated in order to send to Azure. + + :param receive_agreement: Required. The X12 one-way agreement. + :type receive_agreement: ~logic_management_client.models.X12OneWayAgreement + :param send_agreement: Required. The X12 one-way agreement. + :type send_agreement: ~logic_management_client.models.X12OneWayAgreement + """ + + _validation = { + 'receive_agreement': {'required': True}, + 'send_agreement': {'required': True}, + } + + _attribute_map = { + 'receive_agreement': {'key': 'receiveAgreement', 'type': 'X12OneWayAgreement'}, + 'send_agreement': {'key': 'sendAgreement', 'type': 'X12OneWayAgreement'}, + } + + def __init__( + self, + *, + receive_agreement: "X12OneWayAgreement", + send_agreement: "X12OneWayAgreement", + **kwargs + ): + super(X12AgreementContent, self).__init__(**kwargs) + self.receive_agreement = receive_agreement + self.send_agreement = send_agreement + + +class X12DelimiterOverrides(msrest.serialization.Model): + """The X12 delimiter override settings. + + All required parameters must be populated in order to send to Azure. + + :param protocol_version: The protocol version. + :type protocol_version: str + :param message_id: The message id. + :type message_id: str + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + :param replace_character: Required. The replacement character. + :type replace_character: int + :param replace_separators_in_payload: Required. The value indicating whether to replace + separators in payload. + :type replace_separators_in_payload: bool + :param target_namespace: The target namespace on which this delimiter settings has to be + applied. + :type target_namespace: str + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'segment_terminator': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + 'replace_character': {'required': True}, + 'replace_separators_in_payload': {'required': True}, + } + + _attribute_map = { + 'protocol_version': {'key': 'protocolVersion', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, + 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + } + + def __init__( + self, + *, + data_element_separator: int, + component_separator: int, + segment_terminator: int, + segment_terminator_suffix: Union[str, "SegmentTerminatorSuffix"], + replace_character: int, + replace_separators_in_payload: bool, + protocol_version: Optional[str] = None, + message_id: Optional[str] = None, + target_namespace: Optional[str] = None, + **kwargs + ): + super(X12DelimiterOverrides, self).__init__(**kwargs) + self.protocol_version = protocol_version + self.message_id = message_id + self.data_element_separator = data_element_separator + self.component_separator = component_separator + self.segment_terminator = segment_terminator + self.segment_terminator_suffix = segment_terminator_suffix + self.replace_character = replace_character + self.replace_separators_in_payload = replace_separators_in_payload + self.target_namespace = target_namespace + + +class X12EnvelopeOverride(msrest.serialization.Model): + """The X12 envelope override settings. + + All required parameters must be populated in order to send to Azure. + + :param target_namespace: Required. The target namespace on which this envelope settings has to + be applied. + :type target_namespace: str + :param protocol_version: Required. The protocol version on which this envelope settings has to + be applied. + :type protocol_version: str + :param message_id: Required. The message id on which this envelope settings has to be applied. + :type message_id: str + :param responsible_agency_code: Required. The responsible agency code. + :type responsible_agency_code: str + :param header_version: Required. The header version. + :type header_version: str + :param sender_application_id: Required. The sender application id. + :type sender_application_id: str + :param receiver_application_id: Required. The receiver application id. + :type receiver_application_id: str + :param functional_identifier_code: The functional identifier code. + :type functional_identifier_code: str + :param date_format: Required. The x12 date format. Possible values include: 'NotSpecified', + 'CCYYMMDD', 'YYMMDD'. + :type date_format: str or ~logic_management_client.models.X12DateFormat + :param time_format: Required. The x12 time format. Possible values include: 'NotSpecified', + 'HHMM', 'HHMMSS', 'HHMMSSdd', 'HHMMSSd'. + :type time_format: str or ~logic_management_client.models.X12TimeFormat + """ + + _validation = { + 'target_namespace': {'required': True}, + 'protocol_version': {'required': True}, + 'message_id': {'required': True}, + 'responsible_agency_code': {'required': True}, + 'header_version': {'required': True}, + 'sender_application_id': {'required': True}, + 'receiver_application_id': {'required': True}, + 'date_format': {'required': True}, + 'time_format': {'required': True}, + } + + _attribute_map = { + 'target_namespace': {'key': 'targetNamespace', 'type': 'str'}, + 'protocol_version': {'key': 'protocolVersion', 'type': 'str'}, + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'responsible_agency_code': {'key': 'responsibleAgencyCode', 'type': 'str'}, + 'header_version': {'key': 'headerVersion', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'functional_identifier_code': {'key': 'functionalIdentifierCode', 'type': 'str'}, + 'date_format': {'key': 'dateFormat', 'type': 'str'}, + 'time_format': {'key': 'timeFormat', 'type': 'str'}, + } + + def __init__( + self, + *, + target_namespace: str, + protocol_version: str, + message_id: str, + responsible_agency_code: str, + header_version: str, + sender_application_id: str, + receiver_application_id: str, + date_format: Union[str, "X12DateFormat"], + time_format: Union[str, "X12TimeFormat"], + functional_identifier_code: Optional[str] = None, + **kwargs + ): + super(X12EnvelopeOverride, self).__init__(**kwargs) + self.target_namespace = target_namespace + self.protocol_version = protocol_version + self.message_id = message_id + self.responsible_agency_code = responsible_agency_code + self.header_version = header_version + self.sender_application_id = sender_application_id + self.receiver_application_id = receiver_application_id + self.functional_identifier_code = functional_identifier_code + self.date_format = date_format + self.time_format = time_format + + +class X12EnvelopeSettings(msrest.serialization.Model): + """The X12 agreement envelope settings. + + All required parameters must be populated in order to send to Azure. + + :param control_standards_id: Required. The controls standards id. + :type control_standards_id: int + :param use_control_standards_id_as_repetition_character: Required. The value indicating whether + to use control standards id as repetition character. + :type use_control_standards_id_as_repetition_character: bool + :param sender_application_id: Required. The sender application id. + :type sender_application_id: str + :param receiver_application_id: Required. The receiver application id. + :type receiver_application_id: str + :param control_version_number: Required. The control version number. + :type control_version_number: str + :param interchange_control_number_lower_bound: Required. The interchange control number lower + bound. + :type interchange_control_number_lower_bound: int + :param interchange_control_number_upper_bound: Required. The interchange control number upper + bound. + :type interchange_control_number_upper_bound: int + :param rollover_interchange_control_number: Required. The value indicating whether to rollover + interchange control number. + :type rollover_interchange_control_number: bool + :param enable_default_group_headers: Required. The value indicating whether to enable default + group headers. + :type enable_default_group_headers: bool + :param functional_group_id: The functional group id. + :type functional_group_id: str + :param group_control_number_lower_bound: Required. The group control number lower bound. + :type group_control_number_lower_bound: int + :param group_control_number_upper_bound: Required. The group control number upper bound. + :type group_control_number_upper_bound: int + :param rollover_group_control_number: Required. The value indicating whether to rollover group + control number. + :type rollover_group_control_number: bool + :param group_header_agency_code: Required. The group header agency code. + :type group_header_agency_code: str + :param group_header_version: Required. The group header version. + :type group_header_version: str + :param transaction_set_control_number_lower_bound: Required. The transaction set control number + lower bound. + :type transaction_set_control_number_lower_bound: int + :param transaction_set_control_number_upper_bound: Required. The transaction set control number + upper bound. + :type transaction_set_control_number_upper_bound: int + :param rollover_transaction_set_control_number: Required. The value indicating whether to + rollover transaction set control number. + :type rollover_transaction_set_control_number: bool + :param transaction_set_control_number_prefix: The transaction set control number prefix. + :type transaction_set_control_number_prefix: str + :param transaction_set_control_number_suffix: The transaction set control number suffix. + :type transaction_set_control_number_suffix: str + :param overwrite_existing_transaction_set_control_number: Required. The value indicating + whether to overwrite existing transaction set control number. + :type overwrite_existing_transaction_set_control_number: bool + :param group_header_date_format: Required. The x12 date format. Possible values include: + 'NotSpecified', 'CCYYMMDD', 'YYMMDD'. + :type group_header_date_format: str or ~logic_management_client.models.X12DateFormat + :param group_header_time_format: Required. The x12 time format. Possible values include: + 'NotSpecified', 'HHMM', 'HHMMSS', 'HHMMSSdd', 'HHMMSSd'. + :type group_header_time_format: str or ~logic_management_client.models.X12TimeFormat + :param usage_indicator: Required. The usage indicator. Possible values include: 'NotSpecified', + 'Test', 'Information', 'Production'. + :type usage_indicator: str or ~logic_management_client.models.UsageIndicator + """ + + _validation = { + 'control_standards_id': {'required': True}, + 'use_control_standards_id_as_repetition_character': {'required': True}, + 'sender_application_id': {'required': True}, + 'receiver_application_id': {'required': True}, + 'control_version_number': {'required': True}, + 'interchange_control_number_lower_bound': {'required': True}, + 'interchange_control_number_upper_bound': {'required': True}, + 'rollover_interchange_control_number': {'required': True}, + 'enable_default_group_headers': {'required': True}, + 'group_control_number_lower_bound': {'required': True}, + 'group_control_number_upper_bound': {'required': True}, + 'rollover_group_control_number': {'required': True}, + 'group_header_agency_code': {'required': True}, + 'group_header_version': {'required': True}, + 'transaction_set_control_number_lower_bound': {'required': True}, + 'transaction_set_control_number_upper_bound': {'required': True}, + 'rollover_transaction_set_control_number': {'required': True}, + 'overwrite_existing_transaction_set_control_number': {'required': True}, + 'group_header_date_format': {'required': True}, + 'group_header_time_format': {'required': True}, + 'usage_indicator': {'required': True}, + } + + _attribute_map = { + 'control_standards_id': {'key': 'controlStandardsId', 'type': 'int'}, + 'use_control_standards_id_as_repetition_character': {'key': 'useControlStandardsIdAsRepetitionCharacter', 'type': 'bool'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, + 'control_version_number': {'key': 'controlVersionNumber', 'type': 'str'}, + 'interchange_control_number_lower_bound': {'key': 'interchangeControlNumberLowerBound', 'type': 'int'}, + 'interchange_control_number_upper_bound': {'key': 'interchangeControlNumberUpperBound', 'type': 'int'}, + 'rollover_interchange_control_number': {'key': 'rolloverInterchangeControlNumber', 'type': 'bool'}, + 'enable_default_group_headers': {'key': 'enableDefaultGroupHeaders', 'type': 'bool'}, + 'functional_group_id': {'key': 'functionalGroupId', 'type': 'str'}, + 'group_control_number_lower_bound': {'key': 'groupControlNumberLowerBound', 'type': 'int'}, + 'group_control_number_upper_bound': {'key': 'groupControlNumberUpperBound', 'type': 'int'}, + 'rollover_group_control_number': {'key': 'rolloverGroupControlNumber', 'type': 'bool'}, + 'group_header_agency_code': {'key': 'groupHeaderAgencyCode', 'type': 'str'}, + 'group_header_version': {'key': 'groupHeaderVersion', 'type': 'str'}, + 'transaction_set_control_number_lower_bound': {'key': 'transactionSetControlNumberLowerBound', 'type': 'int'}, + 'transaction_set_control_number_upper_bound': {'key': 'transactionSetControlNumberUpperBound', 'type': 'int'}, + 'rollover_transaction_set_control_number': {'key': 'rolloverTransactionSetControlNumber', 'type': 'bool'}, + 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, + 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, + 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, + 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'str'}, + 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'str'}, + 'usage_indicator': {'key': 'usageIndicator', 'type': 'str'}, + } + + def __init__( + self, + *, + control_standards_id: int, + use_control_standards_id_as_repetition_character: bool, + sender_application_id: str, + receiver_application_id: str, + control_version_number: str, + interchange_control_number_lower_bound: int, + interchange_control_number_upper_bound: int, + rollover_interchange_control_number: bool, + enable_default_group_headers: bool, + group_control_number_lower_bound: int, + group_control_number_upper_bound: int, + rollover_group_control_number: bool, + group_header_agency_code: str, + group_header_version: str, + transaction_set_control_number_lower_bound: int, + transaction_set_control_number_upper_bound: int, + rollover_transaction_set_control_number: bool, + overwrite_existing_transaction_set_control_number: bool, + group_header_date_format: Union[str, "X12DateFormat"], + group_header_time_format: Union[str, "X12TimeFormat"], + usage_indicator: Union[str, "UsageIndicator"], + functional_group_id: Optional[str] = None, + transaction_set_control_number_prefix: Optional[str] = None, + transaction_set_control_number_suffix: Optional[str] = None, + **kwargs + ): + super(X12EnvelopeSettings, self).__init__(**kwargs) + self.control_standards_id = control_standards_id + self.use_control_standards_id_as_repetition_character = use_control_standards_id_as_repetition_character + self.sender_application_id = sender_application_id + self.receiver_application_id = receiver_application_id + self.control_version_number = control_version_number + self.interchange_control_number_lower_bound = interchange_control_number_lower_bound + self.interchange_control_number_upper_bound = interchange_control_number_upper_bound + self.rollover_interchange_control_number = rollover_interchange_control_number + self.enable_default_group_headers = enable_default_group_headers + self.functional_group_id = functional_group_id + self.group_control_number_lower_bound = group_control_number_lower_bound + self.group_control_number_upper_bound = group_control_number_upper_bound + self.rollover_group_control_number = rollover_group_control_number + self.group_header_agency_code = group_header_agency_code + self.group_header_version = group_header_version + self.transaction_set_control_number_lower_bound = transaction_set_control_number_lower_bound + self.transaction_set_control_number_upper_bound = transaction_set_control_number_upper_bound + self.rollover_transaction_set_control_number = rollover_transaction_set_control_number + self.transaction_set_control_number_prefix = transaction_set_control_number_prefix + self.transaction_set_control_number_suffix = transaction_set_control_number_suffix + self.overwrite_existing_transaction_set_control_number = overwrite_existing_transaction_set_control_number + self.group_header_date_format = group_header_date_format + self.group_header_time_format = group_header_time_format + self.usage_indicator = usage_indicator + + +class X12FramingSettings(msrest.serialization.Model): + """The X12 agreement framing settings. + + All required parameters must be populated in order to send to Azure. + + :param data_element_separator: Required. The data element separator. + :type data_element_separator: int + :param component_separator: Required. The component separator. + :type component_separator: int + :param replace_separators_in_payload: Required. The value indicating whether to replace + separators in payload. + :type replace_separators_in_payload: bool + :param replace_character: Required. The replacement character. + :type replace_character: int + :param segment_terminator: Required. The segment terminator. + :type segment_terminator: int + :param character_set: Required. The X12 character set. Possible values include: 'NotSpecified', + 'Basic', 'Extended', 'UTF8'. + :type character_set: str or ~logic_management_client.models.X12CharacterSet + :param segment_terminator_suffix: Required. The segment terminator suffix. Possible values + include: 'NotSpecified', 'None', 'CR', 'LF', 'CRLF'. + :type segment_terminator_suffix: str or ~logic_management_client.models.SegmentTerminatorSuffix + """ + + _validation = { + 'data_element_separator': {'required': True}, + 'component_separator': {'required': True}, + 'replace_separators_in_payload': {'required': True}, + 'replace_character': {'required': True}, + 'segment_terminator': {'required': True}, + 'character_set': {'required': True}, + 'segment_terminator_suffix': {'required': True}, + } + + _attribute_map = { + 'data_element_separator': {'key': 'dataElementSeparator', 'type': 'int'}, + 'component_separator': {'key': 'componentSeparator', 'type': 'int'}, + 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, + 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, + 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, + 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'str'}, + } + + def __init__( + self, + *, + data_element_separator: int, + component_separator: int, + replace_separators_in_payload: bool, + replace_character: int, + segment_terminator: int, + character_set: Union[str, "X12CharacterSet"], + segment_terminator_suffix: Union[str, "SegmentTerminatorSuffix"], + **kwargs + ): + super(X12FramingSettings, self).__init__(**kwargs) + self.data_element_separator = data_element_separator + self.component_separator = component_separator + self.replace_separators_in_payload = replace_separators_in_payload + self.replace_character = replace_character + self.segment_terminator = segment_terminator + self.character_set = character_set + self.segment_terminator_suffix = segment_terminator_suffix + + +class X12MessageFilter(msrest.serialization.Model): + """The X12 message filter for odata query. + + All required parameters must be populated in order to send to Azure. + + :param message_filter_type: Required. The message filter type. Possible values include: + 'NotSpecified', 'Include', 'Exclude'. + :type message_filter_type: str or ~logic_management_client.models.MessageFilterType + """ + + _validation = { + 'message_filter_type': {'required': True}, + } + + _attribute_map = { + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, + } + + def __init__( + self, + *, + message_filter_type: Union[str, "MessageFilterType"], + **kwargs + ): + super(X12MessageFilter, self).__init__(**kwargs) + self.message_filter_type = message_filter_type + + +class X12MessageIdentifier(msrest.serialization.Model): + """The X12 message identifier. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + """ + + _validation = { + 'message_id': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: str, + **kwargs + ): + super(X12MessageIdentifier, self).__init__(**kwargs) + self.message_id = message_id + + +class X12OneWayAgreement(msrest.serialization.Model): + """The X12 one-way agreement. + + All required parameters must be populated in order to send to Azure. + + :param sender_business_identity: Required. The integration account partner's business identity. + :type sender_business_identity: ~logic_management_client.models.BusinessIdentity + :param receiver_business_identity: Required. The integration account partner's business + identity. + :type receiver_business_identity: ~logic_management_client.models.BusinessIdentity + :param protocol_settings: Required. The X12 agreement protocol settings. + :type protocol_settings: ~logic_management_client.models.X12ProtocolSettings + """ + + _validation = { + 'sender_business_identity': {'required': True}, + 'receiver_business_identity': {'required': True}, + 'protocol_settings': {'required': True}, + } + + _attribute_map = { + 'sender_business_identity': {'key': 'senderBusinessIdentity', 'type': 'BusinessIdentity'}, + 'receiver_business_identity': {'key': 'receiverBusinessIdentity', 'type': 'BusinessIdentity'}, + 'protocol_settings': {'key': 'protocolSettings', 'type': 'X12ProtocolSettings'}, + } + + def __init__( + self, + *, + sender_business_identity: "BusinessIdentity", + receiver_business_identity: "BusinessIdentity", + protocol_settings: "X12ProtocolSettings", + **kwargs + ): + super(X12OneWayAgreement, self).__init__(**kwargs) + self.sender_business_identity = sender_business_identity + self.receiver_business_identity = receiver_business_identity + self.protocol_settings = protocol_settings + + +class X12ProcessingSettings(msrest.serialization.Model): + """The X12 processing settings. + + All required parameters must be populated in order to send to Azure. + + :param mask_security_info: Required. The value indicating whether to mask security information. + :type mask_security_info: bool + :param convert_implied_decimal: Required. The value indicating whether to convert numerical + type to implied decimal. + :type convert_implied_decimal: bool + :param preserve_interchange: Required. The value indicating whether to preserve interchange. + :type preserve_interchange: bool + :param suspend_interchange_on_error: Required. The value indicating whether to suspend + interchange on error. + :type suspend_interchange_on_error: bool + :param create_empty_xml_tags_for_trailing_separators: Required. The value indicating whether to + create empty xml tags for trailing separators. + :type create_empty_xml_tags_for_trailing_separators: bool + :param use_dot_as_decimal_separator: Required. The value indicating whether to use dot as + decimal separator. + :type use_dot_as_decimal_separator: bool + """ + + _validation = { + 'mask_security_info': {'required': True}, + 'convert_implied_decimal': {'required': True}, + 'preserve_interchange': {'required': True}, + 'suspend_interchange_on_error': {'required': True}, + 'create_empty_xml_tags_for_trailing_separators': {'required': True}, + 'use_dot_as_decimal_separator': {'required': True}, + } + + _attribute_map = { + 'mask_security_info': {'key': 'maskSecurityInfo', 'type': 'bool'}, + 'convert_implied_decimal': {'key': 'convertImpliedDecimal', 'type': 'bool'}, + 'preserve_interchange': {'key': 'preserveInterchange', 'type': 'bool'}, + 'suspend_interchange_on_error': {'key': 'suspendInterchangeOnError', 'type': 'bool'}, + 'create_empty_xml_tags_for_trailing_separators': {'key': 'createEmptyXmlTagsForTrailingSeparators', 'type': 'bool'}, + 'use_dot_as_decimal_separator': {'key': 'useDotAsDecimalSeparator', 'type': 'bool'}, + } + + def __init__( + self, + *, + mask_security_info: bool, + convert_implied_decimal: bool, + preserve_interchange: bool, + suspend_interchange_on_error: bool, + create_empty_xml_tags_for_trailing_separators: bool, + use_dot_as_decimal_separator: bool, + **kwargs + ): + super(X12ProcessingSettings, self).__init__(**kwargs) + self.mask_security_info = mask_security_info + self.convert_implied_decimal = convert_implied_decimal + self.preserve_interchange = preserve_interchange + self.suspend_interchange_on_error = suspend_interchange_on_error + self.create_empty_xml_tags_for_trailing_separators = create_empty_xml_tags_for_trailing_separators + self.use_dot_as_decimal_separator = use_dot_as_decimal_separator + + +class X12ProtocolSettings(msrest.serialization.Model): + """The X12 agreement protocol settings. + + All required parameters must be populated in order to send to Azure. + + :param validation_settings: Required. The X12 agreement validation settings. + :type validation_settings: ~logic_management_client.models.X12ValidationSettings + :param framing_settings: Required. The X12 agreement framing settings. + :type framing_settings: ~logic_management_client.models.X12FramingSettings + :param envelope_settings: Required. The X12 agreement envelope settings. + :type envelope_settings: ~logic_management_client.models.X12EnvelopeSettings + :param acknowledgement_settings: Required. The X12 agreement acknowledgement settings. + :type acknowledgement_settings: ~logic_management_client.models.X12AcknowledgementSettings + :param message_filter: Required. The X12 message filter for odata query. + :type message_filter: ~logic_management_client.models.X12MessageFilter + :param security_settings: Required. The X12 agreement security settings. + :type security_settings: ~logic_management_client.models.X12SecuritySettings + :param processing_settings: Required. The X12 processing settings. + :type processing_settings: ~logic_management_client.models.X12ProcessingSettings + :param envelope_overrides: The X12 envelope override settings. + :type envelope_overrides: list[~logic_management_client.models.X12EnvelopeOverride] + :param validation_overrides: The X12 validation override settings. + :type validation_overrides: list[~logic_management_client.models.X12ValidationOverride] + :param message_filter_list: The X12 message filter list. + :type message_filter_list: list[~logic_management_client.models.X12MessageIdentifier] + :param schema_references: Required. The X12 schema references. + :type schema_references: list[~logic_management_client.models.X12SchemaReference] + :param x12_delimiter_overrides: The X12 delimiter override settings. + :type x12_delimiter_overrides: list[~logic_management_client.models.X12DelimiterOverrides] + """ + + _validation = { + 'validation_settings': {'required': True}, + 'framing_settings': {'required': True}, + 'envelope_settings': {'required': True}, + 'acknowledgement_settings': {'required': True}, + 'message_filter': {'required': True}, + 'security_settings': {'required': True}, + 'processing_settings': {'required': True}, + 'schema_references': {'required': True}, + } + + _attribute_map = { + 'validation_settings': {'key': 'validationSettings', 'type': 'X12ValidationSettings'}, + 'framing_settings': {'key': 'framingSettings', 'type': 'X12FramingSettings'}, + 'envelope_settings': {'key': 'envelopeSettings', 'type': 'X12EnvelopeSettings'}, + 'acknowledgement_settings': {'key': 'acknowledgementSettings', 'type': 'X12AcknowledgementSettings'}, + 'message_filter': {'key': 'messageFilter', 'type': 'X12MessageFilter'}, + 'security_settings': {'key': 'securitySettings', 'type': 'X12SecuritySettings'}, + 'processing_settings': {'key': 'processingSettings', 'type': 'X12ProcessingSettings'}, + 'envelope_overrides': {'key': 'envelopeOverrides', 'type': '[X12EnvelopeOverride]'}, + 'validation_overrides': {'key': 'validationOverrides', 'type': '[X12ValidationOverride]'}, + 'message_filter_list': {'key': 'messageFilterList', 'type': '[X12MessageIdentifier]'}, + 'schema_references': {'key': 'schemaReferences', 'type': '[X12SchemaReference]'}, + 'x12_delimiter_overrides': {'key': 'x12DelimiterOverrides', 'type': '[X12DelimiterOverrides]'}, + } + + def __init__( + self, + *, + validation_settings: "X12ValidationSettings", + framing_settings: "X12FramingSettings", + envelope_settings: "X12EnvelopeSettings", + acknowledgement_settings: "X12AcknowledgementSettings", + message_filter: "X12MessageFilter", + security_settings: "X12SecuritySettings", + processing_settings: "X12ProcessingSettings", + schema_references: List["X12SchemaReference"], + envelope_overrides: Optional[List["X12EnvelopeOverride"]] = None, + validation_overrides: Optional[List["X12ValidationOverride"]] = None, + message_filter_list: Optional[List["X12MessageIdentifier"]] = None, + x12_delimiter_overrides: Optional[List["X12DelimiterOverrides"]] = None, + **kwargs + ): + super(X12ProtocolSettings, self).__init__(**kwargs) + self.validation_settings = validation_settings + self.framing_settings = framing_settings + self.envelope_settings = envelope_settings + self.acknowledgement_settings = acknowledgement_settings + self.message_filter = message_filter + self.security_settings = security_settings + self.processing_settings = processing_settings + self.envelope_overrides = envelope_overrides + self.validation_overrides = validation_overrides + self.message_filter_list = message_filter_list + self.schema_references = schema_references + self.x12_delimiter_overrides = x12_delimiter_overrides + + +class X12SchemaReference(msrest.serialization.Model): + """The X12 schema reference. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id. + :type message_id: str + :param sender_application_id: The sender application id. + :type sender_application_id: str + :param schema_version: Required. The schema version. + :type schema_version: str + :param schema_name: Required. The schema name. + :type schema_name: str + """ + + _validation = { + 'message_id': {'required': True}, + 'schema_version': {'required': True}, + 'schema_name': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: str, + schema_version: str, + schema_name: str, + sender_application_id: Optional[str] = None, + **kwargs + ): + super(X12SchemaReference, self).__init__(**kwargs) + self.message_id = message_id + self.sender_application_id = sender_application_id + self.schema_version = schema_version + self.schema_name = schema_name + + +class X12SecuritySettings(msrest.serialization.Model): + """The X12 agreement security settings. + + All required parameters must be populated in order to send to Azure. + + :param authorization_qualifier: Required. The authorization qualifier. + :type authorization_qualifier: str + :param authorization_value: The authorization value. + :type authorization_value: str + :param security_qualifier: Required. The security qualifier. + :type security_qualifier: str + :param password_value: The password value. + :type password_value: str + """ + + _validation = { + 'authorization_qualifier': {'required': True}, + 'security_qualifier': {'required': True}, + } + + _attribute_map = { + 'authorization_qualifier': {'key': 'authorizationQualifier', 'type': 'str'}, + 'authorization_value': {'key': 'authorizationValue', 'type': 'str'}, + 'security_qualifier': {'key': 'securityQualifier', 'type': 'str'}, + 'password_value': {'key': 'passwordValue', 'type': 'str'}, + } + + def __init__( + self, + *, + authorization_qualifier: str, + security_qualifier: str, + authorization_value: Optional[str] = None, + password_value: Optional[str] = None, + **kwargs + ): + super(X12SecuritySettings, self).__init__(**kwargs) + self.authorization_qualifier = authorization_qualifier + self.authorization_value = authorization_value + self.security_qualifier = security_qualifier + self.password_value = password_value + + +class X12ValidationOverride(msrest.serialization.Model): + """The X12 validation override settings. + + All required parameters must be populated in order to send to Azure. + + :param message_id: Required. The message id on which the validation settings has to be applied. + :type message_id: str + :param validate_edi_types: Required. The value indicating whether to validate EDI types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to validate XSD types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param validate_character_set: Required. The value indicating whether to validate character + Set. + :type validate_character_set: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'message_id': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'validate_character_set': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'message_id': {'key': 'messageId', 'type': 'str'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + *, + message_id: str, + validate_edi_types: bool, + validate_xsd_types: bool, + allow_leading_and_trailing_spaces_and_zeroes: bool, + validate_character_set: bool, + trim_leading_and_trailing_spaces_and_zeroes: bool, + trailing_separator_policy: Union[str, "TrailingSeparatorPolicy"], + **kwargs + ): + super(X12ValidationOverride, self).__init__(**kwargs) + self.message_id = message_id + self.validate_edi_types = validate_edi_types + self.validate_xsd_types = validate_xsd_types + self.allow_leading_and_trailing_spaces_and_zeroes = allow_leading_and_trailing_spaces_and_zeroes + self.validate_character_set = validate_character_set + self.trim_leading_and_trailing_spaces_and_zeroes = trim_leading_and_trailing_spaces_and_zeroes + self.trailing_separator_policy = trailing_separator_policy + + +class X12ValidationSettings(msrest.serialization.Model): + """The X12 agreement validation settings. + + All required parameters must be populated in order to send to Azure. + + :param validate_character_set: Required. The value indicating whether to validate character set + in the message. + :type validate_character_set: bool + :param check_duplicate_interchange_control_number: Required. The value indicating whether to + check for duplicate interchange control number. + :type check_duplicate_interchange_control_number: bool + :param interchange_control_number_validity_days: Required. The validity period of interchange + control number. + :type interchange_control_number_validity_days: int + :param check_duplicate_group_control_number: Required. The value indicating whether to check + for duplicate group control number. + :type check_duplicate_group_control_number: bool + :param check_duplicate_transaction_set_control_number: Required. The value indicating whether + to check for duplicate transaction set control number. + :type check_duplicate_transaction_set_control_number: bool + :param validate_edi_types: Required. The value indicating whether to Whether to validate EDI + types. + :type validate_edi_types: bool + :param validate_xsd_types: Required. The value indicating whether to Whether to validate XSD + types. + :type validate_xsd_types: bool + :param allow_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + allow leading and trailing spaces and zeroes. + :type allow_leading_and_trailing_spaces_and_zeroes: bool + :param trim_leading_and_trailing_spaces_and_zeroes: Required. The value indicating whether to + trim leading and trailing spaces and zeroes. + :type trim_leading_and_trailing_spaces_and_zeroes: bool + :param trailing_separator_policy: Required. The trailing separator policy. Possible values + include: 'NotSpecified', 'NotAllowed', 'Optional', 'Mandatory'. + :type trailing_separator_policy: str or ~logic_management_client.models.TrailingSeparatorPolicy + """ + + _validation = { + 'validate_character_set': {'required': True}, + 'check_duplicate_interchange_control_number': {'required': True}, + 'interchange_control_number_validity_days': {'required': True}, + 'check_duplicate_group_control_number': {'required': True}, + 'check_duplicate_transaction_set_control_number': {'required': True}, + 'validate_edi_types': {'required': True}, + 'validate_xsd_types': {'required': True}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'required': True}, + 'trailing_separator_policy': {'required': True}, + } + + _attribute_map = { + 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, + 'check_duplicate_interchange_control_number': {'key': 'checkDuplicateInterchangeControlNumber', 'type': 'bool'}, + 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, + 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, + 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, + 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, + } + + def __init__( + self, + *, + validate_character_set: bool, + check_duplicate_interchange_control_number: bool, + interchange_control_number_validity_days: int, + check_duplicate_group_control_number: bool, + check_duplicate_transaction_set_control_number: bool, + validate_edi_types: bool, + validate_xsd_types: bool, + allow_leading_and_trailing_spaces_and_zeroes: bool, + trim_leading_and_trailing_spaces_and_zeroes: bool, + trailing_separator_policy: Union[str, "TrailingSeparatorPolicy"], + **kwargs + ): + super(X12ValidationSettings, self).__init__(**kwargs) + self.validate_character_set = validate_character_set + self.check_duplicate_interchange_control_number = check_duplicate_interchange_control_number + self.interchange_control_number_validity_days = interchange_control_number_validity_days + self.check_duplicate_group_control_number = check_duplicate_group_control_number + self.check_duplicate_transaction_set_control_number = check_duplicate_transaction_set_control_number + self.validate_edi_types = validate_edi_types + self.validate_xsd_types = validate_xsd_types + self.allow_leading_and_trailing_spaces_and_zeroes = allow_leading_and_trailing_spaces_and_zeroes + self.trim_leading_and_trailing_spaces_and_zeroes = trim_leading_and_trailing_spaces_and_zeroes + self.trailing_separator_policy = trailing_separator_policy diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/__init__.py b/src/logic/azext_logic/vendored_sdks/logic/operations/__init__.py new file mode 100644 index 00000000000..c3673ac689e --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/__init__.py @@ -0,0 +1,65 @@ +# 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 ._workflow_operations import WorkflowOperations +from ._workflow_version_operations import WorkflowVersionOperations +from ._workflow_trigger_operations import WorkflowTriggerOperations +from ._workflow_version_trigger_operations import WorkflowVersionTriggerOperations +from ._workflow_trigger_history_operations import WorkflowTriggerHistoryOperations +from ._workflow_run_operations import WorkflowRunOperations +from ._workflow_run_action_operations import WorkflowRunActionOperations +from ._workflow_run_action_repetition_operations import WorkflowRunActionRepetitionOperations +from ._workflow_run_action_repetition_request_history_operations import WorkflowRunActionRepetitionRequestHistoryOperations +from ._workflow_run_action_request_history_operations import WorkflowRunActionRequestHistoryOperations +from ._workflow_run_action_scope_repetition_operations import WorkflowRunActionScopeRepetitionOperations +from ._workflow_run_operation_operations import WorkflowRunOperationOperations +from ._integration_account_operations import IntegrationAccountOperations +from ._integration_account_assembly_operations import IntegrationAccountAssemblyOperations +from ._integration_account_batch_configuration_operations import IntegrationAccountBatchConfigurationOperations +from ._integration_account_schema_operations import IntegrationAccountSchemaOperations +from ._integration_account_map_operations import IntegrationAccountMapOperations +from ._integration_account_partner_operations import IntegrationAccountPartnerOperations +from ._integration_account_agreement_operations import IntegrationAccountAgreementOperations +from ._integration_account_certificate_operations import IntegrationAccountCertificateOperations +from ._integration_account_session_operations import IntegrationAccountSessionOperations +from ._integration_service_environment_operations import IntegrationServiceEnvironmentOperations +from ._integration_service_environment_sku_operations import IntegrationServiceEnvironmentSkuOperations +from ._integration_service_environment_network_health_operations import IntegrationServiceEnvironmentNetworkHealthOperations +from ._integration_service_environment_managed_api_operations import IntegrationServiceEnvironmentManagedApiOperations +from ._integration_service_environment_managed_api_operation_operations import IntegrationServiceEnvironmentManagedApiOperationOperations +from ._operation_operations import OperationOperations + +__all__ = [ + 'WorkflowOperations', + 'WorkflowVersionOperations', + 'WorkflowTriggerOperations', + 'WorkflowVersionTriggerOperations', + 'WorkflowTriggerHistoryOperations', + 'WorkflowRunOperations', + 'WorkflowRunActionOperations', + 'WorkflowRunActionRepetitionOperations', + 'WorkflowRunActionRepetitionRequestHistoryOperations', + 'WorkflowRunActionRequestHistoryOperations', + 'WorkflowRunActionScopeRepetitionOperations', + 'WorkflowRunOperationOperations', + 'IntegrationAccountOperations', + 'IntegrationAccountAssemblyOperations', + 'IntegrationAccountBatchConfigurationOperations', + 'IntegrationAccountSchemaOperations', + 'IntegrationAccountMapOperations', + 'IntegrationAccountPartnerOperations', + 'IntegrationAccountAgreementOperations', + 'IntegrationAccountCertificateOperations', + 'IntegrationAccountSessionOperations', + 'IntegrationServiceEnvironmentOperations', + 'IntegrationServiceEnvironmentSkuOperations', + 'IntegrationServiceEnvironmentNetworkHealthOperations', + 'IntegrationServiceEnvironmentManagedApiOperations', + 'IntegrationServiceEnvironmentManagedApiOperationOperations', + 'OperationOperations', +] diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_agreement_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_agreement_operations.py new file mode 100644 index 00000000000..b81f1006763 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_agreement_operations.py @@ -0,0 +1,411 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountAgreementOperations(object): + """IntegrationAccountAgreementOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountAgreementListResult" + """Gets a list of integration account agreements. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreementListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreementListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountAgreementListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountAgreementListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + agreement_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountAgreement" + """Gets an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreement or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreement + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountAgreement"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + agreement_name, # type: str + agreement_type, # type: Union[str, "models.AgreementType"] + host_partner, # type: str + guest_partner, # type: str + host_identity, # type: "models.BusinessIdentity" + guest_identity, # type: "models.BusinessIdentity" + content, # type: "models.AgreementContent" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + metadata=None, # type: Optional["models.IntegrationAccountAgreementPropertiesMetadata"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountAgreement" + """Creates or updates an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :param agreement_type: The agreement type. + :type agreement_type: str or ~logic_management_client.models.AgreementType + :param host_partner: The integration account partner that is set as host partner for this + agreement. + :type host_partner: str + :param guest_partner: The integration account partner that is set as guest partner for this + agreement. + :type guest_partner: str + :param host_identity: The integration account partner's business identity. + :type host_identity: ~logic_management_client.models.BusinessIdentity + :param guest_identity: The integration account partner's business identity. + :type guest_identity: ~logic_management_client.models.BusinessIdentity + :param content: The integration account agreement content. + :type content: ~logic_management_client.models.AgreementContent + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountAgreementPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountAgreement or IntegrationAccountAgreement or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountAgreement or ~logic_management_client.models.IntegrationAccountAgreement + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountAgreement"] + error_map = kwargs.pop('error_map', {}) + + agreement = models.IntegrationAccountAgreement(location=location, tags=tags, metadata=metadata, agreement_type=agreement_type, host_partner=host_partner, guest_partner=guest_partner, host_identity=host_identity, guest_identity=guest_identity, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(agreement, 'IntegrationAccountAgreement') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + agreement_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account agreement. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'} + + def list_content_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + agreement_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param agreement_name: The integration account agreement name. + :type agreement_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'agreementName': self._serialize.url("agreement_name", agreement_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_assembly_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_assembly_operations.py new file mode 100644 index 00000000000..b113d93c154 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_assembly_operations.py @@ -0,0 +1,367 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountAssemblyOperations(object): + """IntegrationAccountAssemblyOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AssemblyCollection" + """List the assemblies for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyCollection or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.AssemblyCollection"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AssemblyCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + assembly_artifact_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AssemblyDefinition" + """Get an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.AssemblyDefinition"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + assembly_artifact_name, # type: str + properties, # type: "models.AssemblyProperties" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + **kwargs # type: Any + ): + # type: (...) -> "models.AssemblyDefinition" + """Create or update an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :param properties: The assembly properties definition. + :type properties: ~logic_management_client.models.AssemblyProperties + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AssemblyDefinition or AssemblyDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.AssemblyDefinition or ~logic_management_client.models.AssemblyDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.AssemblyDefinition"] + error_map = kwargs.pop('error_map', {}) + + assembly_artifact = models.AssemblyDefinition(location=location, tags=tags, properties=properties) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(assembly_artifact, 'AssemblyDefinition') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('AssemblyDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + assembly_artifact_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete an assembly for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}'} + + def list_content_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + assembly_artifact_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the content callback url for an integration account assembly. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param assembly_artifact_name: The assembly artifact name. + :type assembly_artifact_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'assemblyArtifactName': self._serialize.url("assembly_artifact_name", assembly_artifact_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/assemblies/{assemblyArtifactName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_batch_configuration_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_batch_configuration_operations.py new file mode 100644 index 00000000000..f13e693d37c --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_batch_configuration_operations.py @@ -0,0 +1,307 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountBatchConfigurationOperations(object): + """IntegrationAccountBatchConfigurationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.BatchConfigurationCollection" + """List the batch configurations for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfigurationCollection or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfigurationCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.BatchConfigurationCollection"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('BatchConfigurationCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + batch_configuration_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.BatchConfiguration" + """Get a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfiguration or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfiguration + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.BatchConfiguration"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + batch_configuration_name, # type: str + properties, # type: "models.BatchConfigurationProperties" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + **kwargs # type: Any + ): + # type: (...) -> "models.BatchConfiguration" + """Create or update a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :param properties: The batch configuration properties definition. + :type properties: ~logic_management_client.models.BatchConfigurationProperties + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: BatchConfiguration or BatchConfiguration or the result of cls(response) + :rtype: ~logic_management_client.models.BatchConfiguration or ~logic_management_client.models.BatchConfiguration + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.BatchConfiguration"] + error_map = kwargs.pop('error_map', {}) + + batch_configuration = models.BatchConfiguration(location=location, tags=tags, properties=properties) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(batch_configuration, 'BatchConfiguration') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('BatchConfiguration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + batch_configuration_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete a batch configuration for an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param batch_configuration_name: The batch configuration name. + :type batch_configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'batchConfigurationName': self._serialize.url("batch_configuration_name", batch_configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_certificate_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_certificate_operations.py new file mode 100644 index 00000000000..9428f95167a --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_certificate_operations.py @@ -0,0 +1,318 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountCertificateOperations(object): + """IntegrationAccountCertificateOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountCertificateListResult" + """Gets a list of integration account certificates. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificateListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificateListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountCertificateListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountCertificateListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + certificate_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountCertificate" + """Gets an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificate or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificate + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountCertificate"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + certificate_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + metadata=None, # type: Optional["models.IntegrationAccountCertificatePropertiesMetadata"] + key=None, # type: Optional["models.KeyVaultKeyReference"] + public_certificate=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountCertificate" + """Creates or updates an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountCertificatePropertiesMetadata + :param key: The reference to the key vault key. + :type key: ~logic_management_client.models.KeyVaultKeyReference + :param public_certificate: The public certificate. + :type public_certificate: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountCertificate or IntegrationAccountCertificate or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountCertificate or ~logic_management_client.models.IntegrationAccountCertificate + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountCertificate"] + error_map = kwargs.pop('error_map', {}) + + certificate = models.IntegrationAccountCertificate(location=location, tags=tags, metadata=metadata, key=key, public_certificate=public_certificate) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(certificate, 'IntegrationAccountCertificate') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + certificate_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account certificate. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param certificate_name: The integration account certificate name. + :type certificate_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_map_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_map_operations.py new file mode 100644 index 00000000000..cf013eca65f --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_map_operations.py @@ -0,0 +1,403 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountMapOperations(object): + """IntegrationAccountMapOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountMapListResult" + """Gets a list of integration account maps. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMapListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMapListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountMapListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountMapListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + map_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountMap" + """Gets an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMap or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMap + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountMap"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + map_name, # type: str + map_type, # type: Union[str, "models.MapType"] + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + parameters_schema=None, # type: Optional["models.IntegrationAccountMapPropertiesParametersSchema"] + content=None, # type: Optional[str] + content_type=None, # type: Optional[str] + metadata=None, # type: Optional["models.IntegrationAccountMapPropertiesMetadata"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountMap" + """Creates or updates an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :param map_type: The map type. + :type map_type: str or ~logic_management_client.models.MapType + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param parameters_schema: The parameters schema of integration account map. + :type parameters_schema: ~logic_management_client.models.IntegrationAccountMapPropertiesParametersSchema + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountMapPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountMap or IntegrationAccountMap or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountMap or ~logic_management_client.models.IntegrationAccountMap + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountMap"] + error_map = kwargs.pop('error_map', {}) + + map = models.IntegrationAccountMap(location=location, tags=tags, map_type=map_type, parameters_schema=parameters_schema, content=content, content_type=content_type, metadata=metadata) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(map, 'IntegrationAccountMap') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + map_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account map. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}'} + + def list_content_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + map_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param map_name: The integration account map name. + :type map_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'mapName': self._serialize.url("map_name", map_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_operations.py new file mode 100644 index 00000000000..d0882c8a446 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_operations.py @@ -0,0 +1,730 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountOperations(object): + """IntegrationAccountOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountListResult" + """Gets a list of integration accounts by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationAccounts'} + + def list_by_resource_group( + self, + resource_group_name, # type: str + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountListResult" + """Gets a list of integration accounts by resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccount" + """Gets an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccount"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + sku=None, # type: Optional["models.IntegrationAccountSku"] + integration_service_environment=None, # type: Optional["models.IntegrationServiceEnvironment"] + state=None, # type: Optional[Union[str, "models.WorkflowState"]] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccount" + """Creates or updates an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount or ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccount"] + error_map = kwargs.pop('error_map', {}) + + integration_account = models.IntegrationAccount(location=location, tags=tags, sku=sku, integration_service_environment=integration_service_environment, state=state) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_account, 'IntegrationAccount') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + def update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + sku=None, # type: Optional["models.IntegrationAccountSku"] + integration_service_environment=None, # type: Optional["models.IntegrationServiceEnvironment"] + state=None, # type: Optional[Union[str, "models.WorkflowState"]] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccount" + """Updates an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param sku: The integration account sku. + :type sku: ~logic_management_client.models.IntegrationAccountSku + :param integration_service_environment: The integration service environment. + :type integration_service_environment: ~logic_management_client.models.IntegrationServiceEnvironment + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccount"] + error_map = kwargs.pop('error_map', {}) + + integration_account = models.IntegrationAccount(location=location, tags=tags, sku=sku, integration_service_environment=integration_service_environment, state=state) + api_version = "2019-05-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_account, 'IntegrationAccount') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} + + def list_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.CallbackUrl" + """Gets the integration account callback URL. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.CallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.CallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('CallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listCallbackUrl'} + + def list_key_vault_key( + self, + resource_group_name, # type: str + integration_account_name, # type: str + key_vault, # type: "models.KeyVaultReference" + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.KeyVaultKeyCollection" + """Gets the integration account's Key Vault keys. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param key_vault: The key vault reference. + :type key_vault: ~logic_management_client.models.KeyVaultReference + :param skip_token: The skip token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyVaultKeyCollection or the result of cls(response) + :rtype: ~logic_management_client.models.KeyVaultKeyCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.KeyVaultKeyCollection"] + error_map = kwargs.pop('error_map', {}) + list_key_vault_keys = models.ListKeyVaultKeysDefinition(key_vault=key_vault, skip_token=skip_token) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_key_vault_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_key_vault_keys, 'ListKeyVaultKeysDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('KeyVaultKeyCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_key_vault_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listKeyVaultKeys'} + + def log_tracking_event( + self, + resource_group_name, # type: str + integration_account_name, # type: str + source_type, # type: str + events, # type: List["TrackingEvent"] + track_events_options=None, # type: Optional[Union[str, "models.TrackEventsOperationOptions"]] + **kwargs # type: Any + ): + # type: (...) -> None + """Logs the integration account's tracking events. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param source_type: The source type. + :type source_type: str + :param events: The events. + :type events: list[~logic_management_client.models.TrackingEvent] + :param track_events_options: The track events operation options. + :type track_events_options: str or ~logic_management_client.models.TrackEventsOperationOptions + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + log_tracking_events = models.TrackingEventsDefinition(source_type=source_type, track_events_options=track_events_options, events=events) + api_version = "2019-05-01" + + # Construct URL + url = self.log_tracking_event.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(log_tracking_events, 'TrackingEventsDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + log_tracking_event.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/logTrackingEvents'} + + def regenerate_access_key( + self, + resource_group_name, # type: str + integration_account_name, # type: str + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccount" + """Regenerates the integration account access key. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccount or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccount + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccount"] + error_map = kwargs.pop('error_map', {}) + + regenerate_access_key = models.RegenerateActionParameter(key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.regenerate_access_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(regenerate_access_key, 'RegenerateActionParameter') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccount', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + regenerate_access_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/regenerateAccessKey'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_partner_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_partner_operations.py new file mode 100644 index 00000000000..d8570806029 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_partner_operations.py @@ -0,0 +1,397 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountPartnerOperations(object): + """IntegrationAccountPartnerOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountPartnerListResult" + """Gets a list of integration account partners. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartnerListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartnerListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountPartnerListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountPartnerListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + partner_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountPartner" + """Gets an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartner or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartner + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountPartner"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + partner_name, # type: str + partner_type, # type: Union[str, "models.PartnerType"] + content, # type: "models.PartnerContent" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + metadata=None, # type: Optional["models.IntegrationAccountPartnerPropertiesMetadata"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountPartner" + """Creates or updates an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :param partner_type: The partner type. + :type partner_type: str or ~logic_management_client.models.PartnerType + :param content: The integration account partner content. + :type content: ~logic_management_client.models.PartnerContent + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountPartnerPropertiesMetadata + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountPartner or IntegrationAccountPartner or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountPartner or ~logic_management_client.models.IntegrationAccountPartner + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountPartner"] + error_map = kwargs.pop('error_map', {}) + + partner = models.IntegrationAccountPartner(location=location, tags=tags, partner_type=partner_type, metadata=metadata, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(partner, 'IntegrationAccountPartner') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + partner_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account partner. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'} + + def list_content_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + partner_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param partner_name: The integration account partner name. + :type partner_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'partnerName': self._serialize.url("partner_name", partner_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_schema_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_schema_operations.py new file mode 100644 index 00000000000..d35df328259 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_schema_operations.py @@ -0,0 +1,409 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountSchemaOperations(object): + """IntegrationAccountSchemaOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSchemaListResult" + """Gets a list of integration account schemas. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchemaListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchemaListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSchemaListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountSchemaListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + schema_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSchema" + """Gets an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchema or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSchema"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + schema_name, # type: str + schema_type, # type: Union[str, "models.SchemaType"] + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + target_namespace=None, # type: Optional[str] + document_name=None, # type: Optional[str] + file_name=None, # type: Optional[str] + metadata=None, # type: Optional["models.IntegrationAccountSchemaPropertiesMetadata"] + content=None, # type: Optional[str] + content_type=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSchema" + """Creates or updates an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :param schema_type: The schema type. + :type schema_type: str or ~logic_management_client.models.SchemaType + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param target_namespace: The target namespace of the schema. + :type target_namespace: str + :param document_name: The document name. + :type document_name: str + :param file_name: The file name. + :type file_name: str + :param metadata: The metadata. + :type metadata: ~logic_management_client.models.IntegrationAccountSchemaPropertiesMetadata + :param content: The content. + :type content: str + :param content_type: The content type. + :type content_type: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSchema or IntegrationAccountSchema or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSchema or ~logic_management_client.models.IntegrationAccountSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSchema"] + error_map = kwargs.pop('error_map', {}) + + schema = models.IntegrationAccountSchema(location=location, tags=tags, schema_type=schema_type, target_namespace=target_namespace, document_name=document_name, file_name=file_name, metadata=metadata, content=content, content_type=content_type) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(schema, 'IntegrationAccountSchema') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + schema_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account schema. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'} + + def list_content_callback_url( + self, + resource_group_name, # type: str + integration_account_name, # type: str + schema_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the content callback url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param schema_name: The integration account schema name. + :type schema_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + list_content_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_content_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'schemaName': self._serialize.url("schema_name", schema_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_content_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_content_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}/listContentCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_session_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_session_operations.py new file mode 100644 index 00000000000..cec0d405592 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_account_session_operations.py @@ -0,0 +1,318 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationAccountSessionOperations(object): + """IntegrationAccountSessionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + integration_account_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSessionListResult" + """Gets a list of integration account sessions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSessionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSessionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSessionListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationAccountSessionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions'} + + def get( + self, + resource_group_name, # type: str + integration_account_name, # type: str + session_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSession" + """Gets an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSession or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSession + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSession"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} + + def create_or_update( + self, + resource_group_name, # type: str + integration_account_name, # type: str + session_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + content=None, # type: Optional["models.Object"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationAccountSession" + """Creates or updates an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param content: + :type content: ~logic_management_client.models.Object + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationAccountSession or IntegrationAccountSession or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationAccountSession or ~logic_management_client.models.IntegrationAccountSession + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationAccountSession"] + error_map = kwargs.pop('error_map', {}) + + session = models.IntegrationAccountSession(location=location, tags=tags, content=content) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(session, 'IntegrationAccountSession') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} + + def delete( + self, + resource_group_name, # type: str + integration_account_name, # type: str + session_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration account session. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param integration_account_name: The integration account name. + :type integration_account_name: str + :param session_name: The integration account session name. + :type session_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'integrationAccountName': self._serialize.url("integration_account_name", integration_account_name, 'str'), + 'sessionName': self._serialize.url("session_name", session_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions/{sessionName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operation_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operation_operations.py new file mode 100644 index 00000000000..587bb025c6e --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operation_operations.py @@ -0,0 +1,115 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentManagedApiOperationOperations(object): + """IntegrationServiceEnvironmentManagedApiOperationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ApiOperationListResult" + """Gets the managed Api operations. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ApiOperationListResult or the result of cls(response) + :rtype: ~logic_management_client.models.ApiOperationListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ApiOperationListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ApiOperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}/apiOperations'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operations.py new file mode 100644 index 00000000000..7b2f75a8774 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_managed_api_operations.py @@ -0,0 +1,369 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentManagedApiOperations(object): + """IntegrationServiceEnvironmentManagedApiOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ManagedApiListResult" + """Gets the integration service environment managed Apis. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ManagedApiListResult or the result of cls(response) + :rtype: ~logic_management_client.models.ManagedApiListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ManagedApiListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ManagedApiListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis'} + + def get( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ManagedApi" + """Gets the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ManagedApi or the result of cls(response) + :rtype: ~logic_management_client.models.ManagedApi + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ManagedApi"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + def _put_initial( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ManagedApi" + cls = kwargs.pop('cls', None ) # type: ClsType["models.ManagedApi"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self._put_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + def begin_put( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ManagedApi" + """Puts the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns ManagedApi + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.ManagedApi] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.ManagedApi"] + raw_result = self._put_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + api_name=api_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ManagedApi', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + def _delete_initial( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + 'apiName': self._serialize.url("api_name", api_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} + + def begin_delete( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + api_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes the integration service environment managed Api. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param api_name: The api name. + :type api_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType[None] + raw_result = self._delete_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + api_name=api_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_network_health_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_network_health_operations.py new file mode 100644 index 00000000000..408a4a390cf --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_network_health_operations.py @@ -0,0 +1,95 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentNetworkHealthOperations(object): + """IntegrationServiceEnvironmentNetworkHealthOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Dict[str, "IntegrationServiceEnvironmentSubnetNetworkHealth"] + """Gets the integration service environment network health. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: dict or the result of cls(response) + :rtype: dict[str, ~logic_management_client.models.IntegrationServiceEnvironmentSubnetNetworkHealth] + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[Dict[str, "IntegrationServiceEnvironmentSubnetNetworkHealth"]] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('{IntegrationServiceEnvironmentSubnetNetworkHealth}', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/health/network'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_operations.py new file mode 100644 index 00000000000..c0df1275ea1 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_operations.py @@ -0,0 +1,585 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentOperations(object): + """IntegrationServiceEnvironmentOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironmentListResult" + """Gets a list of integration service environments by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironmentListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/integrationServiceEnvironments'} + + def list_by_resource_group( + self, + resource_group, # type: str + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironmentListResult" + """Gets a list of integration service environments by resource group. + + :param resource_group: The resource group. + :type resource_group: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentListResult or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironmentListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments'} + + def get( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironment" + """Gets an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironment or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironment + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironment"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def _create_or_update_initial( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + properties=None, # type: Optional["models.IntegrationServiceEnvironmentProperties"] + sku=None, # type: Optional["models.IntegrationServiceEnvironmentSku"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironment" + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironment"] + error_map = kwargs.pop('error_map', {}) + + integration_service_environment = models.IntegrationServiceEnvironment(location=location, tags=tags, properties=properties, sku=sku) + api_version = "2019-05-01" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_service_environment, 'IntegrationServiceEnvironment') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def begin_create_or_update( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + properties=None, # type: Optional["models.IntegrationServiceEnvironmentProperties"] + sku=None, # type: Optional["models.IntegrationServiceEnvironmentSku"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironment" + """Creates or updates an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns IntegrationServiceEnvironment + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.IntegrationServiceEnvironment] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironment"] + raw_result = self._create_or_update_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + location=location, + tags=tags, + properties=properties, + sku=sku, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def _update_initial( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + properties=None, # type: Optional["models.IntegrationServiceEnvironmentProperties"] + sku=None, # type: Optional["models.IntegrationServiceEnvironmentSku"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironment" + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironment"] + error_map = kwargs.pop('error_map', {}) + + integration_service_environment = models.IntegrationServiceEnvironment(location=location, tags=tags, properties=properties, sku=sku) + api_version = "2019-05-01" + + # Construct URL + url = self._update_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(integration_service_environment, 'IntegrationServiceEnvironment') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def begin_update( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + properties=None, # type: Optional["models.IntegrationServiceEnvironmentProperties"] + sku=None, # type: Optional["models.IntegrationServiceEnvironmentSku"] + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironment" + """Updates an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The integration service environment properties. + :type properties: ~logic_management_client.models.IntegrationServiceEnvironmentProperties + :param sku: The integration service environment sku. + :type sku: ~logic_management_client.models.IntegrationServiceEnvironmentSku + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns IntegrationServiceEnvironment + :rtype: ~azure.core.polling.LROPoller[~logic_management_client.models.IntegrationServiceEnvironment] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironment"] + raw_result = self._update_initial( + resource_group=resource_group, + integration_service_environment_name=integration_service_environment_name, + location=location, + tags=tags, + properties=properties, + sku=sku, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def delete( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}'} + + def restart( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Restarts an integration service environment. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.restart.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/restart'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_sku_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_sku_operations.py new file mode 100644 index 00000000000..5e0e5fe8532 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_integration_service_environment_sku_operations.py @@ -0,0 +1,111 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IntegrationServiceEnvironmentSkuOperations(object): + """IntegrationServiceEnvironmentSkuOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group, # type: str + integration_service_environment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IntegrationServiceEnvironmentSkuList" + """Gets a list of integration service environment Skus. + + :param resource_group: The resource group. + :type resource_group: str + :param integration_service_environment_name: The integration service environment name. + :type integration_service_environment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IntegrationServiceEnvironmentSkuList or the result of cls(response) + :rtype: ~logic_management_client.models.IntegrationServiceEnvironmentSkuList + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.IntegrationServiceEnvironmentSkuList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'), + 'integrationServiceEnvironmentName': self._serialize.url("integration_service_environment_name", integration_service_environment_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IntegrationServiceEnvironmentSkuList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}/skus'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_operation_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_operation_operations.py new file mode 100644 index 00000000000..00a6a8a7de3 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_operation_operations.py @@ -0,0 +1,99 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class OperationOperations(object): + """OperationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> "models.OperationListResult" + """Lists all of the available Logic REST API operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationListResult or the result of cls(response) + :rtype: ~logic_management_client.models.OperationListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('OperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/providers/Microsoft.Logic/operations'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_operations.py new file mode 100644 index 00000000000..dd92fe7c729 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_operations.py @@ -0,0 +1,1083 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowOperations(object): + """WorkflowOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowListResult" + """Gets a list of workflows by subscription. + + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/workflows'} + + def list_by_resource_group( + self, + resource_group_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowListResult" + """Gets a list of workflows by resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Workflow" + """Gets a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Workflow"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + def create_or_update( + self, + resource_group_name, # type: str + workflow_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + state=None, # type: Optional[Union[str, "models.WorkflowState"]] + endpoints_configuration=None, # type: Optional["models.FlowEndpointsConfiguration"] + access_control=None, # type: Optional["models.FlowAccessControlConfiguration"] + integration_account=None, # type: Optional["models.ResourceReference"] + integration_service_environment=None, # type: Optional["models.ResourceReference"] + definition=None, # type: Optional["models.Object"] + parameters=None, # type: Optional[Dict[str, "WorkflowParameter"]] + **kwargs # type: Any + ): + # type: (...) -> "models.Workflow" + """Creates or updates a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow or ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Workflow"] + error_map = kwargs.pop('error_map', {}) + + workflow = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(workflow, 'Workflow') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Workflow', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + def update( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Workflow" + """Updates a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workflow or the result of cls(response) + :rtype: ~logic_management_client.models.Workflow + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Workflow"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Workflow', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + def delete( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'} + + def disable( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Disables a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.disable.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + disable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/disable'} + + def enable( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Enables a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.enable.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + enable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/enable'} + + def generate_upgraded_definition( + self, + resource_group_name, # type: str + workflow_name, # type: str + target_schema_version=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.Object" + """Generates the upgraded definition for a workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param target_schema_version: The target schema version. + :type target_schema_version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Object or the result of cls(response) + :rtype: ~logic_management_client.models.Object + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Object"] + error_map = kwargs.pop('error_map', {}) + + parameters = models.GenerateUpgradedDefinitionParameters(target_schema_version=target_schema_version) + api_version = "2019-05-01" + + # Construct URL + url = self.generate_upgraded_definition.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(parameters, 'GenerateUpgradedDefinitionParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Object', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + generate_upgraded_definition.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/generateUpgradedDefinition'} + + def list_callback_url( + self, + resource_group_name, # type: str + workflow_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the workflow callback Url. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + list_callback_url = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(list_callback_url, 'GetCallbackUrlParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listCallbackUrl'} + + def list_swagger( + self, + resource_group_name, # type: str + workflow_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Object" + """Gets an OpenAPI definition for the workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Object or the result of cls(response) + :rtype: ~logic_management_client.models.Object + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Object"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_swagger.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Object', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_swagger.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listSwagger'} + + def _move_initial( + self, + resource_group_name, # type: str + workflow_name, # type: str + id=None, # type: Optional[str] + name=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + move = models.WorkflowReference(id=id, name=name) + api_version = "2019-05-01" + + # Construct URL + url = self._move_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(move, 'WorkflowReference') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _move_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move'} + + def begin_move( + self, + resource_group_name, # type: str + workflow_name, # type: str + id=None, # type: Optional[str] + name=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + """Moves an existing workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param id: The resource id. + :type id: str + :param name: The workflow name. + :type name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~logic_management_client.models.ErrorResponseException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType[None] + raw_result = self._move_initial( + resource_group_name=resource_group_name, + workflow_name=workflow_name, + id=id, + name=name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_move.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/move'} + + def regenerate_access_key( + self, + resource_group_name, # type: str + workflow_name, # type: str + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> None + """Regenerates the callback URL access key for request triggers. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + key_type = models.RegenerateActionParameter(key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.regenerate_access_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(key_type, 'RegenerateActionParameter') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + regenerate_access_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey'} + + def validate_by_resource_group( + self, + resource_group_name, # type: str + workflow_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + state=None, # type: Optional[Union[str, "models.WorkflowState"]] + endpoints_configuration=None, # type: Optional["models.FlowEndpointsConfiguration"] + access_control=None, # type: Optional["models.FlowAccessControlConfiguration"] + integration_account=None, # type: Optional["models.ResourceReference"] + integration_service_environment=None, # type: Optional["models.ResourceReference"] + definition=None, # type: Optional["models.Object"] + parameters=None, # type: Optional[Dict[str, "WorkflowParameter"]] + **kwargs # type: Any + ): + # type: (...) -> None + """Validates the workflow. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + validate = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.validate_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(validate, 'Workflow') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + validate_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate'} + + def validate_by_location( + self, + resource_group_name, # type: str + location, # type: str + workflow_name, # type: str + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + state=None, # type: Optional[Union[str, "models.WorkflowState"]] + endpoints_configuration=None, # type: Optional["models.FlowEndpointsConfiguration"] + access_control=None, # type: Optional["models.FlowAccessControlConfiguration"] + integration_account=None, # type: Optional["models.ResourceReference"] + integration_service_environment=None, # type: Optional["models.ResourceReference"] + definition=None, # type: Optional["models.Object"] + parameters=None, # type: Optional[Dict[str, "WorkflowParameter"]] + **kwargs # type: Any + ): + # type: (...) -> None + """Validates the workflow definition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param location: The workflow location. + :type location: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param state: The workflow state. + :type state: str or ~logic_management_client.models.WorkflowState + :param endpoints_configuration: The endpoints configuration. + :type endpoints_configuration: ~logic_management_client.models.FlowEndpointsConfiguration + :param access_control: The access control configuration. + :type access_control: ~logic_management_client.models.FlowAccessControlConfiguration + :param integration_account: The resource reference. + :type integration_account: ~logic_management_client.models.ResourceReference + :param integration_service_environment: The resource reference. + :type integration_service_environment: ~logic_management_client.models.ResourceReference + :param definition: + :type definition: ~logic_management_client.models.Object + :param parameters: The parameters. + :type parameters: dict[str, ~logic_management_client.models.WorkflowParameter] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + validate = models.Workflow(location=location, tags=tags, state=state, endpoints_configuration=endpoints_configuration, access_control=access_control, integration_account=integration_account, integration_service_environment=integration_service_environment, definition=definition, parameters=parameters) + api_version = "2019-05-01" + + # Construct URL + url = self.validate_by_location.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'location': self._serialize.url("location", location, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(validate, 'Workflow') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + validate_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_operations.py new file mode 100644 index 00000000000..f668223c088 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_operations.py @@ -0,0 +1,269 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionOperations(object): + """WorkflowRunActionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunActionListResult" + """Gets a list of workflow run actions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunActionListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunAction" + """Gets a workflow run action. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunAction or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunAction + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunAction"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunAction', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}'} + + def list_expression_trace( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ExpressionTraces" + """Lists a workflow run expression trace. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExpressionTraces or the result of cls(response) + :rtype: ~logic_management_client.models.ExpressionTraces + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ExpressionTraces"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_expression_trace.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ExpressionTraces', pipeline_response) + list_of_elem = deserialized.inputs + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_expression_trace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/listExpressionTraces'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_operations.py new file mode 100644 index 00000000000..57e5ba54774 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_operations.py @@ -0,0 +1,270 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRepetitionOperations(object): + """WorkflowRunActionRepetitionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunActionRepetitionDefinitionCollection" + """Get all of a workflow run action repetitions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinitionCollection or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinitionCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunActionRepetitionDefinitionCollection"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinitionCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + repetition_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunActionRepetitionDefinition" + """Get a workflow run action repetition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunActionRepetitionDefinition"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}'} + + def list_expression_trace( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + repetition_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ExpressionTraces" + """Lists a workflow run expression trace. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ExpressionTraces or the result of cls(response) + :rtype: ~logic_management_client.models.ExpressionTraces + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ExpressionTraces"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_expression_trace.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ExpressionTraces', pipeline_response) + list_of_elem = deserialized.inputs + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_expression_trace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/listExpressionTraces'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_request_history_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_request_history_operations.py new file mode 100644 index 00000000000..cbec06d66ff --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_repetition_request_history_operations.py @@ -0,0 +1,195 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRepetitionRequestHistoryOperations(object): + """WorkflowRunActionRepetitionRequestHistoryOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + repetition_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.RequestHistoryListResult" + """List a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.RequestHistoryListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('RequestHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + repetition_name, # type: str + request_history_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.RequestHistory" + """Gets a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistory or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.RequestHistory"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('RequestHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_request_history_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_request_history_operations.py new file mode 100644 index 00000000000..5eeea00a5b3 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_request_history_operations.py @@ -0,0 +1,187 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionRequestHistoryOperations(object): + """WorkflowRunActionRequestHistoryOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.RequestHistoryListResult" + """List a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.RequestHistoryListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('RequestHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + request_history_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.RequestHistory" + """Gets a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RequestHistory or the result of cls(response) + :rtype: ~logic_management_client.models.RequestHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.RequestHistory"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('RequestHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories/{requestHistoryName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_scope_repetition_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_scope_repetition_operations.py new file mode 100644 index 00000000000..a8bef641d08 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_action_scope_repetition_operations.py @@ -0,0 +1,187 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunActionScopeRepetitionOperations(object): + """WorkflowRunActionScopeRepetitionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunActionRepetitionDefinitionCollection" + """List the workflow run action scoped repetitions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinitionCollection or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinitionCollection + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunActionRepetitionDefinitionCollection"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinitionCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + action_name, # type: str + repetition_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunActionRepetitionDefinition" + """Get a workflow run action scoped repetition. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunActionRepetitionDefinition or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunActionRepetitionDefinition + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunActionRepetitionDefinition"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions/{repetitionName}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operation_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operation_operations.py new file mode 100644 index 00000000000..515d655f305 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operation_operations.py @@ -0,0 +1,103 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunOperationOperations(object): + """WorkflowRunOperationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + operation_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRun" + """Gets an operation for a run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param operation_id: The workflow operation id. + :type operation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRun or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRun + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRun"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRun', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/operations/{operationId}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operations.py new file mode 100644 index 00000000000..59ba46ec448 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_run_operations.py @@ -0,0 +1,238 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowRunOperations(object): + """WorkflowRunOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRunListResult" + """Gets a list of workflow runs. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRunListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRunListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRunListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowRunListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowRun" + """Gets a workflow run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowRun or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowRun + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowRun"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowRun', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}'} + + def cancel( + self, + resource_group_name, # type: str + workflow_name, # type: str + run_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Cancels a workflow run. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.cancel.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_history_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_history_operations.py new file mode 100644 index 00000000000..3a9a7a28a5b --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_history_operations.py @@ -0,0 +1,252 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowTriggerHistoryOperations(object): + """WorkflowTriggerHistoryOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerHistoryListResult" + """Gets a list of workflow trigger histories. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerHistoryListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerHistoryListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerHistoryListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowTriggerHistoryListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + history_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerHistory" + """Gets a workflow trigger history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param history_name: The workflow trigger history name. Corresponds to the run name for + triggers that resulted in a run. + :type history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerHistory or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerHistory + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerHistory"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + 'historyName': self._serialize.url("history_name", history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerHistory', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}'} + + def resubmit( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + history_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Resubmits a workflow run based on the trigger history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param history_name: The workflow trigger history name. Corresponds to the run name for + triggers that resulted in a run. + :type history_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.resubmit.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + 'historyName': self._serialize.url("history_name", history_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + resubmit.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}/resubmit'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_operations.py new file mode 100644 index 00000000000..24102c4f6c4 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_trigger_operations.py @@ -0,0 +1,479 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowTriggerOperations(object): + """WorkflowTriggerOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + top=None, # type: Optional[int] + filter=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerListResult" + """Gets a list of workflow triggers. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :param filter: The filter to apply on the operation. Options for filters include: State, + Trigger, and ReferencedResourceId. + :type filter: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowTriggerListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTrigger" + """Gets a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTrigger or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTrigger + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTrigger"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTrigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}'} + + def reset( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Resets a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.reset.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/reset'} + + def run( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Runs a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.run.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + run.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/run'} + + def get_schema_json( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.JsonSchema" + """Get the trigger schema as JSON. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: JsonSchema or the result of cls(response) + :rtype: ~logic_management_client.models.JsonSchema + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.JsonSchema"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get_schema_json.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('JsonSchema', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_schema_json.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/schemas/json'} + + def set_state( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + source, # type: "models.WorkflowTriggerReference" + **kwargs # type: Any + ): + # type: (...) -> None + """Sets the state of a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param source: The workflow trigger reference. + :type source: ~logic_management_client.models.WorkflowTriggerReference + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + + set_state = models.SetTriggerStateActionDefinition(source=source) + api_version = "2019-05-01" + + # Construct URL + url = self.set_state.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(set_state, 'SetTriggerStateActionDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + set_state.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/setState'} + + def list_callback_url( + self, + resource_group_name, # type: str + workflow_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the callback URL for a workflow trigger. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/listCallbackUrl'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_operations.py new file mode 100644 index 00000000000..37e3db35100 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_operations.py @@ -0,0 +1,176 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowVersionOperations(object): + """WorkflowVersionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + workflow_name, # type: str + top=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowVersionListResult" + """Gets a list of workflow versions. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param top: The number of items to be included in the result. + :type top: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowVersionListResult or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowVersionListResult + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowVersionListResult"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkflowVersionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions'} + + def get( + self, + resource_group_name, # type: str + workflow_name, # type: str + version_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowVersion" + """Gets a workflow version. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param version_id: The workflow versionId. + :type version_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowVersion or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowVersion + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowVersion"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-05-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowVersion', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}'} diff --git a/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_trigger_operations.py b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_trigger_operations.py new file mode 100644 index 00000000000..4fc2b5d4188 --- /dev/null +++ b/src/logic/azext_logic/vendored_sdks/logic/operations/_workflow_version_trigger_operations.py @@ -0,0 +1,119 @@ +# 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. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class WorkflowVersionTriggerOperations(object): + """WorkflowVersionTriggerOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~logic_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_callback_url( + self, + resource_group_name, # type: str + workflow_name, # type: str + version_id, # type: str + trigger_name, # type: str + not_after=None, # type: Optional[datetime.datetime] + key_type=None, # type: Optional[Union[str, "models.KeyType"]] + **kwargs # type: Any + ): + # type: (...) -> "models.WorkflowTriggerCallbackUrl" + """Get the callback url for a trigger of a workflow version. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param version_id: The workflow versionId. + :type version_id: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param not_after: The expiry time. + :type not_after: ~datetime.datetime + :param key_type: The key type. + :type key_type: str or ~logic_management_client.models.KeyType + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkflowTriggerCallbackUrl or the result of cls(response) + :rtype: ~logic_management_client.models.WorkflowTriggerCallbackUrl + :raises: ~logic_management_client.models.ErrorResponseException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.WorkflowTriggerCallbackUrl"] + error_map = kwargs.pop('error_map', {}) + + parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + api_version = "2019-05-01" + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + if parameters is not None: + body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.ErrorResponseException.from_response(response, self._deserialize) + + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}/triggers/{triggerName}/listCallbackUrl'} diff --git a/src/logic/report.md b/src/logic/report.md new file mode 100644 index 00000000000..f38dde6d835 --- /dev/null +++ b/src/logic/report.md @@ -0,0 +1,1133 @@ +# Azure CLI Module Creation Report + +### logic integration-account create + +create a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--sku**|object|The integration account sku.|sku|sku| +|**--integration_service_environment**|object|The integration service environment.|integration_service_environment|properties_integration_service_environment| +|**--state**|choice|The workflow state.|state|properties_state| +### logic integration-account delete + +delete a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +### logic integration-account list + +list a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +### logic integration-account list-callback-url + +list-callback-url a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account list-key-vault-key + +list-key-vault-key a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--key_vault**|object|The key vault reference.|key_vault|key_vault| +|**--skip_token**|string|The skip token.|skip_token|skip_token| +### logic integration-account log-tracking-event + +log-tracking-event a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--source_type**|string|The source type.|source_type|source_type| +|**--events**|array|The events.|events|events| +|**--track_events_options**|choice|The track events operation options.|track_events_options|track_events_options| +### logic integration-account regenerate-access-key + +regenerate-access-key a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account show + +show a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +### logic integration-account update + +update a logic integration-account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--sku**|object|The integration account sku.|sku|sku| +|**--integration_service_environment**|object|The integration service environment.|integration_service_environment|properties_integration_service_environment| +|**--state**|choice|The workflow state.|state|properties_state| +### logic integration-account-agreement create + +create a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--agreement_name**|string|The integration account agreement name.|agreement_name|agreement_name| +|**--agreement_type**|sealed-choice|The agreement type.|agreement_type|properties_agreement_type| +|**--host_partner**|string|The integration account partner that is set as host partner for this agreement.|host_partner|properties_host_partner| +|**--guest_partner**|string|The integration account partner that is set as guest partner for this agreement.|guest_partner|properties_guest_partner| +|**--host_identity**|object|The integration account partner's business identity.|host_identity|properties_host_identity| +|**--guest_identity**|object|The integration account partner's business identity.|guest_identity|properties_guest_identity| +|**--content**|object|The integration account agreement content.|content|properties_content| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-agreement delete + +delete a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--agreement_name**|string|The integration account agreement name.|agreement_name|agreement_name| +### logic integration-account-agreement list + +list a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic integration-account-agreement list-content-callback-url + +list-content-callback-url a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--agreement_name**|string|The integration account agreement name.|agreement_name|agreement_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account-agreement show + +show a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--agreement_name**|string|The integration account agreement name.|agreement_name|agreement_name| +### logic integration-account-agreement update + +create a logic integration-account-agreement. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--agreement_name**|string|The integration account agreement name.|agreement_name|agreement_name| +|**--agreement_type**|sealed-choice|The agreement type.|agreement_type|properties_agreement_type| +|**--host_partner**|string|The integration account partner that is set as host partner for this agreement.|host_partner|properties_host_partner| +|**--guest_partner**|string|The integration account partner that is set as guest partner for this agreement.|guest_partner|properties_guest_partner| +|**--host_identity**|object|The integration account partner's business identity.|host_identity|properties_host_identity| +|**--guest_identity**|object|The integration account partner's business identity.|guest_identity|properties_guest_identity| +|**--content**|object|The integration account agreement content.|content|properties_content| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-assembly create + +create a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--assembly_artifact_name**|string|The assembly artifact name.|assembly_artifact_name|assembly_artifact_name| +|**--properties**|object|The assembly properties definition.|properties|properties| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +### logic integration-account-assembly delete + +delete a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--assembly_artifact_name**|string|The assembly artifact name.|assembly_artifact_name|assembly_artifact_name| +### logic integration-account-assembly list + +list a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +### logic integration-account-assembly list-content-callback-url + +list-content-callback-url a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--assembly_artifact_name**|string|The assembly artifact name.|assembly_artifact_name|assembly_artifact_name| +### logic integration-account-assembly show + +show a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--assembly_artifact_name**|string|The assembly artifact name.|assembly_artifact_name|assembly_artifact_name| +### logic integration-account-assembly update + +create a logic integration-account-assembly. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--assembly_artifact_name**|string|The assembly artifact name.|assembly_artifact_name|assembly_artifact_name| +|**--properties**|object|The assembly properties definition.|properties|properties| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +### logic integration-account-batch-configuration create + +create a logic integration-account-batch-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--batch_configuration_name**|string|The batch configuration name.|batch_configuration_name|batch_configuration_name| +|**--properties**|object|The batch configuration properties definition.|properties|properties| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +### logic integration-account-batch-configuration delete + +delete a logic integration-account-batch-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--batch_configuration_name**|string|The batch configuration name.|batch_configuration_name|batch_configuration_name| +### logic integration-account-batch-configuration list + +list a logic integration-account-batch-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +### logic integration-account-batch-configuration show + +show a logic integration-account-batch-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--batch_configuration_name**|string|The batch configuration name.|batch_configuration_name|batch_configuration_name| +### logic integration-account-batch-configuration update + +create a logic integration-account-batch-configuration. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--batch_configuration_name**|string|The batch configuration name.|batch_configuration_name|batch_configuration_name| +|**--properties**|object|The batch configuration properties definition.|properties|properties| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +### logic integration-account-certificate create + +create a logic integration-account-certificate. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--certificate_name**|string|The integration account certificate name.|certificate_name|certificate_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +|**--key**|object|The reference to the key vault key.|key|properties_key| +|**--public_certificate**|string|The public certificate.|public_certificate|properties_public_certificate| +### logic integration-account-certificate delete + +delete a logic integration-account-certificate. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--certificate_name**|string|The integration account certificate name.|certificate_name|certificate_name| +### logic integration-account-certificate list + +list a logic integration-account-certificate. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +### logic integration-account-certificate show + +show a logic integration-account-certificate. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--certificate_name**|string|The integration account certificate name.|certificate_name|certificate_name| +### logic integration-account-certificate update + +create a logic integration-account-certificate. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--certificate_name**|string|The integration account certificate name.|certificate_name|certificate_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +|**--key**|object|The reference to the key vault key.|key|properties_key| +|**--public_certificate**|string|The public certificate.|public_certificate|properties_public_certificate| +### logic integration-account-map create + +create a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--map_name**|string|The integration account map name.|map_name|map_name| +|**--map_type**|choice|The map type.|map_type|properties_map_type| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--parameters_schema**|object|The parameters schema of integration account map.|parameters_schema|properties_parameters_schema| +|**--content**|string|The content.|content|properties_content| +|**--content_type**|string|The content type.|content_type|properties_content_type| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-map delete + +delete a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--map_name**|string|The integration account map name.|map_name|map_name| +### logic integration-account-map list + +list a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic integration-account-map list-content-callback-url + +list-content-callback-url a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--map_name**|string|The integration account map name.|map_name|map_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account-map show + +show a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--map_name**|string|The integration account map name.|map_name|map_name| +### logic integration-account-map update + +create a logic integration-account-map. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--map_name**|string|The integration account map name.|map_name|map_name| +|**--map_type**|choice|The map type.|map_type|properties_map_type| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--parameters_schema**|object|The parameters schema of integration account map.|parameters_schema|properties_parameters_schema| +|**--content**|string|The content.|content|properties_content| +|**--content_type**|string|The content type.|content_type|properties_content_type| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-partner create + +create a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--partner_name**|string|The integration account partner name.|partner_name|partner_name| +|**--partner_type**|choice|The partner type.|partner_type|properties_partner_type| +|**--content**|object|The integration account partner content.|content|properties_content| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-partner delete + +delete a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--partner_name**|string|The integration account partner name.|partner_name|partner_name| +### logic integration-account-partner list + +list a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic integration-account-partner list-content-callback-url + +list-content-callback-url a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--partner_name**|string|The integration account partner name.|partner_name|partner_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account-partner show + +show a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--partner_name**|string|The integration account partner name.|partner_name|partner_name| +### logic integration-account-partner update + +create a logic integration-account-partner. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--partner_name**|string|The integration account partner name.|partner_name|partner_name| +|**--partner_type**|choice|The partner type.|partner_type|properties_partner_type| +|**--content**|object|The integration account partner content.|content|properties_content| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +### logic integration-account-schema create + +create a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--schema_name**|string|The integration account schema name.|schema_name|schema_name| +|**--schema_type**|choice|The schema type.|schema_type|properties_schema_type| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--target_namespace**|string|The target namespace of the schema.|target_namespace|properties_target_namespace| +|**--document_name**|string|The document name.|document_name|properties_document_name| +|**--file_name**|string|The file name.|file_name|properties_file_name| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +|**--content**|string|The content.|content|properties_content| +|**--content_type**|string|The content type.|content_type|properties_content_type| +### logic integration-account-schema delete + +delete a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--schema_name**|string|The integration account schema name.|schema_name|schema_name| +### logic integration-account-schema list + +list a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic integration-account-schema list-content-callback-url + +list-content-callback-url a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--schema_name**|string|The integration account schema name.|schema_name|schema_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic integration-account-schema show + +show a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--schema_name**|string|The integration account schema name.|schema_name|schema_name| +### logic integration-account-schema update + +create a logic integration-account-schema. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--schema_name**|string|The integration account schema name.|schema_name|schema_name| +|**--schema_type**|choice|The schema type.|schema_type|properties_schema_type| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--target_namespace**|string|The target namespace of the schema.|target_namespace|properties_target_namespace| +|**--document_name**|string|The document name.|document_name|properties_document_name| +|**--file_name**|string|The file name.|file_name|properties_file_name| +|**--metadata**|object|The metadata.|metadata|properties_metadata| +|**--content**|string|The content.|content|properties_content| +|**--content_type**|string|The content type.|content_type|properties_content_type| +### logic integration-account-session create + +create a logic integration-account-session. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--session_name**|string|The integration account session name.|session_name|session_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--content**|object||content|properties_content| +### logic integration-account-session delete + +delete a logic integration-account-session. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--session_name**|string|The integration account session name.|session_name|session_name| +### logic integration-account-session list + +list a logic integration-account-session. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic integration-account-session show + +show a logic integration-account-session. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--session_name**|string|The integration account session name.|session_name|session_name| +### logic integration-account-session update + +create a logic integration-account-session. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--integration_account_name**|string|The integration account name.|integration_account_name|integration_account_name| +|**--session_name**|string|The integration account session name.|session_name|session_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--content**|object||content|properties_content| +### logic integration-service-environment create + +create a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--properties**|object|The integration service environment properties.|properties|properties| +|**--sku**|object|The integration service environment sku.|sku|sku| +### logic integration-service-environment delete + +delete a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic integration-service-environment list + +list a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--top**|integer|The number of items to be included in the result.|top|top| +### logic integration-service-environment restart + +restart a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic integration-service-environment show + +show a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic integration-service-environment update + +update a logic integration-service-environment. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--properties**|object|The integration service environment properties.|properties|properties| +|**--sku**|object|The integration service environment sku.|sku|sku| +### logic integration-service-environment-managed-api delete + +delete a logic integration-service-environment-managed-api. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--api_name**|string|The api name.|api_name|api_name| +### logic integration-service-environment-managed-api list + +list a logic integration-service-environment-managed-api. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic integration-service-environment-managed-api put + +put a logic integration-service-environment-managed-api. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--api_name**|string|The api name.|api_name|api_name| +### logic integration-service-environment-managed-api show + +show a logic integration-service-environment-managed-api. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--api_name**|string|The api name.|api_name|api_name| +### logic integration-service-environment-managed-api-operation list + +list a logic integration-service-environment-managed-api-operation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +|**--api_name**|string|The api name.|api_name|api_name| +### logic integration-service-environment-network-health show + +show a logic integration-service-environment-network-health. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic integration-service-environment-sku list + +list a logic integration-service-environment-sku. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group**|string|The resource group.|resource_group|resource_group| +|**--integration_service_environment_name**|string|The integration service environment name.|integration_service_environment_name|integration_service_environment_name| +### logic workflow create + +create a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--state**|choice|The workflow state.|state|properties_state| +|**--endpoints_configuration**|object|The endpoints configuration.|endpoints_configuration|properties_endpoints_configuration| +|**--access_control**|object|The access control configuration.|access_control|properties_access_control| +|**--integration_account**|object|The resource reference.|integration_account|properties_integration_account| +|**--integration_service_environment**|object|The resource reference.|integration_service_environment|properties_integration_service_environment| +|**--definition**|object||definition|properties_definition| +|**--parameters**|dictionary|The parameters.|parameters|properties_parameters| +### logic workflow delete + +delete a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow disable + +disable a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow enable + +enable a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow generate-upgraded-definition + +generate-upgraded-definition a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--target_schema_version**|string|The target schema version.|target_schema_version|target_schema_version| +### logic workflow list + +list a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic workflow list-callback-url + +list-callback-url a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic workflow list-swagger + +list-swagger a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow move + +move a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--id**|string|The resource id.|id|id| +|**--name**|string|The workflow name.|name|name| +### logic workflow regenerate-access-key + +regenerate-access-key a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--key_type**|choice|The key type.|key_type|key_type| +### logic workflow show + +show a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow update + +update a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +### logic workflow validate-by-location + +validate-by-location a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--location**|string|The workflow location.|location|location| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--state**|choice|The workflow state.|state|properties_state| +|**--endpoints_configuration**|object|The endpoints configuration.|endpoints_configuration|properties_endpoints_configuration| +|**--access_control**|object|The access control configuration.|access_control|properties_access_control| +|**--integration_account**|object|The resource reference.|integration_account|properties_integration_account| +|**--integration_service_environment**|object|The resource reference.|integration_service_environment|properties_integration_service_environment| +|**--definition**|object||definition|properties_definition| +|**--parameters**|dictionary|The parameters.|parameters|properties_parameters| +### logic workflow validate-by-resource-group + +validate-by-resource-group a logic workflow. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--location**|string|The resource location.|location|location| +|**--tags**|dictionary|The resource tags.|tags|tags| +|**--state**|choice|The workflow state.|state|properties_state| +|**--endpoints_configuration**|object|The endpoints configuration.|endpoints_configuration|properties_endpoints_configuration| +|**--access_control**|object|The access control configuration.|access_control|properties_access_control| +|**--integration_account**|object|The resource reference.|integration_account|properties_integration_account| +|**--integration_service_environment**|object|The resource reference.|integration_service_environment|properties_integration_service_environment| +|**--definition**|object||definition|properties_definition| +|**--parameters**|dictionary|The parameters.|parameters|properties_parameters| +### logic workflow-run cancel + +cancel a logic workflow-run. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +### logic workflow-run list + +list a logic workflow-run. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic workflow-run show + +show a logic workflow-run. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +### logic workflow-run-action list + +list a logic workflow-run-action. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic workflow-run-action list-expression-trace + +list-expression-trace a logic workflow-run-action. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +### logic workflow-run-action show + +show a logic workflow-run-action. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +### logic workflow-run-action-repetition list + +list a logic workflow-run-action-repetition. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +### logic workflow-run-action-repetition list-expression-trace + +list-expression-trace a logic workflow-run-action-repetition. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--repetition_name**|string|The workflow repetition.|repetition_name|repetition_name| +### logic workflow-run-action-repetition show + +show a logic workflow-run-action-repetition. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--repetition_name**|string|The workflow repetition.|repetition_name|repetition_name| +### logic workflow-run-action-repetition-request-history list + +list a logic workflow-run-action-repetition-request-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--repetition_name**|string|The workflow repetition.|repetition_name|repetition_name| +### logic workflow-run-action-repetition-request-history show + +show a logic workflow-run-action-repetition-request-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--repetition_name**|string|The workflow repetition.|repetition_name|repetition_name| +|**--request_history_name**|string|The request history name.|request_history_name|request_history_name| +### logic workflow-run-action-request-history list + +list a logic workflow-run-action-request-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +### logic workflow-run-action-request-history show + +show a logic workflow-run-action-request-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--request_history_name**|string|The request history name.|request_history_name|request_history_name| +### logic workflow-run-action-scope-repetition list + +list a logic workflow-run-action-scope-repetition. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +### logic workflow-run-action-scope-repetition show + +show a logic workflow-run-action-scope-repetition. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--action_name**|string|The workflow action name.|action_name|action_name| +|**--repetition_name**|string|The workflow repetition.|repetition_name|repetition_name| +### logic workflow-run-operation show + +show a logic workflow-run-operation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--run_name**|string|The workflow run name.|run_name|run_name| +|**--operation_id**|string|The workflow operation id.|operation_id|operation_id| +### logic workflow-trigger list + +list a logic workflow-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic workflow-trigger list-callback-url + +list-callback-url a logic workflow-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +### logic workflow-trigger reset + +reset a logic workflow-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +|**--source**|object|The workflow trigger reference.|source|source| +### logic workflow-trigger run + +run a logic workflow-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +### logic workflow-trigger show + +show a logic workflow-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +### logic workflow-trigger-history list + +list a logic workflow-trigger-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +|**--filter**|string|The filter to apply on the operation. Options for filters include: State, Trigger, and ReferencedResourceId.|filter|filter| +### logic workflow-trigger-history resubmit + +resubmit a logic workflow-trigger-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +|**--history_name**|string|The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run.|history_name|history_name| +### logic workflow-trigger-history show + +show a logic workflow-trigger-history. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +|**--history_name**|string|The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run.|history_name|history_name| +### logic workflow-version list + +list a logic workflow-version. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--top**|integer|The number of items to be included in the result.|top|top| +### logic workflow-version show + +show a logic workflow-version. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--version_id**|string|The workflow versionId.|version_id|version_id| +### logic workflow-version-trigger list-callback-url + +list-callback-url a logic workflow-version-trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--workflow_name**|string|The workflow name.|workflow_name|workflow_name| +|**--version_id**|string|The workflow versionId.|version_id|version_id| +|**--trigger_name**|string|The workflow trigger name.|trigger_name|trigger_name| +|**--not_after**|date-time|The expiry time.|not_after|not_after| +|**--key_type**|choice|The key type.|key_type|key_type| \ No newline at end of file diff --git a/src/logic/setup.cfg b/src/logic/setup.cfg new file mode 100644 index 00000000000..5eab412034f --- /dev/null +++ b/src/logic/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/src/logic/setup.py b/src/logic/setup.py new file mode 100644 index 00000000000..a5946a695c9 --- /dev/null +++ b/src/logic/setup.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +from codecs import open +from setuptools import setup, find_packages +try: + from azure_bdist_wheel import cmdclass +except ImportError: + from distutils import log as logger + logger.warn("Wheel is not available, disabling bdist_wheel hook") + +# TODO: Confirm this is the right version number you want and it matches your +# HISTORY.rst entry. +VERSION = '0.1.0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', +] + +# TODO: Add any additional SDK dependencies here +DEPENDENCIES = [] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='logic', + version=VERSION, + description='Microsoft Azure Command-Line Tools LogicManagementClient Extension', + # TODO: Update author and email, if applicable + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + # TODO: consider pointing directly to your source code instead of the generic repo + url='https://github.com/Azure/azure-cli-extensions', + long_description=README + '\n\n' + HISTORY, + license='MIT', + classifiers=CLASSIFIERS, + packages=find_packages(), + install_requires=DEPENDENCIES, + package_data={'azext_logic': ['azext_metadata.json']}, +)