@@ -21,6 +21,13 @@ public static class Constants
2121 public const string ARGQuery = "{\" query\" : \" Resources | where type in~ ('microsoft.devcenter/projects') | where properties['provisioningState'] =~ 'Succeeded' | project id, location, tenantId, name, properties, type\" ," +
2222 " \" options\" :{\" allowPartialScopes\" :true}}" ;
2323
24+ /// <summary>
25+ /// API version used for enumeration and start, stop, and restart APIs
26+ /// </summary>
27+ /// For stable api's <seealso href="https://learn.microsoft.com/rest/api/devcenter/developer/dev-boxes?view=rest-devcenter-developer-2023-04-01"/>
28+ /// for preview api's <seealso cref="https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/data-plane/Microsoft.DevCenter/preview"/>
29+ public const string APIVersion = "api-version=2024-05-01-preview" ;
30+
2431 /// <summary>
2532 /// DevCenter API to get all devboxes
2633 /// </summary>
@@ -32,6 +39,11 @@ public static class Constants
3239
3340 public const string OperationsParameter = "operations" ;
3441
42+ /// <summary>
43+ /// Dev Box API to run the winget customization task
44+ /// </summary>
45+ public const string CustomizationAPI = "/customizationgroups/AzureExt" ;
46+
3547 /// <summary>
3648 /// Gets the Regex pattern for the name of a DevBox. This pattern is used to validate the name and the project name of a DevBox before attempting
3749 /// to create it.
@@ -50,13 +62,6 @@ public static class Constants
5062 /// </summary>
5163 public const string ManagementPlaneScope = "https://management.azure.com/user_impersonation" ;
5264
53- /// <summary>
54- /// API version used for enumeration and start, stop, and restart APIs
55- /// </summary>
56- /// For stable api's <seealso href="https://learn.microsoft.com/rest/api/devcenter/developer/dev-boxes?view=rest-devcenter-developer-2023-04-01"/>
57- /// for preview api's <seealso cref="https://github.com/Azure/azure-rest-api-specs/tree/main/specification/devcenter/data-plane/Microsoft.DevCenter/preview"/>
58- public const string APIVersion = "api-version=2024-05-01-preview" ;
59-
6065 public const string Pools = "pools" ;
6166
6267 public const string Projects = "projects" ;
@@ -76,7 +81,7 @@ public static class Constants
7681
7782 public static readonly TimeSpan OneMinutePeriod = TimeSpan . FromMinutes ( 1 ) ;
7883
79- public static readonly TimeSpan FiveMinutePeriod = TimeSpan . FromMinutes ( 5 ) ;
84+ public static readonly TimeSpan ThreeMinutePeriod = TimeSpan . FromMinutes ( 3 ) ;
8085
8186 public static readonly TimeSpan OperationDeadline = TimeSpan . FromHours ( 2 ) ;
8287
@@ -109,6 +114,8 @@ public static class DevBoxProvisioningStates
109114 public const string Deleting = "Deleting" ;
110115
111116 public const string Updating = "Updating" ;
117+
118+ public const string Deleted = "Deleted" ;
112119 }
113120
114121 public static class DevBoxActionStates
0 commit comments