Skip to content

Commit 10cdea5

Browse files
Add New Api 2021-06-22 (#14956)
* Added Base for 2021-06-22 * Changes For New Api-Version * Updated SystemData * Updated Swagger Definition * Address PR Review Comments * Updated Error Response Format * Supress Lint Errors * Fix Breaking Changes * Add Supression For HRWG Response Body * Fix LintErrors * Updated hybridRunbookWorkerGroup.json * PR Review comments * Fix LinDiff Warnings * Fix LintDiff Warnings * Fix LintDiff Warnings Co-authored-by: Bhargava Chary Chollaty <[email protected]>
1 parent c2aceb6 commit 10cdea5

26 files changed

+3606
-0
lines changed

specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/account.json

Lines changed: 954 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount9",
6+
"api-version": "2021-06-22",
7+
"parameters": {
8+
"properties": {
9+
"sku": {
10+
"name": "Free"
11+
}
12+
},
13+
"name": "myAutomationAccount9",
14+
"location": "East US 2"
15+
}
16+
},
17+
"responses": {
18+
"201": {
19+
"headers": {},
20+
"body": {
21+
"name": "myAutomationAccount9",
22+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
23+
"type": "Microsoft.Automation/AutomationAccounts",
24+
"location": "East US 2",
25+
"tags": {},
26+
"etag": null,
27+
"properties": {
28+
"sku": {
29+
"name": "Free",
30+
"family": null,
31+
"capacity": null
32+
},
33+
"state": "Ok",
34+
"creationTime": "2017-03-26T01:13:43.267+00:00",
35+
"lastModifiedBy": "[email protected]",
36+
"lastModifiedTime": "2017-03-26T01:13:43.267+00:00"
37+
}
38+
}
39+
},
40+
"200": {
41+
"headers": {},
42+
"body": {
43+
"name": "ContoseAutomationAccount",
44+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
45+
"type": "Microsoft.Automation/AutomationAccounts",
46+
"location": "East US 2",
47+
"tags": {},
48+
"etag": null,
49+
"properties": {
50+
"sku": {
51+
"name": "Free",
52+
"family": null,
53+
"capacity": null
54+
},
55+
"state": "Ok",
56+
"creationTime": "2017-03-28T18:21:15.187+00:00",
57+
"lastModifiedBy": "[email protected]",
58+
"lastModifiedTime": "2017-03-28T18:21:15.187+00:00"
59+
}
60+
}
61+
}
62+
}
63+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount9",
6+
"api-version": "2021-06-22"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount20",
6+
"hybridRunbookWorkerGroupName": "myGroup",
7+
"hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
8+
"api-version": "2021-06-22"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount20",
6+
"hybridRunbookWorkerGroupName": "myGroup",
7+
"api-version": "2021-06-22"
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "MyAutomationAccount",
6+
"api-version": "2021-06-22",
7+
"parameters": {
8+
"rawContent": {
9+
"schemaVersion": "1.10",
10+
"runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....",
11+
"runbookType": "GraphPowerShell"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"headers": {},
18+
"body": {
19+
"rawContent": {
20+
"schemaVersion": "1.10",
21+
"runbookDefinition": "AAEAAADAQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR....",
22+
"runbookType": "GraphPowerShell"
23+
},
24+
"graphRunbookJson": "<GraphRunbookJSON>"
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount9",
6+
"api-version": "2021-06-22"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"name": "myAutomationAccount9",
13+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount9",
14+
"type": "Microsoft.Automation/AutomationAccounts",
15+
"location": "East US 2",
16+
"tags": {},
17+
"etag": null,
18+
"properties": {
19+
"sku": {
20+
"name": "Free",
21+
"family": null,
22+
"capacity": null
23+
},
24+
"state": "Ok",
25+
"creationTime": "2017-03-26T01:13:43.267+00:00",
26+
"lastModifiedBy": "[email protected]",
27+
"lastModifiedTime": "2017-03-26T01:13:43.267+00:00"
28+
}
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"hybridRunbookWorkerGroupName": "TestHybridGroup",
7+
"hybridRunbookWorkerId": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
8+
"api-version": "2021-06-22"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {},
13+
"body": {
14+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup/hybridRunbookWorkers/c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
15+
"name": "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
16+
"type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups/HybridRunbookWorkers",
17+
"properties": {
18+
"ip": "10.0.0.0",
19+
"registeredDateTime": "2018-04-24T16:30:55+00:00",
20+
"lastSeenDateTime": "2018-04-24T16:30:55+00:00",
21+
"vmResourceId": "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname",
22+
"workerName": "vmname",
23+
"workerType": "HybridV2"
24+
},
25+
"systemData": {
26+
"createdBy": "[email protected]",
27+
"createdByType": "User",
28+
"createdAt": "2018-04-24T16:30:55+00:00",
29+
"lastModifiedBy": "[email protected]",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"hybridRunbookWorkerGroupName": "TestHybridGroup",
7+
"api-version": "2021-06-22"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {},
12+
"body": {
13+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
14+
"name": "TestHybridGroup",
15+
"type": "Microsoft.Automation/AutomationAccounts/HybridRunbookWorkerGroups",
16+
"credential": {
17+
"name": "myRunAsCredentialName"
18+
},
19+
"groupType": "User",
20+
"systemData": {
21+
"createdBy": "[email protected]",
22+
"createdByType": "User",
23+
"createdAt": "2018-04-24T16:30:55+00:00",
24+
"lastModifiedBy": "[email protected]",
25+
"lastModifiedByType": "User",
26+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
27+
}
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "myAutomationAccount11",
6+
"api-version": "2021-06-22"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/New",
15+
"counterProperty": "New",
16+
"counterValue": 0,
17+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
18+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
19+
},
20+
{
21+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Activating",
22+
"counterProperty": "Activating",
23+
"counterValue": 0,
24+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
25+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
26+
},
27+
{
28+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Running",
29+
"counterProperty": "Running",
30+
"counterValue": 0,
31+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
32+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
33+
},
34+
{
35+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Completed",
36+
"counterProperty": "Completed",
37+
"counterValue": 0,
38+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
39+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
40+
},
41+
{
42+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Failed",
43+
"counterProperty": "Failed",
44+
"counterValue": 0,
45+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
46+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
47+
},
48+
{
49+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopped",
50+
"counterProperty": "Stopped",
51+
"counterValue": 0,
52+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
53+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
54+
},
55+
{
56+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Blocked",
57+
"counterProperty": "Blocked",
58+
"counterValue": 0,
59+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
60+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
61+
},
62+
{
63+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspended",
64+
"counterProperty": "Suspended",
65+
"counterValue": 0,
66+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
67+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
68+
},
69+
{
70+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Disconnected",
71+
"counterProperty": "Disconnected",
72+
"counterValue": 0,
73+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
74+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
75+
},
76+
{
77+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Suspending",
78+
"counterProperty": "Suspending",
79+
"counterValue": 0,
80+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
81+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
82+
},
83+
{
84+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Stopping",
85+
"counterProperty": "Stopping",
86+
"counterValue": 0,
87+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
88+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
89+
},
90+
{
91+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Resuming",
92+
"counterProperty": "Resuming",
93+
"counterValue": 0,
94+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
95+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
96+
},
97+
{
98+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/statistics/Removing",
99+
"counterProperty": "Removing",
100+
"counterValue": 0,
101+
"startTime": "2017-03-19T02:11:49.9879197+00:00",
102+
"endTime": "2017-03-26T02:11:49.9879197+00:00"
103+
}
104+
]
105+
}
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)