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.
New preview version for Maintenance extension (Azure#2214)
- Loading branch information
Showing
97 changed files
with
11,602 additions
and
4,593 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 |
---|---|---|
|
@@ -147,3 +147,5 @@ | |
/src/guestconfig/ @gehuan | ||
|
||
/src/swiftlet/ @qwordy | ||
|
||
/src/maintenance/ @sotaneja |
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,13 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
1.1.0 | ||
++++++ | ||
* Add schedule related fields for creating maintenance configurations | ||
* Add public maintenance configuration APIs | ||
|
||
1.0.1 | ||
++++++ | ||
* Initial release. |
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,5 @@ | ||
Microsoft Azure CLI 'maintenance' Extension | ||
========================================== | ||
|
||
This package is for the 'maintenance' extension. | ||
i.e. 'az maintenance' |
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 |
---|---|---|
@@ -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 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"azext.minCliCoreVersion": "2.0.47" | ||
"azext.isPreview": true, | ||
"azext.minCliCoreVersion": "2.3.1" | ||
} |
Oops, something went wrong.