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

Cli onboard desktopvirtualization #9531

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -2398,6 +2398,11 @@
"description": "Represents a RegistrationInfo definition.",
"type": "object",
"properties": {
"expirationTime": {
"format": "date-time",
"type": "string",
"description": "Expiration time of registration token."
},
"registrationTokenOperation": {
"enum": [
"Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"maxSessionLimit": 999999,
"loadBalancerType": "BreadthFirst",
"registrationInfo": {
"expirationTime": "2008-09-22T14:01:54.9571247Z",
"expirationTime": "2020-10-01T14:01:54.9571247Z",
"registrationTokenOperation": "Update"
},
"ssoContext": "KeyVaultPath"
Expand Down Expand Up @@ -48,7 +48,7 @@
"validationEnvironment": null,
"ring": null,
"registrationInfo": {
"expirationTime": "2008-09-22T14:01:54.9571247Z",
"expirationTime": "2020-10-01T14:01:54.9571247Z",
"token": "token",
"registrationTokenOperation": "Update"
},
Expand Down Expand Up @@ -77,7 +77,7 @@
"validationEnvironment": null,
"ring": null,
"registrationInfo": {
"expirationTime": "2008-09-22T14:01:54.9571247Z",
"expirationTime": "2020-10-01T14:01:54.9571247Z",
"token": "token",
"registrationTokenOperation": "Update"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"loadBalancerType": "BreadthFirst",
"personalDesktopAssignmentType": "Automatic",
"registrationInfo": {
"expirationTime": "2020-10-01T15:01:54.9571247Z",
"registrationTokenOperation": "Update"
datr93 marked this conversation as resolved.
Show resolved Hide resolved
},
"ssoContext": "KeyVaultPath"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ az:
namespace: azure.mgmt.desktopvirtualization
az-output-folder: $(azure-cli-extension-folder)/src/desktopvirtualization
python-sdk-output-folder: "$(az-output-folder)/azext_desktopvirtualization/vendored_sdks/desktopvirtualization"

directive:
- where:
group: desktopvirtualization host-pool
set:
group: desktopvirtualization hostpool
- where:
group: desktopvirtualization application-group
set:
group: desktopvirtualization applicationgroup
```
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,13 @@ These settings don't need to apply `--cli` on the command line.
``` yaml $(cli)
cli:
cli-name: desktopvirtualization
cli-directive:
- where:
group: (ActiveApplications|Applications|ApplicationgroupAssignments|Desktops|SessionHosts|StartMenuItems|UserSessions)
hidden: true
# - where:
# group: ApplicationGroups
# op: ListByResourceGroup
# param: \$filter
# name: list-filter
```
21 changes: 11 additions & 10 deletions specification/desktopvirtualization/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_desktop_virtualization']
- repo: azure-cli-extensions
```

## C#
Expand Down Expand Up @@ -110,16 +111,16 @@ AutoRest V3 generators require the use of `--tag=all-api-versions` to select api

This block is updated by an automatic script. Edits may be lost!

``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md

# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json

``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json
```

If there are files that should not be in the `all-api-versions` set,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.DesktopVirtualization
package-name: azure-mgmt-DesktopVirtualization
namespace: azure.mgmt.desktopvirtualization
package-name: azure-mgmt-desktopvirtualization
package-version: 0.2.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-DesktopVirtualization/azure/mgmt/DesktopVirtualization
output-folder: $(python-sdks-folder)/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-mgmt-DesktopVirtualization
output-folder: $(python-sdks-folder)/azure-mgmt-desktopvirtualization
```