Skip to content

Commit ee81a70

Browse files
ArberHArber Hila
andauthored
[Microsoft.DevCenter][Dataplane] Add new 2026-01-01-preview API version (#39449)
* Add new API version * Update readme file to include new API version --------- Co-authored-by: Arber Hila <ahila@microsoft.com>
1 parent bd3940f commit ee81a70

File tree

158 files changed

+14152
-3
lines changed

Some content is hidden

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

158 files changed

+14152
-3
lines changed

specification/devcenter/DevCenter/DevBox/models.tsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,22 @@ model HardwareProfile {
552552
@doc("The amount of memory available for the Dev Box.")
553553
@visibility(Lifecycle.Read)
554554
memoryGB?: int32;
555+
556+
/** The CPU architecture type of the dev box. */
557+
@added(APIVersions.v2026_01_01_preview)
558+
@visibility(Lifecycle.Read)
559+
architecture?: ArchitectureType;
560+
}
561+
562+
/** Architecture Types. */
563+
union ArchitectureType {
564+
string,
565+
566+
/** x64 architecture */
567+
x64: "x64",
568+
569+
/** ARM64 architecture */
570+
Arm64: "Arm64",
555571
}
556572

557573
@doc("Storage settings for the Dev Box's disks.")

specification/devcenter/DevCenter/DevBox/routes.tsp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,27 @@ interface DevBoxes {
485485
}
486486
>;
487487

488+
/** Gets the log for a dev center catalog image definition imaging build task. */
489+
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "No model for this."
490+
@route("/imageBuildLogs/{imageBuildLogId}")
491+
@get
492+
@added(APIVersions.v2026_01_01_preview)
493+
getDevCenterImagingTaskLog is Azure.Core.Foundations.Operation<
494+
{
495+
@doc("An imaging build log id.")
496+
@path
497+
imageBuildLogId: uuid;
498+
},
499+
{
500+
@doc("Set producer to text/plain")
501+
@header
502+
contentType: "text/plain";
503+
504+
@body
505+
body: string;
506+
}
507+
>;
508+
488509
@doc("Lists snapshots for this Dev Box.")
489510
@added(APIVersions.v2024_09_01_preview)
490511
listSnapshots is StandardResourceOperations.ResourceList<DevBoxSnapshot>;
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": "2026-01-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": "2026-01-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": "2026-01-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": "2026-01-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": "2026-01-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: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"title": "Creates or replaces a Dev Box.",
3+
"operationId": "DevBoxes_CreateDevBox",
4+
"parameters": {
5+
"api-version": "2026-01-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+
"architecture": "x64"
29+
},
30+
"storageProfile": {
31+
"osDisk": {
32+
"diskSizeGB": 1024
33+
}
34+
},
35+
"hibernateSupport": "Enabled",
36+
"imageReference": {
37+
"name": "DevImage",
38+
"version": "1.0.0",
39+
"publishedDate": "2022-03-01T00:13:23.323Z"
40+
}
41+
}
42+
},
43+
"201": {
44+
"headers": {
45+
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0",
46+
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0"
47+
},
48+
"body": {
49+
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox",
50+
"name": "MyDevBox",
51+
"provisioningState": "Creating",
52+
"projectName": "ContosoProject",
53+
"poolName": "LargeDevWorkStationPool",
54+
"location": "centralus",
55+
"osType": "Windows",
56+
"user": "b08e39b4-2ac6-4465-a35e-48322efb0f98",
57+
"hardwareProfile": {
58+
"vCPUs": 8,
59+
"memoryGB": 32,
60+
"architecture": "x64"
61+
},
62+
"storageProfile": {
63+
"osDisk": {
64+
"diskSizeGB": 1024
65+
}
66+
},
67+
"hibernateSupport": "Enabled",
68+
"imageReference": {
69+
"name": "DevImage",
70+
"version": "1.0.0",
71+
"publishedDate": "2022-03-01T00:13:23.323Z"
72+
}
73+
}
74+
}
75+
}
76+
}
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": "2026-01-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+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"title": "Delays the occurrence of an action.",
3+
"operationId": "DevBoxes_DelayAction",
4+
"parameters": {
5+
"api-version": "2026-01-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+
"actionName": "schedule-default",
11+
"until": "2022-09-30T17:00:00Z"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/schedule-default",
17+
"name": "schedule-default",
18+
"actionType": "Stop",
19+
"sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool/schedules/default",
20+
"sourceId": "/projects/myProject/pools/myPool/schedules/default",
21+
"sourceType": "Schedule",
22+
"suspendedUntil": "2022-09-30T17:00:00Z",
23+
"next": {
24+
"scheduledTime": "2022-09-30T17:00:00Z"
25+
}
26+
}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)