Skip to content

Commit

Permalink
CodeGen from PR 13597 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 89d7a7ef4a00734646ae952056174605c609e4d5 into 961799e
  • Loading branch information
SDKAuto committed Mar 24, 2021
1 parent abb8872 commit d50dca4
Show file tree
Hide file tree
Showing 49 changed files with 10,470 additions and 4,155 deletions.
3 changes: 0 additions & 3 deletions src/databox/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
Release History
===============
0.1.1
++++++
* GA databox module.

0.1.0
++++++
Expand Down
44 changes: 31 additions & 13 deletions src/databox/azext_databox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_databox.generated._help import helps # pylint: disable=unused-import
try:
from azext_databox.manual._help import helps # pylint: disable=reimported
except ImportError:
pass

import azext_databox._help # pylint: disable=unused-import


class DataBoxCommandsLoader(AzCommandsLoader):
class DataBoxManagementClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_databox._client_factory import cf_databox
from azext_databox.generated._client_factory import cf_databox_cl
databox_custom = CliCommandType(
operations_tmpl='azext_databox.custom#{}',
client_factory=cf_databox)
super(DataBoxCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=databox_custom)
client_factory=cf_databox_cl)
parent = super(DataBoxManagementClientCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=databox_custom)

def load_command_table(self, args):
from azext_databox.commands import load_command_table
from azext_databox.generated.commands import load_command_table
load_command_table(self, args)
try:
from azext_databox.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_databox._params import load_arguments
from azext_databox.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_databox.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = DataBoxCommandsLoader
COMMAND_LOADER_CLS = DataBoxManagementClientCommandsLoader
14 changes: 0 additions & 14 deletions src/databox/azext_databox/_client_factory.py

This file was deleted.

101 changes: 0 additions & 101 deletions src/databox/azext_databox/_help.py

This file was deleted.

75 changes: 0 additions & 75 deletions src/databox/azext_databox/_params.py

This file was deleted.

85 changes: 0 additions & 85 deletions src/databox/azext_databox/_validators.py

This file was deleted.

17 changes: 17 additions & 0 deletions src/databox/azext_databox/action.py
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
3 changes: 2 additions & 1 deletion src/databox/azext_databox/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"azext.minCliCoreVersion": "2.3.1"
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.15.0"
}
Loading

0 comments on commit d50dca4

Please sign in to comment.