Skip to content

Commit

Permalink
DevCenter: Remove redundant "devbox" string from capture and restore …
Browse files Browse the repository at this point in the history
…snapshot operation names (#30981)

* remove redunant devbox string in operation route for restore and capture snapshot

* update examples

* remove obsolete example files

---------

Co-authored-by: Sneha Nagendra <[email protected]>
  • Loading branch information
snehanagendra and snnagen authored Oct 11, 2024
1 parent 8b9c9e8 commit 15b16d1
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 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

0 comments on commit 15b16d1

Please sign in to comment.