@daytonaio/api-client 0.12.2 → 0.13.0
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.
- package/README.md +2 -2
- package/api/workspace-api.ts +80 -0
- package/dist/api/workspace-api.d.ts +37 -0
- package/dist/api/workspace-api.js +76 -0
- package/dist/esm/api/workspace-api.d.ts +37 -0
- package/dist/esm/api/workspace-api.js +76 -0
- package/dist/esm/models/create-workspace.d.ts +6 -0
- package/dist/esm/models/workspace.d.ts +6 -0
- package/dist/models/create-workspace.d.ts +6 -0
- package/dist/models/workspace.d.ts +6 -0
- package/models/create-workspace.ts +6 -0
- package/models/workspace.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.
|
|
1
|
+
## @daytonaio/api-client@0.13.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @daytonaio/api-client@0.
|
|
39
|
+
npm install @daytonaio/api-client@0.13.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/workspace-api.ts
CHANGED
|
@@ -282,6 +282,48 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
282
282
|
options: localVarRequestOptions,
|
|
283
283
|
};
|
|
284
284
|
},
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Set workspace auto-stop interval
|
|
288
|
+
* @param {string} workspaceId ID of the workspace
|
|
289
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
setAutostopInterval: async (workspaceId: string, interval: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
294
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
295
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId)
|
|
296
|
+
// verify required parameter 'interval' is not null or undefined
|
|
297
|
+
assertParamExists('setAutostopInterval', 'interval', interval)
|
|
298
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
299
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
300
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
if (configuration) {
|
|
305
|
+
baseOptions = configuration.baseOptions;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
309
|
+
const localVarHeaderParameter = {} as any;
|
|
310
|
+
const localVarQueryParameter = {} as any;
|
|
311
|
+
|
|
312
|
+
// authentication oauth2 required
|
|
313
|
+
// oauth required
|
|
314
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
321
|
+
|
|
322
|
+
return {
|
|
323
|
+
url: toPathString(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions,
|
|
325
|
+
};
|
|
326
|
+
},
|
|
285
327
|
/**
|
|
286
328
|
*
|
|
287
329
|
* @summary Start workspace
|
|
@@ -534,6 +576,20 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
534
576
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
|
|
535
577
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
536
578
|
},
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @summary Set workspace auto-stop interval
|
|
582
|
+
* @param {string} workspaceId ID of the workspace
|
|
583
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
async setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
588
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
589
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
590
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
|
|
591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
592
|
+
},
|
|
537
593
|
/**
|
|
538
594
|
*
|
|
539
595
|
* @summary Start workspace
|
|
@@ -660,6 +716,17 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
660
716
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels> {
|
|
661
717
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
662
718
|
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary Set workspace auto-stop interval
|
|
722
|
+
* @param {string} workspaceId ID of the workspace
|
|
723
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
728
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
729
|
+
},
|
|
663
730
|
/**
|
|
664
731
|
*
|
|
665
732
|
* @summary Start workspace
|
|
@@ -786,6 +853,19 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
786
853
|
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
787
854
|
}
|
|
788
855
|
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary Set workspace auto-stop interval
|
|
859
|
+
* @param {string} workspaceId ID of the workspace
|
|
860
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
* @memberof WorkspaceApi
|
|
864
|
+
*/
|
|
865
|
+
public setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig) {
|
|
866
|
+
return WorkspaceApiFp(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
867
|
+
}
|
|
868
|
+
|
|
789
869
|
/**
|
|
790
870
|
*
|
|
791
871
|
* @summary Start workspace
|
|
@@ -71,6 +71,15 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
73
|
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Set workspace auto-stop interval
|
|
77
|
+
* @param {string} workspaceId ID of the workspace
|
|
78
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
setAutostopInterval: (workspaceId: string, interval: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
83
|
/**
|
|
75
84
|
*
|
|
76
85
|
* @summary Start workspace
|
|
@@ -161,6 +170,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
161
170
|
* @throws {RequiredError}
|
|
162
171
|
*/
|
|
163
172
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Set workspace auto-stop interval
|
|
176
|
+
* @param {string} workspaceId ID of the workspace
|
|
177
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
164
182
|
/**
|
|
165
183
|
*
|
|
166
184
|
* @summary Start workspace
|
|
@@ -251,6 +269,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
251
269
|
* @throws {RequiredError}
|
|
252
270
|
*/
|
|
253
271
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @summary Set workspace auto-stop interval
|
|
275
|
+
* @param {string} workspaceId ID of the workspace
|
|
276
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
254
281
|
/**
|
|
255
282
|
*
|
|
256
283
|
* @summary Start workspace
|
|
@@ -349,6 +376,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
349
376
|
* @memberof WorkspaceApi
|
|
350
377
|
*/
|
|
351
378
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Set workspace auto-stop interval
|
|
382
|
+
* @param {string} workspaceId ID of the workspace
|
|
383
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof WorkspaceApi
|
|
387
|
+
*/
|
|
388
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
352
389
|
/**
|
|
353
390
|
*
|
|
354
391
|
* @summary Start workspace
|
|
@@ -243,6 +243,42 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
243
243
|
options: localVarRequestOptions,
|
|
244
244
|
};
|
|
245
245
|
}),
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Set workspace auto-stop interval
|
|
249
|
+
* @param {string} workspaceId ID of the workspace
|
|
250
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
255
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'workspaceId', workspaceId);
|
|
257
|
+
// verify required parameter 'interval' is not null or undefined
|
|
258
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
|
|
259
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
260
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
261
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
262
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
264
|
+
let baseOptions;
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
}
|
|
268
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
269
|
+
const localVarHeaderParameter = {};
|
|
270
|
+
const localVarQueryParameter = {};
|
|
271
|
+
// authentication oauth2 required
|
|
272
|
+
// oauth required
|
|
273
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
277
|
+
return {
|
|
278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
279
|
+
options: localVarRequestOptions,
|
|
280
|
+
};
|
|
281
|
+
}),
|
|
246
282
|
/**
|
|
247
283
|
*
|
|
248
284
|
* @summary Start workspace
|
|
@@ -488,6 +524,23 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
488
524
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
525
|
});
|
|
490
526
|
},
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary Set workspace auto-stop interval
|
|
530
|
+
* @param {string} workspaceId ID of the workspace
|
|
531
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
537
|
+
var _a, _b, _c;
|
|
538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
539
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
540
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
541
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
542
|
+
});
|
|
543
|
+
},
|
|
491
544
|
/**
|
|
492
545
|
*
|
|
493
546
|
* @summary Start workspace
|
|
@@ -626,6 +679,17 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
626
679
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
627
680
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
628
681
|
},
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @summary Set workspace auto-stop interval
|
|
685
|
+
* @param {string} workspaceId ID of the workspace
|
|
686
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
691
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
692
|
+
},
|
|
629
693
|
/**
|
|
630
694
|
*
|
|
631
695
|
* @summary Start workspace
|
|
@@ -746,6 +810,18 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
746
810
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
747
811
|
return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
748
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @summary Set workspace auto-stop interval
|
|
816
|
+
* @param {string} workspaceId ID of the workspace
|
|
817
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
* @memberof WorkspaceApi
|
|
821
|
+
*/
|
|
822
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
823
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
}
|
|
749
825
|
/**
|
|
750
826
|
*
|
|
751
827
|
* @summary Start workspace
|
|
@@ -71,6 +71,15 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
73
|
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Set workspace auto-stop interval
|
|
77
|
+
* @param {string} workspaceId ID of the workspace
|
|
78
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
setAutostopInterval: (workspaceId: string, interval: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
83
|
/**
|
|
75
84
|
*
|
|
76
85
|
* @summary Start workspace
|
|
@@ -161,6 +170,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
161
170
|
* @throws {RequiredError}
|
|
162
171
|
*/
|
|
163
172
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Set workspace auto-stop interval
|
|
176
|
+
* @param {string} workspaceId ID of the workspace
|
|
177
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
164
182
|
/**
|
|
165
183
|
*
|
|
166
184
|
* @summary Start workspace
|
|
@@ -251,6 +269,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
251
269
|
* @throws {RequiredError}
|
|
252
270
|
*/
|
|
253
271
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @summary Set workspace auto-stop interval
|
|
275
|
+
* @param {string} workspaceId ID of the workspace
|
|
276
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
254
281
|
/**
|
|
255
282
|
*
|
|
256
283
|
* @summary Start workspace
|
|
@@ -349,6 +376,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
349
376
|
* @memberof WorkspaceApi
|
|
350
377
|
*/
|
|
351
378
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Set workspace auto-stop interval
|
|
382
|
+
* @param {string} workspaceId ID of the workspace
|
|
383
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof WorkspaceApi
|
|
387
|
+
*/
|
|
388
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
352
389
|
/**
|
|
353
390
|
*
|
|
354
391
|
* @summary Start workspace
|
|
@@ -240,6 +240,42 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
240
240
|
options: localVarRequestOptions,
|
|
241
241
|
};
|
|
242
242
|
}),
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary Set workspace auto-stop interval
|
|
246
|
+
* @param {string} workspaceId ID of the workspace
|
|
247
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
252
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
253
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId);
|
|
254
|
+
// verify required parameter 'interval' is not null or undefined
|
|
255
|
+
assertParamExists('setAutostopInterval', 'interval', interval);
|
|
256
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
257
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
258
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
266
|
+
const localVarHeaderParameter = {};
|
|
267
|
+
const localVarQueryParameter = {};
|
|
268
|
+
// authentication oauth2 required
|
|
269
|
+
// oauth required
|
|
270
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
274
|
+
return {
|
|
275
|
+
url: toPathString(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
243
279
|
/**
|
|
244
280
|
*
|
|
245
281
|
* @summary Start workspace
|
|
@@ -484,6 +520,23 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
484
520
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
485
521
|
});
|
|
486
522
|
},
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @summary Set workspace auto-stop interval
|
|
526
|
+
* @param {string} workspaceId ID of the workspace
|
|
527
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
var _a, _b, _c;
|
|
534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
535
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
536
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
537
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
538
|
+
});
|
|
539
|
+
},
|
|
487
540
|
/**
|
|
488
541
|
*
|
|
489
542
|
* @summary Start workspace
|
|
@@ -621,6 +674,17 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
621
674
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
622
675
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
623
676
|
},
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @summary Set workspace auto-stop interval
|
|
680
|
+
* @param {string} workspaceId ID of the workspace
|
|
681
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
686
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
687
|
+
},
|
|
624
688
|
/**
|
|
625
689
|
*
|
|
626
690
|
* @summary Start workspace
|
|
@@ -740,6 +804,18 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
740
804
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
741
805
|
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
742
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @summary Set workspace auto-stop interval
|
|
810
|
+
* @param {string} workspaceId ID of the workspace
|
|
811
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
* @memberof WorkspaceApi
|
|
815
|
+
*/
|
|
816
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
817
|
+
return WorkspaceApiFp(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
}
|
|
743
819
|
/**
|
|
744
820
|
*
|
|
745
821
|
* @summary Start workspace
|
|
@@ -97,6 +97,12 @@ export interface CreateWorkspace {
|
|
|
97
97
|
* @memberof CreateWorkspace
|
|
98
98
|
*/
|
|
99
99
|
'disk'?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof CreateWorkspace
|
|
104
|
+
*/
|
|
105
|
+
'autoStopInterval'?: number;
|
|
100
106
|
}
|
|
101
107
|
export declare const CreateWorkspaceClassEnum: {
|
|
102
108
|
readonly Small: "small";
|
|
@@ -122,4 +122,10 @@ export interface Workspace {
|
|
|
122
122
|
* @memberof Workspace
|
|
123
123
|
*/
|
|
124
124
|
'snapshotCreatedAt'?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof Workspace
|
|
129
|
+
*/
|
|
130
|
+
'autoStopInterval'?: number;
|
|
125
131
|
}
|
|
@@ -97,6 +97,12 @@ export interface CreateWorkspace {
|
|
|
97
97
|
* @memberof CreateWorkspace
|
|
98
98
|
*/
|
|
99
99
|
'disk'?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof CreateWorkspace
|
|
104
|
+
*/
|
|
105
|
+
'autoStopInterval'?: number;
|
|
100
106
|
}
|
|
101
107
|
export declare const CreateWorkspaceClassEnum: {
|
|
102
108
|
readonly Small: "small";
|
|
@@ -122,4 +122,10 @@ export interface Workspace {
|
|
|
122
122
|
* @memberof Workspace
|
|
123
123
|
*/
|
|
124
124
|
'snapshotCreatedAt'?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof Workspace
|
|
129
|
+
*/
|
|
130
|
+
'autoStopInterval'?: number;
|
|
125
131
|
}
|
|
@@ -98,6 +98,12 @@ export interface CreateWorkspace {
|
|
|
98
98
|
* @memberof CreateWorkspace
|
|
99
99
|
*/
|
|
100
100
|
'disk'?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof CreateWorkspace
|
|
105
|
+
*/
|
|
106
|
+
'autoStopInterval'?: number;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
export const CreateWorkspaceClassEnum = {
|
package/models/workspace.ts
CHANGED
|
@@ -125,5 +125,11 @@ export interface Workspace {
|
|
|
125
125
|
* @memberof Workspace
|
|
126
126
|
*/
|
|
127
127
|
'snapshotCreatedAt'?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof Workspace
|
|
132
|
+
*/
|
|
133
|
+
'autoStopInterval'?: number;
|
|
128
134
|
}
|
|
129
135
|
|