Skip to content

Commit 536b9a8

Browse files
authored
[Hub Generated] Review request for Microsoft.Easm to add version preview/2023-04-01-preview (#23501)
* Adds base for updating Microsoft.Easm from version preview/2022-04-01-preview to version 2023-04-01-preview * Updates readme * Updates API version in new specs and examples * added task endpoint
1 parent 351c859 commit 536b9a8

15 files changed

+1206
-2
lines changed

specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/easm.json

Lines changed: 872 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"labelName": "ThisisaLabel",
8+
"Resource": {
9+
"properties": {
10+
"color": "blue",
11+
"displayName": "This is a label"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel",
19+
"name": "ThisisaLabel",
20+
"type": "Microsoft.Easm/workspaces/labels",
21+
"properties": {
22+
"color": "blue",
23+
"displayName": "This is a label",
24+
"provisioningState": "Succeeded"
25+
}
26+
}
27+
},
28+
"201": {
29+
"body": {
30+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel",
31+
"name": "ThisisaLabel",
32+
"type": "Microsoft.Easm/workspaces/labels",
33+
"properties": {
34+
"color": "blue",
35+
"displayName": "This is a label",
36+
"provisioningState": "Succeeded"
37+
}
38+
}
39+
}
40+
}
41+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"labelName": "ThisisaLabel"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-04-01-preview"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"labelName": "ThisisaLabel"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel",
13+
"name": "ThisisaLabel",
14+
"type": "microsoft.digitalfootprint/workspaces/labels",
15+
"properties": {
16+
"color": "blue",
17+
"displayName": "This is a label",
18+
"provisioningState": "Succeeded"
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel",
14+
"name": "ThisisaLabel",
15+
"type": "microsoft.digitalfootprint/workspaces/labels",
16+
"properties": {
17+
"color": "blue",
18+
"displayName": "This is a label",
19+
"provisioningState": "Succeeded"
20+
}
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"labelName": "ThisisaLabel",
8+
"Resource": {
9+
"properties": {
10+
"color": "blue"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/labels/ThisisaLabel",
18+
"name": "ThisisaLabel",
19+
"type": "Microsoft.Easm/workspaces/labels",
20+
"properties": {
21+
"color": "blue",
22+
"provisioningState": "Succeeded"
23+
}
24+
}
25+
}
26+
}
27+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Easm/workspaces/read",
11+
"isDataAction": false,
12+
"display": {
13+
"provider": "Microsoft.Easm",
14+
"resource": "workspaces",
15+
"operation": "Workspace_ListBySubscription",
16+
"description": "Returns a list of Workspaces under the given subscription."
17+
}
18+
}
19+
]
20+
}
21+
}
22+
}
23+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"taskId": "ThisisaTaskId"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/tasks/ThisisaTaskId",
13+
"name": "ThisisaTask",
14+
"type": "Microsoft.Easm/workspaces/tasks",
15+
"properties": {
16+
"startedAt": "",
17+
"completedAt": "",
18+
"lastPolledAt": "",
19+
"phase": "taskState",
20+
"reason": "reason",
21+
"metadata": {}
22+
}
23+
}
24+
}
25+
}
26+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace",
7+
"WorkspaceResource": {
8+
"location": "West US",
9+
"properties": {}
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace",
16+
"name": "ThisisaWorkspace",
17+
"type": "Microsoft.Easm/workspaces",
18+
"location": "West US",
19+
"properties": {
20+
"provisioningState": "Succeeded"
21+
}
22+
}
23+
},
24+
"201": {
25+
"body": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace",
27+
"name": "ThisisaWorkspace",
28+
"type": "Microsoft.Easm/workspaces",
29+
"location": "West US",
30+
"properties": {
31+
"provisioningState": "Succeeded"
32+
}
33+
}
34+
}
35+
}
36+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "dummyrg",
6+
"workspaceName": "ThisisaWorkspace"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Easm/workspaces/ThisisaWorkspace/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-04-01-preview"
12+
}
13+
},
14+
"204": {}
15+
}
16+
}

0 commit comments

Comments
 (0)