Skip to content

Commit aa51a25

Browse files
author
SDK Automation
committed
Update from master
1 parent e456291 commit aa51a25

File tree

91 files changed

+9607
-2729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+9607
-2729
lines changed

src/logic/HISTORY.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. :changelog:
2-
3-
Release History
4-
===============
5-
6-
0.1.0
7-
++++++
8-
* Initial release.
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0
7+
++++++
8+
* Initial release.

src/logic/README.md

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,5 @@
1-
# Azure CLI Logic Apps Extension #
2-
This package is for the 'logic app' extension, i.e. 'az logic'.
3-
More info on what is [Logic](https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-overview).
4-
5-
### How to use ###
6-
Install this extension using the below CLI command
7-
```
8-
az extension add --name logic
9-
```
10-
11-
### Getting Help
12-
13-
To see examples of commands and parameters details got commands or command groups, one should run the command of interest with a -h
14-
15-
Examples:
16-
```
17-
az logic workflow create -h
18-
19-
az logic integration-account -h
20-
21-
az logic worflow update -h
22-
```
23-
24-
25-
##### Creating a Logic App
26-
27-
For creating a logic app, one must provide a logic app definition.
28-
A definition is a JSON description of a logic app workflow. It is recommended that the logic app designer be used to create this definition, as these definitions can be very complex depending on a workflow. The designed tool works with VS Code, Visual Studio, and Azure Portal: https://docs.microsoft.com/en-us/azure/logic-apps/.
29-
30-
Access Controls: For a great reference on this see: (https://msftplayground.com/2020/02/managing-access-control-for-logic-apps/)
31-
An example of how an access control would look is:
32-
33-
```json
34-
"accessControl": { "triggers":
35-
{ "allowedCallerIpAddresses":
36-
[{ "addressRange": "10.0.0.0/24" }]},
37-
"actions": { "allowedCallerIpAddresses":
38-
[{ "addressRange": "10.0.0.0/24" }]}
39-
}
40-
```
41-
##### Creating an Integration Account
42-
43-
Integration accounts are a way for Azure Logic Apps to utilize services outside of Azure to integrate into your logic app workflows. See (https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-create-integration-account) for more information.
44-
45-
Integration Service enviroments go hand in hand with a integration account. It is enviroment that connects to your azure vnet for seamless flow of data and logic apps services to on premise enviroments and services. See (https://azure.microsoft.com/en-us/blog/announcing-azure-integration-service-environment-for-logic-apps/) for more information
46-
47-
48-
#### Import an Integration Account
49-
50-
You can import an integration account from a JSON file. Run az workflow integration-account import -h to see the parameters.
51-
52-
An example JSON for import could look like:
53-
54-
```json
55-
{"properties": {
56-
"state": "Enabled"
57-
},
58-
"sku": {
59-
"name": "Standard"
60-
},
61-
"location": "centralus"
62-
}
63-
'''
1+
Microsoft Azure CLI 'logic' Extension
2+
==========================================
3+
4+
This package is for the 'logic' extension.
5+
i.e. 'az logic'

src/logic/azext_logic/__init__.py

Lines changed: 46 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,46 @@
1-
# --------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------------------------
5-
6-
from azure.cli.core import AzCommandsLoader
7-
from azext_logic.generated._help import helps # pylint: disable=unused-import
8-
9-
10-
class LogicManagementClientCommandsLoader(AzCommandsLoader):
11-
12-
def __init__(self, cli_ctx=None):
13-
from azure.cli.core.commands import CliCommandType
14-
from azext_logic.generated._client_factory import cf_logic
15-
logic_custom = CliCommandType(
16-
operations_tmpl='azext_logic.custom#{}',
17-
client_factory=cf_logic)
18-
super(LogicManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx,
19-
custom_command_type=logic_custom)
20-
21-
def load_command_table(self, args):
22-
from azext_logic.generated.commands import load_command_table
23-
load_command_table(self, args)
24-
try:
25-
from azext_logic.manual.commands import load_command_table as load_command_table_manual
26-
load_command_table_manual(self, args)
27-
except ImportError:
28-
pass
29-
return self.command_table
30-
31-
def load_arguments(self, command):
32-
from azext_logic.generated._params import load_arguments
33-
load_arguments(self, command)
34-
try:
35-
from azext_logic.manual._params import load_arguments as load_arguments_manual
36-
load_arguments_manual(self, command)
37-
except ImportError:
38-
pass
39-
40-
41-
COMMAND_LOADER_CLS = LogicManagementClientCommandsLoader
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
from azure.cli.core import AzCommandsLoader
12+
from azext_logic.generated._help import helps # pylint: disable=unused-import
13+
14+
15+
class LogicManagementClientCommandsLoader(AzCommandsLoader):
16+
17+
def __init__(self, cli_ctx=None):
18+
from azure.cli.core.commands import CliCommandType
19+
from azext_logic.generated._client_factory import cf_logic
20+
logic_custom = CliCommandType(
21+
operations_tmpl='azext_logic.custom#{}',
22+
client_factory=cf_logic)
23+
super(LogicManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx,
24+
custom_command_type=logic_custom)
25+
26+
def load_command_table(self, args):
27+
from azext_logic.generated.commands import load_command_table
28+
load_command_table(self, args)
29+
try:
30+
from azext_logic.manual.commands import load_command_table as load_command_table_manual
31+
load_command_table_manual(self, args)
32+
except ImportError:
33+
pass
34+
return self.command_table
35+
36+
def load_arguments(self, command):
37+
from azext_logic.generated._params import load_arguments
38+
load_arguments(self, command)
39+
try:
40+
from azext_logic.manual._params import load_arguments as load_arguments_manual
41+
load_arguments_manual(self, command)
42+
except ImportError:
43+
pass
44+
45+
46+
COMMAND_LOADER_CLS = LogicManagementClientCommandsLoader

src/logic/azext_logic/action.py

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
# --------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------------------------
5-
# pylint: disable=wildcard-import
6-
# pylint: disable=unused-wildcard-import
7-
8-
from .generated.action import * # noqa: F403
9-
try:
10-
from .manual.action import * # noqa: F403
11-
except ImportError:
12-
pass
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.action import * # noqa: F403
14+
try:
15+
from .manual.action import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
2-
"azext.isExperimental": true,
3-
"azext.minCliCoreVersion": "2.3.1"
4-
}
1+
{
2+
"azext.isExperimental": true,
3+
"azext.minCliCoreVersion": "2.3.1"
4+
}

src/logic/azext_logic/custom.py

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
# --------------------------------------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------------------------
5-
# pylint: disable=wildcard-import
6-
# pylint: disable=unused-wildcard-import
7-
8-
from .generated.custom import * # noqa: F403
9-
try:
10-
from .manual.custom import * # noqa: F403
11-
except ImportError:
12-
pass
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.custom import * # noqa: F403
14+
try:
15+
from .manual.custom import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
3-
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for
5-
# license information.
6-
#
7-
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
10-
# --------------------------------------------------------------------------
11-
12-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 commit comments

Comments
 (0)