@azure-rest/developer-devcenter 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +11 -10
  2. package/dist/index.js +98 -179
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/azureDeveloperDevCenter.js +29 -0
  5. package/dist-esm/src/azureDeveloperDevCenter.js.map +1 -0
  6. package/dist-esm/src/clientDefinitions.js.map +1 -0
  7. package/dist-esm/src/index.js +11 -11
  8. package/dist-esm/src/index.js.map +1 -1
  9. package/dist-esm/src/isUnexpected.js +111 -0
  10. package/dist-esm/src/isUnexpected.js.map +1 -0
  11. package/dist-esm/src/logger.js +5 -0
  12. package/dist-esm/src/logger.js.map +1 -0
  13. package/dist-esm/src/models.js.map +1 -0
  14. package/dist-esm/src/outputModels.js.map +1 -0
  15. package/dist-esm/src/{generated/paginateHelper.js → paginateHelper.js} +4 -17
  16. package/dist-esm/src/paginateHelper.js.map +1 -0
  17. package/dist-esm/src/parameters.js.map +1 -0
  18. package/dist-esm/src/{generated/pollingHelper.js → pollingHelper.js} +11 -19
  19. package/dist-esm/src/pollingHelper.js.map +1 -0
  20. package/dist-esm/src/responses.js.map +1 -0
  21. package/package.json +37 -35
  22. package/review/developer-devcenter.api.md +929 -927
  23. package/types/developer-devcenter.d.ts +1140 -1180
  24. package/dist-esm/src/azureDevCenter.js +0 -20
  25. package/dist-esm/src/azureDevCenter.js.map +0 -1
  26. package/dist-esm/src/generated/azureDevCenter.js +0 -28
  27. package/dist-esm/src/generated/azureDevCenter.js.map +0 -1
  28. package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
  29. package/dist-esm/src/generated/index.js +0 -14
  30. package/dist-esm/src/generated/index.js.map +0 -1
  31. package/dist-esm/src/generated/isUnexpected.js +0 -162
  32. package/dist-esm/src/generated/isUnexpected.js.map +0 -1
  33. package/dist-esm/src/generated/models.js.map +0 -1
  34. package/dist-esm/src/generated/outputModels.js.map +0 -1
  35. package/dist-esm/src/generated/paginateHelper.js.map +0 -1
  36. package/dist-esm/src/generated/parameters.js.map +0 -1
  37. package/dist-esm/src/generated/pollingHelper.js.map +0 -1
  38. package/dist-esm/src/generated/responses.js.map +0 -1
  39. /package/dist-esm/src/{generated/clientDefinitions.js → clientDefinitions.js} +0 -0
  40. /package/dist-esm/src/{generated/models.js → models.js} +0 -0
  41. /package/dist-esm/src/{generated/outputModels.js → outputModels.js} +0 -0
  42. /package/dist-esm/src/{generated/parameters.js → parameters.js} +0 -0
  43. /package/dist-esm/src/{generated/responses.js → responses.js} +0 -0
@@ -1,1530 +1,1351 @@
1
1
  import { Client } from '@azure-rest/core-client';
2
2
  import { ClientOptions } from '@azure-rest/core-client';
3
+ import { CreateHttpPollerOptions } from '@azure/core-lro';
4
+ import { ErrorModel } from '@azure-rest/core-client';
5
+ import { ErrorResponse } from '@azure-rest/core-client';
3
6
  import { HttpResponse } from '@azure-rest/core-client';
4
- import { LroEngineOptions } from '@azure/core-lro';
7
+ import { OperationState } from '@azure/core-lro';
8
+ import { Paged } from '@azure/core-paging';
5
9
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
6
10
  import { PathUncheckedResponse } from '@azure-rest/core-client';
7
- import { PollerLike } from '@azure/core-lro';
8
- import { PollOperationState } from '@azure/core-lro';
9
11
  import { RawHttpHeaders } from '@azure/core-rest-pipeline';
10
12
  import { RequestParameters } from '@azure-rest/core-client';
13
+ import { SimplePollerLike } from '@azure/core-lro';
11
14
  import { StreamableMethod } from '@azure-rest/core-client';
12
15
  import { TokenCredential } from '@azure/core-auth';
13
16
 
