Skip to content

Commit

Permalink
Microsoft.Management 2020-05-01 apiversion (#10046)
Browse files Browse the repository at this point in the history
* add 2020-05-01 apiversion

* fix sdk model validation errors

* fix lint

* add 204

* spacing

* code review comments

* code review comments
  • Loading branch information
ramoka178 authored Jul 20, 2020
1 parent 4a8111c commit 99e5561
Show file tree
Hide file tree
Showing 24 changed files with 2,779 additions and 1 deletion.
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"
}
}
}
}
}
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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parameters": {
"api-version": "2020-05-01",
"groupId": "root"
},
"responses": {
"200": {}
}
}
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": {}
}
}
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
}
}
}
}
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
}
}
}
}
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
}
}
}
}
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
}
}
}
}
}
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"
}
}
}
}
}
}
}
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"
}
]
}
}
}
}
}
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"
}
]
}
}
}
}
}
Loading

0 comments on commit 99e5561

Please sign in to comment.