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