You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devcenter microsoft.dev center 2024 05 01 preview (#27863)
* Adds base for updating Microsoft.DevCenter from version preview/2023-10-01-preview to version 2024-05-01-preview
* Updates readme
* Updates API version in new specs and examples
* add new changes for 2024-05-01-preview
* run prettier and fix
* Add directive to supress HostParametersValidation lintdiff errors
* fix ntegerTypeMustHaveFormat lintdiff error
* add suppression for OperationIdNounVerb
* Add new API changes in TypeSpec
* Generate the swagger from TypeSpec
* fix tag name
* Fix package tag for real
* Add missing examples to TypeSpec folder
* Recompile
* Few more fixes
* Some more fixes
* Fix validateCustomizationTasksAction route to be LRO
* Fix issues with examples. Remove a couple of old ones. Add two missing ones
* Run linter
* Validate Customization group route changes
* Fix another example with accept header/param
* Update visbility since the name can be used in post actions
* Needs to be CREATE visibility per documentation
* Rename timeout to timeoutInSeconds
* Merge latest with main, fix package-lock issue, run npx tsv devcenter
* Update comment as per PR suggestions
* Change route
* Remove regionality from supporting documents link, use Azure.Core.Foundations.Error object instead of our own
* Configure param with query parameter traits
* Add a missing space
* Fix header, should actually be in response
* Fix warnings due to missing doc descriptions
* Run linter
* use dayton's wording for tasks include parameter
* Remove unncessary statusCode in response object
* Remove unnecessary @action decorator since the action name is already included in the route
---------
Co-authored-by: Sneha Nagendra <[email protected]>
Co-authored-by: Arber Hila <[email protected]>
Co-authored-by: Arber Hila <[email protected]>
Copy file name to clipboardExpand all lines: specification/devcenter/DevCenter/DevBox/models.tsp
+271Lines changed: 271 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,78 @@ union ScheduledFrequency {
187
187
string,
188
188
}
189
189
190
+
@doc("Type of the parameter.")
191
+
@added(APIVersions.v2024_05_01_preview)
192
+
unionCustomizationTaskDefinitionParameterType {
193
+
@doc("The parameter accepts a string value.")
194
+
string:"string",
195
+
196
+
@doc("The parameter accepts a number value.")
197
+
number:"number",
198
+
199
+
@doc("The parameter accepts a boolean value.")
200
+
boolean:"boolean",
201
+
202
+
string,
203
+
}
204
+
205
+
@doc("What account to run the task as.")
206
+
@added(APIVersions.v2024_05_01_preview)
207
+
unionCustomizationTaskExecutionAccount {
208
+
@doc("The SYSTEM account.")
209
+
System:"System",
210
+
211
+
@doc("The account of the signed in user.")
212
+
User:"User",
213
+
214
+
string,
215
+
}
216
+
217
+
@doc("Status of a customization task.")
218
+
@added(APIVersions.v2024_05_01_preview)
219
+
unionCustomizationTaskStatus {
220
+
@doc("The task has not yet started.")
221
+
NotStarted:"NotStarted",
222
+
223
+
@doc("The task is currently executing.")
224
+
Running:"Running",
225
+
226
+
@doc("The task successfully executed.")
227
+
Succeeded:"Succeeded",
228
+
229
+
@doc("The task reference is not valid.")
230
+
FailedValidation:"FailedValidation",
231
+
232
+
@doc("he task was skipped.")
233
+
Skipped:"Skipped",
234
+
235
+
@doc("The task timed out.")
236
+
TimedOut:"TimedOut",
237
+
238
+
@doc("The task failed to execute.")
239
+
Failed:"Failed",
240
+
241
+
@doc("The task is awaiting the User Account Control (UAC) prompt to be approved. (See more at: https://learn.microsoft.com/windows/security/application-security/application-control/user-account-control/)")
242
+
WaitingForUserInputUac:"WaitingForUserInputUac",
243
+
244
+
@doc("The task is awaiting the user to connect to the Dev Box to execute.")
245
+
WaitingForUserSession:"WaitingForUserSession",
246
+
247
+
string,
248
+
}
249
+
250
+
@doc("Status of validating a list of customization tasks.")
251
+
@added(APIVersions.v2024_05_01_preview)
252
+
unionCustomizationTaskListValidationStatus {
253
+
@doc("Validation succeeded.")
254
+
Succeeded:"Succeeded",
255
+
256
+
@doc("Validation failed.")
257
+
Failed:"Failed",
258
+
259
+
string,
260
+
}
261
+
190
262
@doc("The power states of a Dev Box.")
191
263
unionPowerState {
192
264
@doc("The Dev Box power state is not known.")
@@ -207,6 +279,36 @@ union PowerState {
207
279
string,
208
280
}
209
281
282
+
@doc("Status of validating a list of customization tasks.")
283
+
@added(APIVersions.v2024_05_01_preview)
284
+
unionListCustomizationGroupsIncludeProperty {
285
+
@doc("Include list of tasks in the response.")
286
+
tasks:"tasks",
287
+
288
+
string,
289
+
}
290
+
291
+
@doc("Status of a customization group.")
292
+
@added(APIVersions.v2024_05_01_preview)
293
+
unionCustomizationGroupStatus {
294
+
@doc("The customization group has not yet started.")
295
+
NotStarted:"NotStarted",
296
+
297
+
@doc("The customization group is currently executing.")
298
+
Running:"Running",
299
+
300
+
@doc("All tasks in the customization group successfully executed.")
301
+
Succeeded:"Succeeded",
302
+
303
+
@doc("At least one task in the customization group failed.")
304
+
Failed:"Failed",
305
+
306
+
@doc("At least one task in the customization group failed validation.")
307
+
ValidationFailed:"ValidationFailed",
308
+
309
+
string,
310
+
}
311
+
210
312
@doc("The type of action which will take place on a Dev Box.")
211
313
unionDevBoxActionType {
212
314
@doc("The action will stop the Dev Box.")
@@ -537,6 +639,10 @@ model RemoteConnection {
537
639
538
640
@doc("Link to open a Remote Desktop session.")
539
641
rdpConnectionUrl?:url;
642
+
643
+
@added(APIVersions.v2024_05_01_preview)
644
+
@doc("Link to open a remote desktop session via a dev box's underlying Cloud PC (This will default to Windows App).")
645
+
cloudPcConnectionUrl?:url;
540
646
}
541
647
542
648
@doc("An action which will take place on a Dev Box.")
@@ -682,3 +788,168 @@ model DevBoxRepairOperationResult {
682
788
@doc("The result message associated with the repair operation.")
683
789
message?:string;
684
790
}
791
+
792
+
@doc("The Customization Task list result.")
793
+
modelCustomizationTaskDefinitionResult
794
+
isAzure.Core.Page<CustomizationTaskDefinition>;
795
+
796
+
@doc("Represents a task to be used in customizing a Dev Box.")
797
+
@added(APIVersions.v2024_05_01_preview)
798
+
@resource("customizationTasks")
799
+
@parentResource(Catalog)
800
+
modelCustomizationTaskDefinition {
801
+
@doc("Full name of the task: {catalogName}/{taskName}.")
802
+
@key("taskName")
803
+
@visibility("read")
804
+
name:string;
805
+
806
+
@doc("Name of the catalog that the task belongs to.")
0 commit comments