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.
Generated from 252aae51d01c13bd9f5f3215a5770e7a2c9e6213
Update readme for onboard autorest.schema to sdkautomation
- Loading branch information
SDK Automation
committed
Aug 13, 2020
1 parent
44ed22a
commit 540700c
Showing
48 changed files
with
8,151 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 | ||
++++++ | ||
* 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 'managementgroup' Extension | ||
========================================== | ||
|
||
This package is for the 'managementgroup' extension. | ||
i.e. 'az managementgroup' |
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,46 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from azure.cli.core import AzCommandsLoader | ||
from azext_managementgroup.generated._help import helps # pylint: disable=unused-import | ||
|
||
|
||
class ManagementGroupsAPICommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_managementgroup.generated._client_factory import cf_managementgroup | ||
managementgroup_custom = CliCommandType( | ||
operations_tmpl='azext_managementgroup.custom#{}', | ||
client_factory=cf_managementgroup) | ||
parent = super(ManagementGroupsAPICommandsLoader, self) | ||
parent.__init__(cli_ctx=cli_ctx, custom_command_type=managementgroup_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_managementgroup.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_managementgroup.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_managementgroup.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_managementgroup.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError: | ||
pass | ||
|
||
|
||
COMMAND_LOADER_CLS = ManagementGroupsAPICommandsLoader |
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 |
4 changes: 4 additions & 0 deletions
4
src/managementgroup/azext_managementgroup/azext_metadata.json
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,4 @@ | ||
{ | ||
"azext.isExperimental": true, | ||
"azext.minCliCoreVersion": "2.3.1" | ||
} |
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.custom import * # noqa: F403 | ||
try: | ||
from .manual.custom import * # noqa: F403 | ||
except ImportError: | ||
pass |
12 changes: 12 additions & 0 deletions
12
src/managementgroup/azext_managementgroup/generated/__init__.py
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,12 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
33 changes: 33 additions & 0 deletions
33
src/managementgroup/azext_managementgroup/generated/_client_factory.py
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,33 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
||
def cf_managementgroup(cli_ctx, *_): | ||
from azure.cli.core.commands.client_factory import get_mgmt_service_client | ||
from ..vendored_sdks.managementgroup import ManagementGroupsAPI | ||
return get_mgmt_service_client(cli_ctx, ManagementGroupsAPI, | ||
subscription_bound=False, | ||
base_url_bound=True) | ||
|
||
|
||
def cf_management_group(cli_ctx, *_): | ||
return cf_managementgroup(cli_ctx).management_group | ||
|
||
|
||
def cf_management_group_subscription(cli_ctx, *_): | ||
return cf_managementgroup(cli_ctx).management_group_subscription | ||
|
||
|
||
def cf_hierarchy_setting(cli_ctx, *_): | ||
return cf_managementgroup(cli_ctx).hierarchy_setting | ||
|
||
|
||
def cf_entity(cli_ctx, *_): | ||
return cf_managementgroup(cli_ctx).entity |
236 changes: 236 additions & 0 deletions
236
src/managementgroup/azext_managementgroup/generated/_help.py
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,236 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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=too-many-lines | ||
|
||
from knack.help_files import helps | ||
|
||
|
||
helps['managementgroup management-group'] = """ | ||
type: group | ||
short-summary: managementgroup management-group | ||
""" | ||
|
||
helps['managementgroup management-group list'] = """ | ||
type: command | ||
short-summary: List management groups for the authenticated user. | ||
examples: | ||
- name: ListManagementGroups | ||
text: |- | ||
az managementgroup management-group list --cache-control "no-cache" | ||
""" | ||
|
||
helps['managementgroup management-group show'] = """ | ||
type: command | ||
short-summary: Get the details of the management group. | ||
examples: | ||
- name: GetManagementGroup | ||
text: |- | ||
az managementgroup management-group show --cache-control "no-cache" --group-id "20000000-0001-0000-0000-\ | ||
000000000000" | ||
- name: GetManagementGroupWithExpand | ||
text: |- | ||
az managementgroup management-group show --expand "children" --cache-control "no-cache" --group-id "2000\ | ||
0000-0001-0000-0000-000000000000" | ||
- name: GetManagementGroupsWithExpandAndRecurse | ||
text: |- | ||
az managementgroup management-group show --expand "children" --recurse true --cache-control "no-cache" -\ | ||
-group-id "20000000-0001-0000-0000-000000000000" | ||
""" | ||
|
||
helps['managementgroup management-group create'] = """ | ||
type: command | ||
short-summary: Create or update a management group. If a management group is already created and a subsequent creat\ | ||
e request is issued with different properties, the management group properties will be updated. | ||
examples: | ||
- name: PutManagementGroup | ||
text: |- | ||
az managementgroup management-group create --cache-control "no-cache" --display-name "ChildGroup" --deta\ | ||
ils-parent-id "/providers/Microsoft.Management/managementGroups/RootGroup" --group-id "ChildGroup" | ||
""" | ||
|
||
helps['managementgroup management-group update'] = """ | ||
type: command | ||
short-summary: Update a management group. | ||
examples: | ||
- name: PatchManagementGroup | ||
text: |- | ||
az managementgroup management-group update --cache-control "no-cache" --group-id "ChildGroup" --display-\ | ||
name "AlternateDisplayName" --parent-group-id "/providers/Microsoft.Management/managementGroups/AlternateRootGroup" | ||
""" | ||
|
||
helps['managementgroup management-group delete'] = """ | ||
type: command | ||
short-summary: Delete management group. If a management group contains child resources, the request will fail. | ||
examples: | ||
- name: DeleteManagementGroup | ||
text: |- | ||
az managementgroup management-group delete --cache-control "no-cache" --group-id "GroupToDelete" | ||
""" | ||
|
||
helps['managementgroup management-group get-descendant'] = """ | ||
type: command | ||
short-summary: List all entities that descend from a management group. | ||
examples: | ||
- name: GetDescendants | ||
text: |- | ||
az managementgroup management-group get-descendant --group-id "20000000-0000-0000-0000-000000000000" | ||
""" | ||
|
||
helps['managementgroup management-group wait'] = """ | ||
type: command | ||
short-summary: Place the CLI in a waiting state until a condition of the managementgroup management-group is met. | ||
examples: | ||
- name: Pause executing next line of CLI script until the managementgroup management-group is successfully create\ | ||
d. | ||
text: |- | ||
az managementgroup management-group wait --expand "children" --recurse true --cache-control "no-cache" -\ | ||
-group-id "20000000-0001-0000-0000-000000000000" --created | ||
- name: Pause executing next line of CLI script until the managementgroup management-group is successfully delete\ | ||
d. | ||
text: |- | ||
az managementgroup management-group wait --expand "children" --recurse true --cache-control "no-cache" -\ | ||
-group-id "20000000-0001-0000-0000-000000000000" --deleted | ||
""" | ||
|
||
helps['managementgroup management-group-subscription'] = """ | ||
type: group | ||
short-summary: managementgroup management-group-subscription | ||
""" | ||
|
||
helps['managementgroup management-group-subscription create'] = """ | ||
type: command | ||
short-summary: Associates existing subscription with the management group. | ||
examples: | ||
- name: AddSubscriptionToManagementGroup | ||
text: |- | ||
az managementgroup management-group-subscription create --cache-control "no-cache" --group-id "Group" --\ | ||
subscription-id "728bcbe4-8d56-4510-86c2-4921b8beefbc" | ||
""" | ||
|
||
helps['managementgroup management-group-subscription delete'] = """ | ||
type: command | ||
short-summary: De-associates subscription from the management group. | ||
examples: | ||
- name: DeleteSubscriptionFromManagementGroup | ||
text: |- | ||
az managementgroup management-group-subscription delete --cache-control "no-cache" --group-id "Group" --\ | ||
subscription-id "728bcbe4-8d56-4510-86c2-4921b8beefbc" | ||
""" | ||
|
||
helps['managementgroup management-group-subscription get-subscription'] = """ | ||
type: command | ||
short-summary: Retrieves details about given subscription which is associated with the management group. | ||
examples: | ||
- name: GetSubscriptionFromManagementGroup | ||
text: |- | ||
az managementgroup management-group-subscription get-subscription --cache-control "no-cache" --group-id \ | ||
"Group" --subscription-id "728bcbe4-8d56-4510-86c2-4921b8beefbc" | ||
""" | ||
|
||
helps['managementgroup management-group-subscription get-subscription-under-management-group'] = """ | ||
type: command | ||
short-summary: Retrieves details about all subscriptions which are associated with the management group. | ||
examples: | ||
- name: GetAllSubscriptionsFromManagementGroup | ||
text: |- | ||
az managementgroup management-group-subscription get-subscription-under-management-group --group-id "Gro\ | ||
up" | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting'] = """ | ||
type: group | ||
short-summary: managementgroup hierarchy-setting | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting list'] = """ | ||
type: command | ||
short-summary: Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on t\ | ||
he root Management Group of the hierarchy. | ||
examples: | ||
- name: ListGroupSettings | ||
text: |- | ||
az managementgroup hierarchy-setting list --group-id "root" | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting show'] = """ | ||
type: command | ||
short-summary: Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the r\ | ||
oot Management Group of the hierarchy. | ||
examples: | ||
- name: GetGroupSettings | ||
text: |- | ||
az managementgroup hierarchy-setting show --group-id "root" | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting create'] = """ | ||
type: command | ||
short-summary: Creates or updates the hierarchy settings defined at the Management Group level. | ||
examples: | ||
- name: GetGroupSettings | ||
text: |- | ||
az managementgroup hierarchy-setting create --default-management-group "/providers/Microsoft.Management/\ | ||
managementGroups/DefaultGroup" --require-authorization-for-group-creation true --group-id "root" | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting update'] = """ | ||
type: command | ||
short-summary: Updates the hierarchy settings defined at the Management Group level. | ||
examples: | ||
- name: GetGroupSettings | ||
text: |- | ||
az managementgroup hierarchy-setting update --default-management-group "/providers/Microsoft.Management/\ | ||
managementGroups/DefaultGroup" --require-authorization-for-group-creation true --group-id "root" | ||
""" | ||
|
||
helps['managementgroup hierarchy-setting delete'] = """ | ||
type: command | ||
short-summary: Deletes the hierarchy settings defined at the Management Group level. | ||
examples: | ||
- name: GetGroupSettings | ||
text: |- | ||
az managementgroup hierarchy-setting delete --group-id "root" | ||
""" | ||
|
||
helps['managementgroup '] = """ | ||
type: group | ||
short-summary: managementgroup | ||
""" | ||
|
||
helps['managementgroup start-tenant-backfill'] = """ | ||
type: command | ||
short-summary: Starts backfilling subscriptions for the Tenant. | ||
examples: | ||
- name: StartTenantBackfill | ||
text: |- | ||
az managementgroup start-tenant-backfill | ||
""" | ||
|
||
helps['managementgroup tenant-backfill-status'] = """ | ||
type: command | ||
short-summary: Gets tenant backfill status | ||
examples: | ||
- name: TenantBackfillStatus | ||
text: |- | ||
az managementgroup tenant-backfill-status | ||
""" | ||
|
||
helps['managementgroup entity'] = """ | ||
type: group | ||
short-summary: managementgroup entity | ||
""" | ||
|
||
helps['managementgroup entity list'] = """ | ||
type: command | ||
short-summary: List all entities (Management Groups, Subscriptions, etc.) for the authenticated user. | ||
examples: | ||
- name: GetEntities | ||
text: |- | ||
az managementgroup entity list | ||
""" |
Oops, something went wrong.