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 a new 2024-09-01-preview dataplane API version to the DevCenter (A…
…zure#30359) * add 2024-09-01-preview to main.tsp * Add force option for environment deletion, add apis for get/list snapshots and restore to snapshot * update readme * commit changes by npx tsv specification/devcenter/DevCenter * address review feedback (add format info on timestamps, rename to restoreSnapshot, update operation result) * remove stale example file * Add parameters file * change alias to model per PR feedback * update version in client.tsp --------- Co-authored-by: Sneha Nagendra <[email protected]>
- Loading branch information
1 parent
69fd9b7
commit f9f493d
Showing
142 changed files
with
12,043 additions
and
1,686 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import "@typespec/rest"; | ||
import "@typespec/http"; | ||
import "@azure-tools/typespec-azure-core"; | ||
import "../shared/models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using TypeSpec.Http; | ||
using TypeSpec.Versioning; | ||
|
||
namespace DevCenterService; | ||
|
||
@doc("The snapshot id query parameter.") | ||
model SnapshotIdQueryParameter { | ||
@doc("Required parameter that specifies the snapshot id to use for the restore operation.") | ||
@query | ||
snapshotId: string; | ||
} | ||
|
||
@doc("The delay until query parameter.") | ||
model DelayUntilQueryParameter { | ||
@doc("The time to delay the Dev Box action or actions until, in RFC3339 format.") | ||
@query("until") | ||
delayUntil: utcDateTime; | ||
} | ||
|
||
@doc("The hibernate query parameter.") | ||
model HibernateQueryParameter { | ||
@doc("Optional parameter to hibernate the dev box.") | ||
@query | ||
hibernate?: boolean; | ||
} | ||
|
||
@doc("The Dev Box name path parameter.") | ||
model DevBoxNameParameter { | ||
@doc("The name of a Dev Box.") | ||
@maxLength(63) | ||
@minLength(3) | ||
@pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") | ||
@path | ||
devBoxName: string; | ||
} |
Oops, something went wrong.