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 4c9f620e26209e3756020f537a6f0abcef0fa580
add expiredTime in RegistrationInfoPatch
- Loading branch information
SDK Automation
committed
May 25, 2020
1 parent
bf87b15
commit 9253282
Showing
60 changed files
with
11,553 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 'desktopvirtualization' Extension | ||
========================================== | ||
|
||
This package is for the 'desktopvirtualization' extension. | ||
i.e. 'az desktopvirtualization' |
46 changes: 46 additions & 0 deletions
46
src/desktopvirtualization/azext_desktopvirtualization/__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,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_desktopvirtualization.generated._help import helps # pylint: disable=unused-import | ||
|
||
|
||
class DesktopVirtualizationAPIClientCommandsLoader(AzCommandsLoader): | ||
|
||
def __init__(self, cli_ctx=None): | ||
from azure.cli.core.commands import CliCommandType | ||
from azext_desktopvirtualization.generated._client_factory import cf_desktopvirtualization | ||
desktopvirtualization_custom = CliCommandType( | ||
operations_tmpl='azext_desktopvirtualization.custom#{}', | ||
client_factory=cf_desktopvirtualization) | ||
super(DesktopVirtualizationAPIClientCommandsLoader, self).__init__(cli_ctx=cli_ctx, | ||
custom_command_type=desktopvirtualization_custom) | ||
|
||
def load_command_table(self, args): | ||
from azext_desktopvirtualization.generated.commands import load_command_table | ||
load_command_table(self, args) | ||
try: | ||
from azext_desktopvirtualization.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_desktopvirtualization.generated._params import load_arguments | ||
load_arguments(self, command) | ||
try: | ||
from azext_desktopvirtualization.manual._params import load_arguments as load_arguments_manual | ||
load_arguments_manual(self, command) | ||
except ImportError: | ||
pass | ||
|
||
|
||
COMMAND_LOADER_CLS = DesktopVirtualizationAPIClientCommandsLoader |
17 changes: 17 additions & 0 deletions
17
src/desktopvirtualization/azext_desktopvirtualization/action.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,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/desktopvirtualization/azext_desktopvirtualization/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" | ||
} |
17 changes: 17 additions & 0 deletions
17
src/desktopvirtualization/azext_desktopvirtualization/custom.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,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/desktopvirtualization/azext_desktopvirtualization/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__) |
27 changes: 27 additions & 0 deletions
27
src/desktopvirtualization/azext_desktopvirtualization/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,27 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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_desktopvirtualization(cli_ctx, *_): | ||
from azure.cli.core.commands.client_factory import get_mgmt_service_client | ||
from ..vendored_sdks.desktopvirtualization import DesktopVirtualizationAPIClient | ||
return get_mgmt_service_client(cli_ctx, DesktopVirtualizationAPIClient) | ||
|
||
|
||
def cf_workspace(cli_ctx, *_): | ||
return cf_desktopvirtualization(cli_ctx).workspace | ||
|
||
|
||
def cf_application_group(cli_ctx, *_): | ||
return cf_desktopvirtualization(cli_ctx).application_group | ||
|
||
|
||
def cf_host_pool(cli_ctx, *_): | ||
return cf_desktopvirtualization(cli_ctx).host_pool |
182 changes: 182 additions & 0 deletions
182
src/desktopvirtualization/azext_desktopvirtualization/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,182 @@ | ||
# -------------------------------------------------------------------------- | ||
# 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['desktopvirtualization workspace'] = """ | ||
type: group | ||
short-summary: desktopvirtualization workspace | ||
""" | ||
|
||
helps['desktopvirtualization workspace list'] = """ | ||
type: command | ||
short-summary: List workspaces in subscription. | ||
examples: | ||
- name: Workspace_ListByResourceGroup | ||
text: |- | ||
az desktopvirtualization workspace list --resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization workspace show'] = """ | ||
type: command | ||
short-summary: Get a workspace. | ||
examples: | ||
- name: Workspace_Get | ||
text: |- | ||
az desktopvirtualization workspace show --resource-group "resourceGroup1" --workspace-name "workspace1" | ||
""" | ||
|
||
helps['desktopvirtualization workspace create'] = """ | ||
type: command | ||
short-summary: Create or update a workspace. | ||
examples: | ||
- name: Workspace_Create | ||
text: |- | ||
az desktopvirtualization workspace create --resource-group "resourceGroup1" --location "centralus" --des\ | ||
cription "des1" --friendly-name "friendly" --tags tag1="value1" tag2="value2" --workspace-name "workspace1" | ||
""" | ||
|
||
helps['desktopvirtualization workspace update'] = """ | ||
type: command | ||
short-summary: Update a workspace. | ||
examples: | ||
- name: Workspace_Update | ||
text: |- | ||
az desktopvirtualization workspace update --resource-group "resourceGroup1" --description "des1" --frien\ | ||
dly-name "friendly" --tags "{\\"tag1\\":\\"value1\\",\\"tag2\\":\\"value2\\"}" --workspace-name "workspace1" | ||
""" | ||
|
||
helps['desktopvirtualization workspace delete'] = """ | ||
type: command | ||
short-summary: Remove a workspace. | ||
examples: | ||
- name: Workspace_Delete | ||
text: |- | ||
az desktopvirtualization workspace delete --resource-group "resourceGroup1" --workspace-name "workspace1\ | ||
" | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup'] = """ | ||
type: group | ||
short-summary: desktopvirtualization applicationgroup | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup list'] = """ | ||
type: command | ||
short-summary: List applicationGroups in subscription. | ||
examples: | ||
- name: ApplicationGroup_ListByResourceGroup | ||
text: |- | ||
az desktopvirtualization applicationgroup list --filter "applicationGroupType eq \'RailApplication\'" --\ | ||
resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup show'] = """ | ||
type: command | ||
short-summary: Get an application group. | ||
examples: | ||
- name: ApplicationGroup_Get | ||
text: |- | ||
az desktopvirtualization applicationgroup show --application-group-name "applicationGroup1" --resource-g\ | ||
roup "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup create'] = """ | ||
type: command | ||
short-summary: Create or update an applicationGroup. | ||
examples: | ||
- name: ApplicationGroup_Create | ||
text: |- | ||
az desktopvirtualization applicationgroup create --location "centralus" --description "des1" --applicati\ | ||
on-group-type "RemoteApp" --friendly-name "friendly" --host-pool-arm-path "/subscriptions/daefabc0-95b4-48b3-b645-8a753\ | ||
a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostPools/hostPool1" --tags tag1="value\ | ||
1" tag2="value2" --application-group-name "applicationGroup1" --resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup update'] = """ | ||
type: command | ||
short-summary: Update an applicationGroup. | ||
examples: | ||
- name: ApplicationGroups_Update | ||
text: |- | ||
az desktopvirtualization applicationgroup update --description "des1" --friendly-name "friendly" --tags \ | ||
"{\\"tag1\\":\\"value1\\",\\"tag2\\":\\"value2\\"}" --application-group-name "applicationGroup1" --resource-group "reso\ | ||
urceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization applicationgroup delete'] = """ | ||
type: command | ||
short-summary: Remove an applicationGroup. | ||
examples: | ||
- name: ApplicationGroup_Delete | ||
text: |- | ||
az desktopvirtualization applicationgroup delete --application-group-name "applicationGroup1" --resource\ | ||
-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization hostpool'] = """ | ||
type: group | ||
short-summary: desktopvirtualization hostpool | ||
""" | ||
|
||
helps['desktopvirtualization hostpool list'] = """ | ||
type: command | ||
short-summary: List hostPools in subscription. | ||
examples: | ||
- name: HostPool_ListByResourceGroup | ||
text: |- | ||
az desktopvirtualization hostpool list --resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization hostpool show'] = """ | ||
type: command | ||
short-summary: Get a host pool. | ||
examples: | ||
- name: HostPool_Get | ||
text: |- | ||
az desktopvirtualization hostpool show --host-pool-name "hostPool1" --resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization hostpool create'] = """ | ||
type: command | ||
short-summary: Create or update a host pool. | ||
examples: | ||
- name: HostPool_Create | ||
text: |- | ||
az desktopvirtualization hostpool create --location "centralus" --description "des1" --friendly-name "fr\ | ||
iendly" --host-pool-type "Pooled" --load-balancer-type "BreadthFirst" --max-session-limit 999999 --personal-desktop-ass\ | ||
ignment-type "Automatic" --registration-info expiration-time="2020-10-01T14:01:54.9571247Z" registration-token-operatio\ | ||
n="Update" --sso-context "KeyVaultPath" --tags tag1="value1" tag2="value2" --host-pool-name "hostPool1" --resource-grou\ | ||
p "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization hostpool update'] = """ | ||
type: command | ||
short-summary: Update a host pool. | ||
examples: | ||
- name: HostPool_Update | ||
text: |- | ||
az desktopvirtualization hostpool update --description "des1" --friendly-name "friendly" --load-balancer\ | ||
-type "BreadthFirst" --max-session-limit 999999 --personal-desktop-assignment-type "Automatic" --registration-info expi\ | ||
ration-time="2020-10-01T15:01:54.9571247Z" registration-token-operation="Update" --sso-context "KeyVaultPath" --tags "{\ | ||
\\"tag1\\":\\"value1\\",\\"tag2\\":\\"value2\\"}" --host-pool-name "hostPool1" --resource-group "resourceGroup1" | ||
""" | ||
|
||
helps['desktopvirtualization hostpool delete'] = """ | ||
type: command | ||
short-summary: Remove a host pool. | ||
examples: | ||
- name: HostPool_Delete | ||
text: |- | ||
az desktopvirtualization hostpool delete --force true --host-pool-name "hostPool1" --resource-group "res\ | ||
ourceGroup1" | ||
""" |
Oops, something went wrong.