14
- /** Action request */
15
- export declare interface ActionRequest {
16
- /** The Catalog Item action id to execute */
17
- actionId: string;
18
- /** Parameters object for the Action */
19
- parameters?: Record<string, unknown>;
20
- }
21
-
22
- /** Results of the artifact list operation. */
23
- export declare interface ArtifactListResultOutput {
24
- /** Current page of results. */
25
- value: Array<ArtifactOutput>;
26
- /** URL to get the next set of results if there are any. */
27
- nextLink?: string;
28
- }
29
-
30
- /** Properties of an Artifact */
31
- export declare interface ArtifactOutput {
32
- /** Artifact identifier */
33
- id?: string;
34
- /** Artifact name */
35
- name?: string;
36
- /** Whether artifact is a directory */
37
- isDirectory?: boolean;
38
- /** Uri where the file contents can be downloaded */
39
- downloadUri?: string;
40
- /** Size of file in bytes, if the artifact is a file */
41
- fileSize?: number;
42
- /** Time the artifact was created */
43
- createdTime?: string;
44
- /** Time the artifact was last modified */
45
- lastModifiedTime?: string;
46
- }
47
-
48
- export declare type AzureDevCenterClient = Client & {
17
+ export declare type AzureDeveloperDevCenterClient = Client & {
49
18
  path: Routes;
50
19
  };
51
20
 
52
- /** An action that can be taken on a catalog item. */
53
- export declare interface CatalogItemActionOutput {
54
- /** Unique identifier of the action */
55
- id?: string;
56
- /** Display name of the action */
57
- name?: string;
58
- /** Description of the action */
59
- description?: string;
60
- /** JSON schema defining the parameters specific to the custom action */
61
- parametersSchema?: string;
62
- /** Input parameters passed to the action */
63
- parameters?: Array<CatalogItemParameterOutput>;
64
- /** The action type. */
65
- type?: "Custom" | "Deploy" | "Delete";
66
- /** Name of the custom action type */
67
- typeName?: string;
68
- /** The container image to use to execute the action */
69
- runner?: string;
70
- }
71
-
72
- /** Results of the catalog item list operation. */
73
- export declare interface CatalogItemListResultOutput {
74
- /** Current page of results. */
75
- value: Array<CatalogItemOutput>;
76
- /** URL to get the next set of results if there are any. */
77
- nextLink?: string;
78
- }
79
-
80
- /** A catalog item. */
81
- export declare interface CatalogItemOutput {
82
- /** Unique identifier of the catalog item. */
83
- id?: string;
84
- /** Name of the catalog item. */
85
- name?: string;
21
+ /** A catalog. */
22
+ export declare interface CatalogOutput {
86
23
  /** Name of the catalog. */
87
- catalogName?: string;
88
- }
89
-
90
- /** Properties of an Catalog Item parameter */
91
- export declare interface CatalogItemParameterOutput {
92
- /** Unique ID of the parameter */
93
- id?: string;
94
- /** Display name of the parameter */
95
- name?: string;
96
- /** Description of the parameter */
97
- description?: string;
98
- /** Default value of the parameter */
99
- default?: Record<string, unknown>;
100
- /** A string of one of the basic JSON types (number, integer, null, array, object, boolean, string) */
101
- type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";
102
- /** Whether or not this parameter is read-only. If true, default should have a value. */
103
- readOnly?: boolean;
104
- /** Whether or not this parameter is required */
105
- required?: boolean;
106
- /** An array of allowed values */
107
- allowed?: Array<Record<string, unknown>>;
24
+ name: string;
108
25
  }
109
26
 
110
- /** Results of the catalog item list operation. */
111
- export declare interface CatalogItemVersionListResultOutput {
112
- /** Current page of results. */
113
- value: Array<CatalogItemVersionOutput>;
114
- /** URL to get the next set of results if there are any. */
115
- nextLink?: string;
116
- }
117
-
118
- /** A catalog item version. */
119
- export declare interface CatalogItemVersionOutput {
120
- /** Unique identifier of the catalog item. */
121
- catalogItemId?: string;
122
- /** Name of the catalog item. */
123
- catalogItemName?: string;
124
- /** Name of the catalog. */
125
- catalogName?: string;
126
- /** The version of the catalog item. */
127
- version?: string;
128
- /** A short summary of the catalog item. */
129
- summary?: string;
130
- /** A long description of the catalog item. */
131
- description?: string;
132
- /** Path to the catalog item entrypoint file. */
133
- templatePath?: string;
134
- /** JSON schema defining the parameters object passed to actions */
135
- parametersSchema?: string;
136
- /** Input parameters passed to actions */
137
- parameters?: Array<CatalogItemParameterOutput>;
138
- /** Custom actions for the catalog item. */
139
- actions?: Array<CatalogItemActionOutput>;
140
- /** The default container image to use to execute actions */
141
- runner?: string;
142
- /** Defines whether the specific catalog item version can be used. */
143
- status?: "Enabled" | "Disabled";
144
- /** Whether the version is eligible to be the latest version. */
145
- eligibleForLatestVersion?: boolean;
146
- }
147
-
148
- /** An error response from the service. */
149
- export declare interface CloudErrorBodyOutput {
150
- /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */
151
- code: string;
152
- /** A message describing the error, intended to be suitable for display in a user interface. */
153
- message: string;
154
- /** The target of the particular error. For example, the name of the property in error. */
155
- target?: string;
156
- /** A list of additional details about the error. */
157
- details?: Array<CloudErrorBodyOutput>;
158
- }
159
-
160
- /** An error response from the service. */
161
- export declare interface CloudErrorOutput {
162
- /** Error body */
163
- error: CloudErrorBodyOutput;
164
- }
165
-
166
- /**
167
- * Initialize a new instance of the class AzureDevCenterClient class.
168
- * @param tenantId type: string The tenant to operate on.
169
- * @param devCenter type: string The DevCenter to operate on.
170
- * @param credentials type: TokenCredential
171
- * @param options type: ClientOptions
172
- */
173
- declare function createClient(tenantId: string, devCenter: string, credentials: TokenCredential, options?: ClientOptions): AzureDevCenterClient;
174
-
175
27
  /**
176
- * Initialize a new instance of the class AzureDevCenterClient class.
177
- * @param tenantId type: string The tenant to operate on.
178
- * @param devCenter type: string The DevCenter to operate on.
179
- * @param credentials type: TokenCredential
180
- * @param devCenterDnsSuffix type: string The DNS suffix used as the base for all devcenter requests.
181
- * @param options type: ClientOptions
28
+ * Initialize a new instance of `AzureDeveloperDevCenterClient`
29
+ * @param endpoint - The DevCenter-specific URI to operate on.
30
+ * @param credentials - uniquely identify client credential
31
+ * @param options - the parameter for all optional parameters
182
32
  */
183
- declare function createClient(tenantId: string, devCenter: string, credentials: TokenCredential, devCenterDnsSuffix?: string, options?: ClientOptions): AzureDevCenterClient;
33
+ declare function createClient(endpoint: string, credentials: TokenCredential, options?: ClientOptions): AzureDeveloperDevCenterClient;
184
34
  export default createClient;
185
35
 
186
- /** A DevBox Dev Box */
187
- export declare interface DevBox {
188
- /** Display name for the Dev Box */
189
- name?: string;
190
- /** Name of the project this Dev Box belongs to */
191
- projectName?: string;
192
- /** The name of the Dev Box pool this machine belongs to. */
193
- poolName: string;
194
- /** The current provisioning state of the Dev Box. */
195
- provisioningState?: string;
196
- /** The current action state of the Dev Box. This is state is based on previous action performed by user. */
197
- actionState?: string;
198
- /** The current power state of the Dev Box. */
199
- powerState?: "Unknown" | "Deallocated" | "PoweredOff" | "Running" | "Hibernated";
200
- /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */
201
- uniqueId?: string;
202
- /** Provisioning or action error details. Populated only for error states. */
203
- errorDetails?: ProvisioningError;
204
- /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */
205
- location?: string;
206
- /** The operating system type of this Dev Box. */
207
- osType?: "Windows";
208
- /** User identifier of the user this vm is assigned to. */
209
- user?: string;
210
- /** Information about the Dev Box's hardware resources */
211
- hardwareProfile?: HardwareProfile;
212
- /** Storage settings for this Dev Box */
213
- storageProfile?: StorageProfile;
214
- /** Information about the image used for this Dev Box */
215
- imageReference?: ImageReference;
216
- /** Creation time of this Dev Box */
217
- createdTime?: Date | string;
218
- /** Indicates whether the owner of the Dev Box is a local administrator. */
219
- localAdministrator?: "Enabled" | "Disabled";
220
- }
221
-
222
- /** Creates or updates a Dev Box. */
223
- export declare interface DevBoxesCreateDevBox200Response extends HttpResponse {
36
+ /** The request has succeeded. */
37
+ export declare interface CreateDevBox200Response extends HttpResponse {
224
38
  status: "200";
225
39
  body: DevBoxOutput;
226
40
  }
227
41
 
228
- /** Creates or updates a Dev Box. */
229
- export declare interface DevBoxesCreateDevBox201Response extends HttpResponse {
42
+ export declare interface CreateDevBox201Headers {
43
+ location: string;
44
+ "operation-location": string;
45
+ }
46
+
47
+ /** The request has succeeded and a new resource has been created as a result. */
48
+ export declare interface CreateDevBox201Response extends HttpResponse {
230
49
  status: "201";
231
50
  body: DevBoxOutput;
51
+ headers: RawHttpHeaders & CreateDevBox201Headers;
232
52
  }
233
53
 
234
- export declare interface DevBoxesCreateDevBoxBodyParam {
54
+ export declare interface CreateDevBoxBodyParam {
235
55
  /** Represents a environment. */
236
56
  body: DevBox;
237
57
  }
238
58
 
239
- export declare interface DevBoxesCreateDevBoxDefaultHeaders {
240
- /** The error code for specific error that occurred. */
59
+ export declare interface CreateDevBoxDefaultHeaders {
60
+ /** String error code indicating what went wrong. */
241
61
  "x-ms-error-code"?: string;
242
62
  }
243
63
 
244
- /** Creates or updates a Dev Box. */
245
- export declare interface DevBoxesCreateDevBoxDefaultResponse extends HttpResponse {
64
+ export declare interface CreateDevBoxDefaultResponse extends HttpResponse {
246
65
  status: string;
247
- body: CloudErrorOutput;
248
- headers: RawHttpHeaders & DevBoxesCreateDevBoxDefaultHeaders;
249
- }
250
-
251
- export declare interface DevBoxesCreateDevBoxMediaTypesParam {
252
- /** Request content type */
253
- contentType?: "application/json";
66
+ body: ErrorResponse;
67
+ headers: RawHttpHeaders & CreateDevBoxDefaultHeaders;
254
68
  }
255
69
 
256
- export declare type DevBoxesCreateDevBoxParameters = DevBoxesCreateDevBoxMediaTypesParam & DevBoxesCreateDevBoxBodyParam & RequestParameters;
257
-
258
- /** Deletes a Dev Box. */
259
- export declare interface DevBoxesDeleteDevBox200Response extends HttpResponse {
70
+ /** The final response for long-running CreateDevBox operation */
71
+ export declare interface CreateDevBoxLogicalResponse extends HttpResponse {
260
72
  status: "200";
261
73
  body: DevBoxOutput;
262
74
  }
263
75
 
264
- export declare interface DevBoxesDeleteDevBox202Headers {
265
- /** URL to query for status of the operation. */
266
- "operation-location"?: string;
76
+ export declare type CreateDevBoxParameters = CreateDevBoxBodyParam & RequestParameters;
77
+
78
+ export declare interface CreateOrUpdateEnvironment201Headers {
79
+ "operation-location": string;
267
80
  }
268
81
 
269
- /** Deletes a Dev Box. */
270
- export declare interface DevBoxesDeleteDevBox202Response extends HttpResponse {
271
- status: "202";
272
- body: Record<string, unknown>;
273
- headers: RawHttpHeaders & DevBoxesDeleteDevBox202Headers;
82
+ /** The request has succeeded and a new resource has been created as a result. */
83
+ export declare interface CreateOrUpdateEnvironment201Response extends HttpResponse {
84
+ status: "201";
85
+ body: EnvironmentOutput;
86
+ headers: RawHttpHeaders & CreateOrUpdateEnvironment201Headers;
274
87
  }
275
88
 
276
- /** Deletes a Dev Box. */
277
- export declare interface DevBoxesDeleteDevBox204Response extends HttpResponse {
278
- status: "204";
279
- body: Record<string, unknown>;
89
+ export declare interface CreateOrUpdateEnvironmentBodyParam {
90
+ /** Represents an environment. */
91
+ body: Environment;
280
92
  }
281
93
 
282
- export declare interface DevBoxesDeleteDevBoxDefaultHeaders {
283
- /** The error code for specific error that occurred. */
94
+ export declare interface CreateOrUpdateEnvironmentDefaultHeaders {
95
+ /** String error code indicating what went wrong. */
284
96
  "x-ms-error-code"?: string;
285
97
  }
286
98
 
287
- /** Deletes a Dev Box. */
288
- export declare interface DevBoxesDeleteDevBoxDefaultResponse extends HttpResponse {
99
+ export declare interface CreateOrUpdateEnvironmentDefaultResponse extends HttpResponse {
289
100
  status: string;
290
- body: CloudErrorOutput;
291
- headers: RawHttpHeaders & DevBoxesDeleteDevBoxDefaultHeaders;
101
+ body: ErrorResponse;
102
+ headers: RawHttpHeaders & CreateOrUpdateEnvironmentDefaultHeaders;
103
+ }
104
+
105
+ /** The final response for long-running CreateOrUpdateEnvironment operation */
106
+ export declare interface CreateOrUpdateEnvironmentLogicalResponse extends HttpResponse {
107
+ status: "200";
108
+ body: EnvironmentOutput;
292
109
  }
293
110
 
294
- export declare type DevBoxesDeleteDevBoxParameters = RequestParameters;
111
+ export declare type CreateOrUpdateEnvironmentParameters = CreateOrUpdateEnvironmentBodyParam & RequestParameters;
295
112
 
296
- export declare interface DevBoxesGetDevBoxByUser {
297
- /** Gets a Dev Box */
298
- get(options?: DevBoxesGetDevBoxByUserParameters): StreamableMethod<DevBoxesGetDevBoxByUser200Response | DevBoxesGetDevBoxByUserDefaultResponse>;
299
- /** Creates or updates a Dev Box. */
300
- put(options: DevBoxesCreateDevBoxParameters): StreamableMethod<DevBoxesCreateDevBox200Response | DevBoxesCreateDevBox201Response | DevBoxesCreateDevBoxDefaultResponse>;
301
- /** Deletes a Dev Box. */
302
- delete(options?: DevBoxesDeleteDevBoxParameters): StreamableMethod<DevBoxesDeleteDevBox200Response | DevBoxesDeleteDevBox202Response | DevBoxesDeleteDevBox204Response | DevBoxesDeleteDevBoxDefaultResponse>;
113
+ export declare interface DelayAction {
114
+ /** Delays the occurrence of an action. */
115
+ post(options: DelayActionParameters): StreamableMethod<DelayAction200Response | DelayActionDefaultResponse>;
303
116
  }
304
117
 
305
- /** Gets a Dev Box */
306
- export declare interface DevBoxesGetDevBoxByUser200Response extends HttpResponse {
118
+ /** The request has succeeded. */
119
+ export declare interface DelayAction200Response extends HttpResponse {
307
120
  status: "200";
308
- body: DevBoxOutput;
121
+ body: DevBoxActionOutput;
309
122
  }
310
123
 
311
- export declare interface DevBoxesGetDevBoxByUserDefaultHeaders {
312
- /** The error code for specific error that occurred. */
124
+ export declare interface DelayActionDefaultHeaders {
125
+ /** String error code indicating what went wrong. */
313
126
  "x-ms-error-code"?: string;
314
127
  }
315
128
 
316
- /** Gets a Dev Box */
317
- export declare interface DevBoxesGetDevBoxByUserDefaultResponse extends HttpResponse {
129
+ export declare interface DelayActionDefaultResponse extends HttpResponse {
318
130
  status: string;
319
- body: CloudErrorOutput;
320
- headers: RawHttpHeaders & DevBoxesGetDevBoxByUserDefaultHeaders;
131
+ body: ErrorResponse;
132
+ headers: RawHttpHeaders & DelayActionDefaultHeaders;
321
133
  }
322
134
 
323
- export declare type DevBoxesGetDevBoxByUserParameters = RequestParameters;
135
+ export declare type DelayActionParameters = DelayActionQueryParam & RequestParameters;
324
136
 
325
- export declare interface DevBoxesGetPool {
326
- /** Gets a pool */
327
- get(options?: DevBoxesGetPoolParameters): StreamableMethod<DevBoxesGetPool200Response | DevBoxesGetPoolDefaultResponse>;
137
+ export declare interface DelayActionQueryParam {
138
+ queryParameters: DelayActionQueryParamProperties;
328
139
  }
329
140
 
330
- /** Gets a pool */
331
- export declare interface DevBoxesGetPool200Response extends HttpResponse {
332
- status: "200";
333
- body: PoolOutput;
141
+ export declare interface DelayActionQueryParamProperties {
142
+ /** The time to delay the Dev Box action or actions until. */
143
+ until: Date | string;
334
144
  }
335
145
 
336
- export declare interface DevBoxesGetPoolDefaultHeaders {
337
- /** The error code for specific error that occurred. */
338
- "x-ms-error-code"?: string;
146
+ export declare interface DelayAllActions {
147
+ /** Delays all actions. */
148
+ post(options: DelayAllActionsParameters): StreamableMethod<DelayAllActions200Response | DelayAllActionsDefaultResponse>;
339
149
  }
340
150
 
341
- /** Gets a pool */
342
- export declare interface DevBoxesGetPoolDefaultResponse extends HttpResponse {
343
- status: string;
344
- body: CloudErrorOutput;
345
- headers: RawHttpHeaders & DevBoxesGetPoolDefaultHeaders;
346
- }
347
-
348
- export declare type DevBoxesGetPoolParameters = RequestParameters;
349
-
350
- export declare interface DevBoxesGetRemoteConnection {
351
- /** Gets RDP Connection info */
352
- get(options?: DevBoxesGetRemoteConnectionParameters): StreamableMethod<DevBoxesGetRemoteConnection200Response | DevBoxesGetRemoteConnectionDefaultResponse>;
353
- }
354
-
355
- /** Gets RDP Connection info */
356
- export declare interface DevBoxesGetRemoteConnection200Response extends HttpResponse {
151
+ /** The request has succeeded. */
152
+ export declare interface DelayAllActions200Response extends HttpResponse {
357
153
  status: "200";
358
- body: RemoteConnectionOutput;
154
+ body: PagedDevBoxActionDelayResultOutput;
359
155
  }
360
156
 
361
- export declare interface DevBoxesGetRemoteConnectionDefaultHeaders {
362
- /** The error code for specific error that occurred. */
157
+ export declare interface DelayAllActionsDefaultHeaders {
158
+ /** String error code indicating what went wrong. */
363
159
  "x-ms-error-code"?: string;
364
160
  }
365
161
 
366
- /** Gets RDP Connection info */
367
- export declare interface DevBoxesGetRemoteConnectionDefaultResponse extends HttpResponse {
162
+ export declare interface DelayAllActionsDefaultResponse extends HttpResponse {
368
163
  status: string;
369
- body: CloudErrorOutput;
370
- headers: RawHttpHeaders & DevBoxesGetRemoteConnectionDefaultHeaders;
164
+ body: ErrorResponse;
165
+ headers: RawHttpHeaders & DelayAllActionsDefaultHeaders;
371
166
  }
372
167
 
373
- export declare type DevBoxesGetRemoteConnectionParameters = RequestParameters;
374
-
375
- export declare interface DevBoxesGetScheduleByPool {
376
- /** Gets a schedule. */
377
- get(options?: DevBoxesGetScheduleByPoolParameters): StreamableMethod<DevBoxesGetScheduleByPool200Response | DevBoxesGetScheduleByPoolDefaultResponse>;
378
- }
168
+ export declare type DelayAllActionsParameters = DelayAllActionsQueryParam & RequestParameters;
379
169
 
380
- /** Gets a schedule. */
381
- export declare interface DevBoxesGetScheduleByPool200Response extends HttpResponse {
382
- status: "200";
383
- body: ScheduleOutput;
170
+ export declare interface DelayAllActionsQueryParam {
171
+ queryParameters: DelayAllActionsQueryParamProperties;
384
172
  }
385
173
 
386
- export declare interface DevBoxesGetScheduleByPoolDefaultHeaders {
387
- /** The error code for specific error that occurred. */
388
- "x-ms-error-code"?: string;
174
+ export declare interface DelayAllActionsQueryParamProperties {
175
+ /** The time to delay the Dev Box action or actions until. */
176
+ until: Date | string;
389
177
  }
390
178
 
391
- /** Gets a schedule. */
392
- export declare interface DevBoxesGetScheduleByPoolDefaultResponse extends HttpResponse {
393
- status: string;
394
- body: CloudErrorOutput;
395
- headers: RawHttpHeaders & DevBoxesGetScheduleByPoolDefaultHeaders;
179
+ export declare interface DeleteDevBox202Headers {
180
+ location: string;
181
+ "operation-location": string;
396
182
  }
397
183
 
398
- export declare type DevBoxesGetScheduleByPoolParameters = RequestParameters;
399
-
400
- export declare interface DevBoxesListDevBoxesByUser {
401
- /** Lists Dev Boxes in the project for a particular user. */
402
- get(options?: DevBoxesListDevBoxesByUserParameters): StreamableMethod<DevBoxesListDevBoxesByUser200Response | DevBoxesListDevBoxesByUserDefaultResponse>;
184
+ /** The request has been accepted for processing, but processing has not yet completed. */
185
+ export declare interface DeleteDevBox202Response extends HttpResponse {
186
+ status: "202";
187
+ body: OperationStatusOutput;
188
+ headers: RawHttpHeaders & DeleteDevBox202Headers;
403
189
  }
404
190
 
405
- /** Lists Dev Boxes in the project for a particular user. */
406
- export declare interface DevBoxesListDevBoxesByUser200Response extends HttpResponse {
407
- status: "200";
408
- body: DevBoxListResultOutput;
191
+ /** There is no content to send for this request, but the headers may be useful. */
192
+ export declare interface DeleteDevBox204Response extends HttpResponse {
193
+ status: "204";
409
194
  }
410
195
 
411
- export declare interface DevBoxesListDevBoxesByUserDefaultHeaders {
412
- /** The error code for specific error that occurred. */
196
+ export declare interface DeleteDevBoxDefaultHeaders {
197
+ /** String error code indicating what went wrong. */
413
198
  "x-ms-error-code"?: string;
414
199
  }
415
200
 
416
- /** Lists Dev Boxes in the project for a particular user. */
417
- export declare interface DevBoxesListDevBoxesByUserDefaultResponse extends HttpResponse {
201
+ export declare interface DeleteDevBoxDefaultResponse extends HttpResponse {
418
202
  status: string;
419
- body: CloudErrorOutput;
420
- headers: RawHttpHeaders & DevBoxesListDevBoxesByUserDefaultHeaders;
203
+ body: ErrorResponse;
204
+ headers: RawHttpHeaders & DeleteDevBoxDefaultHeaders;
421
205
  }
422
206
 
423
- export declare type DevBoxesListDevBoxesByUserParameters = DevBoxesListDevBoxesByUserQueryParam & RequestParameters;
424
-
425
- export declare interface DevBoxesListDevBoxesByUserQueryParam {
426
- queryParameters?: DevBoxesListDevBoxesByUserQueryParamProperties;
207
+ /** The final response for long-running DeleteDevBox operation */
208
+ export declare interface DeleteDevBoxLogicalResponse extends HttpResponse {
209
+ status: "200";
210
+ body: OperationStatusOutput;
427
211
  }
428
212
 
429
- export declare interface DevBoxesListDevBoxesByUserQueryParamProperties {
430
- /** An OData filter clause to apply to the operation. */
431
- filter?: string;
432
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
433
- top?: number;
213
+ export declare type DeleteDevBoxParameters = RequestParameters;
214
+
215
+ export declare interface DeleteEnvironment202Headers {
216
+ location: string;
217
+ "operation-location": string;
434
218
  }
435
219
 
436
- export declare interface DevBoxesListPools {
437
- /** Lists available pools */
438
- get(options?: DevBoxesListPoolsParameters): StreamableMethod<DevBoxesListPools200Response | DevBoxesListPoolsDefaultResponse>;
220
+ /** The request has been accepted for processing, but processing has not yet completed. */
221
+ export declare interface DeleteEnvironment202Response extends HttpResponse {
222
+ status: "202";
223
+ body: OperationStatusOutput;
224
+ headers: RawHttpHeaders & DeleteEnvironment202Headers;
439
225
  }
440
226
 
441
- /** Lists available pools */
442
- export declare interface DevBoxesListPools200Response extends HttpResponse {
443
- status: "200";
444
- body: PoolListResultOutput;
227
+ /** There is no content to send for this request, but the headers may be useful. */
228
+ export declare interface DeleteEnvironment204Response extends HttpResponse {
229
+ status: "204";
445
230
  }
446
231
 
447
- export declare interface DevBoxesListPoolsDefaultHeaders {
448
- /** The error code for specific error that occurred. */
232
+ export declare interface DeleteEnvironmentDefaultHeaders {
233
+ /** String error code indicating what went wrong. */
449
234
  "x-ms-error-code"?: string;
450
235
  }
451
236
 
452
- /** Lists available pools */
453
- export declare interface DevBoxesListPoolsDefaultResponse extends HttpResponse {
237
+ export declare interface DeleteEnvironmentDefaultResponse extends HttpResponse {
454
238
  status: string;
455
- body: CloudErrorOutput;
456
- headers: RawHttpHeaders & DevBoxesListPoolsDefaultHeaders;
239
+ body: ErrorResponse;
240
+ headers: RawHttpHeaders & DeleteEnvironmentDefaultHeaders;
457
241
  }
458
242
 
459
- export declare type DevBoxesListPoolsParameters = DevBoxesListPoolsQueryParam & RequestParameters;
460
-
461
- export declare interface DevBoxesListPoolsQueryParam {
462
- queryParameters?: DevBoxesListPoolsQueryParamProperties;
243
+ /** The final response for long-running DeleteEnvironment operation */
244
+ export declare interface DeleteEnvironmentLogicalResponse extends HttpResponse {
245
+ status: "200";
246
+ body: OperationStatusOutput;
463
247
  }
464
248
 
465
- export declare interface DevBoxesListPoolsQueryParamProperties {
466
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
467
- top?: number;
468
- /** An OData filter clause to apply to the operation. */
469
- filter?: string;
249
+ export declare type DeleteEnvironmentParameters = RequestParameters;
250
+
251
+ /** A Dev Box */
252
+ export declare interface DevBox {
253
+ /** The name of the Dev Box pool this machine belongs to. */
254
+ poolName: string;
255
+ /**
256
+ * Indicates whether the owner of the Dev Box is a local administrator.
257
+ *
258
+ * Possible values: Enabled, Disabled
259
+ */
260
+ localAdministrator?: string;
470
261
  }
471
262
 
472
- export declare interface DevBoxesListSchedulesByPool {
473
- /** Lists available schedules for a pool. */
474
- get(options?: DevBoxesListSchedulesByPoolParameters): StreamableMethod<DevBoxesListSchedulesByPool200Response | DevBoxesListSchedulesByPoolDefaultResponse>;
263
+ /** The action delay result */
264
+ export declare interface DevBoxActionDelayResultOutput {
265
+ /** The name of the action. */
266
+ name: string;
267
+ /**
268
+ * The result of the delay operation on this action.
269
+ *
270
+ * Possible values: Succeeded, Failed
271
+ */
272
+ result: string;
273
+ /** The delayed action */
274
+ action?: DevBoxActionOutput;
275
+ /** Information about the error that occurred. Only populated on error. */
276
+ error?: ErrorModel;
475
277
  }
476
278
 
477
- /** Lists available schedules for a pool. */
478
- export declare interface DevBoxesListSchedulesByPool200Response extends HttpResponse {
479
- status: "200";
480
- body: ScheduleListResultOutput;
279
+ /** An action which will take place on a Dev Box. */
280
+ export declare interface DevBoxActionOutput {
281
+ /** The name of the action. */
282
+ readonly name: string;
283
+ /**
284
+ * The action that will be taken.
285
+ *
286
+ * Possible values: Stop
287
+ */
288
+ actionType: string;
289
+ /** The id of the resource which triggered this action */
290
+ sourceId: string;
291
+ /** The earliest time that the action could occur (UTC). */
292
+ suspendedUntil?: string;
293
+ /** Details about the next run of this action. */
294
+ next?: DevBoxNextActionOutput;
481
295
  }
482
296
 
483
- export declare interface DevBoxesListSchedulesByPoolDefaultHeaders {
484
- /** The error code for specific error that occurred. */
485
- "x-ms-error-code"?: string;
297
+ /** Details about the next run of an action. */
298
+ export declare interface DevBoxNextActionOutput {
299
+ /** The time the action will be triggered (UTC). */
300
+ scheduledTime: string;
486
301
  }
487
302
 
488
- /** Lists available schedules for a pool. */
489
- export declare interface DevBoxesListSchedulesByPoolDefaultResponse extends HttpResponse {
490
- status: string;
491
- body: CloudErrorOutput;
492
- headers: RawHttpHeaders & DevBoxesListSchedulesByPoolDefaultHeaders;
303
+ /** A Dev Box */
304
+ export declare interface DevBoxOutput {
305
+ /** Display name for the Dev Box */
306
+ readonly name: string;
307
+ /** Name of the project this Dev Box belongs to */
308
+ readonly projectName?: string;
309
+ /** The name of the Dev Box pool this machine belongs to. */
310
+ poolName: string;
311
+ /**
312
+ * Indicates whether hibernate is enabled/disabled or unknown.
313
+ *
314
+ * Possible values: Enabled, Disabled, OsUnsupported
315
+ */
316
+ readonly hibernateSupport?: string;
317
+ /** The current provisioning state of the Dev Box. */
318
+ readonly provisioningState?: string;
319
+ /**
320
+ * The current action state of the Dev Box. This is state is based on previous
321
+ * action performed by user.
322
+ */
323
+ readonly actionState?: string;
324
+ /**
325
+ * The current power state of the Dev Box.
326
+ *
327
+ * Possible values: Unknown, Running, Deallocated, PoweredOff, Hibernated
328
+ */
329
+ readonly powerState?: string;
330
+ /**
331
+ * A unique identifier for the Dev Box. This is a GUID-formatted string (e.g.
332
+ * 00000000-0000-0000-0000-000000000000).
333
+ */
334
+ readonly uniqueId?: string;
335
+ /** Provisioning or action error details. Populated only for error states. */
336
+ readonly error?: ErrorModel;
337
+ /**
338
+ * Azure region where this Dev Box is located. This will be the same region as the
339
+ * Virtual Network it is attached to.
340
+ */
341
+ readonly location?: string;
342
+ /**
343
+ * The operating system type of this Dev Box.
344
+ *
345
+ * Possible values: Windows
346
+ */
347
+ readonly osType?: string;
348
+ /** The AAD object id of the user this Dev Box is assigned to. */
349
+ readonly user?: string;
350
+ /** Information about the Dev Box's hardware resources */
351
+ readonly hardwareProfile?: HardwareProfileOutput;
352
+ /** Storage settings for this Dev Box */
353
+ readonly storageProfile?: StorageProfileOutput;
354
+ /** Information about the image used for this Dev Box */
355
+ readonly imageReference?: ImageReferenceOutput;
356
+ /** Creation time of this Dev Box */
357
+ readonly createdTime?: string;
358
+ /**
359
+ * Indicates whether the owner of the Dev Box is a local administrator.
360
+ *
361
+ * Possible values: Enabled, Disabled
362
+ */
363
+ localAdministrator?: string;
493
364
  }
494
365
 
495
- export declare type DevBoxesListSchedulesByPoolParameters = DevBoxesListSchedulesByPoolQueryParam & RequestParameters;
366
+ /** Properties of an environment. */
367
+ export declare interface Environment {
368
+ /** Parameters object for the environment. */
369
+ parameters?: unknown;
370
+ /** Environment type. */
371
+ environmentType: string;
372
+ /** Name of the catalog. */
373
+ catalogName: string;
374
+ /** Name of the environment definition. */
375
+ environmentDefinitionName: string;
376
+ }
496
377
 
497
- export declare interface DevBoxesListSchedulesByPoolQueryParam {
498
- queryParameters?: DevBoxesListSchedulesByPoolQueryParamProperties;
378
+ /** An environment definition. */
379
+ export declare interface EnvironmentDefinitionOutput {
380
+ /** The ID of the environment definition. */
381
+ id: string;
382
+ /** Name of the environment definition. */
383
+ name: string;
384
+ /** Name of the catalog. */
385
+ catalogName: string;
386
+ /** A short description of the environment definition. */
387
+ description?: string;
388
+ /** Input parameters passed to an environment. */
389
+ parameters?: Array<EnvironmentDefinitionParameterOutput>;
390
+ /** JSON schema defining the parameters object passed to an environment. */
391
+ parametersSchema?: string;
392
+ /** Path to the Environment Definition entrypoint file. */
393
+ templatePath?: string;
499
394
  }
500
395
 
501
- export declare interface DevBoxesListSchedulesByPoolQueryParamProperties {
502
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
503
- top?: number;
504
- /** An OData filter clause to apply to the operation. */
505
- filter?: string;
396
+ /** Properties of an Environment Definition parameter */
397
+ export declare interface EnvironmentDefinitionParameterOutput {
398
+ /** Unique ID of the parameter */
399
+ id: string;
400
+ /** Display name of the parameter */
401
+ name?: string;
402
+ /** Description of the parameter */
403
+ description?: string;
404
+ /** Default value of the parameter */
405
+ default?: string;
406
+ /**
407
+ * A string of one of the basic JSON types (number, integer, array, object,
408
+ * boolean, string)
409
+ *
410
+ * Possible values: array, boolean, integer, number, object, string
411
+ */
412
+ type: string;
413
+ /**
414
+ * Whether or not this parameter is read-only. If true, default should have a
415
+ * value.
416
+ */
417
+ readOnly?: boolean;
418
+ /** Whether or not this parameter is required */
419
+ required: boolean;
420
+ /** An array of allowed values */
421
+ allowed?: string[];
506
422
  }
507
423
 
508
- export declare interface DevBoxesStartDevBox {
509
- /** Starts a Dev Box */
510
- post(options?: DevBoxesStartDevBoxParameters): StreamableMethod<DevBoxesStartDevBox200Response | DevBoxesStartDevBox202Response | DevBoxesStartDevBoxDefaultResponse>;
424
+ /** Properties of an environment. */
425
+ export declare interface EnvironmentOutput {
426
+ /** Parameters object for the environment. */
427
+ parameters?: any;
428
+ /** Environment name. */
429
+ readonly name?: string;
430
+ /** Environment type. */
431
+ environmentType: string;
432
+ /** The AAD object id of the owner of this Environment. */
433
+ readonly user?: string;
434
+ /** The provisioning state of the environment. */
435
+ readonly provisioningState?: string;
436
+ /** The identifier of the resource group containing the environment's resources. */
437
+ readonly resourceGroupId?: string;
438
+ /** Name of the catalog. */
439
+ catalogName: string;
440
+ /** Name of the environment definition. */
441
+ environmentDefinitionName: string;
442
+ /** Provisioning error details. Populated only for error states. */
443
+ readonly error?: ErrorModel;
511
444
  }
512
445
 
513
- /** Starts a Dev Box */
514
- export declare interface DevBoxesStartDevBox200Response extends HttpResponse {
515
- status: "200";
516
- body: DevBoxOutput;
446
+ /** Properties of an environment type. */
447
+ export declare interface EnvironmentTypeOutput {
448
+ /** Name of the environment type */
449
+ name: string;
450
+ /**
451
+ * Id of a subscription or management group that the environment type will be
452
+ * mapped to. The environment's resources will be deployed into this subscription
453
+ * or management group.
454
+ */
455
+ deploymentTargetId: string;
456
+ /**
457
+ * Indicates whether this environment type is enabled for use in this project.
458
+ *
459
+ * Possible values: Enabled, Disabled
460
+ */
461
+ status: string;
517
462
  }
518
463
 
519
- export declare interface DevBoxesStartDevBox202Headers {
520
- /** URL to query for status of the operation. */
521
- "operation-location"?: string;
464
+ /**
465
+ * Helper type to extract the type of an array
466
+ */
467
+ export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
468
+
469
+ export declare interface GetCatalog {
470
+ /** Gets the specified catalog within the project */
471
+ get(options?: GetCatalogParameters): StreamableMethod<GetCatalog200Response | GetCatalogDefaultResponse>;
522
472
  }
523
473
 
524
- /** Starts a Dev Box */
525
- export declare interface DevBoxesStartDevBox202Response extends HttpResponse {
526
- status: "202";
527
- body: Record<string, unknown>;
528
- headers: RawHttpHeaders & DevBoxesStartDevBox202Headers;
474
+ /** The request has succeeded. */
475
+ export declare interface GetCatalog200Response extends HttpResponse {
476
+ status: "200";
477
+ body: CatalogOutput;
529
478
  }
530
479
 
531
- export declare interface DevBoxesStartDevBoxDefaultHeaders {
532
- /** The error code for specific error that occurred. */
480
+ export declare interface GetCatalogDefaultHeaders {
481
+ /** String error code indicating what went wrong. */
533
482
  "x-ms-error-code"?: string;
534
483
  }
535
484
 
536
- /** Starts a Dev Box */
537
- export declare interface DevBoxesStartDevBoxDefaultResponse extends HttpResponse {
485
+ export declare interface GetCatalogDefaultResponse extends HttpResponse {
538
486
  status: string;
539
- body: CloudErrorOutput;
540
- headers: RawHttpHeaders & DevBoxesStartDevBoxDefaultHeaders;
487
+ body: ErrorResponse;
488
+ headers: RawHttpHeaders & GetCatalogDefaultHeaders;
541
489
  }
542
490
 
543
- export declare type DevBoxesStartDevBoxParameters = RequestParameters;
491
+ export declare type GetCatalogParameters = RequestParameters;
544
492
 
545
- export declare interface DevBoxesStopDevBox {
546
- /** Stops a Dev Box */
547
- post(options?: DevBoxesStopDevBoxParameters): StreamableMethod<DevBoxesStopDevBox200Response | DevBoxesStopDevBox202Response | DevBoxesStopDevBoxDefaultResponse>;
493
+ export declare interface GetDevBox {
494
+ /** Gets a Dev Box */
495
+ get(options?: GetDevBoxParameters): StreamableMethod<GetDevBox200Response | GetDevBoxDefaultResponse>;
496
+ /** Creates or replaces a Dev Box. */
497
+ put(options: CreateDevBoxParameters): StreamableMethod<CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse>;
498
+ /** Deletes a Dev Box. */
499
+ delete(options?: DeleteDevBoxParameters): StreamableMethod<DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse>;
548
500
  }
549
501
 
550
- /** Stops a Dev Box */
551
- export declare interface DevBoxesStopDevBox200Response extends HttpResponse {
502
+ /** The request has succeeded. */
503
+ export declare interface GetDevBox200Response extends HttpResponse {
552
504
  status: "200";
553
505
  body: DevBoxOutput;
554
506
  }
555
507
 
556
- export declare interface DevBoxesStopDevBox202Headers {
557
- /** URL to query for status of the operation. */
558
- "operation-location"?: string;
508
+ export declare interface GetDevBoxAction {
509
+ /** Gets an action. */
510
+ get(options?: GetDevBoxActionParameters): StreamableMethod<GetDevBoxAction200Response | GetDevBoxActionDefaultResponse>;
559
511
  }
560
512
 
561
- /** Stops a Dev Box */
562
- export declare interface DevBoxesStopDevBox202Response extends HttpResponse {
563
- status: "202";
564
- body: Record<string, unknown>;
565
- headers: RawHttpHeaders & DevBoxesStopDevBox202Headers;
513
+ /** The request has succeeded. */
514
+ export declare interface GetDevBoxAction200Response extends HttpResponse {
515
+ status: "200";
516
+ body: DevBoxActionOutput;
566
517
  }
567
518
 
568
- export declare interface DevBoxesStopDevBoxDefaultHeaders {
569
- /** The error code for specific error that occurred. */
519
+ export declare interface GetDevBoxActionDefaultHeaders {
520
+ /** String error code indicating what went wrong. */
570
521
  "x-ms-error-code"?: string;
571
522
  }
572
523
 
573
- /** Stops a Dev Box */
574
- export declare interface DevBoxesStopDevBoxDefaultResponse extends HttpResponse {
524
+ export declare interface GetDevBoxActionDefaultResponse extends HttpResponse {
575
525
  status: string;
576
- body: CloudErrorOutput;
577
- headers: RawHttpHeaders & DevBoxesStopDevBoxDefaultHeaders;
526
+ body: ErrorResponse;
527
+ headers: RawHttpHeaders & GetDevBoxActionDefaultHeaders;
578
528
  }
579
529
 
580
- export declare type DevBoxesStopDevBoxParameters = RequestParameters;
530
+ export declare type GetDevBoxActionParameters = RequestParameters;
581
531
 
582
- /** The Dev Box list result */
583
- export declare interface DevBoxListResultOutput {
584
- /** The list of DevBox Dev Boxes */
585
- value: Array<DevBoxOutput>;
586
- /** The URL to get the next set of results. */
587
- nextLink?: string;
532
+ export declare interface GetDevBoxDefaultHeaders {
533
+ /** String error code indicating what went wrong. */
534
+ "x-ms-error-code"?: string;
588
535
  }
589
536
 
590
- /** A DevBox Dev Box */
591
- export declare interface DevBoxOutput {
592
- /** Display name for the Dev Box */
593
- name?: string;
594
- /** Name of the project this Dev Box belongs to */
595
- projectName?: string;
596
- /** The name of the Dev Box pool this machine belongs to. */
597
- poolName: string;
598
- /** The current provisioning state of the Dev Box. */
599
- provisioningState?: string;
600
- /** The current action state of the Dev Box. This is state is based on previous action performed by user. */
601
- actionState?: string;
602
- /** The current power state of the Dev Box. */
603
- powerState?: "Unknown" | "Deallocated" | "PoweredOff" | "Running" | "Hibernated";
604
- /** A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */
605
- uniqueId?: string;
606
- /** Provisioning or action error details. Populated only for error states. */
607
- errorDetails?: ProvisioningErrorOutput;
608
- /** Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. */
609
- location?: string;
610
- /** The operating system type of this Dev Box. */
611
- osType?: "Windows";
612
- /** User identifier of the user this vm is assigned to. */
613
- user?: string;
614
- /** Information about the Dev Box's hardware resources */
615
- hardwareProfile?: HardwareProfileOutput;
616
- /** Storage settings for this Dev Box */
617
- storageProfile?: StorageProfileOutput;
618
- /** Information about the image used for this Dev Box */
619
- imageReference?: ImageReferenceOutput;
620
- /** Creation time of this Dev Box */
621
- createdTime?: string;
622
- /** Indicates whether the owner of the Dev Box is a local administrator. */
623
- localAdministrator?: "Enabled" | "Disabled";
537
+ export declare interface GetDevBoxDefaultResponse extends HttpResponse {
538
+ status: string;
539
+ body: ErrorResponse;
540
+ headers: RawHttpHeaders & GetDevBoxDefaultHeaders;
624
541
  }
625
542
 
626
- export declare interface DevCenterGetProject {
627
- /** Gets a project. */
628
- get(options?: DevCenterGetProjectParameters): StreamableMethod<DevCenterGetProject200Response | DevCenterGetProjectDefaultResponse>;
629
- }
543
+ export declare type GetDevBoxParameters = RequestParameters;
630
544
 
631
- /** Gets a project. */
632
- export declare interface DevCenterGetProject200Response extends HttpResponse {
633
- status: "200";
634
- body: ProjectOutput;
545
+ export declare interface GetEnvironment {
546
+ /** Gets an environment */
547
+ get(options?: GetEnvironmentParameters): StreamableMethod<GetEnvironment200Response | GetEnvironmentDefaultResponse>;
548
+ /** Creates or updates an environment. */
549
+ put(options: CreateOrUpdateEnvironmentParameters): StreamableMethod<CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentDefaultResponse>;
550
+ /** Deletes an environment and all its associated resources */
551
+ delete(options?: DeleteEnvironmentParameters): StreamableMethod<DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse>;
635
552
  }
636
553
 
637
- /** Gets a project. */
638
- export declare interface DevCenterGetProjectDefaultResponse extends HttpResponse {
639
- status: string;
640
- body: CloudErrorOutput;
554
+ /** The request has succeeded. */
555
+ export declare interface GetEnvironment200Response extends HttpResponse {
556
+ status: "200";
557
+ body: EnvironmentOutput;
641
558
  }
642
559
 
643
- export declare type DevCenterGetProjectParameters = RequestParameters;
644
-
645
- export declare interface DevCenterListAllDevBoxes {
646
- /** Lists Dev Boxes that the caller has access to in the DevCenter. */
647
- get(options?: DevCenterListAllDevBoxesParameters): StreamableMethod<DevCenterListAllDevBoxes200Response | DevCenterListAllDevBoxesDefaultResponse>;
560
+ export declare interface GetEnvironmentDefaultHeaders {
561
+ /** String error code indicating what went wrong. */
562
+ "x-ms-error-code"?: string;
648
563
  }
649
564
 
650
- /** Lists Dev Boxes that the caller has access to in the DevCenter. */
651
- export declare interface DevCenterListAllDevBoxes200Response extends HttpResponse {
652
- status: "200";
653
- body: DevBoxListResultOutput;
565
+ export declare interface GetEnvironmentDefaultResponse extends HttpResponse {
566
+ status: string;
567
+ body: ErrorResponse;
568
+ headers: RawHttpHeaders & GetEnvironmentDefaultHeaders;
654
569
  }
655
570
 
656
- export declare interface DevCenterListAllDevBoxesByUser {
657
- /** Lists Dev Boxes in the Dev Center for a particular user. */
658
- get(options?: DevCenterListAllDevBoxesByUserParameters): StreamableMethod<DevCenterListAllDevBoxesByUser200Response | DevCenterListAllDevBoxesByUserDefaultResponse>;
571
+ export declare interface GetEnvironmentDefinition {
572
+ /** Get an environment definition from a catalog. */
573
+ get(options?: GetEnvironmentDefinitionParameters): StreamableMethod<GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse>;
659
574
  }
660
575
 
661
- /** Lists Dev Boxes in the Dev Center for a particular user. */
662
- export declare interface DevCenterListAllDevBoxesByUser200Response extends HttpResponse {
576
+ /** The request has succeeded. */
577
+ export declare interface GetEnvironmentDefinition200Response extends HttpResponse {
663
578
  status: "200";
664
- body: DevBoxListResultOutput;
579
+ body: EnvironmentDefinitionOutput;
665
580
  }
666
581
 
667
- export declare interface DevCenterListAllDevBoxesByUserDefaultHeaders {
668
- /** The error code for specific error that occurred. */
582
+ export declare interface GetEnvironmentDefinitionDefaultHeaders {
583
+ /** String error code indicating what went wrong. */
669
584
  "x-ms-error-code"?: string;
670
585
  }
671
586
 
672
- /** Lists Dev Boxes in the Dev Center for a particular user. */
673
- export declare interface DevCenterListAllDevBoxesByUserDefaultResponse extends HttpResponse {
587
+ export declare interface GetEnvironmentDefinitionDefaultResponse extends HttpResponse {
674
588
  status: string;
675
- body: CloudErrorOutput;
676
- headers: RawHttpHeaders & DevCenterListAllDevBoxesByUserDefaultHeaders;
589
+ body: ErrorResponse;
590
+ headers: RawHttpHeaders & GetEnvironmentDefinitionDefaultHeaders;
677
591
  }
678
592
 
679
- export declare type DevCenterListAllDevBoxesByUserParameters = DevCenterListAllDevBoxesByUserQueryParam & RequestParameters;
593
+ export declare type GetEnvironmentDefinitionParameters = RequestParameters;
680
594
 
681
- export declare interface DevCenterListAllDevBoxesByUserQueryParam {
682
- queryParameters?: DevCenterListAllDevBoxesByUserQueryParamProperties;
683
- }
595
+ export declare type GetEnvironmentParameters = RequestParameters;
684
596
 
685
- export declare interface DevCenterListAllDevBoxesByUserQueryParamProperties {
686
- /** An OData filter clause to apply to the operation. */
687
- filter?: string;
688
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
689
- top?: number;
690
- }
597
+ /**
598
+ * Helper function that builds a Poller object to help polling a long running operation.
599
+ * @param client - Client to use for sending the request to get additional pages.
600
+ * @param initialResponse - The initial response.
601
+ * @param options - Options to set a resume state or custom polling interval.
602
+ * @returns - A poller object to poll for operation state updates and eventually get the final response.
603
+ */
604
+ export declare function getLongRunningPoller<TResult extends CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse>(client: Client, initialResponse: CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
691
605
 
692
- export declare interface DevCenterListAllDevBoxesDefaultHeaders {
693
- /** The error code for specific error that occurred. */
694
- "x-ms-error-code"?: string;
695
- }
606
+ export declare function getLongRunningPoller<TResult extends DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse>(client: Client, initialResponse: DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
696
607
 
697
- /** Lists Dev Boxes that the caller has access to in the DevCenter. */
698
- export declare interface DevCenterListAllDevBoxesDefaultResponse extends HttpResponse {
699
- status: string;
700
- body: CloudErrorOutput;
701
- headers: RawHttpHeaders & DevCenterListAllDevBoxesDefaultHeaders;
702
- }
608
+ export declare function getLongRunningPoller<TResult extends StartDevBoxLogicalResponse | StartDevBoxDefaultResponse>(client: Client, initialResponse: StartDevBox202Response | StartDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
703
609
 
704
- export declare type DevCenterListAllDevBoxesParameters = DevCenterListAllDevBoxesQueryParam & RequestParameters;
610
+ export declare function getLongRunningPoller<TResult extends StopDevBoxLogicalResponse | StopDevBoxDefaultResponse>(client: Client, initialResponse: StopDevBox202Response | StopDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
705
611
 
706
- export declare interface DevCenterListAllDevBoxesQueryParam {
707
- queryParameters?: DevCenterListAllDevBoxesQueryParamProperties;
708
- }
612
+ export declare function getLongRunningPoller<TResult extends RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse>(client: Client, initialResponse: RestartDevBox202Response | RestartDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
709
613
 
710
- export declare interface DevCenterListAllDevBoxesQueryParamProperties {
711
- /** An OData filter clause to apply to the operation. */
712
- filter?: string;
713
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
714
- top?: number;
715
- }
614
+ export declare function getLongRunningPoller<TResult extends CreateOrUpdateEnvironmentLogicalResponse | CreateOrUpdateEnvironmentDefaultResponse>(client: Client, initialResponse: CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
716
615
 
717
- export declare interface DevCenterListProjects {
718
- /** Lists all projects. */
719
- get(options?: DevCenterListProjectsParameters): StreamableMethod<DevCenterListProjects200Response | DevCenterListProjectsDefaultResponse>;
616
+ export declare function getLongRunningPoller<TResult extends DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse>(client: Client, initialResponse: DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
617
+
618
+ /**
619
+ * The type of a custom function that defines how to get a page and a link to the next one if any.
620
+ */
621
+ export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
622
+ page: TPage;
623
+ nextPageLink?: string;
624
+ }>;
625
+
626
+ export declare interface GetPool {
627
+ /** Gets a pool */
628
+ get(options?: GetPoolParameters): StreamableMethod<GetPool200Response | GetPoolDefaultResponse>;
720
629
  }
721
630
 
722
- /** Lists all projects. */
723
- export declare interface DevCenterListProjects200Response extends HttpResponse {
631
+ /** The request has succeeded. */
632
+ export declare interface GetPool200Response extends HttpResponse {
724
633
  status: "200";
725
- body: ProjectListResultOutput;
634
+ body: PoolOutput;
726
635
  }
727
636
 
728
- /** Lists all projects. */
729
- export declare interface DevCenterListProjectsDefaultResponse extends HttpResponse {
637
+ export declare interface GetPoolDefaultHeaders {
638
+ /** String error code indicating what went wrong. */
639
+ "x-ms-error-code"?: string;
640
+ }
641
+
642
+ export declare interface GetPoolDefaultResponse extends HttpResponse {
730
643
  status: string;
731
- body: CloudErrorOutput;
644
+ body: ErrorResponse;
645
+ headers: RawHttpHeaders & GetPoolDefaultHeaders;
732
646
  }
733
647
 
734
- export declare type DevCenterListProjectsParameters = DevCenterListProjectsQueryParam & RequestParameters;
648
+ export declare type GetPoolParameters = RequestParameters;
735
649
 
736
- export declare interface DevCenterListProjectsQueryParam {
737
- queryParameters?: DevCenterListProjectsQueryParamProperties;
650
+ export declare interface GetProject {
651
+ /** Gets a project. */
652
+ get(options?: GetProjectParameters): StreamableMethod<GetProject200Response | GetProjectDefaultResponse>;
738
653
  }
739
654
 
740
- export declare interface DevCenterListProjectsQueryParamProperties {
741
- /** An OData filter clause to apply to the operation. */
742
- filter?: string;
743
- /** The maximum number of resources to return from the operation. Example: 'top=10'. */
744
- top?: number;
655
+ /** The request has succeeded. */
656
+ export declare interface GetProject200Response extends HttpResponse {
657
+ status: "200";
658
+ body: ProjectOutput;
745
659
  }
746
660
 
747
- /** Properties of an environment. */
748
- export declare interface Environment extends EnvironmentUpdateProperties {
749
- /** Environment name. */
750
- name?: string;
751
- /** Environment type. */
752
- environmentType: string;
753
- /** Identifier of the owner of this Environment. */
754
- owner?: string;
755
- /** The provisioning state of the environment. */
756
- provisioningState?: string;
757
- /** The identifier of the resource group containing the environment's resources. */
758
- resourceGroupId?: string;
661
+ export declare interface GetProjectDefaultHeaders {
662
+ /** String error code indicating what went wrong. */
663
+ "x-ms-error-code"?: string;
759
664
  }
760
665
 
761
- /** Results of the environment list operation. */
762
- export declare interface EnvironmentListResultOutput {
763
- /** Current page of results. */
764
- value: Array<EnvironmentOutput>;
765
- /** URL to get the next set of results if there are any. */
766
- nextLink?: string;
666
+ export declare interface GetProjectDefaultResponse extends HttpResponse {
667
+ status: string;
668
+ body: ErrorResponse;
669
+ headers: RawHttpHeaders & GetProjectDefaultHeaders;
767
670
  }
768
671
 
769
- /** Properties of an environment. */
770
- export declare interface EnvironmentOutput extends EnvironmentUpdatePropertiesOutput {
771
- /** Environment name. */
772
- name?: string;
773
- /** Environment type. */
774
- environmentType: string;
775
- /** Identifier of the owner of this Environment. */
776
- owner?: string;
777
- /** The provisioning state of the environment. */
778
- provisioningState?: string;
779
- /** The identifier of the resource group containing the environment's resources. */
780
- resourceGroupId?: string;
672
+ export declare interface GetProjectOperationStatus {
673
+ /** Get the status of an operation. */
674
+ get(options?: GetProjectOperationStatusParameters): StreamableMethod<GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse>;
781
675
  }
782
676
 
783
- /** Creates or updates an environment. */
784
- export declare interface EnvironmentsCreateOrUpdateEnvironment200Response extends HttpResponse {
677
+ /** The request has succeeded. */
678
+ export declare interface GetProjectOperationStatus200Response extends HttpResponse {
785
679
  status: "200";
786
- body: EnvironmentOutput;
680
+ body: OperationStatusOutput;
787
681
  }
788
682
 
789
- export declare interface EnvironmentsCreateOrUpdateEnvironment201Headers {
790
- /** URL to query for status of the operation. */
791
- "operation-location"?: string;
683
+ export declare interface GetProjectOperationStatusDefaultHeaders {
684
+ /** String error code indicating what went wrong. */
685
+ "x-ms-error-code"?: string;
792
686
  }
793
687
 
794
- /** Creates or updates an environment. */
795
- export declare interface EnvironmentsCreateOrUpdateEnvironment201Response extends HttpResponse {
796
- status: "201";
797
- body: EnvironmentOutput;
798
- headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironment201Headers;
688
+ export declare interface GetProjectOperationStatusDefaultResponse extends HttpResponse {
689
+ status: string;
690
+ body: ErrorResponse;
691
+ headers: RawHttpHeaders & GetProjectOperationStatusDefaultHeaders;
799
692
  }
800
693
 
801
- export declare interface EnvironmentsCreateOrUpdateEnvironmentBodyParam {
802
- /** Represents a environment. */
803
- body: Environment;
694
+ export declare type GetProjectOperationStatusParameters = RequestParameters;
695
+
696
+ export declare type GetProjectParameters = RequestParameters;
697
+
698
+ export declare interface GetRemoteConnection {
699
+ /** Gets RDP Connection info */
700
+ get(options?: GetRemoteConnectionParameters): StreamableMethod<GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse>;
804
701
  }
805
702
 
806
- export declare interface EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders {
807
- /** The error code for specific error that occurred. */
808
- "x-ms-error-code"?: string;
703
+ /** The request has succeeded. */
704
+ export declare interface GetRemoteConnection200Response extends HttpResponse {
705
+ status: "200";
706
+ body: RemoteConnectionOutput;
809
707
  }
810
708
 
811
- /** Creates or updates an environment. */
812
- export declare interface EnvironmentsCreateOrUpdateEnvironmentDefaultResponse extends HttpResponse {
813
- status: string;
814
- body: CloudErrorOutput;
815
- headers: RawHttpHeaders & EnvironmentsCreateOrUpdateEnvironmentDefaultHeaders;
709
+ export declare interface GetRemoteConnectionDefaultHeaders {
710
+ /** String error code indicating what went wrong. */
711
+ "x-ms-error-code"?: string;
816
712
  }
817
713
 
818
- export declare interface EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam {
819
- /** Request content type */
820
- contentType?: "application/json";
714
+ export declare interface GetRemoteConnectionDefaultResponse extends HttpResponse {
715
+ status: string;
716
+ body: ErrorResponse;
717
+ headers: RawHttpHeaders & GetRemoteConnectionDefaultHeaders;
821
718
  }
822
719
 
823
- export declare type EnvironmentsCreateOrUpdateEnvironmentParameters = EnvironmentsCreateOrUpdateEnvironmentMediaTypesParam & EnvironmentsCreateOrUpdateEnvironmentBodyParam & RequestParameters;
720
+ export declare type GetRemoteConnectionParameters = RequestParameters;
824
721
 
825
- export declare interface EnvironmentsCustomEnvironmentAction {
826
- /** Executes a custom action */
827
- post(options: EnvironmentsCustomEnvironmentActionParameters): StreamableMethod<EnvironmentsCustomEnvironmentAction200Response | EnvironmentsCustomEnvironmentAction202Response | EnvironmentsCustomEnvironmentActionDefaultResponse>;
722
+ export declare interface GetSchedule {
723
+ /** Gets a schedule. */
724
+ get(options?: GetScheduleParameters): StreamableMethod<GetSchedule200Response | GetScheduleDefaultResponse>;
828
725
  }
829
726
 
830
- /** Executes a custom action */
831
- export declare interface EnvironmentsCustomEnvironmentAction200Response extends HttpResponse {
727
+ /** The request has succeeded. */
728
+ export declare interface GetSchedule200Response extends HttpResponse {
832
729
  status: "200";
833
- body: Record<string, unknown>;
730
+ body: ScheduleOutput;
834
731
  }
835
732
 
836
- export declare interface EnvironmentsCustomEnvironmentAction202Headers {
837
- /** URL to query for status of the operation. */
838
- "operation-location"?: string;
733
+ export declare interface GetScheduleDefaultHeaders {
734
+ /** String error code indicating what went wrong. */
735
+ "x-ms-error-code"?: string;
839
736
  }
840
737
 
841
- /** Executes a custom action */
842
- export declare interface EnvironmentsCustomEnvironmentAction202Response extends HttpResponse {
843
- status: "202";
844
- body: Record<string, unknown>;
845
- headers: RawHttpHeaders & EnvironmentsCustomEnvironmentAction202Headers;
738
+ export declare interface GetScheduleDefaultResponse extends HttpResponse {
739
+ status: string;
740
+ body: ErrorResponse;
741
+ headers: RawHttpHeaders & GetScheduleDefaultHeaders;
846
742
  }
847
743
 
848
- export declare interface EnvironmentsCustomEnvironmentActionBodyParam {
849
- /** Action properties overriding the environment's default values. */
850
- body: ActionRequest;
744
+ export declare type GetScheduleParameters = RequestParameters;
745
+
746
+ /** Hardware specifications for the Dev Box. */
747
+ export declare interface HardwareProfile {
851
748
  }
852
749
 
853
- export declare interface EnvironmentsCustomEnvironmentActionDefaultHeaders {
854
- /** The error code for specific error that occurred. */
855
- "x-ms-error-code"?: string;
750
+ /** Hardware specifications for the Dev Box. */
751
+ export declare interface HardwareProfileOutput {
752
+ /** The name of the SKU */
753
+ readonly skuName?: string;
754
+ /** The number of vCPUs available for the Dev Box. */
755
+ readonly vCPUs?: number;
756
+ /** The amount of memory available for the Dev Box. */
757
+ readonly memoryGB?: number;
856
758
  }
857
759
 
858
- /** Executes a custom action */
859
- export declare interface EnvironmentsCustomEnvironmentActionDefaultResponse extends HttpResponse {
860
- status: string;
861
- body: CloudErrorOutput;
862
- headers: RawHttpHeaders & EnvironmentsCustomEnvironmentActionDefaultHeaders;
760
+ /** Specifies information about the image used */
761
+ export declare interface ImageReference {
863
762
  }
864
763
 
865
- export declare interface EnvironmentsCustomEnvironmentActionMediaTypesParam {
866
- /** Request content type */
867
- contentType?: "application/json";
764
+ /** Specifies information about the image used */
765
+ export declare interface ImageReferenceOutput {
766
+ /** The name of the image used. */
767
+ readonly name?: string;
768
+ /** The version of the image. */
769
+ readonly version?: string;
770
+ /** The operating system of the image. */
771
+ readonly operatingSystem?: string;
772
+ /** The operating system build number of the image. */
773
+ readonly osBuildNumber?: string;
774
+ /** The datetime that the backing image version was published. */
775
+ readonly publishedDate?: string;
868
776
  }
869
777
 
870
- export declare type EnvironmentsCustomEnvironmentActionParameters = EnvironmentsCustomEnvironmentActionMediaTypesParam & EnvironmentsCustomEnvironmentActionBodyParam & RequestParameters;
778
+ export declare function isUnexpected(response: ListProjects200Response | ListProjectsDefaultResponse): response is ListProjectsDefaultResponse;
871
779
 
872
- /** Deletes an environment and all it's associated resources */
873
- export declare interface EnvironmentsDeleteEnvironment200Response extends HttpResponse {
874
- status: "200";
875
- body: Record<string, unknown>;
876
- }
780
+ export declare function isUnexpected(response: GetProject200Response | GetProjectDefaultResponse): response is GetProjectDefaultResponse;
877
781
 
878
- export declare interface EnvironmentsDeleteEnvironment202Headers {
879
- /** URL to query for status of the operation. */
880
- "operation-location"?: string;
881
- }
782
+ export declare function isUnexpected(response: GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse): response is GetProjectOperationStatusDefaultResponse;
882
783
 
883
- /** Deletes an environment and all it's associated resources */
884
- export declare interface EnvironmentsDeleteEnvironment202Response extends HttpResponse {
885
- status: "202";
886
- body: Record<string, unknown>;
887
- headers: RawHttpHeaders & EnvironmentsDeleteEnvironment202Headers;
888
- }
784
+ export declare function isUnexpected(response: ListPools200Response | ListPoolsDefaultResponse): response is ListPoolsDefaultResponse;
889
785
 
890
- /** Deletes an environment and all it's associated resources */
891
- export declare interface EnvironmentsDeleteEnvironment204Response extends HttpResponse {
892
- status: "204";
893
- body: Record<string, unknown>;
894
- }
786
+ export declare function isUnexpected(response: GetPool200Response | GetPoolDefaultResponse): response is GetPoolDefaultResponse;
895
787
 
896
- export declare interface EnvironmentsDeleteEnvironmentAction {
897
- /** Executes a delete action */
898
- post(options: EnvironmentsDeleteEnvironmentActionParameters): StreamableMethod<EnvironmentsDeleteEnvironmentAction200Response | EnvironmentsDeleteEnvironmentAction202Response | EnvironmentsDeleteEnvironmentActionDefaultResponse>;
899
- }
788
+ export declare function isUnexpected(response: ListSchedules200Response | ListSchedulesDefaultResponse): response is ListSchedulesDefaultResponse;
900
789
 
901
- /** Executes a delete action */
902
- export declare interface EnvironmentsDeleteEnvironmentAction200Response extends HttpResponse {
903
- status: "200";
904
- body: Record<string, unknown>;
790
+ export declare function isUnexpected(response: GetSchedule200Response | GetScheduleDefaultResponse): response is GetScheduleDefaultResponse;
791
+
792
+ export declare function isUnexpected(response: ListDevBoxes200Response | ListDevBoxesDefaultResponse): response is ListDevBoxesDefaultResponse;
793
+
794
+ export declare function isUnexpected(response: GetDevBox200Response | GetDevBoxDefaultResponse): response is GetDevBoxDefaultResponse;
795
+
796
+ export declare function isUnexpected(response: CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse): response is CreateDevBoxDefaultResponse;
797
+
798
+ export declare function isUnexpected(response: DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse): response is DeleteDevBoxDefaultResponse;
799
+
800
+ export declare function isUnexpected(response: StartDevBox202Response | StartDevBoxLogicalResponse | StartDevBoxDefaultResponse): response is StartDevBoxDefaultResponse;
801
+
802
+ export declare function isUnexpected(response: StopDevBox202Response | StopDevBoxLogicalResponse | StopDevBoxDefaultResponse): response is StopDevBoxDefaultResponse;
803
+
804
+ export declare function isUnexpected(response: RestartDevBox202Response | RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse): response is RestartDevBoxDefaultResponse;
805
+
806
+ export declare function isUnexpected(response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse): response is GetRemoteConnectionDefaultResponse;
807
+
808
+ export declare function isUnexpected(response: ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse): response is ListDevBoxActionsDefaultResponse;
809
+
810
+ export declare function isUnexpected(response: GetDevBoxAction200Response | GetDevBoxActionDefaultResponse): response is GetDevBoxActionDefaultResponse;
811
+
812
+ export declare function isUnexpected(response: SkipAction204Response | SkipActionDefaultResponse): response is SkipActionDefaultResponse;
813
+
814
+ export declare function isUnexpected(response: DelayAction200Response | DelayActionDefaultResponse): response is DelayActionDefaultResponse;
815
+
816
+ export declare function isUnexpected(response: DelayAllActions200Response | DelayAllActionsDefaultResponse): response is DelayAllActionsDefaultResponse;
817
+
818
+ export declare function isUnexpected(response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse): response is ListAllDevBoxesDefaultResponse;
819
+
820
+ export declare function isUnexpected(response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse): response is ListAllDevBoxesByUserDefaultResponse;
821
+
822
+ export declare function isUnexpected(response: ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse): response is ListAllEnvironmentsDefaultResponse;
823
+
824
+ export declare function isUnexpected(response: ListEnvironments200Response | ListEnvironmentsDefaultResponse): response is ListEnvironmentsDefaultResponse;
825
+
826
+ export declare function isUnexpected(response: GetEnvironment200Response | GetEnvironmentDefaultResponse): response is GetEnvironmentDefaultResponse;
827
+
828
+ export declare function isUnexpected(response: CreateOrUpdateEnvironment201Response | CreateOrUpdateEnvironmentLogicalResponse | CreateOrUpdateEnvironmentDefaultResponse): response is CreateOrUpdateEnvironmentDefaultResponse;
829
+
830
+ export declare function isUnexpected(response: DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse): response is DeleteEnvironmentDefaultResponse;
831
+
832
+ export declare function isUnexpected(response: ListCatalogs200Response | ListCatalogsDefaultResponse): response is ListCatalogsDefaultResponse;
833
+
834
+ export declare function isUnexpected(response: GetCatalog200Response | GetCatalogDefaultResponse): response is GetCatalogDefaultResponse;
835
+
836
+ export declare function isUnexpected(response: ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse): response is ListEnvironmentDefinitionsDefaultResponse;
837
+
838
+ export declare function isUnexpected(response: ListEnvironmentDefinitionsByCatalog200Response | ListEnvironmentDefinitionsByCatalogDefaultResponse): response is ListEnvironmentDefinitionsByCatalogDefaultResponse;
839
+
840
+ export declare function isUnexpected(response: GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse): response is GetEnvironmentDefinitionDefaultResponse;
841
+
842
+ export declare function isUnexpected(response: ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse): response is ListEnvironmentTypesDefaultResponse;
843
+
844
+ export declare interface ListAllDevBoxes {
845
+ /** Lists Dev Boxes that the caller has access to in the DevCenter. */
846
+ get(options?: ListAllDevBoxesParameters): StreamableMethod<ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse>;
905
847
  }
906
848
 
907
- export declare interface EnvironmentsDeleteEnvironmentAction202Headers {
908
- /** URL to query for status of the operation. */
909
- "operation-location"?: string;
849
+ /** The request has succeeded. */
850
+ export declare interface ListAllDevBoxes200Response extends HttpResponse {
851
+ status: "200";
852
+ body: PagedDevBoxOutput;
910
853
  }
911
854
 
912
- /** Executes a delete action */
913
- export declare interface EnvironmentsDeleteEnvironmentAction202Response extends HttpResponse {
914
- status: "202";
915
- body: Record<string, unknown>;
916
- headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentAction202Headers;
855
+ export declare interface ListAllDevBoxesByUser {
856
+ /** Lists Dev Boxes in the Dev Center for a particular user. */
857
+ get(options?: ListAllDevBoxesByUserParameters): StreamableMethod<ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse>;
917
858
  }
918
859
 
919
- export declare interface EnvironmentsDeleteEnvironmentActionBodyParam {
920
- /** Action properties overriding the environment's default values. */
921
- body: ActionRequest;
860
+ /** The request has succeeded. */
861
+ export declare interface ListAllDevBoxesByUser200Response extends HttpResponse {
862
+ status: "200";
863
+ body: PagedDevBoxOutput;
922
864
  }
923
865
 
924
- export declare interface EnvironmentsDeleteEnvironmentActionDefaultHeaders {
925
- /** The error code for specific error that occurred. */
866
+ export declare interface ListAllDevBoxesByUserDefaultHeaders {
867
+ /** String error code indicating what went wrong. */
926
868
  "x-ms-error-code"?: string;
927
869
  }
928
870
 
929
- /** Executes a delete action */
930
- export declare interface EnvironmentsDeleteEnvironmentActionDefaultResponse extends HttpResponse {
871
+ export declare interface ListAllDevBoxesByUserDefaultResponse extends HttpResponse {
931
872
  status: string;
932
- body: CloudErrorOutput;
933
- headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentActionDefaultHeaders;
873
+ body: ErrorResponse;
874
+ headers: RawHttpHeaders & ListAllDevBoxesByUserDefaultHeaders;
934
875
  }
935
876
 
936
- export declare interface EnvironmentsDeleteEnvironmentActionMediaTypesParam {
937
- /** Request content type */
938
- contentType?: "application/json";
877
+ export declare type ListAllDevBoxesByUserParameters = ListAllDevBoxesByUserQueryParam & RequestParameters;
878
+
879
+ export declare interface ListAllDevBoxesByUserQueryParam {
880
+ queryParameters?: ListAllDevBoxesByUserQueryParamProperties;
939
881
  }
940
882
 
941
- export declare type EnvironmentsDeleteEnvironmentActionParameters = EnvironmentsDeleteEnvironmentActionMediaTypesParam & EnvironmentsDeleteEnvironmentActionBodyParam & RequestParameters;
883
+ export declare interface ListAllDevBoxesByUserQueryParamProperties {
884
+ /** An OData filter clause to apply to the operation. */
885
+ filter?: string;
886
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
887
+ top?: number;
888
+ }
942
889
 
943
- export declare interface EnvironmentsDeleteEnvironmentDefaultHeaders {
944
- /** The error code for specific error that occurred. */
890
+ export declare interface ListAllDevBoxesDefaultHeaders {
891
+ /** String error code indicating what went wrong. */
945
892
  "x-ms-error-code"?: string;
946
893
  }
947
894
 
948
- /** Deletes an environment and all it's associated resources */
949
- export declare interface EnvironmentsDeleteEnvironmentDefaultResponse extends HttpResponse {
895
+ export declare interface ListAllDevBoxesDefaultResponse extends HttpResponse {
950
896
  status: string;
951
- body: CloudErrorOutput;
952
- headers: RawHttpHeaders & EnvironmentsDeleteEnvironmentDefaultHeaders;
897
+ body: ErrorResponse;
898
+ headers: RawHttpHeaders & ListAllDevBoxesDefaultHeaders;
953
899
  }
954
900
 
955
- export declare type EnvironmentsDeleteEnvironmentParameters = RequestParameters;
956
-
957
- export declare interface EnvironmentsDeployEnvironmentAction {
958
- /** Executes a deploy action */
959
- post(options: EnvironmentsDeployEnvironmentActionParameters): StreamableMethod<EnvironmentsDeployEnvironmentAction200Response | EnvironmentsDeployEnvironmentAction202Response | EnvironmentsDeployEnvironmentActionDefaultResponse>;
960
- }
901
+ export declare type ListAllDevBoxesParameters = ListAllDevBoxesQueryParam & RequestParameters;
961
902
 
962
- /** Executes a deploy action */
963
- export declare interface EnvironmentsDeployEnvironmentAction200Response extends HttpResponse {
964
- status: "200";
965
- body: Record<string, unknown>;
903
+ export declare interface ListAllDevBoxesQueryParam {
904
+ queryParameters?: ListAllDevBoxesQueryParamProperties;
966
905
  }
967
906
 
968
- export declare interface EnvironmentsDeployEnvironmentAction202Headers {
969
- /** URL to query for status of the operation. */
970
- "operation-location"?: string;
907
+ export declare interface ListAllDevBoxesQueryParamProperties {
908
+ /** An OData filter clause to apply to the operation. */
909
+ filter?: string;
910
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
911
+ top?: number;
971
912
  }
972
913
 
973
- /** Executes a deploy action */
974
- export declare interface EnvironmentsDeployEnvironmentAction202Response extends HttpResponse {
975
- status: "202";
976
- body: Record<string, unknown>;
977
- headers: RawHttpHeaders & EnvironmentsDeployEnvironmentAction202Headers;
914
+ export declare interface ListAllEnvironments {
915
+ /** Lists the environments for a project. */
916
+ get(options?: ListAllEnvironmentsParameters): StreamableMethod<ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse>;
978
917
  }
979
918
 
980
- export declare interface EnvironmentsDeployEnvironmentActionBodyParam {
981
- /** Action properties overriding the environment's default values. */
982
- body: ActionRequest;
919
+ /** The request has succeeded. */
920
+ export declare interface ListAllEnvironments200Response extends HttpResponse {
921
+ status: "200";
922
+ body: PagedEnvironmentOutput;
983
923
  }
984
924
 
985
- export declare interface EnvironmentsDeployEnvironmentActionDefaultHeaders {
986
- /** The error code for specific error that occurred. */
925
+ export declare interface ListAllEnvironmentsDefaultHeaders {
926
+ /** String error code indicating what went wrong. */
987
927
  "x-ms-error-code"?: string;
988
928
  }
989
929
 
990
- /** Executes a deploy action */
991
- export declare interface EnvironmentsDeployEnvironmentActionDefaultResponse extends HttpResponse {
930
+ export declare interface ListAllEnvironmentsDefaultResponse extends HttpResponse {
992
931
  status: string;
993
- body: CloudErrorOutput;
994
- headers: RawHttpHeaders & EnvironmentsDeployEnvironmentActionDefaultHeaders;
932
+ body: ErrorResponse;
933
+ headers: RawHttpHeaders & ListAllEnvironmentsDefaultHeaders;
995
934
  }
996
935
 
997
- export declare interface EnvironmentsDeployEnvironmentActionMediaTypesParam {
998
- /** Request content type */
999
- contentType?: "application/json";
936
+ export declare type ListAllEnvironmentsParameters = ListAllEnvironmentsQueryParam & RequestParameters;
937
+
938
+ export declare interface ListAllEnvironmentsQueryParam {
939
+ queryParameters?: ListAllEnvironmentsQueryParamProperties;
1000
940
  }
1001
941
 
1002
- export declare type EnvironmentsDeployEnvironmentActionParameters = EnvironmentsDeployEnvironmentActionMediaTypesParam & EnvironmentsDeployEnvironmentActionBodyParam & RequestParameters;
942
+ export declare interface ListAllEnvironmentsQueryParamProperties {
943
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
944
+ top?: number;
945
+ }
1003
946
 
1004
- export declare interface EnvironmentsGetCatalogItem {
1005
- /** Get a catalog item from a project. */
1006
- get(options?: EnvironmentsGetCatalogItemParameters): StreamableMethod<EnvironmentsGetCatalogItem200Response | EnvironmentsGetCatalogItemDefaultResponse>;
947
+ export declare interface ListCatalogs {
948
+ /** Lists all of the catalogs available for a project. */
949
+ get(options?: ListCatalogsParameters): StreamableMethod<ListCatalogs200Response | ListCatalogsDefaultResponse>;
1007
950
  }
1008
951
 
1009
- /** Get a catalog item from a project. */
1010
- export declare interface EnvironmentsGetCatalogItem200Response extends HttpResponse {
952
+ /** The request has succeeded. */
953
+ export declare interface ListCatalogs200Response extends HttpResponse {
1011
954
  status: "200";
1012
- body: CatalogItemOutput;
955
+ body: PagedCatalogOutput;
1013
956
  }
1014
957
 
1015
- export declare interface EnvironmentsGetCatalogItemDefaultHeaders {
1016
- /** The error code for specific error that occurred. */
958
+ export declare interface ListCatalogsDefaultHeaders {
959
+ /** String error code indicating what went wrong. */
1017
960
  "x-ms-error-code"?: string;
1018
961
  }
1019
962
 
1020
- /** Get a catalog item from a project. */
1021
- export declare interface EnvironmentsGetCatalogItemDefaultResponse extends HttpResponse {
963
+ export declare interface ListCatalogsDefaultResponse extends HttpResponse {
1022
964
  status: string;
1023
- body: CloudErrorOutput;
1024
- headers: RawHttpHeaders & EnvironmentsGetCatalogItemDefaultHeaders;
965
+ body: ErrorResponse;
966
+ headers: RawHttpHeaders & ListCatalogsDefaultHeaders;
1025
967
  }
1026
968
 
1027
- export declare type EnvironmentsGetCatalogItemParameters = RequestParameters;
969
+ export declare type ListCatalogsParameters = ListCatalogsQueryParam & RequestParameters;
1028
970
 
1029
- export declare interface EnvironmentsGetCatalogItemVersion {
1030
- /** Get a specific catalog item version from a project. */
1031
- get(options?: EnvironmentsGetCatalogItemVersionParameters): StreamableMethod<EnvironmentsGetCatalogItemVersion200Response | EnvironmentsGetCatalogItemVersionDefaultResponse>;
971
+ export declare interface ListCatalogsQueryParam {
972
+ queryParameters?: ListCatalogsQueryParamProperties;
1032
973
  }
1033
974
 
1034
- /** Get a specific catalog item version from a project. */
1035
- export declare interface EnvironmentsGetCatalogItemVersion200Response extends HttpResponse {
1036
- status: "200";
1037
- body: CatalogItemVersionOutput;
1038
- }
1039
-
1040
- export declare interface EnvironmentsGetCatalogItemVersionDefaultHeaders {
1041
- /** The error code for specific error that occurred. */
1042
- "x-ms-error-code"?: string;
1043
- }
1044
-
1045
- /** Get a specific catalog item version from a project. */
1046
- export declare interface EnvironmentsGetCatalogItemVersionDefaultResponse extends HttpResponse {
1047
- status: string;
1048
- body: CloudErrorOutput;
1049
- headers: RawHttpHeaders & EnvironmentsGetCatalogItemVersionDefaultHeaders;
975
+ export declare interface ListCatalogsQueryParamProperties {
976
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
977
+ top?: number;
1050
978
  }
1051
979
 
1052
- export declare type EnvironmentsGetCatalogItemVersionParameters = RequestParameters;
1053
-
1054
- export declare interface EnvironmentsGetEnvironmentByUser {
1055
- /** Gets an environment */
1056
- get(options?: EnvironmentsGetEnvironmentByUserParameters): StreamableMethod<EnvironmentsGetEnvironmentByUser200Response | EnvironmentsGetEnvironmentByUserDefaultResponse>;
1057
- /** Creates or updates an environment. */
1058
- put(options: EnvironmentsCreateOrUpdateEnvironmentParameters): StreamableMethod<EnvironmentsCreateOrUpdateEnvironment200Response | EnvironmentsCreateOrUpdateEnvironment201Response | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse>;
1059
- /** Partially updates an environment */
1060
- patch(options: EnvironmentsUpdateEnvironmentParameters): StreamableMethod<EnvironmentsUpdateEnvironment200Response | EnvironmentsUpdateEnvironmentDefaultResponse>;
1061
- /** Deletes an environment and all it's associated resources */
1062
- delete(options?: EnvironmentsDeleteEnvironmentParameters): StreamableMethod<EnvironmentsDeleteEnvironment200Response | EnvironmentsDeleteEnvironment202Response | EnvironmentsDeleteEnvironment204Response | EnvironmentsDeleteEnvironmentDefaultResponse>;
980
+ export declare interface ListDevBoxActions {
981
+ /** Lists actions on a Dev Box. */
982
+ get(options?: ListDevBoxActionsParameters): StreamableMethod<ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse>;
1063
983
  }
1064
984
 
1065
- /** Gets an environment */
1066
- export declare interface EnvironmentsGetEnvironmentByUser200Response extends HttpResponse {
985
+ /** The request has succeeded. */
986
+ export declare interface ListDevBoxActions200Response extends HttpResponse {
1067
987
  status: "200";
1068
- body: EnvironmentOutput;
988
+ body: PagedDevBoxActionOutput;
1069
989
  }
1070
990
 
1071
- export declare interface EnvironmentsGetEnvironmentByUserDefaultHeaders {
1072
- /** The error code for specific error that occurred. */
991
+ export declare interface ListDevBoxActionsDefaultHeaders {
992
+ /** String error code indicating what went wrong. */
1073
993
  "x-ms-error-code"?: string;
1074
994
  }
1075
995
 
1076
- /** Gets an environment */
1077
- export declare interface EnvironmentsGetEnvironmentByUserDefaultResponse extends HttpResponse {
996
+ export declare interface ListDevBoxActionsDefaultResponse extends HttpResponse {
1078
997
  status: string;
1079
- body: CloudErrorOutput;
1080
- headers: RawHttpHeaders & EnvironmentsGetEnvironmentByUserDefaultHeaders;
1081
- }
1082
-
1083
- export declare type EnvironmentsGetEnvironmentByUserParameters = RequestParameters;
1084
-
1085
- export declare interface EnvironmentsListArtifactsByEnvironment {
1086
- /** Lists the artifacts for an environment */
1087
- get(options?: EnvironmentsListArtifactsByEnvironmentParameters): StreamableMethod<EnvironmentsListArtifactsByEnvironment200Response | EnvironmentsListArtifactsByEnvironmentDefaultResponse>;
998
+ body: ErrorResponse;
999
+ headers: RawHttpHeaders & ListDevBoxActionsDefaultHeaders;
1088
1000
  }
1089
1001
 
1090
- /** Lists the artifacts for an environment */
1091
- export declare interface EnvironmentsListArtifactsByEnvironment200Response extends HttpResponse {
1092
- status: "200";
1093
- body: ArtifactListResultOutput;
1094
- }
1002
+ export declare type ListDevBoxActionsParameters = RequestParameters;
1095
1003
 
1096
- export declare interface EnvironmentsListArtifactsByEnvironmentAndPath {
1097
- /** Lists the artifacts for an environment at a specified path, or returns the file at the path. */
1098
- get(options?: EnvironmentsListArtifactsByEnvironmentAndPathParameters): StreamableMethod<EnvironmentsListArtifactsByEnvironmentAndPath200Response | EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse>;
1004
+ export declare interface ListDevBoxes {
1005
+ /** Lists Dev Boxes in the project for a particular user. */
1006
+ get(options?: ListDevBoxesParameters): StreamableMethod<ListDevBoxes200Response | ListDevBoxesDefaultResponse>;
1099
1007
  }
1100
1008
 
1101
- /** Lists the artifacts for an environment at a specified path, or returns the file at the path. */
1102
- export declare interface EnvironmentsListArtifactsByEnvironmentAndPath200Response extends HttpResponse {
1009
+ /** The request has succeeded. */
1010
+ export declare interface ListDevBoxes200Response extends HttpResponse {
1103
1011
  status: "200";
1104
- body: ArtifactListResultOutput;
1012
+ body: PagedDevBoxOutput;
1105
1013
  }
1106
1014
 
1107
- export declare interface EnvironmentsListArtifactsByEnvironmentAndPathDefaultHeaders {
1108
- /** The error code for specific error that occurred. */
1015
+ export declare interface ListDevBoxesDefaultHeaders {
1016
+ /** String error code indicating what went wrong. */
1109
1017
  "x-ms-error-code"?: string;
1110
1018
  }
1111
1019
 
1112
- /** Lists the artifacts for an environment at a specified path, or returns the file at the path. */
1113
- export declare interface EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse extends HttpResponse {
1020
+ export declare interface ListDevBoxesDefaultResponse extends HttpResponse {
1114
1021
  status: string;
1115
- body: CloudErrorOutput;
1116
- headers: RawHttpHeaders & EnvironmentsListArtifactsByEnvironmentAndPathDefaultHeaders;
1022
+ body: ErrorResponse;
1023
+ headers: RawHttpHeaders & ListDevBoxesDefaultHeaders;
1117
1024
  }
1118
1025
 
1119
- export declare type EnvironmentsListArtifactsByEnvironmentAndPathParameters = RequestParameters;
1026
+ export declare type ListDevBoxesParameters = ListDevBoxesQueryParam & RequestParameters;
1120
1027
 
1121
- export declare interface EnvironmentsListArtifactsByEnvironmentDefaultHeaders {
1122
- /** The error code for specific error that occurred. */
1123
- "x-ms-error-code"?: string;
1028
+ export declare interface ListDevBoxesQueryParam {
1029
+ queryParameters?: ListDevBoxesQueryParamProperties;
1124
1030
  }
1125
1031
 
1126
- /** Lists the artifacts for an environment */
1127
- export declare interface EnvironmentsListArtifactsByEnvironmentDefaultResponse extends HttpResponse {
1128
- status: string;
1129
- body: CloudErrorOutput;
1130
- headers: RawHttpHeaders & EnvironmentsListArtifactsByEnvironmentDefaultHeaders;
1032
+ export declare interface ListDevBoxesQueryParamProperties {
1033
+ /** An OData filter clause to apply to the operation. */
1034
+ filter?: string;
1035
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1036
+ top?: number;
1131
1037
  }
1132
1038
 
1133
- export declare type EnvironmentsListArtifactsByEnvironmentParameters = RequestParameters;
1039
+ export declare interface ListEnvironmentDefinitions {
1040
+ /** Lists all environment definitions available for a project. */
1041
+ get(options?: ListEnvironmentDefinitionsParameters): StreamableMethod<ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse>;
1042
+ }
1134
1043
 
1135
- export declare interface EnvironmentsListCatalogItems {
1136
- /** Lists latest version of all catalog items available for a project. */
1137
- get(options?: EnvironmentsListCatalogItemsParameters): StreamableMethod<EnvironmentsListCatalogItems200Response | EnvironmentsListCatalogItemsDefaultResponse>;
1044
+ /** The request has succeeded. */
1045
+ export declare interface ListEnvironmentDefinitions200Response extends HttpResponse {
1046
+ status: "200";
1047
+ body: PagedEnvironmentDefinitionOutput;
1138
1048
  }
1139
1049
 
1140
- /** Lists latest version of all catalog items available for a project. */
1141
- export declare interface EnvironmentsListCatalogItems200Response extends HttpResponse {
1050
+ export declare interface ListEnvironmentDefinitionsByCatalog {
1051
+ /** Lists all environment definitions available within a catalog. */
1052
+ get(options?: ListEnvironmentDefinitionsByCatalogParameters): StreamableMethod<ListEnvironmentDefinitionsByCatalog200Response | ListEnvironmentDefinitionsByCatalogDefaultResponse>;
1053
+ }
1054
+
1055
+ /** The request has succeeded. */
1056
+ export declare interface ListEnvironmentDefinitionsByCatalog200Response extends HttpResponse {
1142
1057
  status: "200";
1143
- body: CatalogItemListResultOutput;
1058
+ body: PagedEnvironmentDefinitionOutput;
1144
1059
  }
1145
1060
 
1146
- export declare interface EnvironmentsListCatalogItemsDefaultHeaders {
1147
- /** The error code for specific error that occurred. */
1061
+ export declare interface ListEnvironmentDefinitionsByCatalogDefaultHeaders {
1062
+ /** String error code indicating what went wrong. */
1148
1063
  "x-ms-error-code"?: string;
1149
1064
  }
1150
1065
 
1151
- /** Lists latest version of all catalog items available for a project. */
1152
- export declare interface EnvironmentsListCatalogItemsDefaultResponse extends HttpResponse {
1066
+ export declare interface ListEnvironmentDefinitionsByCatalogDefaultResponse extends HttpResponse {
1153
1067
  status: string;
1154
- body: CloudErrorOutput;
1155
- headers: RawHttpHeaders & EnvironmentsListCatalogItemsDefaultHeaders;
1068
+ body: ErrorResponse;
1069
+ headers: RawHttpHeaders & ListEnvironmentDefinitionsByCatalogDefaultHeaders;
1156
1070
  }
1157
1071
 
1158
- export declare type EnvironmentsListCatalogItemsParameters = EnvironmentsListCatalogItemsQueryParam & RequestParameters;
1072
+ export declare type ListEnvironmentDefinitionsByCatalogParameters = ListEnvironmentDefinitionsByCatalogQueryParam & RequestParameters;
1159
1073
 
1160
- export declare interface EnvironmentsListCatalogItemsQueryParam {
1161
- queryParameters?: EnvironmentsListCatalogItemsQueryParamProperties;
1074
+ export declare interface ListEnvironmentDefinitionsByCatalogQueryParam {
1075
+ queryParameters?: ListEnvironmentDefinitionsByCatalogQueryParamProperties;
1162
1076
  }
1163
1077
 
1164
- export declare interface EnvironmentsListCatalogItemsQueryParamProperties {
1078
+ export declare interface ListEnvironmentDefinitionsByCatalogQueryParamProperties {
1165
1079
  /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1166
1080
  top?: number;
1167
1081
  }
1168
1082
 
1169
- export declare interface EnvironmentsListCatalogItemVersions {
1170
- /** List all versions of a catalog item from a project. */
1171
- get(options?: EnvironmentsListCatalogItemVersionsParameters): StreamableMethod<EnvironmentsListCatalogItemVersions200Response | EnvironmentsListCatalogItemVersionsDefaultResponse>;
1172
- }
1173
-
1174
- /** List all versions of a catalog item from a project. */
1175
- export declare interface EnvironmentsListCatalogItemVersions200Response extends HttpResponse {
1176
- status: "200";
1177
- body: CatalogItemVersionListResultOutput;
1178
- }
1179
-
1180
- export declare interface EnvironmentsListCatalogItemVersionsDefaultHeaders {
1181
- /** The error code for specific error that occurred. */
1083
+ export declare interface ListEnvironmentDefinitionsDefaultHeaders {
1084
+ /** String error code indicating what went wrong. */
1182
1085
  "x-ms-error-code"?: string;
1183
1086
  }
1184
1087
 
1185
- /** List all versions of a catalog item from a project. */
1186
- export declare interface EnvironmentsListCatalogItemVersionsDefaultResponse extends HttpResponse {
1088
+ export declare interface ListEnvironmentDefinitionsDefaultResponse extends HttpResponse {
1187
1089
  status: string;
1188
- body: CloudErrorOutput;
1189
- headers: RawHttpHeaders & EnvironmentsListCatalogItemVersionsDefaultHeaders;
1090
+ body: ErrorResponse;
1091
+ headers: RawHttpHeaders & ListEnvironmentDefinitionsDefaultHeaders;
1190
1092
  }
1191
1093
 
1192
- export declare type EnvironmentsListCatalogItemVersionsParameters = EnvironmentsListCatalogItemVersionsQueryParam & RequestParameters;
1094
+ export declare type ListEnvironmentDefinitionsParameters = ListEnvironmentDefinitionsQueryParam & RequestParameters;
1193
1095
 
1194
- export declare interface EnvironmentsListCatalogItemVersionsQueryParam {
1195
- queryParameters?: EnvironmentsListCatalogItemVersionsQueryParamProperties;
1096
+ export declare interface ListEnvironmentDefinitionsQueryParam {
1097
+ queryParameters?: ListEnvironmentDefinitionsQueryParamProperties;
1196
1098
  }
1197
1099
 
1198
- export declare interface EnvironmentsListCatalogItemVersionsQueryParamProperties {
1100
+ export declare interface ListEnvironmentDefinitionsQueryParamProperties {
1199
1101
  /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1200
1102
  top?: number;
1201
1103
  }
1202
1104
 
1203
- export declare interface EnvironmentsListEnvironments {
1204
- /** Lists the environments for a project. */
1205
- get(options?: EnvironmentsListEnvironmentsParameters): StreamableMethod<EnvironmentsListEnvironments200Response | EnvironmentsListEnvironmentsDefaultResponse>;
1206
- }
1207
-
1208
- /** Lists the environments for a project. */
1209
- export declare interface EnvironmentsListEnvironments200Response extends HttpResponse {
1210
- status: "200";
1211
- body: EnvironmentListResultOutput;
1212
- }
1213
-
1214
- export declare interface EnvironmentsListEnvironmentsByUser {
1105
+ export declare interface ListEnvironments {
1215
1106
  /** Lists the environments for a project and user. */
1216
- get(options?: EnvironmentsListEnvironmentsByUserParameters): StreamableMethod<EnvironmentsListEnvironmentsByUser200Response | EnvironmentsListEnvironmentsByUserDefaultResponse>;
1107
+ get(options?: ListEnvironmentsParameters): StreamableMethod<ListEnvironments200Response | ListEnvironmentsDefaultResponse>;
1217
1108
  }
1218
1109
 
1219
- /** Lists the environments for a project and user. */
1220
- export declare interface EnvironmentsListEnvironmentsByUser200Response extends HttpResponse {
1110
+ /** The request has succeeded. */
1111
+ export declare interface ListEnvironments200Response extends HttpResponse {
1221
1112
  status: "200";
1222
- body: EnvironmentListResultOutput;
1113
+ body: PagedEnvironmentOutput;
1223
1114
  }
1224
1115
 
1225
- export declare interface EnvironmentsListEnvironmentsByUserDefaultHeaders {
1226
- /** The error code for specific error that occurred. */
1116
+ export declare interface ListEnvironmentsDefaultHeaders {
1117
+ /** String error code indicating what went wrong. */
1227
1118
  "x-ms-error-code"?: string;
1228
1119
  }
1229
1120
 
1230
- /** Lists the environments for a project and user. */
1231
- export declare interface EnvironmentsListEnvironmentsByUserDefaultResponse extends HttpResponse {
1121
+ export declare interface ListEnvironmentsDefaultResponse extends HttpResponse {
1232
1122
  status: string;
1233
- body: CloudErrorOutput;
1234
- headers: RawHttpHeaders & EnvironmentsListEnvironmentsByUserDefaultHeaders;
1123
+ body: ErrorResponse;
1124
+ headers: RawHttpHeaders & ListEnvironmentsDefaultHeaders;
1235
1125
  }
1236
1126
 
1237
- export declare type EnvironmentsListEnvironmentsByUserParameters = EnvironmentsListEnvironmentsByUserQueryParam & RequestParameters;
1127
+ export declare type ListEnvironmentsParameters = ListEnvironmentsQueryParam & RequestParameters;
1238
1128
 
1239
- export declare interface EnvironmentsListEnvironmentsByUserQueryParam {
1240
- queryParameters?: EnvironmentsListEnvironmentsByUserQueryParamProperties;
1129
+ export declare interface ListEnvironmentsQueryParam {
1130
+ queryParameters?: ListEnvironmentsQueryParamProperties;
1241
1131
  }
1242
1132
 
1243
- export declare interface EnvironmentsListEnvironmentsByUserQueryParamProperties {
1133
+ export declare interface ListEnvironmentsQueryParamProperties {
1244
1134
  /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1245
1135
  top?: number;
1246
1136
  }
1247
1137
 
1248
- export declare interface EnvironmentsListEnvironmentsDefaultHeaders {
1249
- /** The error code for specific error that occurred. */
1138
+ export declare interface ListEnvironmentTypes {
1139
+ /** Lists all environment types configured for a project. */
1140
+ get(options?: ListEnvironmentTypesParameters): StreamableMethod<ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse>;
1141
+ }
1142
+
1143
+ /** The request has succeeded. */
1144
+ export declare interface ListEnvironmentTypes200Response extends HttpResponse {
1145
+ status: "200";
1146
+ body: PagedEnvironmentTypeOutput;
1147
+ }
1148
+
1149
+ export declare interface ListEnvironmentTypesDefaultHeaders {
1150
+ /** String error code indicating what went wrong. */
1250
1151
  "x-ms-error-code"?: string;
1251
1152
  }
1252
1153
 
1253
- /** Lists the environments for a project. */
1254
- export declare interface EnvironmentsListEnvironmentsDefaultResponse extends HttpResponse {
1154
+ export declare interface ListEnvironmentTypesDefaultResponse extends HttpResponse {
1255
1155
  status: string;
1256
- body: CloudErrorOutput;
1257
- headers: RawHttpHeaders & EnvironmentsListEnvironmentsDefaultHeaders;
1156
+ body: ErrorResponse;
1157
+ headers: RawHttpHeaders & ListEnvironmentTypesDefaultHeaders;
1258
1158
  }
1259
1159
 
1260
- export declare type EnvironmentsListEnvironmentsParameters = EnvironmentsListEnvironmentsQueryParam & RequestParameters;
1160
+ export declare type ListEnvironmentTypesParameters = ListEnvironmentTypesQueryParam & RequestParameters;
1261
1161
 
1262
- export declare interface EnvironmentsListEnvironmentsQueryParam {
1263
- queryParameters?: EnvironmentsListEnvironmentsQueryParamProperties;
1162
+ export declare interface ListEnvironmentTypesQueryParam {
1163
+ queryParameters?: ListEnvironmentTypesQueryParamProperties;
1264
1164
  }
1265
1165
 
1266
- export declare interface EnvironmentsListEnvironmentsQueryParamProperties {
1166
+ export declare interface ListEnvironmentTypesQueryParamProperties {
1267
1167
  /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1268
1168
  top?: number;
1269
1169
  }
1270
1170
 
1271
- export declare interface EnvironmentsListEnvironmentTypes {
1272
- /** Lists all environment types configured for a project. */
1273
- get(options?: EnvironmentsListEnvironmentTypesParameters): StreamableMethod<EnvironmentsListEnvironmentTypes200Response | EnvironmentsListEnvironmentTypesDefaultResponse>;
1171
+ export declare interface ListPools {
1172
+ /** Lists available pools */
1173
+ get(options?: ListPoolsParameters): StreamableMethod<ListPools200Response | ListPoolsDefaultResponse>;
1274
1174
  }
1275
1175
 
1276
- /** Lists all environment types configured for a project. */
1277
- export declare interface EnvironmentsListEnvironmentTypes200Response extends HttpResponse {
1176
+ /** The request has succeeded. */
1177
+ export declare interface ListPools200Response extends HttpResponse {
1278
1178
  status: "200";
1279
- body: EnvironmentTypeListResultOutput;
1179
+ body: PagedPoolOutput;
1280
1180
  }
1281
1181
 
1282
- export declare interface EnvironmentsListEnvironmentTypesDefaultHeaders {
1283
- /** The error code for specific error that occurred. */
1182
+ export declare interface ListPoolsDefaultHeaders {
1183
+ /** String error code indicating what went wrong. */
1284
1184
  "x-ms-error-code"?: string;
1285
1185
  }
1286
1186
 
1287
- /** Lists all environment types configured for a project. */
1288
- export declare interface EnvironmentsListEnvironmentTypesDefaultResponse extends HttpResponse {
1187
+ export declare interface ListPoolsDefaultResponse extends HttpResponse {
1289
1188
  status: string;
1290
- body: CloudErrorOutput;
1291
- headers: RawHttpHeaders & EnvironmentsListEnvironmentTypesDefaultHeaders;
1189
+ body: ErrorResponse;
1190
+ headers: RawHttpHeaders & ListPoolsDefaultHeaders;
1292
1191
  }
1293
1192
 
1294
- export declare type EnvironmentsListEnvironmentTypesParameters = EnvironmentsListEnvironmentTypesQueryParam & RequestParameters;
1193
+ export declare type ListPoolsParameters = ListPoolsQueryParam & RequestParameters;
1295
1194
 
1296
- export declare interface EnvironmentsListEnvironmentTypesQueryParam {
1297
- queryParameters?: EnvironmentsListEnvironmentTypesQueryParamProperties;
1195
+ export declare interface ListPoolsQueryParam {
1196
+ queryParameters?: ListPoolsQueryParamProperties;
1298
1197
  }
1299
1198
 
1300
- export declare interface EnvironmentsListEnvironmentTypesQueryParamProperties {
1199
+ export declare interface ListPoolsQueryParamProperties {
1200
+ /** An OData filter clause to apply to the operation. */
1201
+ filter?: string;
1301
1202
  /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1302
1203
  top?: number;
1303
1204
  }
1304
1205
 
1305
- /** Partially updates an environment */
1306
- export declare interface EnvironmentsUpdateEnvironment200Response extends HttpResponse {
1307
- status: "200";
1308
- body: EnvironmentOutput;
1206
+ export declare interface ListProjects {
1207
+ /** Lists all projects. */
1208
+ get(options?: ListProjectsParameters): StreamableMethod<ListProjects200Response | ListProjectsDefaultResponse>;
1309
1209
  }
1310
1210
 
1311
- export declare interface EnvironmentsUpdateEnvironmentBodyParam {
1312
- /** Updatable environment properties. */
1313
- body: EnvironmentUpdateProperties;
1211
+ /** The request has succeeded. */
1212
+ export declare interface ListProjects200Response extends HttpResponse {
1213
+ status: "200";
1214
+ body: PagedProjectOutput;
1314
1215
  }
1315
1216
 
1316
- export declare interface EnvironmentsUpdateEnvironmentDefaultHeaders {
1317
- /** The error code for specific error that occurred. */
1217
+ export declare interface ListProjectsDefaultHeaders {
1218
+ /** String error code indicating what went wrong. */
1318
1219
  "x-ms-error-code"?: string;
1319
1220
  }
1320
1221
 
1321
- /** Partially updates an environment */
1322
- export declare interface EnvironmentsUpdateEnvironmentDefaultResponse extends HttpResponse {
1222
+ export declare interface ListProjectsDefaultResponse extends HttpResponse {
1323
1223
  status: string;
1324
- body: CloudErrorOutput;
1325
- headers: RawHttpHeaders & EnvironmentsUpdateEnvironmentDefaultHeaders;
1224
+ body: ErrorResponse;
1225
+ headers: RawHttpHeaders & ListProjectsDefaultHeaders;
1326
1226
  }
1327
1227
 
1328
- export declare interface EnvironmentsUpdateEnvironmentMediaTypesParam {
1329
- /** Request content type */
1330
- contentType?: "application/merge-patch+json";
1331
- }
1228
+ export declare type ListProjectsParameters = ListProjectsQueryParam & RequestParameters;
1332
1229
 
1333
- export declare type EnvironmentsUpdateEnvironmentParameters = EnvironmentsUpdateEnvironmentMediaTypesParam & EnvironmentsUpdateEnvironmentBodyParam & RequestParameters;
1230
+ export declare interface ListProjectsQueryParam {
1231
+ queryParameters?: ListProjectsQueryParamProperties;
1232
+ }
1334
1233
 
1335
- /** Result of the environment type list operation. */
1336
- export declare interface EnvironmentTypeListResultOutput {
1337
- /** Current page of results. */
1338
- value: Array<EnvironmentTypeOutput>;
1339
- /** URL to get the next set of results if there are any. */
1340
- nextLink?: string;
1234
+ export declare interface ListProjectsQueryParamProperties {
1235
+ /** An OData filter clause to apply to the operation. */
1236
+ filter?: string;
1237
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1238
+ top?: number;
1341
1239
  }
1342
1240
 
1343
- /** Properties of an environment type. */
1344
- export declare interface EnvironmentTypeOutput {
1345
- /** Name of the environment type */
1346
- name?: string;
1347
- /** Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. */
1348
- deploymentTargetId?: string;
1349
- /** Defines whether this Environment Type can be used in this Project. */
1350
- status?: "Enabled" | "Disabled";
1241
+ export declare interface ListSchedules {
1242
+ /** Lists available schedules for a pool. */
1243
+ get(options?: ListSchedulesParameters): StreamableMethod<ListSchedules200Response | ListSchedulesDefaultResponse>;
1351
1244
  }
1352
1245
 
1353
- /** Properties of an environment. These properties can be updated after the resource has been created. */
1354
- export declare interface EnvironmentUpdateProperties {
1355
- /** Description of the Environment. */
1356
- description?: string;
1357
- /** Name of the catalog. */
1358
- catalogName?: string;
1359
- /** Name of the catalog item. */
1360
- catalogItemName?: string;
1361
- /** Parameters object for the deploy action */
1362
- parameters?: Record<string, unknown>;
1363
- /** Set of supported scheduled tasks to help manage cost. */
1364
- scheduledTasks?: Record<string, ScheduledTask>;
1365
- /** Key value pairs that will be applied to resources deployed in this environment as tags. */
1366
- tags?: Record<string, string>;
1367
- }
1368
-
1369
- /** Properties of an environment. These properties can be updated after the resource has been created. */
1370
- export declare interface EnvironmentUpdatePropertiesOutput {
1371
- /** Description of the Environment. */
1372
- description?: string;
1373
- /** Name of the catalog. */
1374
- catalogName?: string;
1375
- /** Name of the catalog item. */
1376
- catalogItemName?: string;
1377
- /** Parameters object for the deploy action */
1378
- parameters?: Record<string, unknown>;
1379
- /** Set of supported scheduled tasks to help manage cost. */
1380
- scheduledTasks?: Record<string, ScheduledTaskOutput>;
1381
- /** Key value pairs that will be applied to resources deployed in this environment as tags. */
1382
- tags?: Record<string, string>;
1246
+ /** The request has succeeded. */
1247
+ export declare interface ListSchedules200Response extends HttpResponse {
1248
+ status: "200";
1249
+ body: PagedScheduleOutput;
1383
1250
  }
1384
1251
 
1385
- /**
1386
- * Helper type to extract the type of an array
1387
- */
1388
- export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
1252
+ export declare interface ListSchedulesDefaultHeaders {
1253
+ /** String error code indicating what went wrong. */
1254
+ "x-ms-error-code"?: string;
1255
+ }
1389
1256
 
1390
- /**
1391
- * Helper function that builds a Poller object to help polling a long running operation.
1392
- * @param client - Client to use for sending the request to get additional pages.
1393
- * @param initialResponse - The initial response.
1394
- * @param options - Options to set a resume state or custom polling interval.
1395
- * @returns - A poller object to poll for operation state updates and eventually get the final response.
1396
- */
1397
- export declare function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: LroEngineOptions<TResult, PollOperationState<TResult>>): PollerLike<PollOperationState<TResult>, TResult>;
1257
+ export declare interface ListSchedulesDefaultResponse extends HttpResponse {
1258
+ status: string;
1259
+ body: ErrorResponse;
1260
+ headers: RawHttpHeaders & ListSchedulesDefaultHeaders;
1261
+ }
1398
1262
 
1399
- /**
1400
- * The type of a custom function that defines how to get a page and a link to the next one if any.
1401
- */
1402
- export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
1403
- page: TPage;
1404
- nextPageLink?: string;
1405
- }>;
1263
+ export declare type ListSchedulesParameters = ListSchedulesQueryParam & RequestParameters;
1406
1264
 
1407
- /** Hardware specifications for the Dev Box. */
1408
- export declare interface HardwareProfile {
1409
- /** The name of the SKU */
1410
- skuName?: string;
1411
- /** The number of vCPUs available for the Dev Box. */
1412
- vCPUs?: number;
1413
- /** The amount of memory available for the Dev Box. */
1414
- memoryGB?: number;
1265
+ export declare interface ListSchedulesQueryParam {
1266
+ queryParameters?: ListSchedulesQueryParamProperties;
1415
1267
  }
1416
1268
 
1417
- /** Hardware specifications for the Dev Box. */
1418
- export declare interface HardwareProfileOutput {
1419
- /** The name of the SKU */
1420
- skuName?: string;
1421
- /** The number of vCPUs available for the Dev Box. */
1422
- vCPUs?: number;
1423
- /** The amount of memory available for the Dev Box. */
1424
- memoryGB?: number;
1269
+ export declare interface ListSchedulesQueryParamProperties {
1270
+ /** An OData filter clause to apply to the operation. */
1271
+ filter?: string;
1272
+ /** The maximum number of resources to return from the operation. Example: 'top=10'. */
1273
+ top?: number;
1425
1274
  }
1426
1275
 
1427
- /** Specifies information about the image used */
1428
- export declare interface ImageReference {
1429
- /** The name of the image used. */
1430
- name?: string;
1431
- /** The version of the image. */
1432
- version?: string;
1433
- /** The operating system of the image. */
1434
- operatingSystem?: string;
1435
- /** The operating system build number of the image. */
1436
- osBuildNumber?: string;
1437
- /** The datetime that the backing image version was published. */
1438
- publishedDate?: Date | string;
1276
+ /** Operation Error message */
1277
+ export declare interface OperationStatusErrorOutput {
1278
+ /** The error code. */
1279
+ code?: string;
1280
+ /** The error message. */
1281
+ message?: string;
1439
1282
  }
1440
1283
 
1441
- /** Specifies information about the image used */
1442
- export declare interface ImageReferenceOutput {
1443
- /** The name of the image used. */
1284
+ /** The current status of an async operation */
1285
+ export declare interface OperationStatusOutput {
1286
+ /** Fully qualified ID for the operation status. */
1287
+ id?: string;
1288
+ /** The operation id name */
1444
1289
  name?: string;
1445
- /** The version of the image. */
1446
- version?: string;
1447
- /** The operating system of the image. */
1448
- operatingSystem?: string;
1449
- /** The operating system build number of the image. */
1450
- osBuildNumber?: string;
1451
- /** The datetime that the backing image version was published. */
1452
- publishedDate?: string;
1290
+ /**
1291
+ * Provisioning state of the resource.
1292
+ *
1293
+ * Possible values: Running, Completed, Canceled, Failed
1294
+ */
1295
+ status: string;
1296
+ /** The id of the resource. */
1297
+ resourceId?: string;
1298
+ /** The start time of the operation */
1299
+ startTime?: string;
1300
+ /** The end time of the operation */
1301
+ endTime?: string;
1302
+ /** Percent of the operation that is complete */
1303
+ percentComplete?: number;
1304
+ /** Custom operation properties, populated only for a successful operation. */
1305
+ properties?: any;
1306
+ /** Operation Error message */
1307
+ error?: OperationStatusErrorOutput;
1453
1308
  }
1454
1309
 
1455
- export declare function isUnexpected(response: DevCenterListProjects200Response | DevCenterListProjectsDefaultResponse): response is DevCenterListProjectsDefaultResponse;
1456
-
1457
- export declare function isUnexpected(response: DevCenterGetProject200Response | DevCenterGetProjectDefaultResponse): response is DevCenterGetProjectDefaultResponse;
1458
-
1459
- export declare function isUnexpected(response: DevCenterListAllDevBoxes200Response | DevCenterListAllDevBoxesDefaultResponse): response is DevCenterListAllDevBoxesDefaultResponse;
1460
-
1461
- export declare function isUnexpected(response: DevCenterListAllDevBoxesByUser200Response | DevCenterListAllDevBoxesByUserDefaultResponse): response is DevCenterListAllDevBoxesByUserDefaultResponse;
1462
-
1463
- export declare function isUnexpected(response: DevBoxesListPools200Response | DevBoxesListPoolsDefaultResponse): response is DevBoxesListPoolsDefaultResponse;
1464
-
1465
- export declare function isUnexpected(response: DevBoxesGetPool200Response | DevBoxesGetPoolDefaultResponse): response is DevBoxesGetPoolDefaultResponse;
1466
-
1467
- export declare function isUnexpected(response: DevBoxesListSchedulesByPool200Response | DevBoxesListSchedulesByPoolDefaultResponse): response is DevBoxesListSchedulesByPoolDefaultResponse;
1468
-
1469
- export declare function isUnexpected(response: DevBoxesGetScheduleByPool200Response | DevBoxesGetScheduleByPoolDefaultResponse): response is DevBoxesGetScheduleByPoolDefaultResponse;
1470
-
1471
- export declare function isUnexpected(response: DevBoxesListDevBoxesByUser200Response | DevBoxesListDevBoxesByUserDefaultResponse): response is DevBoxesListDevBoxesByUserDefaultResponse;
1472
-
1473
- export declare function isUnexpected(response: DevBoxesGetDevBoxByUser200Response | DevBoxesGetDevBoxByUserDefaultResponse): response is DevBoxesGetDevBoxByUserDefaultResponse;
1474
-
1475
- export declare function isUnexpected(response: DevBoxesCreateDevBox200Response | DevBoxesCreateDevBox201Response | DevBoxesCreateDevBoxDefaultResponse): response is DevBoxesCreateDevBoxDefaultResponse;
1476
-
1477
- export declare function isUnexpected(response: DevBoxesDeleteDevBox200Response | DevBoxesDeleteDevBox202Response | DevBoxesDeleteDevBox204Response | DevBoxesDeleteDevBoxDefaultResponse): response is DevBoxesDeleteDevBoxDefaultResponse;
1478
-
1479
- export declare function isUnexpected(response: DevBoxesStartDevBox200Response | DevBoxesStartDevBox202Response | DevBoxesStartDevBoxDefaultResponse): response is DevBoxesStartDevBoxDefaultResponse;
1480
-
1481
- export declare function isUnexpected(response: DevBoxesStopDevBox200Response | DevBoxesStopDevBox202Response | DevBoxesStopDevBoxDefaultResponse): response is DevBoxesStopDevBoxDefaultResponse;
1482
-
1483
- export declare function isUnexpected(response: DevBoxesGetRemoteConnection200Response | DevBoxesGetRemoteConnectionDefaultResponse): response is DevBoxesGetRemoteConnectionDefaultResponse;
1484
-
1485
- export declare function isUnexpected(response: EnvironmentsListEnvironments200Response | EnvironmentsListEnvironmentsDefaultResponse): response is EnvironmentsListEnvironmentsDefaultResponse;
1486
-
1487
- export declare function isUnexpected(response: EnvironmentsListEnvironmentsByUser200Response | EnvironmentsListEnvironmentsByUserDefaultResponse): response is EnvironmentsListEnvironmentsByUserDefaultResponse;
1488
-
1489
- export declare function isUnexpected(response: EnvironmentsGetEnvironmentByUser200Response | EnvironmentsGetEnvironmentByUserDefaultResponse): response is EnvironmentsGetEnvironmentByUserDefaultResponse;
1490
-
1491
- export declare function isUnexpected(response: EnvironmentsCreateOrUpdateEnvironment200Response | EnvironmentsCreateOrUpdateEnvironment201Response | EnvironmentsCreateOrUpdateEnvironmentDefaultResponse): response is EnvironmentsCreateOrUpdateEnvironmentDefaultResponse;
1492
-
1493
- export declare function isUnexpected(response: EnvironmentsUpdateEnvironment200Response | EnvironmentsUpdateEnvironmentDefaultResponse): response is EnvironmentsUpdateEnvironmentDefaultResponse;
1494
-
1495
- export declare function isUnexpected(response: EnvironmentsDeleteEnvironment200Response | EnvironmentsDeleteEnvironment202Response | EnvironmentsDeleteEnvironment204Response | EnvironmentsDeleteEnvironmentDefaultResponse): response is EnvironmentsDeleteEnvironmentDefaultResponse;
1496
-
1497
- export declare function isUnexpected(response: EnvironmentsDeployEnvironmentAction200Response | EnvironmentsDeployEnvironmentAction202Response | EnvironmentsDeployEnvironmentActionDefaultResponse): response is EnvironmentsDeployEnvironmentActionDefaultResponse;
1310
+ /** Settings for the operating system disk. */
1311
+ export declare interface OSDisk {
1312
+ }
1498
1313
 
1499
- export declare function isUnexpected(response: EnvironmentsDeleteEnvironmentAction200Response | EnvironmentsDeleteEnvironmentAction202Response | EnvironmentsDeleteEnvironmentActionDefaultResponse): response is EnvironmentsDeleteEnvironmentActionDefaultResponse;
1314
+ /** Settings for the operating system disk. */
1315
+ export declare interface OSDiskOutput {
1316
+ /** The size of the OS Disk in gigabytes. */
1317
+ readonly diskSizeGB?: number;
1318
+ }
1500
1319
 
1501
- export declare function isUnexpected(response: EnvironmentsCustomEnvironmentAction200Response | EnvironmentsCustomEnvironmentAction202Response | EnvironmentsCustomEnvironmentActionDefaultResponse): response is EnvironmentsCustomEnvironmentActionDefaultResponse;
1320
+ /** Results of the catalog list operation. */
1321
+ export declare type PagedCatalogOutput = Paged<CatalogOutput>;
1502
1322
 
1503
- export declare function isUnexpected(response: EnvironmentsListArtifactsByEnvironment200Response | EnvironmentsListArtifactsByEnvironmentDefaultResponse): response is EnvironmentsListArtifactsByEnvironmentDefaultResponse;
1323
+ /** The actions list result */
1324
+ export declare type PagedDevBoxActionDelayResultOutput = Paged<DevBoxActionDelayResultOutput>;
1504
1325
 
1505
- export declare function isUnexpected(response: EnvironmentsListArtifactsByEnvironmentAndPath200Response | EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse): response is EnvironmentsListArtifactsByEnvironmentAndPathDefaultResponse;
1326
+ /** The actions list result */
1327
+ export declare type PagedDevBoxActionOutput = Paged<DevBoxActionOutput>;
1506
1328
 
1507
- export declare function isUnexpected(response: EnvironmentsListCatalogItems200Response | EnvironmentsListCatalogItemsDefaultResponse): response is EnvironmentsListCatalogItemsDefaultResponse;
1329
+ /** The Dev Box list result */
1330
+ export declare type PagedDevBoxOutput = Paged<DevBoxOutput>;
1508
1331
 
1509
- export declare function isUnexpected(response: EnvironmentsGetCatalogItem200Response | EnvironmentsGetCatalogItemDefaultResponse): response is EnvironmentsGetCatalogItemDefaultResponse;
1332
+ /** Results of the environment definition list operation. */
1333
+ export declare type PagedEnvironmentDefinitionOutput = Paged<EnvironmentDefinitionOutput>;
1510
1334
 
1511
- export declare function isUnexpected(response: EnvironmentsListCatalogItemVersions200Response | EnvironmentsListCatalogItemVersionsDefaultResponse): response is EnvironmentsListCatalogItemVersionsDefaultResponse;
1335
+ /** Results of the environment list operation. */
1336
+ export declare type PagedEnvironmentOutput = Paged<EnvironmentOutput>;
1512
1337
 
1513
- export declare function isUnexpected(response: EnvironmentsGetCatalogItemVersion200Response | EnvironmentsGetCatalogItemVersionDefaultResponse): response is EnvironmentsGetCatalogItemVersionDefaultResponse;
1338
+ /** Result of the environment type list operation. */
1339
+ export declare type PagedEnvironmentTypeOutput = Paged<EnvironmentTypeOutput>;
1514
1340
 
1515
- export declare function isUnexpected(response: EnvironmentsListEnvironmentTypes200Response | EnvironmentsListEnvironmentTypesDefaultResponse): response is EnvironmentsListEnvironmentTypesDefaultResponse;
1341
+ /** The Pool list result */
1342
+ export declare type PagedPoolOutput = Paged<PoolOutput>;
1516
1343
 
1517
- /** Settings for the operating system disk. */
1518
- export declare interface OSDisk {
1519
- /** The size of the OS Disk in gigabytes. */
1520
- diskSizeGB?: number;
1521
- }
1344
+ /** Results of the project list operation. */
1345
+ export declare type PagedProjectOutput = Paged<ProjectOutput>;
1522
1346
 
1523
- /** Settings for the operating system disk. */
1524
- export declare interface OSDiskOutput {
1525
- /** The size of the OS Disk in gigabytes. */
1526
- diskSizeGB?: number;
1527
- }
1347
+ /** The Schedule list result */
1348
+ export declare type PagedScheduleOutput = Paged<ScheduleOutput>;
1528
1349
 
1529
1350
  /**
1530
1351
  * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
@@ -1558,167 +1379,306 @@ export declare interface PagingOptions<TResponse> {
1558
1379
  customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
1559
1380
  }
1560
1381
 
1561
- /** The Pool list result */
1562
- export declare interface PoolListResultOutput {
1563
- /** Current page of results */
1564
- value: Array<PoolOutput>;
1565
- /** The URL to get the next set of results. */
1566
- nextLink?: string;
1567
- }
1568
-
1569
1382
  /** A pool of Dev Boxes. */
1570
1383
  export declare interface PoolOutput {
1571
1384
  /** Pool name */
1572
- name?: string;
1385
+ readonly name: string;
1573
1386
  /** Azure region where Dev Boxes in the pool are located */
1574
- location?: string;
1575
- /** The operating system type of Dev Boxes in this pool */
1576
- osType?: "Windows";
1387
+ location: string;
1388
+ /**
1389
+ * The operating system type of Dev Boxes in this pool
1390
+ *
1391
+ * Possible values: Windows
1392
+ */
1393
+ osType?: string;
1577
1394
  /** Hardware settings for the Dev Boxes created in this pool */
1578
1395
  hardwareProfile?: HardwareProfileOutput;
1396
+ /**
1397
+ * Indicates whether hibernate is enabled/disabled or unknown.
1398
+ *
1399
+ * Possible values: Enabled, Disabled, OsUnsupported
1400
+ */
1401
+ hibernateSupport?: string;
1579
1402
  /** Storage settings for Dev Box created in this pool */
1580
1403
  storageProfile?: StorageProfileOutput;
1581
1404
  /** Image settings for Dev Boxes create in this pool */
1582
1405
  imageReference?: ImageReferenceOutput;
1583
- /** Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. */
1584
- localAdministrator?: "Enabled" | "Disabled";
1585
- }
1586
-
1587
- /** Results of the project list operation. */
1588
- export declare interface ProjectListResultOutput {
1589
- /** Current page of results. */
1590
- value: Array<ProjectOutput>;
1591
- /** URL to get the next set of results if there are any. */
1592
- nextLink?: string;
1406
+ /**
1407
+ * Indicates whether owners of Dev Boxes in this pool are local administrators on
1408
+ * the Dev Boxes.
1409
+ *
1410
+ * Possible values: Enabled, Disabled
1411
+ */
1412
+ localAdministrator?: string;
1413
+ /** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
1414
+ stopOnDisconnect?: StopOnDisconnectConfigurationOutput;
1415
+ /**
1416
+ * Overall health status of the Pool. Indicates whether or not the Pool is
1417
+ * available to create Dev Boxes.
1418
+ *
1419
+ * Possible values: Unknown, Pending, Healthy, Warning, Unhealthy
1420
+ */
1421
+ healthStatus: string;
1593
1422
  }
1594
1423
 
1595
1424
  /** Project details. */
1596
1425
  export declare interface ProjectOutput {
1597
1426
  /** Name of the project */
1598
- name?: string;
1427
+ readonly name: string;
1599
1428
  /** Description of the project. */
1600
1429
  description?: string;
1430
+ /**
1431
+ * When specified, indicates the maximum number of Dev Boxes a single user can
1432
+ * create across all pools in the project.
1433
+ */
1434
+ maxDevBoxesPerUser?: number;
1601
1435
  }
1602
1436
 
1603
- /** Error details */
1604
- export declare interface ProvisioningError {
1605
- /** The error code. */
1606
- code?: string;
1607
- /** The error message. */
1608
- message?: string;
1437
+ /** Provides remote connection information for a Dev Box. */
1438
+ export declare interface RemoteConnectionOutput {
1439
+ /** URL to open a browser based RDP session. */
1440
+ webUrl?: string;
1441
+ /** Link to open a Remote Desktop session. */
1442
+ rdpConnectionUrl?: string;
1609
1443
  }
1610
1444
 
1611
- /** Error details */
1612
- export declare interface ProvisioningErrorOutput {
1613
- /** The error code. */
1614
- code?: string;
1615
- /** The error message. */
1616
- message?: string;
1445
+ export declare interface RestartDevBox {
1446
+ /** Restarts a Dev Box */
1447
+ post(options?: RestartDevBoxParameters): StreamableMethod<RestartDevBox202Response | RestartDevBoxDefaultResponse>;
1617
1448
  }
1618
1449
 
1619
- /** Provides RDP connection information */
1620
- export declare interface RemoteConnectionOutput {
1621
- /** URL to open a browser based RDP session */
1622
- webUrl?: string;
1623
- /** Link to open a Remote Desktop session */
1624
- rdpConnectionUrl?: string;
1450
+ export declare interface RestartDevBox202Headers {
1451
+ /** The location for monitoring the operation state. */
1452
+ "operation-location": string;
1453
+ }
1454
+
1455
+ /** The request has been accepted for processing, but processing has not yet completed. */
1456
+ export declare interface RestartDevBox202Response extends HttpResponse {
1457
+ status: "202";
1458
+ body: OperationStatusOutput;
1459
+ headers: RawHttpHeaders & RestartDevBox202Headers;
1460
+ }
1461
+
1462
+ export declare interface RestartDevBoxDefaultHeaders {
1463
+ /** String error code indicating what went wrong. */
1464
+ "x-ms-error-code"?: string;
1625
1465
  }
1626
1466
 
1467
+ export declare interface RestartDevBoxDefaultResponse extends HttpResponse {
1468
+ status: string;
1469
+ body: ErrorResponse;
1470
+ headers: RawHttpHeaders & RestartDevBoxDefaultHeaders;
1471
+ }
1472
+
1473
+ /** The final response for long-running RestartDevBox operation */
1474
+ export declare interface RestartDevBoxLogicalResponse extends HttpResponse {
1475
+ status: "200";
1476
+ body: OperationStatusOutput;
1477
+ }
1478
+
1479
+ export declare type RestartDevBoxParameters = RequestParameters;
1480
+
1627
1481
  export declare interface Routes {
1628
1482
  /** Resource for '/projects' has methods for the following verbs: get */
1629
- (path: "/projects"): DevCenterListProjects;
1483
+ (path: "/projects"): ListProjects;
1630
1484
  /** Resource for '/projects/\{projectName\}' has methods for the following verbs: get */
1631
- (path: "/projects/{projectName}", projectName: string): DevCenterGetProject;
1632
- /** Resource for '/devboxes' has methods for the following verbs: get */
1633
- (path: "/devboxes"): DevCenterListAllDevBoxes;
1634
- /** Resource for '/users/\{userId\}/devboxes' has methods for the following verbs: get */
1635
- (path: "/users/{userId}/devboxes", userId: string): DevCenterListAllDevBoxesByUser;
1485
+ (path: "/projects/{projectName}", projectName: string): GetProject;
1486
+ /** Resource for '/projects/\{projectName\}/operationstatuses/\{operationId\}' has methods for the following verbs: get */
1487
+ (path: "/projects/{projectName}/operationstatuses/{operationId}", projectName: string, operationId: string): GetProjectOperationStatus;
1636
1488
  /** Resource for '/projects/\{projectName\}/pools' has methods for the following verbs: get */
1637
- (path: "/projects/{projectName}/pools", projectName: string): DevBoxesListPools;
1489
+ (path: "/projects/{projectName}/pools", projectName: string): ListPools;
1638
1490
  /** Resource for '/projects/\{projectName\}/pools/\{poolName\}' has methods for the following verbs: get */
1639
- (path: "/projects/{projectName}/pools/{poolName}", projectName: string, poolName: string): DevBoxesGetPool;
1491
+ (path: "/projects/{projectName}/pools/{poolName}", projectName: string, poolName: string): GetPool;
1640
1492
  /** Resource for '/projects/\{projectName\}/pools/\{poolName\}/schedules' has methods for the following verbs: get */
1641
- (path: "/projects/{projectName}/pools/{poolName}/schedules", projectName: string, poolName: string): DevBoxesListSchedulesByPool;
1493
+ (path: "/projects/{projectName}/pools/{poolName}/schedules", projectName: string, poolName: string): ListSchedules;
1642
1494
  /** Resource for '/projects/\{projectName\}/pools/\{poolName\}/schedules/\{scheduleName\}' has methods for the following verbs: get */
1643
- (path: "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", projectName: string, poolName: string, scheduleName: string): DevBoxesGetScheduleByPool;
1495
+ (path: "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", projectName: string, poolName: string, scheduleName: string): GetSchedule;
1644
1496
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes' has methods for the following verbs: get */
1645
- (path: "/projects/{projectName}/users/{userId}/devboxes", projectName: string, userId: string): DevBoxesListDevBoxesByUser;
1497
+ (path: "/projects/{projectName}/users/{userId}/devboxes", projectName: string, userId: string): ListDevBoxes;
1646
1498
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}' has methods for the following verbs: get, put, delete */
1647
- (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName: string, userId: string, devBoxName: string): DevBoxesGetDevBoxByUser;
1499
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", projectName: string, userId: string, devBoxName: string): GetDevBox;
1648
1500
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:start' has methods for the following verbs: post */
1649
- (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", projectName: string, userId: string, devBoxName: string): DevBoxesStartDevBox;
1501
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", projectName: string, userId: string, devBoxName: string): StartDevBox;
1650
1502
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:stop' has methods for the following verbs: post */
1651
- (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", projectName: string, userId: string, devBoxName: string): DevBoxesStopDevBox;
1503
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", projectName: string, userId: string, devBoxName: string): StopDevBox;
1504
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}:restart' has methods for the following verbs: post */
1505
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart", projectName: string, userId: string, devBoxName: string): RestartDevBox;
1652
1506
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/remoteConnection' has methods for the following verbs: get */
1653
- (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", projectName: string, userId: string, devBoxName: string): DevBoxesGetRemoteConnection;
1507
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", projectName: string, userId: string, devBoxName: string): GetRemoteConnection;
1508
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions' has methods for the following verbs: get */
1509
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions", projectName: string, userId: string, devBoxName: string): ListDevBoxActions;
1510
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}' has methods for the following verbs: get */
1511
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}", projectName: string, userId: string, devBoxName: string, actionName: string): GetDevBoxAction;
1512
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}:skip' has methods for the following verbs: post */
1513
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip", projectName: string, userId: string, devBoxName: string, actionName: string): SkipAction;
1514
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions/\{actionName\}:delay' has methods for the following verbs: post */
1515
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay", projectName: string, userId: string, devBoxName: string, actionName: string): DelayAction;
1516
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/devboxes/\{devBoxName\}/actions:delay' has methods for the following verbs: post */
1517
+ (path: "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay", projectName: string, userId: string, devBoxName: string): DelayAllActions;
1518
+ /** Resource for '/devboxes' has methods for the following verbs: get */
1519
+ (path: "/devboxes"): ListAllDevBoxes;
1520
+ /** Resource for '/users/\{userId\}/devboxes' has methods for the following verbs: get */
1521
+ (path: "/users/{userId}/devboxes", userId: string): ListAllDevBoxesByUser;
1654
1522
  /** Resource for '/projects/\{projectName\}/environments' has methods for the following verbs: get */
1655
- (path: "/projects/{projectName}/environments", projectName: string): EnvironmentsListEnvironments;
1523
+ (path: "/projects/{projectName}/environments", projectName: string): ListAllEnvironments;
1656
1524
  /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments' has methods for the following verbs: get */
1657
- (path: "/projects/{projectName}/users/{userId}/environments", projectName: string, userId: string): EnvironmentsListEnvironmentsByUser;
1658
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}' has methods for the following verbs: get, put, patch, delete */
1659
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName: string, userId: string, environmentName: string): EnvironmentsGetEnvironmentByUser;
1660
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}:deploy' has methods for the following verbs: post */
1661
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}:deploy", projectName: string, userId: string, environmentName: string): EnvironmentsDeployEnvironmentAction;
1662
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}:delete' has methods for the following verbs: post */
1663
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}:delete", projectName: string, userId: string, environmentName: string): EnvironmentsDeleteEnvironmentAction;
1664
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}:custom' has methods for the following verbs: post */
1665
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}:custom", projectName: string, userId: string, environmentName: string): EnvironmentsCustomEnvironmentAction;
1666
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}/artifacts' has methods for the following verbs: get */
1667
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}/artifacts", projectName: string, userId: string, environmentName: string): EnvironmentsListArtifactsByEnvironment;
1668
- /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}/artifacts/\{artifactPath\}' has methods for the following verbs: get */
1669
- (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}/artifacts/{artifactPath}", projectName: string, userId: string, environmentName: string, artifactPath: string): EnvironmentsListArtifactsByEnvironmentAndPath;
1670
- /** Resource for '/projects/\{projectName\}/catalogItems' has methods for the following verbs: get */
1671
- (path: "/projects/{projectName}/catalogItems", projectName: string): EnvironmentsListCatalogItems;
1672
- /** Resource for '/projects/\{projectName\}/catalogItems/\{catalogItemId\}' has methods for the following verbs: get */
1673
- (path: "/projects/{projectName}/catalogItems/{catalogItemId}", projectName: string, catalogItemId: string): EnvironmentsGetCatalogItem;
1674
- /** Resource for '/projects/\{projectName\}/catalogItems/\{catalogItemId\}/versions' has methods for the following verbs: get */
1675
- (path: "/projects/{projectName}/catalogItems/{catalogItemId}/versions", projectName: string, catalogItemId: string): EnvironmentsListCatalogItemVersions;
1676
- /** Resource for '/projects/\{projectName\}/catalogItems/\{catalogItemId\}/versions/\{version\}' has methods for the following verbs: get */
1677
- (path: "/projects/{projectName}/catalogItems/{catalogItemId}/versions/{version}", projectName: string, catalogItemId: string, version: string): EnvironmentsGetCatalogItemVersion;
1525
+ (path: "/projects/{projectName}/users/{userId}/environments", projectName: string, userId: string): ListEnvironments;
1526
+ /** Resource for '/projects/\{projectName\}/users/\{userId\}/environments/\{environmentName\}' has methods for the following verbs: get, put, delete */
1527
+ (path: "/projects/{projectName}/users/{userId}/environments/{environmentName}", projectName: string, userId: string, environmentName: string): GetEnvironment;
1528
+ /** Resource for '/projects/\{projectName\}/catalogs' has methods for the following verbs: get */
1529
+ (path: "/projects/{projectName}/catalogs", projectName: string): ListCatalogs;
1530
+ /** Resource for '/projects/\{projectName\}/catalogs/\{catalogName\}' has methods for the following verbs: get */
1531
+ (path: "/projects/{projectName}/catalogs/{catalogName}", projectName: string, catalogName: string): GetCatalog;
1532
+ /** Resource for '/projects/\{projectName\}/environmentDefinitions' has methods for the following verbs: get */
1533
+ (path: "/projects/{projectName}/environmentDefinitions", projectName: string): ListEnvironmentDefinitions;
1534
+ /** Resource for '/projects/\{projectName\}/catalogs/\{catalogName\}/environmentDefinitions' has methods for the following verbs: get */
1535
+ (path: "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions", projectName: string, catalogName: string): ListEnvironmentDefinitionsByCatalog;
1536
+ /** Resource for '/projects/\{projectName\}/catalogs/\{catalogName\}/environmentDefinitions/\{definitionName\}' has methods for the following verbs: get */
1537
+ (path: "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}", projectName: string, catalogName: string, definitionName: string): GetEnvironmentDefinition;
1678
1538
  /** Resource for '/projects/\{projectName\}/environmentTypes' has methods for the following verbs: get */
1679
- (path: "/projects/{projectName}/environmentTypes", projectName: string): EnvironmentsListEnvironmentTypes;
1539
+ (path: "/projects/{projectName}/environmentTypes", projectName: string): ListEnvironmentTypes;
1540
+ }
1541
+
1542
+ /** A Schedule to execute action. */
1543
+ export declare interface ScheduleOutput {
1544
+ /** Display name for the Schedule */
1545
+ readonly name: string;
1546
+ /**
1547
+ * Supported type this scheduled task represents.
1548
+ *
1549
+ * Possible values: StopDevBox
1550
+ */
1551
+ type: string;
1552
+ /**
1553
+ * The frequency of this scheduled task.
1554
+ *
1555
+ * Possible values: Daily
1556
+ */
1557
+ frequency: string;
1558
+ /** The target time to trigger the action. The format is HH:MM. */
1559
+ time: string;
1560
+ /** The IANA timezone id at which the schedule should execute. */
1561
+ timeZone: string;
1680
1562
  }
1681
1563
 
1682
- /** Scheduled task to auto-expire an environment. */
1683
- export declare interface ScheduledTask {
1684
- /** Supported type this scheduled task represents. */
1685
- type: "AutoExpire";
1686
- /** Indicates whether or not this scheduled task is enabled. */
1687
- enabled?: "Enabled" | "Disabled";
1688
- /** Date/time by which the environment should expire */
1689
- startTime: Date | string;
1564
+ export declare interface SkipAction {
1565
+ /** Skips an occurrence of an action. */
1566
+ post(options?: SkipActionParameters): StreamableMethod<SkipAction204Response | SkipActionDefaultResponse>;
1690
1567
  }
1691
1568
 
1692
- /** Scheduled task to auto-expire an environment. */
1693
- export declare interface ScheduledTaskOutput {
1694
- /** Supported type this scheduled task represents. */
1695
- type: "AutoExpire";
1696
- /** Indicates whether or not this scheduled task is enabled. */
1697
- enabled?: "Enabled" | "Disabled";
1698
- /** Date/time by which the environment should expire */
1699
- startTime: string;
1569
+ /** There is no content to send for this request, but the headers may be useful. */
1570
+ export declare interface SkipAction204Response extends HttpResponse {
1571
+ status: "204";
1700
1572
  }
1701
1573
 
1702
- /** The Schedule list result */
1703
- export declare interface ScheduleListResultOutput {
1704
- /** Current page of results */
1705
- value: Array<ScheduleOutput>;
1706
- /** The URL to get the next set of results. */
1707
- nextLink?: string;
1574
+ export declare interface SkipActionDefaultHeaders {
1575
+ /** String error code indicating what went wrong. */
1576
+ "x-ms-error-code"?: string;
1708
1577
  }
1709
1578
 
1710
- /** A Schedule to execute action. */
1711
- export declare interface ScheduleOutput {
1712
- /** Display name for the Schedule */
1713
- name?: string;
1714
- /** Supported type this scheduled task represents. */
1715
- type?: "StopDevBox";
1716
- /** The frequency of this scheduled task. */
1717
- frequency?: "Daily";
1718
- /** The target time to trigger the action. The format is HH:MM. */
1719
- time?: string;
1720
- /** The IANA timezone id at which the schedule should execute. */
1721
- timeZone?: string;
1579
+ export declare interface SkipActionDefaultResponse extends HttpResponse {
1580
+ status: string;
1581
+ body: ErrorResponse;
1582
+ headers: RawHttpHeaders & SkipActionDefaultHeaders;
1583
+ }
1584
+
1585
+ export declare type SkipActionParameters = RequestParameters;
1586
+
1587
+ export declare interface StartDevBox {
1588
+ /** Starts a Dev Box */
1589
+ post(options?: StartDevBoxParameters): StreamableMethod<StartDevBox202Response | StartDevBoxDefaultResponse>;
1590
+ }
1591
+
1592
+ export declare interface StartDevBox202Headers {
1593
+ /** The location for monitoring the operation state. */
1594
+ "operation-location": string;
1595
+ }
1596
+
1597
+ /** The request has been accepted for processing, but processing has not yet completed. */
1598
+ export declare interface StartDevBox202Response extends HttpResponse {
1599
+ status: "202";
1600
+ body: OperationStatusOutput;
1601
+ headers: RawHttpHeaders & StartDevBox202Headers;
1602
+ }
1603
+
1604
+ export declare interface StartDevBoxDefaultHeaders {
1605
+ /** String error code indicating what went wrong. */
1606
+ "x-ms-error-code"?: string;
1607
+ }
1608
+
1609
+ export declare interface StartDevBoxDefaultResponse extends HttpResponse {
1610
+ status: string;
1611
+ body: ErrorResponse;
1612
+ headers: RawHttpHeaders & StartDevBoxDefaultHeaders;
1613
+ }
1614
+
1615
+ /** The final response for long-running StartDevBox operation */
1616
+ export declare interface StartDevBoxLogicalResponse extends HttpResponse {
1617
+ status: "200";
1618
+ body: OperationStatusOutput;
1619
+ }
1620
+
1621
+ export declare type StartDevBoxParameters = RequestParameters;
1622
+
1623
+ export declare interface StopDevBox {
1624
+ /** Stops a Dev Box */
1625
+ post(options?: StopDevBoxParameters): StreamableMethod<StopDevBox202Response | StopDevBoxDefaultResponse>;
1626
+ }
1627
+
1628
+ export declare interface StopDevBox202Headers {
1629
+ /** The location for monitoring the operation state. */
1630
+ "operation-location": string;
1631
+ }
1632
+
1633
+ /** The request has been accepted for processing, but processing has not yet completed. */
1634
+ export declare interface StopDevBox202Response extends HttpResponse {
1635
+ status: "202";
1636
+ body: OperationStatusOutput;
1637
+ headers: RawHttpHeaders & StopDevBox202Headers;
1638
+ }
1639
+
1640
+ export declare interface StopDevBoxDefaultHeaders {
1641
+ /** String error code indicating what went wrong. */
1642
+ "x-ms-error-code"?: string;
1643
+ }
1644
+
1645
+ export declare interface StopDevBoxDefaultResponse extends HttpResponse {
1646
+ status: string;
1647
+ body: ErrorResponse;
1648
+ headers: RawHttpHeaders & StopDevBoxDefaultHeaders;
1649
+ }
1650
+
1651
+ /** The final response for long-running StopDevBox operation */
1652
+ export declare interface StopDevBoxLogicalResponse extends HttpResponse {
1653
+ status: "200";
1654
+ body: OperationStatusOutput;
1655
+ }
1656
+
1657
+ export declare type StopDevBoxParameters = StopDevBoxQueryParam & RequestParameters;
1658
+
1659
+ export declare interface StopDevBoxQueryParam {
1660
+ queryParameters?: StopDevBoxQueryParamProperties;
1661
+ }
1662
+
1663
+ export declare interface StopDevBoxQueryParamProperties {
1664
+ /** Optional parameter to hibernate the dev box. */
1665
+ hibernate?: boolean;
1666
+ }
1667
+
1668
+ /** Stop on disconnect configuration settings for Dev Boxes created in this pool. */
1669
+ export declare interface StopOnDisconnectConfigurationOutput {
1670
+ /**
1671
+ * Indicates whether the feature to stop the devbox on disconnect once the grace
1672
+ * period has lapsed is enabled.
1673
+ *
1674
+ * Possible values: Enabled, Disabled
1675
+ */
1676
+ status: string;
1677
+ /**
1678
+ * The specified time in minutes to wait before stopping a Dev Box once disconnect
1679
+ * is detected.
1680
+ */
1681
+ gracePeriodMinutes?: number;
1722
1682
  }
1723
1683
 
1724
1684
  /** Storage settings for the Dev Box's disks */