forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2024-10-01-preview dataplane API version to the DevCenter (Azure#…
…30696) * Add base 2024-10-01-preview typespec changes, examples * Add SopOnNoConnect configuration for pool resource * Add LRO for capture snapshot, snapshot type enum * Add lastConnectedTime property on devbox * update comment per feedback --------- Co-authored-by: Sneha Nagendra <[email protected]>
- Loading branch information
1 parent
b4e2402
commit ad60d7f
Showing
132 changed files
with
11,698 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ation/devcenter/DevCenter/examples/2024-10-01-preview/DevBoxes_CaptureSnapshotDevBox.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"title": "Attempts to capture the manual snapshot for the Dev Box.", | ||
"operationId": "DevBoxes_CaptureSnapshotDevBox", | ||
"parameters": { | ||
"api-version": "2024-10-01-preview", | ||
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com", | ||
"projectName": "myProject", | ||
"userId": "me", | ||
"devBoxName": "MyDevBox" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", | ||
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" | ||
}, | ||
"body": { | ||
"id": "/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", | ||
"name": "786a823c-8037-48ab-89b8-8599901e67d0", | ||
"status": "Running", | ||
"startTime": "2023-02-01T12:43:54.122Z" | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...on/devcenter/DevCenter/examples/2024-10-01-preview/DevBoxes_CreateCustomizationGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"title": "Applies customizations to the Dev Box.", | ||
"operationId": "DevBoxes_CreateCustomizationGroup", | ||
"parameters": { | ||
"api-version": "2024-10-01-preview", | ||
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/", | ||
"projectName": "myProject", | ||
"userId": "me", | ||
"devBoxName": "MyDevBox", | ||
"customizationGroupName": "Provisioning", | ||
"body": { | ||
"tasks": [ | ||
{ | ||
"name": "catalogName/choco", | ||
"displayName": "Install VS Code", | ||
"parameters": { | ||
"packageName": "vscode", | ||
"packageVersion": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"name": "catalogName/write-to-file", | ||
"runAs": "User" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Provisioning", | ||
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/customizationgroups/Provisioning", | ||
"tasks": [ | ||
{ | ||
"id": "a9202018-fb6a-4007-8b52-26d7c6d1c1fb", | ||
"name": "catalogName/choco", | ||
"displayName": "Install VS Code", | ||
"status": "NotStarted", | ||
"parameters": { | ||
"packageName": "vscode", | ||
"packageVersion": "1.0.0" | ||
}, | ||
"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" | ||
}, | ||
{ | ||
"id": "91835dc0-ef5a-4f58-9e3a-099aea8481f4", | ||
"name": "catalogName/write-to-file", | ||
"runAs": "User", | ||
"status": "NotStarted", | ||
"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" | ||
} | ||
], | ||
"status": "NotStarted" | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
specification/devcenter/DevCenter/examples/2024-10-01-preview/DevBoxes_CreateDevBox.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"title": "Creates or replaces a Dev Box.", | ||
"operationId": "DevBoxes_CreateDevBox", | ||
"parameters": { | ||
"api-version": "2024-10-01-preview", | ||
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com", | ||
"projectName": "myProject", | ||
"userId": "me", | ||
"devBoxName": "MyDevBox", | ||
"body": { | ||
"poolName": "LargeDevWorkStationPool" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox", | ||
"name": "MyDevBox", | ||
"provisioningState": "Succeeded", | ||
"projectName": "ContosoProject", | ||
"poolName": "LargeDevWorkStationPool", | ||
"location": "centralus", | ||
"osType": "Windows", | ||
"user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", | ||
"hardwareProfile": { | ||
"vCPUs": 8, | ||
"memoryGB": 32 | ||
}, | ||
"storageProfile": { | ||
"osDisk": { | ||
"diskSizeGB": 1024 | ||
} | ||
}, | ||
"hibernateSupport": "Enabled", | ||
"imageReference": { | ||
"name": "DevImage", | ||
"version": "1.0.0", | ||
"publishedDate": "2022-03-01T00:13:23.323Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": { | ||
"Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0", | ||
"Operation-Location": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/operationstatuses/786a823c-8037-48ab-89b8-8599901e67d0" | ||
}, | ||
"body": { | ||
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox", | ||
"name": "MyDevBox", | ||
"provisioningState": "Creating", | ||
"projectName": "ContosoProject", | ||
"poolName": "LargeDevWorkStationPool", | ||
"location": "centralus", | ||
"osType": "Windows", | ||
"user": "b08e39b4-2ac6-4465-a35e-48322efb0f98", | ||
"hardwareProfile": { | ||
"vCPUs": 8, | ||
"memoryGB": 32 | ||
}, | ||
"storageProfile": { | ||
"osDisk": { | ||
"diskSizeGB": 1024 | ||
} | ||
}, | ||
"hibernateSupport": "Enabled", | ||
"imageReference": { | ||
"name": "DevImage", | ||
"version": "1.0.0", | ||
"publishedDate": "2022-03-01T00:13:23.323Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
specification/devcenter/DevCenter/examples/2024-10-01-preview/DevBoxes_DelayAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"title": "Delays the occurrence of an action.", | ||
"operationId": "DevBoxes_DelayAction", | ||
"parameters": { | ||
"api-version": "2024-10-01-preview", | ||
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com", | ||
"projectName": "myProject", | ||
"userId": "me", | ||
"devBoxName": "myDevBox", | ||
"actionName": "schedule-default", | ||
"until": "2022-09-30T17:00:00Z" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"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", | ||
"name": "schedule-default", | ||
"actionType": "Stop", | ||
"sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool/schedules/default", | ||
"sourceId": "/projects/myProject/pools/myPool/schedules/default", | ||
"sourceType": "Schedule", | ||
"suspendedUntil": "2022-09-30T17:00:00Z", | ||
"next": { | ||
"scheduledTime": "2022-09-30T17:00:00Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
specification/devcenter/DevCenter/examples/2024-10-01-preview/DevBoxes_DelayActions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"title": "Delays all actions.", | ||
"operationId": "DevBoxes_DelayActions", | ||
"parameters": { | ||
"api-version": "2024-10-01-preview", | ||
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com", | ||
"projectName": "myProject", | ||
"userId": "me", | ||
"devBoxName": "myDevBox", | ||
"until": "2022-09-30T17:00:00Z" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"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", | ||
"name": "schedule-default", | ||
"result": "Succeeded", | ||
"action": { | ||
"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", | ||
"name": "schedule-default", | ||
"actionType": "Stop", | ||
"sourceId": "/projects/myProject/pools/myPool/schedules/default", | ||
"sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool/schedules/default", | ||
"sourceType": "Schedule", | ||
"suspendedUntil": "2022-09-30T17:00:00Z", | ||
"next": { | ||
"scheduledTime": "2022-09-30T17:00:00Z" | ||
} | ||
} | ||
}, | ||
{ | ||
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/idle-hibernateondisconnect", | ||
"name": "idle-hibernateondisconnect", | ||
"result": "Succeeded", | ||
"action": { | ||
"uri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/users/b08e39b4-2ac6-4465-a35e-48322efb0f98/devboxes/MyDevBox/actions/idle-hibernateondisconnect", | ||
"name": "idle-hibernateondisconnect", | ||
"actionType": "Stop", | ||
"sourceId": "/projects/myProject/pools/myPool", | ||
"sourceUri": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/projects/myProject/pools/myPool", | ||
"sourceType": "Pool", | ||
"suspendedUntil": "2022-09-30T17:00:00Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.