Skip to content

Commit bc3f9bd

Browse files
author
SDKAuto
committed
CodeGen from PR 15652 in Azure/azure-rest-api-specs
Merge 348c8e9f1e22f4b54b0300be0f5e8ce9e380c660 into e68d33c
1 parent b6bcbd2 commit bc3f9bd

Some content is hidden

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

53 files changed

+10973
-5898
lines changed

src/databox/HISTORY.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
Release History
44
===============
55

6-
0.1.2
7-
++++++
8-
* Migrate to track2 SDK
9-
10-
0.1.1
11-
++++++
12-
* GA databox module.
13-
146
0.1.0
157
++++++
168
* Initial release.

src/databox/azext_databox/__init__.py

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
1-
# --------------------------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
3-
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# --------------------------------------------------------------------------------------------
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+
# --------------------------------------------------------------------------
510

611
from azure.cli.core import AzCommandsLoader
12+
from azext_databox.generated._help import helps # pylint: disable=unused-import
13+
try:
14+
from azext_databox.manual._help import helps # pylint: disable=reimported
15+
except ImportError:
16+
pass
717

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

10-
11-
class DataBoxCommandsLoader(AzCommandsLoader):
19+
class DataBoxManagementClientCommandsLoader(AzCommandsLoader):
1220

1321
def __init__(self, cli_ctx=None):
1422
from azure.cli.core.commands import CliCommandType
15-
from azext_databox._client_factory import cf_databox
23+
from azext_databox.generated._client_factory import cf_databox_cl
1624
databox_custom = CliCommandType(
1725
operations_tmpl='azext_databox.custom#{}',
18-
client_factory=cf_databox)
19-
super(DataBoxCommandsLoader, self).__init__(cli_ctx=cli_ctx,
20-
custom_command_type=databox_custom)
26+
client_factory=cf_databox_cl)
27+
parent = super(DataBoxManagementClientCommandsLoader, self)
28+
parent.__init__(cli_ctx=cli_ctx, custom_command_type=databox_custom)
2129

2230
def load_command_table(self, args):
23-
from azext_databox.commands import load_command_table
31+
from azext_databox.generated.commands import load_command_table
2432
load_command_table(self, args)
33+
try:
34+
from azext_databox.manual.commands import load_command_table as load_command_table_manual
35+
load_command_table_manual(self, args)
36+
except ImportError:
37+
pass
2538
return self.command_table
2639

2740
def load_arguments(self, command):
28-
from azext_databox._params import load_arguments
41+
from azext_databox.generated._params import load_arguments
2942
load_arguments(self, command)
43+
try:
44+
from azext_databox.manual._params import load_arguments as load_arguments_manual
45+
load_arguments_manual(self, command)
46+
except ImportError:
47+
pass
3048

3149

32-
COMMAND_LOADER_CLS = DataBoxCommandsLoader
50+
COMMAND_LOADER_CLS = DataBoxManagementClientCommandsLoader

src/databox/azext_databox/_client_factory.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/databox/azext_databox/_help.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

src/databox/azext_databox/_params.py

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/databox/azext_databox/_validators.py

Lines changed: 0 additions & 85 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
# coding=utf-8
21
# --------------------------------------------------------------------------
32
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
56
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
79
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
812

9-
from ._data_box_management_client import DataBoxManagementClient
10-
from ._version import VERSION
11-
12-
__version__ = VERSION
13-
__all__ = ['DataBoxManagementClient']
14-
13+
from .generated.action import * # noqa: F403
1514
try:
16-
from ._patch import patch_sdk # type: ignore
17-
patch_sdk()
15+
from .manual.action import * # noqa: F403
1816
except ImportError:
1917
pass
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"azext.minCliCoreVersion": "2.3.1"
2+
"azext.isExperimental": true,
3+
"azext.minCliCoreVersion": "2.15.0"
34
}

0 commit comments

Comments
 (0)