-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Microsoft.Management 2020-05-01 apiversion (#10046)
* add 2020-05-01 apiversion * fix sdk model validation errors * fix lint * add 204 * spacing * code review comments * code review comments
- Loading branch information
Showing
24 changed files
with
2,779 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...nager/Microsoft.Management/stable/2020-05-01/examples/AddManagementGroupSubscription.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,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "Group", | ||
"subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"id": " /providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"properties": { | ||
"displayName": "Group", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/Group" | ||
}, | ||
"state": "Active", | ||
"tenant": "e751ac82-623b-4913-8d74-22637c832373" | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Microsoft.Management/stable/2020-05-01/examples/CheckManagementGroupNameAvailability.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,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"checkNameAvailabilityRequest": { | ||
"name": "nameTocheck", | ||
"type": "Microsoft.Management/managementGroups" | ||
}, | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Error message" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...urce-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteHierarchySettings.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,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "root" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...source-manager/Microsoft.Management/stable/2020-05-01/examples/DeleteManagementGroup.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "GroupToDelete", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "GroupToDelete", | ||
"status": "NotStarted" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...crosoft.Management/stable/2020-05-01/examples/GetAllSubscriptionsFromManagementGroup.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,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "Group" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"id": "/providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"properties": { | ||
"displayName": "S5", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/Group" | ||
}, | ||
"state": "Active", | ||
"tenant": "e751ac82-623b-4913-8d74-22637c832373" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...oups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/GetDescendants.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,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "20000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"displayName": "Group 1", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/20000000-0004-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"name": "20000000-0004-0000-0000-000000000000", | ||
"properties": { | ||
"displayName": "Subscription 4", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...tgroups/resource-manager/Microsoft.Management/stable/2020-05-01/examples/GetEntities.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,64 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
}, | ||
"permissions": "view", | ||
"inheritedPermissions": "view", | ||
"parentDisplayNameChain": [ | ||
"Tenant Root Group", | ||
"Group 1 Tenant 2 Parent" | ||
], | ||
"parentNameChain": [ | ||
"TenantRootGroup", | ||
"Group1Tenant2Parent" | ||
], | ||
"numberOfDescendants": 3, | ||
"numberOfChildren": 2, | ||
"numberOfChildGroups": 1 | ||
} | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0004-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 4 Tenant 2", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
}, | ||
"permissions": "delete", | ||
"inheritedPermissions": "delete", | ||
"parentDisplayNameChain": [ | ||
"Tenant Root Group", | ||
"Group 4 Tenant 2 Parent" | ||
], | ||
"parentNameChain": [ | ||
"TenantRootGroup", | ||
"Group4 Tenant2Parent" | ||
], | ||
"numberOfDescendants": 0, | ||
"numberOfChildren": 0, | ||
"numberOfChildGroups": 0 | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...esource-manager/Microsoft.Management/stable/2020-05-01/examples/GetHierarchySettings.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,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "root" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/root/settings/default", | ||
"type": "Microsoft.Management/managementGroups/settings", | ||
"name": "root", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/DefaultGroup", | ||
"requireAuthorizationForGroupCreation": true | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
.../resource-manager/Microsoft.Management/stable/2020-05-01/examples/GetManagementGroup.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,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"details": { | ||
"version": 1, | ||
"updatedTime": "2018-01-01T00:00:00.00Z", | ||
"updatedBy": "16b8ef21-5c9f-420c-bcc9-e4f8c9f30b4b", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/RootGroup", | ||
"name": "RootGroup", | ||
"displayName": "RootGroup" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...manager/Microsoft.Management/stable/2020-05-01/examples/GetManagementGroupWithExpand.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,63 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"$expand": "children", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"details": { | ||
"version": 1, | ||
"updatedTime": "2018-01-01T00:00:00.00Z", | ||
"updatedBy": "Test", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", | ||
"name": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "20000000-0000-0000-0000-000000000000" | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0002-0000-0000-000000000000", | ||
"displayName": "Group 2 Tenant 2" | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0003-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0003-0000-0000-000000000000", | ||
"displayName": "Group 3 Tenant 2" | ||
}, | ||
{ | ||
"id": "/subscriptions/10000000-F004-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "10000000-F004-0000-0000-000000000000", | ||
"displayName": "Subscription 4 Tenant 1" | ||
}, | ||
{ | ||
"id": "/subscriptions/20000000-F005-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "20000000-F005-0000-0000-000000000000", | ||
"displayName": "Subscription 5 Tenant 2" | ||
}, | ||
{ | ||
"id": "/subscriptions/30000000-F003-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "30000000-F003-0000-0000-000000000000", | ||
"displayName": "Subscription 3 Tenant 3" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...crosoft.Management/stable/2020-05-01/examples/GetManagementGroupWithExpandAndRecurse.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,62 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-05-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"$expand": "children", | ||
"$recurse": true, | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/RootGroup", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "RootGroup", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "RootGroup", | ||
"details": { | ||
"version": 2, | ||
"updatedTime": "2018-01-25T02:26:49.0022093Z", | ||
"updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", | ||
"name": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "20000000-0000-0000-0000-000000000000" | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/Child", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "Child", | ||
"displayName": "Child", | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/Leaf", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "Leaf", | ||
"displayName": "Leaf", | ||
"children": [ | ||
{ | ||
"id": "/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"type": "/subscriptions", | ||
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"displayName": "Pay-As-You-Go" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/AnotherChild", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "AnotherChild", | ||
"displayName": "Leaf" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.