-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New preview version for Maintenance extension #2214
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -147,3 +147,5 @@ | |
| /src/guestconfig/ @gehuan | ||
|
|
||
| /src/swiftlet/ @qwordy | ||
|
|
||
| /src/maintenance/ @sotaneja | ||
This file contains hidden or 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. | ||
This file contains hidden or 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,5 @@ | ||
| Microsoft Azure CLI 'maintenance' Extension | ||
| ========================================== | ||
|
|
||
| This package is for the 'maintenance' extension. | ||
| i.e. 'az maintenance' |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,28 +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_maintenance.generated._help import helps # pylint: disable=unused-import | ||
| try: | ||
| from azext_maintenance.manual._help import helps # pylint: disable=reimported | ||
| except ImportError: | ||
| pass | ||
|
|
||
| import azext_maintenance._help # pylint: disable=unused-import | ||
|
|
||
|
|
||
| class MaintenanceCommandsLoader(AzCommandsLoader): | ||
| class MaintenanceClientCommandsLoader(AzCommandsLoader): | ||
|
|
||
| def __init__(self, cli_ctx=None): | ||
| from azure.cli.core.commands import CliCommandType | ||
| maintenance_custom = CliCommandType(operations_tmpl='azext_maintenance.custom#{}') | ||
| super(MaintenanceCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=maintenance_custom) | ||
| from azext_maintenance.generated._client_factory import cf_maintenance_cl | ||
| maintenance_custom = CliCommandType( | ||
| operations_tmpl='azext_maintenance.custom#{}', | ||
| client_factory=cf_maintenance_cl) | ||
| parent = super(MaintenanceClientCommandsLoader, self) | ||
| parent.__init__(cli_ctx=cli_ctx, custom_command_type=maintenance_custom) | ||
|
|
||
| def load_command_table(self, args): | ||
| from .commands import load_command_table | ||
| from azext_maintenance.generated.commands import load_command_table | ||
| load_command_table(self, args) | ||
| try: | ||
| from azext_maintenance.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 ._params import load_arguments | ||
| from azext_maintenance.generated._params import load_arguments | ||
| load_arguments(self, command) | ||
| try: | ||
| from azext_maintenance.manual._params import load_arguments as load_arguments_manual | ||
| load_arguments_manual(self, command) | ||
| except ImportError: | ||
| pass | ||
|
|
||
|
|
||
| COMMAND_LOADER_CLS = MaintenanceCommandsLoader | ||
| COMMAND_LOADER_CLS = MaintenanceClientCommandsLoader |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "azext.minCliCoreVersion": "2.0.47" | ||
| "azext.isExperimental": true, | ||
sotaneja marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "azext.minCliCoreVersion": "2.3.1" | ||
| } | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.