Skip to content

Commit 64496bd

Browse files
RaviRavi Yadav
Ravi
and
Ravi Yadav
authored
HWG new api swagger (#19121)
* add swagger definitions for deletedAutomationAccounts resource type * fix semantic and model validation error * fix model validation error * fix date format and schema type * fix lint diff error * fix paths * fix lint diff * remove errorresponse schema * add errorresponse schema * add reference in readme * supress error schema * fix URI path to return list of deleted accounts * remove automation account name parameter * fix properties filed to be consistent, deletedDate to deletionTime * add new HWG API version * add required parameter to example file * remove hybridRunbookWorkers field from properties * fix model validation error * fix model validation * use latest api-version tag * addd default api version tag Co-authored-by: Ravi Yadav <[email protected]>
1 parent af4a4ea commit 64496bd

9 files changed

+609
-4
lines changed

specification/automation/resource-manager/Microsoft.Automation/stable/2022-01-31/deletedAutomationAccount.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@
129129
"type": "string",
130130
"description": "Gets or sets the location of the resource."
131131
},
132-
"deletedTime": {
132+
"deletionTime": {
133133
"type": "string",
134134
"format": "date-time",
135135
"readOnly": true,
136-
"description": "Gets the creation time.",
136+
"description": "Gets the deletion time.",
137137
"x-nullable": false
138138
}
139139
},

specification/automation/resource-manager/Microsoft.Automation/stable/2022-01-31/examples/getDeletedAutomationAccount.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"automationAccountResourceId": "/subscriptions/subid/resourceGroups/msitest/providers/Microsoft.Automation/automationAccounts/myAutomationAccount",
1818
"automationAccountId": "cb855f13-0223-4fe4-8260-9e6583dfef24",
1919
"location": "westus",
20-
"deletedTime": "2018-04-24T16:30:55+00:00"
20+
"deletionTime": "2018-04-24T16:30:55+00:00"
2121
}
2222
}
2323
]
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": "2022-02-22"
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"hybridRunbookWorkerGroupName": "TestHybridGroup",
7+
"api-version": "2022-02-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+
"properties": {
17+
"groupType": "User",
18+
"credential": {
19+
"name": "myRunAsCredentialName"
20+
}
21+
},
22+
"systemData": {
23+
"createdBy": "[email protected]",
24+
"createdByType": "User",
25+
"createdAt": "2018-04-24T16:30:55+00:00",
26+
"lastModifiedBy": "[email protected]",
27+
"lastModifiedByType": "User",
28+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"api-version": "2022-02-22"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
15+
"name": "TestHybridGroup",
16+
"properties": {
17+
"groupType": "User",
18+
"credential": {
19+
"name": "myRunAsCredentialName"
20+
}
21+
},
22+
"systemData": {
23+
"createdBy": "[email protected]",
24+
"createdByType": "User",
25+
"createdAt": "2018-04-24T16:30:55+00:00",
26+
"lastModifiedBy": "[email protected]",
27+
"lastModifiedByType": "User",
28+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
29+
}
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"hybridRunbookWorkerGroupName": "TestHybridGroup",
7+
"api-version": "2022-02-22",
8+
"HybridRunbookWorkerGroupCreationParameters": {
9+
"properties": {
10+
"credential": {
11+
"name": "myRunAsCredentialName"
12+
}
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"headers": {},
19+
"body": {
20+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
21+
"name": "TestHybridGroup",
22+
"properties": {
23+
"groupType": "User",
24+
"credential": {
25+
"name": "myRunAsCredentialName"
26+
}
27+
},
28+
"systemData": {
29+
"createdBy": "[email protected]",
30+
"createdByType": "User",
31+
"createdAt": "2018-04-24T16:30:55+00:00",
32+
"lastModifiedBy": "[email protected]",
33+
"lastModifiedByType": "User",
34+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
35+
}
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"automationAccountName": "testaccount",
6+
"hybridRunbookWorkerGroupName": "TestHybridGroup",
7+
"api-version": "2022-02-22",
8+
"HybridRunbookWorkerGroupUpdationParameters": {
9+
"properties": {
10+
"credential": {
11+
"name": "myRunAsCredentialUpdatedName"
12+
}
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"headers": {},
19+
"body": {
20+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/testaccount/hybridRunbookWorkerGroups/TestHybridGroup",
21+
"name": "TestHybridGroup",
22+
"properties": {
23+
"groupType": "User",
24+
"credential": {
25+
"name": "myRunAsCredentialUpdatedName"
26+
}
27+
},
28+
"systemData": {
29+
"createdBy": "[email protected]",
30+
"createdByType": "User",
31+
"createdAt": "2018-04-24T16:30:55+00:00",
32+
"lastModifiedBy": "[email protected]",
33+
"lastModifiedByType": "User",
34+
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
35+
}
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)