Skip to content

Commit db8b6e1

Browse files
ArberHArber Hila
andauthored
[Microsoft.DevCenter] [Dataplane] 2025-08-01-preview API version (#36525)
* Microsoft.DevCenter Dataplane 2025-08-01-preview API version * Fix failing checks * Fix examples * Fix last rename issue with example and recompile * Run tsp format --------- Co-authored-by: Arber Hila <[email protected]>
1 parent 4f5073a commit db8b6e1

File tree

157 files changed

+14061
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+14061
-1
lines changed

specification/devcenter/DevCenter/DevBox/models.tsp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ union DevBoxActionType {
376376
@doc("The action will stop the Dev Box.")
377377
Stop: "Stop",
378378

379+
@added(APIVersions.v2025_08_01_preview)
380+
@doc("The action will delete the Dev Box.")
381+
Delete: "Delete",
382+
379383
string,
380384
}
381385

@@ -388,6 +392,14 @@ union DevBoxActionSourceType {
388392
@doc("The action was triggered by a Dev Box schedule.")
389393
Schedule: "Schedule",
390394

395+
@added(APIVersions.v2025_08_01_preview)
396+
@doc("The action was triggered by a Dev Box admin.")
397+
Admin: "Admin",
398+
399+
@added(APIVersions.v2025_08_01_preview)
400+
@doc("The action was triggered by a Project.")
401+
Project: "Project",
402+
391403
string,
392404
}
393405

specification/devcenter/DevCenter/DevBox/parameters.tsp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@ model DevBoxAddOnNameParameter {
5050
@path
5151
addOnName: string;
5252
}
53+
54+
@doc("The scheduled datetime query parameter.")
55+
@added(APIVersions.v2025_08_01_preview)
56+
model DeleteAtQueryParameter {
57+
@doc("The scheduled deletion time of the Dev Box, in RFC3339 format.")
58+
@query("deleteAt")
59+
scheduledDate: utcDateTime;
60+
}

specification/devcenter/DevCenter/DevBox/routes.tsp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,17 @@ interface DevBoxes {
443443
DevBoxActionsDelayMultipleResult
444444
>;
445445

446+
@doc("Creates an action to schedule the deletion of a Dev Box")
447+
@added(APIVersions.v2025_08_01_preview)
448+
@action("scheduleDelete")
449+
scheduleDeleteAction is StandardResourceOperations.ResourceAction<
450+
DevBox,
451+
{
452+
...DeleteAtQueryParameter;
453+
},
454+
DevBoxAction
455+
>;
456+
446457
@doc("Lists operations on the Dev Box which have occurred within the past 90 days.")
447458
@added(APIVersions.v2024_02_01)
448459
listOperations is StandardResourceOperations.ResourceList<DevBoxOperation>;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"title": "Aligns the dev box to the current pool network connection configuration.",
3+
"operationId": "DevBoxes_AlignDevBox",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "MyDevBox",
10+
"body": {
11+
"targets": [
12+
"NetworkProperties"
13+
]
14+
}
15+
},
16+
"responses": {
17+
"202": {
18+
"headers": {
19+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
20+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
21+
},
22+
"body": {
23+
"id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
24+
"name": "786a823c-8037-48ab-89b8-8599901e67d0",
25+
"status": "Running",
26+
"startTime": "2023-02-01T12:43:54.122Z"
27+
}
28+
}
29+
}
30+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"title": "Aligns all Dev Boxes in the pool with the current configuration.",
3+
"operationId": "DevBoxes_AlignPool",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"poolName": "DevPool",
9+
"body": {
10+
"targets": [
11+
"NetworkProperties"
12+
]
13+
}
14+
},
15+
"responses": {
16+
"202": {
17+
"headers": {
18+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
19+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
20+
},
21+
"body": {
22+
"id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
23+
"name": "786a823c-8037-48ab-89b8-8599901e67d0",
24+
"status": "Running",
25+
"startTime": "2023-02-01T12:43:54.122Z"
26+
}
27+
}
28+
}
29+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"title": "Approves the creation of a Dev Box.",
3+
"operationId": "DevBoxes_ApproveDevBox",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "MyDevBox"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
15+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
16+
},
17+
"body": {
18+
"id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
19+
"name": "786a823c-8037-48ab-89b8-8599901e67d0",
20+
"status": "Running",
21+
"startTime": "2023-02-01T12:43:54.122Z"
22+
}
23+
}
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"title": "Attempts to capture the manual snapshot for the Dev Box.",
3+
"operationId": "DevBoxes_CaptureSnapshot",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "MyDevBox"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
15+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
16+
},
17+
"body": {
18+
"id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
19+
"name": "786a823c-8037-48ab-89b8-8599901e67d0",
20+
"status": "Running",
21+
"startTime": "2023-02-01T12:43:54.122Z"
22+
}
23+
}
24+
}
25+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"title": "Applies customizations to the Dev Box.",
3+
"operationId": "DevBoxes_CreateCustomizationGroup",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "MyDevBox",
10+
"customizationGroupName": "Provisioning",
11+
"body": {
12+
"tasks": [
13+
{
14+
"name": "catalogName/choco",
15+
"displayName": "Install VS Code",
16+
"parameters": {
17+
"packageName": "vscode",
18+
"packageVersion": "1.0.0"
19+
}
20+
},
21+
{
22+
"name": "catalogName/write-to-file",
23+
"runAs": "User"
24+
}
25+
]
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"name": "Provisioning",
32+
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/customizationgroups/Provisioning",
33+
"tasks": [
34+
{
35+
"id": "a9202018-fb6a-4007-8b52-26d7c6d1c1fb",
36+
"name": "catalogName/choco",
37+
"displayName": "Install VS Code",
38+
"status": "NotStarted",
39+
"parameters": {
40+
"packageName": "vscode",
41+
"packageVersion": "1.0.0"
42+
},
43+
"logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/customizationgroups/Provisioning/logs/a9202018-fb6a-4007-8b52-26d7c6d1c1fb"
44+
},
45+
{
46+
"id": "91835dc0-ef5a-4f58-9e3a-099aea8481f4",
47+
"name": "catalogName/write-to-file",
48+
"runAs": "User",
49+
"status": "NotStarted",
50+
"logUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/customizationgroups/Provisioning/logs/91835dc0-ef5a-4f58-9e3a-099aea8481f4"
51+
}
52+
],
53+
"status": "NotStarted"
54+
}
55+
}
56+
}
57+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"title": "Creates or replaces a Dev Box.",
3+
"operationId": "DevBoxes_CreateDevBox",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "MyDevBox",
10+
"body": {
11+
"poolName": "LargeDevWorkStationPool"
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox",
18+
"name": "MyDevBox",
19+
"provisioningState": "Succeeded",
20+
"projectName": "ContosoProject",
21+
"poolName": "LargeDevWorkStationPool",
22+
"location": "centralus",
23+
"osType": "Windows",
24+
"user": "b08e39b4-2ac6-4465-a35e-48322efb0f98",
25+
"hardwareProfile": {
26+
"vCPUs": 8,
27+
"memoryGB": 32
28+
},
29+
"storageProfile": {
30+
"osDisk": {
31+
"diskSizeGB": 1024
32+
}
33+
},
34+
"hibernateSupport": "Enabled",
35+
"imageReference": {
36+
"name": "DevImage",
37+
"version": "1.0.0",
38+
"publishedDate": "2022-03-01T00:13:23.323Z"
39+
}
40+
}
41+
},
42+
"201": {
43+
"headers": {
44+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
45+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
46+
},
47+
"body": {
48+
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox",
49+
"name": "MyDevBox",
50+
"provisioningState": "Creating",
51+
"projectName": "ContosoProject",
52+
"poolName": "LargeDevWorkStationPool",
53+
"location": "centralus",
54+
"osType": "Windows",
55+
"user": "b08e39b4-2ac6-4465-a35e-48322efb0f98",
56+
"hardwareProfile": {
57+
"vCPUs": 8,
58+
"memoryGB": 32
59+
},
60+
"storageProfile": {
61+
"osDisk": {
62+
"diskSizeGB": 1024
63+
}
64+
},
65+
"hibernateSupport": "Enabled",
66+
"imageReference": {
67+
"name": "DevImage",
68+
"version": "1.0.0",
69+
"publishedDate": "2022-03-01T00:13:23.323Z"
70+
}
71+
}
72+
}
73+
}
74+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"title": "Creates a Dev Box addon.",
3+
"operationId": "DevBoxes_CreateOrReplaceDevBoxAddOn",
4+
"parameters": {
5+
"api-version": "2025-08-01-preview",
6+
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
7+
"projectName": "myProject",
8+
"userId": "me",
9+
"devBoxName": "myDevBox",
10+
"addOnName": "devboxtunnel-sys-default",
11+
"body": {
12+
"kind": "DevBoxTunnel",
13+
"hostingResourceName": "Default"
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"name": "devboxtunnel-sys-default",
20+
"kind": "DevBoxTunnel",
21+
"actionState": "Disabled",
22+
"status": "Disabled",
23+
"hostingResourceName": "Default",
24+
"codeTunnelName": "mdb-contoso-35268c5-e8da-8918-128b-d3a2c4645795",
25+
"codeTunnelUrl": "https://vscode.dev/tunnel/mdb-contoso-35268c5-e8da-8918-128b-d3a2c4645795"
26+
}
27+
},
28+
"201": {
29+
"headers": {
30+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
31+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
32+
},
33+
"body": {
34+
"name": "devboxtunnel-sys-default",
35+
"kind": "DevBoxTunnel",
36+
"actionState": "Disabled",
37+
"status": "Disabled",
38+
"provisioningState": "Creating",
39+
"hostingResourceName": "Default",
40+
"codeTunnelName": "mdb-contoso-35268c5-e8da-8918-128b-d3a2c4645795",
41+
"codeTunnelUrl": "https://vscode.dev/tunnel/mdb-contoso-35268c5-e8da-8918-128b-d3a2c4645795"
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)