Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR databox] Removing a readonly tag from a property #527

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion src/databox/azext_databox/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.3.1"
"azext.minCliCoreVersion": "2.15.0"
}
27 changes: 0 additions & 27 deletions src/databox/azext_databox/commands.py

This file was deleted.

Loading