forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 15366 in Azure/azure-rest-api-specs
Merge 99916ed0a9e2c7bc267f59b3a84813712938aa4e into 57e30b5
- Loading branch information
SDKAuto
committed
Jul 28, 2021
1 parent
cb5c2a5
commit 91ff229
Showing
76 changed files
with
35,149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 | ||
++++++ | ||
* Initial release. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from azure.cli.core import AzCommandsLoader | ||
from azext_databoxedge.generated._help import helps # pylint: disable=unused-import | ||
try: | ||
from azext_databoxedge.manual._help import helps # pylint: disable=reimported | ||
except ImportError: | ||
pass | ||
|
||
|
||
class DataBoxEdgeManagementClientCommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_databoxedge.generated._client_factory import cf_databoxedge_cl | ||
databoxedge_custom = CliCommandType( | ||
operations_tmpl='azext_databoxedge.custom#{}', | ||
client_factory=cf_databoxedge_cl) | ||
parent = super(DataBoxEdgeManagementClientCommandsLoader, self) | ||
parent.__init__(cli_ctx=cli_ctx, custom_command_type=databoxedge_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_databoxedge.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_databoxedge.manual.commands import load_command_table as load_command_table_manual | ||
load_command_table_manual(self, args) | ||
except ImportError: | ||
pass | ||
return self.command_table | ||
|
||
def load_arguments(self, command): | ||
from azext_databoxedge.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_databoxedge.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError: | ||
pass | ||
|
||
|
||
COMMAND_LOADER_CLS = DataBoxEdgeManagementClientCommandsLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.action import * # noqa: F403 | ||
try: | ||
from .manual.action import * # noqa: F403 | ||
except ImportError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"azext.isExperimental": true, | ||
"azext.minCliCoreVersion": "2.15.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wildcard-import | ||
# pylint: disable=unused-wildcard-import | ||
|
||
from .generated.custom import * # noqa: F403 | ||
try: | ||
from .manual.custom import * # noqa: F403 | ||
except ImportError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
92 changes: 92 additions & 0 deletions
92
src/databoxedge/azext_databoxedge/generated/_client_factory.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
||
def cf_databoxedge_cl(cli_ctx, *_): | ||
from azure.cli.core.commands.client_factory import get_mgmt_service_client | ||
from azext_databoxedge.vendored_sdks.databoxedge import DataBoxEdgeManagementClient | ||
return get_mgmt_service_client(cli_ctx, | ||
DataBoxEdgeManagementClient) | ||
|
||
|
||
def cf_available_sku(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).available_skus | ||
|
||
|
||
def cf_device(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).devices | ||
|
||
|
||
def cf_alert(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).alerts | ||
|
||
|
||
def cf_bandwidth_schedule(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).bandwidth_schedules | ||
|
||
|
||
def cf_diagnostic_setting(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).diagnostic_settings | ||
|
||
|
||
def cf_job(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).jobs | ||
|
||
|
||
def cf_node(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).nodes | ||
|
||
|
||
def cf_operation_status(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).operations_status | ||
|
||
|
||
def cf_order(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).orders | ||
|
||
|
||
def cf_role(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).roles | ||
|
||
|
||
def cf_addon(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).addons | ||
|
||
|
||
def cf_monitoring_config(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).monitoring_config | ||
|
||
|
||
def cf_share(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).shares | ||
|
||
|
||
def cf_storage_account_credentials(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).storage_account_credentials | ||
|
||
|
||
def cf_storage_account(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).storage_accounts | ||
|
||
|
||
def cf_container(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).containers | ||
|
||
|
||
def cf_trigger(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).triggers | ||
|
||
|
||
def cf_support_package(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).support_packages | ||
|
||
|
||
def cf_user(cli_ctx, *_): | ||
return cf_databoxedge_cl(cli_ctx).users |
Oops, something went wrong.