Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into user/priyjain/publicpreview-2024-09-01
  • Loading branch information
agrbhuvnesh committed Oct 12, 2024
2 parents 56128aa + 15b16d1 commit 3b2c786
Show file tree
Hide file tree
Showing 34 changed files with 3,274 additions and 17 deletions.
4 changes: 2 additions & 2 deletions specification/devcenter/DevCenter/DevBox/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ interface DevBoxes {
@added(APIVersions.v2024_09_01_preview)
@pollingOperation(OperationStatuses.get)
@action("restoreSnapshot")
restoreSnapshotDevBox is DevCenterOps.LongRunningResourceAction<
restoreSnapshot is DevCenterOps.LongRunningResourceAction<
DevBox,
{
...SnapshotIdQueryParameter;
Expand All @@ -445,7 +445,7 @@ interface DevBoxes {
@added(APIVersions.v2024_10_01_preview)
@pollingOperation(OperationStatuses.get)
@action("captureSnapshot")
captureSnapshotDevBox is DevCenterOps.LongRunningResourceAction<
captureSnapshot is DevCenterOps.LongRunningResourceAction<
DevBox,
{},
OperationStatus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to restore the Dev Box to a selected snapshot.",
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"parameters": {
"api-version": "2024-09-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to capture the manual snapshot for the Dev Box.",
"operationId": "DevBoxes_CaptureSnapshotDevBox",
"operationId": "DevBoxes_CaptureSnapshot",
"parameters": {
"api-version": "2024-10-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to restore the Dev Box to a selected snapshot.",
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"parameters": {
"api-version": "2024-10-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@
},
"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restoreSnapshot": {
"post": {
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"description": "Restores a Dev Box to a specified snapshot.",
"parameters": [
{
Expand Down Expand Up @@ -1831,7 +1831,7 @@
},
"x-ms-examples": {
"Attempts to restore the Dev Box to a selected snapshot.": {
"$ref": "./examples/DevBoxes_RestoreSnapshotDevBox.json"
"$ref": "./examples/DevBoxes_RestoreSnapshot.json"
}
},
"x-ms-long-running-operation": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to restore the Dev Box to a selected snapshot.",
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"parameters": {
"api-version": "2024-09-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@
},
"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restoreSnapshot": {
"post": {
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"description": "Restores a Dev Box to a specified snapshot.",
"parameters": [
{
Expand Down Expand Up @@ -1831,15 +1831,15 @@
},
"x-ms-examples": {
"Attempts to restore the Dev Box to a selected snapshot.": {
"$ref": "./examples/DevBoxes_RestoreSnapshotDevBox.json"
"$ref": "./examples/DevBoxes_RestoreSnapshot.json"
}
},
"x-ms-long-running-operation": true
}
},
"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:captureSnapshot": {
"post": {
"operationId": "DevBoxes_CaptureSnapshotDevBox",
"operationId": "DevBoxes_CaptureSnapshot",
"description": "Captures a manual snapshot of the Dev Box.",
"parameters": [
{
Expand Down Expand Up @@ -1905,7 +1905,7 @@
},
"x-ms-examples": {
"Attempts to capture the manual snapshot for the Dev Box.": {
"$ref": "./examples/DevBoxes_CaptureSnapshotDevBox.json"
"$ref": "./examples/DevBoxes_CaptureSnapshot.json"
}
},
"x-ms-long-running-operation": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to capture the manual snapshot for the Dev Box.",
"operationId": "DevBoxes_CaptureSnapshotDevBox",
"operationId": "DevBoxes_CaptureSnapshot",
"parameters": {
"api-version": "2024-10-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Attempts to restore the Dev Box to a selected snapshot.",
"operationId": "DevBoxes_RestoreSnapshotDevBox",
"operationId": "DevBoxes_RestoreSnapshot",
"parameters": {
"api-version": "2024-10-01-preview",
"endpoint": "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"title": "Pools_CreateOrUpdate",
"operationId": "Pools_CreateOrUpdate",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2",
"resourceGroupName": "rg",
"poolName": "pool",
"resource": {
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"maximumConcurrency": 10,
"devCenterProjectResourceId": "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
"organizationProfile": {
"kind": "AzureDevOps",
"organizations": [
{
"url": "https://mseng.visualstudio.com"
}
]
},
"agentProfile": {
"kind": "Stateless"
},
"fabricProfile": {
"kind": "Vmss",
"sku": {
"name": "Standard_D4ads_v5"
},
"images": [
{
"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"
}
]
}
}
}
},
"responses": {
"201": {
"headers": {
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
},
"body": {
"properties": {
"provisioningState": "Succeeded",
"maximumConcurrency": 10,
"devCenterProjectResourceId": "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
"organizationProfile": {
"kind": "AzureDevOps",
"organizations": [
{
"url": "https://mseng.visualstudio.com"
}
]
},
"agentProfile": {
"kind": "Stateless"
},
"fabricProfile": {
"kind": "Vmss",
"sku": {
"name": "Standard_D4ads_v5"
},
"images": [
{
"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"
}
]
}
},
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/rg/providers/Microsoft.DevOpsInfrastructure/Pools/pool",
"location": "eastus"
}
},
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"maximumConcurrency": 10,
"devCenterProjectResourceId": "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
"organizationProfile": {
"kind": "AzureDevOps",
"organizations": [
{
"url": "https://mseng.visualstudio.com"
}
]
},
"agentProfile": {
"kind": "Stateless"
},
"fabricProfile": {
"kind": "Vmss",
"sku": {
"name": "Standard_D4ads_v5"
},
"images": [
{
"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"
}
]
}
},
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/rg/providers/Microsoft.DevOpsInfrastructure/Pools/pool",
"location": "eastus"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Pools_Delete",
"operationId": "Pools_Delete",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2",
"resourceGroupName": "rg",
"poolName": "pool"
},
"responses": {
"202": {
"headers": {
"location": "https://contoso.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"title": "Pools_Get",
"operationId": "Pools_Get",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2",
"resourceGroupName": "rg",
"poolName": "pool"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"maximumConcurrency": 10,
"devCenterProjectResourceId": "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
"organizationProfile": {
"kind": "AzureDevOps",
"organizations": [
{
"url": "https://mseng.visualstudio.com"
}
]
},
"agentProfile": {
"kind": "Stateless"
},
"fabricProfile": {
"kind": "Vmss",
"sku": {
"name": "Standard_D4ads_v5"
},
"images": [
{
"resourceId": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"
}
]
}
},
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/rg/providers/Microsoft.DevOpsInfrastructure/Pools/pool",
"location": "eastus"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "ImageVersions_ListByImage",
"operationId": "ImageVersions_ListByImage",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2",
"resourceGroupName": "my-resource-group",
"imageName": "windows-2022"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/my-resource-group/providers/Microsoft.DevOpsInfrastructure/images/windows-2022/versions/2024.0417.0",
"name": "2024.0417.0"
},
{
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/my-resource-group/providers/Microsoft.DevOpsInfrastructure/images/windows-2022/versions/2024.0417.1",
"name": "2024.0417.1"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Operations_List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2024-10-19"
},
"responses": {
"200": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Pools_ListBySubscription",
"operationId": "Pools_ListBySubscription",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/aoiresourceGroupName/providers/Microsoft.DevOpsInfrastructure/Pools/pool",
"location": "eastus"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Pools_ListByResourceGroup",
"operationId": "Pools_ListByResourceGroup",
"parameters": {
"api-version": "2024-10-19",
"subscriptionId": "a2e95d27-c161-4b61-bda4-11512c14c2c2",
"resourceGroupName": "rg"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a2e95d27-c161-4b61-bda4-11512c14c2c2/resourceGroups/rg/providers/Microsoft.DevOpsInfrastructure/Pools/pool",
"location": "eastus"
}
]
}
}
}
}
Loading

0 comments on commit 3b2c786

Please sign in to comment.