sandbox0 0.9.8 → 0.10.1

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 (110) hide show
  1. package/README.md +0 -15
  2. package/dist/apispec/src/apis/FilesApi.d.ts +1 -112
  3. package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
  4. package/dist/apispec/src/apis/FilesApi.js +1 -330
  5. package/dist/apispec/src/apis/index.d.ts +0 -2
  6. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  7. package/dist/apispec/src/apis/index.js +0 -2
  8. package/dist/apispec/src/models/ClaimRequest.d.ts +0 -7
  9. package/dist/apispec/src/models/ClaimRequest.d.ts.map +1 -1
  10. package/dist/apispec/src/models/ClaimRequest.js +0 -3
  11. package/dist/apispec/src/models/ClaimResponse.d.ts +0 -7
  12. package/dist/apispec/src/models/ClaimResponse.d.ts.map +1 -1
  13. package/dist/apispec/src/models/ClaimResponse.js +0 -3
  14. package/dist/apispec/src/models/ObservabilityEventSource.d.ts +0 -2
  15. package/dist/apispec/src/models/ObservabilityEventSource.d.ts.map +1 -1
  16. package/dist/apispec/src/models/ObservabilityEventSource.js +1 -3
  17. package/dist/apispec/src/models/QuotaDimension.d.ts +0 -2
  18. package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -1
  19. package/dist/apispec/src/models/QuotaDimension.js +0 -2
  20. package/dist/apispec/src/models/ResourceQuota.d.ts +1 -1
  21. package/dist/apispec/src/models/SSHProxyProjection.d.ts +1 -1
  22. package/dist/apispec/src/models/Sandbox.d.ts +0 -7
  23. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  24. package/dist/apispec/src/models/Sandbox.js +0 -3
  25. package/dist/apispec/src/models/SandboxResourceConfig.d.ts +1 -1
  26. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
  27. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
  28. package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
  29. package/dist/apispec/src/models/WebhookConfig.d.ts +1 -1
  30. package/dist/apispec/src/models/index.d.ts +0 -20
  31. package/dist/apispec/src/models/index.d.ts.map +1 -1
  32. package/dist/apispec/src/models/index.js +0 -20
  33. package/dist/client.d.ts +0 -4
  34. package/dist/client.d.ts.map +1 -1
  35. package/dist/client.js +0 -5
  36. package/dist/index.d.ts +0 -2
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/resources/sandboxes.d.ts +1 -2
  39. package/dist/resources/sandboxes.d.ts.map +1 -1
  40. package/dist/resources/sandboxes.js +0 -3
  41. package/dist/sandbox.d.ts +0 -3
  42. package/dist/sandbox.d.ts.map +1 -1
  43. package/dist/sandbox.js +0 -2
  44. package/dist/sessions.d.ts +0 -20
  45. package/dist/sessions.d.ts.map +1 -1
  46. package/dist/sessions.js +0 -36
  47. package/package.json +1 -1
  48. package/dist/apispec/src/apis/SandboxVolumesApi.d.ts +0 -73
  49. package/dist/apispec/src/apis/SandboxVolumesApi.d.ts.map +0 -1
  50. package/dist/apispec/src/apis/SandboxVolumesApi.js +0 -187
  51. package/dist/apispec/src/apis/SnapshotsApi.d.ts +0 -78
  52. package/dist/apispec/src/apis/SnapshotsApi.d.ts.map +0 -1
  53. package/dist/apispec/src/apis/SnapshotsApi.js +0 -202
  54. package/dist/apispec/src/models/ClaimMountRequest.d.ts +0 -39
  55. package/dist/apispec/src/models/ClaimMountRequest.d.ts.map +0 -1
  56. package/dist/apispec/src/models/ClaimMountRequest.js +0 -47
  57. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +0 -66
  58. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +0 -1
  59. package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +0 -54
  60. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts +0 -84
  61. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts.map +0 -1
  62. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.js +0 -69
  63. package/dist/apispec/src/models/CreateSnapshotRequest.d.ts +0 -39
  64. package/dist/apispec/src/models/CreateSnapshotRequest.d.ts.map +0 -1
  65. package/dist/apispec/src/models/CreateSnapshotRequest.js +0 -45
  66. package/dist/apispec/src/models/ForkVolumeRequest.d.ts +0 -46
  67. package/dist/apispec/src/models/ForkVolumeRequest.d.ts.map +0 -1
  68. package/dist/apispec/src/models/ForkVolumeRequest.js +0 -46
  69. package/dist/apispec/src/models/MountStatus.d.ts +0 -79
  70. package/dist/apispec/src/models/MountStatus.d.ts.map +0 -1
  71. package/dist/apispec/src/models/MountStatus.js +0 -68
  72. package/dist/apispec/src/models/SandboxVolume.d.ts +0 -108
  73. package/dist/apispec/src/models/SandboxVolume.d.ts.map +0 -1
  74. package/dist/apispec/src/models/SandboxVolume.js +0 -80
  75. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts +0 -66
  76. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts.map +0 -1
  77. package/dist/apispec/src/models/SandboxVolumeS3Config.js +0 -61
  78. package/dist/apispec/src/models/Snapshot.d.ts +0 -69
  79. package/dist/apispec/src/models/Snapshot.d.ts.map +0 -1
  80. package/dist/apispec/src/models/Snapshot.js +0 -63
  81. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.d.ts +0 -40
  82. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.d.ts.map +0 -1
  83. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.js +0 -46
  84. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.d.ts +0 -40
  85. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.d.ts.map +0 -1
  86. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.js +0 -46
  87. package/dist/apispec/src/models/SuccessSnapshotListResponse.d.ts +0 -40
  88. package/dist/apispec/src/models/SuccessSnapshotListResponse.d.ts.map +0 -1
  89. package/dist/apispec/src/models/SuccessSnapshotListResponse.js +0 -46
  90. package/dist/apispec/src/models/SuccessSnapshotResponse.d.ts +0 -40
  91. package/dist/apispec/src/models/SuccessSnapshotResponse.d.ts.map +0 -1
  92. package/dist/apispec/src/models/SuccessSnapshotResponse.js +0 -46
  93. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts +0 -40
  94. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +0 -1
  95. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +0 -46
  96. package/dist/apispec/src/models/VolumeAccessMode.d.ts +0 -27
  97. package/dist/apispec/src/models/VolumeAccessMode.d.ts.map +0 -1
  98. package/dist/apispec/src/models/VolumeAccessMode.js +0 -44
  99. package/dist/apispec/src/models/VolumeBackend.d.ts +0 -26
  100. package/dist/apispec/src/models/VolumeBackend.d.ts.map +0 -1
  101. package/dist/apispec/src/models/VolumeBackend.js +0 -43
  102. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts +0 -51
  103. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +0 -1
  104. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +0 -55
  105. package/dist/apispec/src/models/VolumeMountSpec.d.ts +0 -45
  106. package/dist/apispec/src/models/VolumeMountSpec.d.ts.map +0 -1
  107. package/dist/apispec/src/models/VolumeMountSpec.js +0 -49
  108. package/dist/resources/volumes.d.ts +0 -31
  109. package/dist/resources/volumes.d.ts.map +0 -1
  110. package/dist/resources/volumes.js +0 -222
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../src/sandbox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,WAAW,EAGZ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAyB,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AC;YASnD,iBAAiB;CAqBhC"}
package/dist/sandbox.js CHANGED
@@ -274,7 +274,6 @@ export class Sandbox {
274
274
  clusterId;
275
275
  podName;
276
276
  status;
277
- bootstrapMounts;
278
277
  client;
279
278
  replContextByLang = new Map();
280
279
  constructor(params) {
@@ -284,7 +283,6 @@ export class Sandbox {
284
283
  this.clusterId = params.clusterId;
285
284
  this.podName = params.podName ?? "";
286
285
  this.status = params.status ?? "";
287
- this.bootstrapMounts = [...(params.bootstrapMounts ?? [])];
288
286
  }
289
287
  async run(alias, input, options) {
290
288
  if (!input.trim()) {
@@ -9,24 +9,4 @@ export declare class SandboxSession {
9
9
  }, closer: () => Promise<void>);
10
10
  close(): Promise<void>;
11
11
  }
12
- export declare class VolumeSession {
13
- readonly volume: {
14
- id: string;
15
- };
16
- private readonly closer;
17
- private closed;
18
- constructor(volume: {
19
- id: string;
20
- }, closer: () => Promise<void>);
21
- close(): Promise<void>;
22
- }
23
- export declare class MountSession {
24
- readonly volumeId: string;
25
- readonly mountPoint: string;
26
- readonly mountSessionId: string;
27
- private readonly unmount;
28
- private closed;
29
- constructor(volumeId: string, mountPoint: string, mountSessionId: string, unmount: () => Promise<void>);
30
- close(): Promise<void>;
31
- }
32
12
  //# sourceMappingURL=sessions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;aAIP,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJzB,OAAO,CAAC,MAAM,CAAS;gBAGL,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EACtB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAGxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B;AAED,qBAAa,aAAa;aAIN,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJzB,OAAO,CAAC,MAAM,CAAS;gBAGL,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EACrB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAGxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B;AAED,qBAAa,YAAY;aAIL,QAAQ,EAAE,MAAM;aAChB,UAAU,EAAE,MAAM;aAClB,cAAc,EAAE,MAAM;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAN1B,OAAO,CAAC,MAAM,CAAS;gBAGL,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAGzC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B"}
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;aAIP,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJzB,OAAO,CAAC,MAAM,CAAS;gBAGL,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EACtB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAGxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B"}
package/dist/sessions.js CHANGED
@@ -14,39 +14,3 @@ export class SandboxSession {
14
14
  await this.closer();
15
15
  }
16
16
  }
17
- export class VolumeSession {
18
- volume;
19
- closer;
20
- closed = false;
21
- constructor(volume, closer) {
22
- this.volume = volume;
23
- this.closer = closer;
24
- }
25
- async close() {
26
- if (this.closed) {
27
- return;
28
- }
29
- this.closed = true;
30
- await this.closer();
31
- }
32
- }
33
- export class MountSession {
34
- volumeId;
35
- mountPoint;
36
- mountSessionId;
37
- unmount;
38
- closed = false;
39
- constructor(volumeId, mountPoint, mountSessionId, unmount) {
40
- this.volumeId = volumeId;
41
- this.mountPoint = mountPoint;
42
- this.mountSessionId = mountSessionId;
43
- this.unmount = unmount;
44
- }
45
- async close() {
46
- if (this.closed) {
47
- return;
48
- }
49
- this.closed = true;
50
- await this.unmount();
51
- }
52
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandbox0",
3
- "version": "0.9.8",
3
+ "version": "0.10.1",
4
4
  "description": "Sandbox0 JavaScript/TypeScript SDK",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sandbox0 Team",
@@ -1,73 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { CreateSandboxVolumeRequest, ForkVolumeRequest, SuccessDeletedResponse, SuccessSandboxVolumeListResponse, SuccessSandboxVolumeResponse } from '../models/index.js';
14
- export interface ApiV1SandboxvolumesIdDeleteRequest {
15
- id: string;
16
- force?: boolean;
17
- }
18
- export interface ApiV1SandboxvolumesIdForkPostRequest {
19
- id: string;
20
- forkVolumeRequest?: ForkVolumeRequest;
21
- }
22
- export interface ApiV1SandboxvolumesIdGetRequest {
23
- id: string;
24
- }
25
- export interface ApiV1SandboxvolumesPostRequest {
26
- createSandboxVolumeRequest: CreateSandboxVolumeRequest;
27
- }
28
- /**
29
- *
30
- */
31
- export declare class SandboxVolumesApi extends runtime.BaseAPI {
32
- /**
33
- * List sandbox volumes
34
- */
35
- apiV1SandboxvolumesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxVolumeListResponse>>;
36
- /**
37
- * List sandbox volumes
38
- */
39
- apiV1SandboxvolumesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxVolumeListResponse>;
40
- /**
41
- * Delete sandbox volume
42
- */
43
- apiV1SandboxvolumesIdDeleteRaw(requestParameters: ApiV1SandboxvolumesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessDeletedResponse>>;
44
- /**
45
- * Delete sandbox volume
46
- */
47
- apiV1SandboxvolumesIdDelete(requestParameters: ApiV1SandboxvolumesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessDeletedResponse>;
48
- /**
49
- * Fork sandbox volume
50
- */
51
- apiV1SandboxvolumesIdForkPostRaw(requestParameters: ApiV1SandboxvolumesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxVolumeResponse>>;
52
- /**
53
- * Fork sandbox volume
54
- */
55
- apiV1SandboxvolumesIdForkPost(requestParameters: ApiV1SandboxvolumesIdForkPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxVolumeResponse>;
56
- /**
57
- * Get sandbox volume
58
- */
59
- apiV1SandboxvolumesIdGetRaw(requestParameters: ApiV1SandboxvolumesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxVolumeResponse>>;
60
- /**
61
- * Get sandbox volume
62
- */
63
- apiV1SandboxvolumesIdGet(requestParameters: ApiV1SandboxvolumesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxVolumeResponse>;
64
- /**
65
- * Create sandbox volume
66
- */
67
- apiV1SandboxvolumesPostRaw(requestParameters: ApiV1SandboxvolumesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxVolumeResponse>>;
68
- /**
69
- * Create sandbox volume
70
- */
71
- apiV1SandboxvolumesPost(requestParameters: ApiV1SandboxvolumesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxVolumeResponse>;
72
- }
73
- //# sourceMappingURL=SandboxVolumesApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SandboxVolumesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxVolumesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,0BAA0B,EAE1B,iBAAiB,EACjB,sBAAsB,EACtB,gCAAgC,EAChC,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oCAAoC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;CAC1D;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;OAEG;IACG,yBAAyB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IA0B3J;;OAEG;IACG,sBAAsB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAKnI;;OAEG;IACG,8BAA8B,CAAC,iBAAiB,EAAE,kCAAkC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAA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5
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { CreateSandboxVolumeRequestToJSON, ForkVolumeRequestToJSON, SuccessDeletedResponseFromJSON, SuccessSandboxVolumeListResponseFromJSON, SuccessSandboxVolumeResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class SandboxVolumesApi extends runtime.BaseAPI {
20
- /**
21
- * List sandbox volumes
22
- */
23
- async apiV1SandboxvolumesGetRaw(initOverrides) {
24
- const queryParameters = {};
25
- const headerParameters = {};
26
- if (this.configuration && this.configuration.accessToken) {
27
- const token = this.configuration.accessToken;
28
- const tokenString = await token("bearerAuth", []);
29
- if (tokenString) {
30
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
31
- }
32
- }
33
- let urlPath = `/api/v1/sandboxvolumes`;
34
- const response = await this.request({
35
- path: urlPath,
36
- method: 'GET',
37
- headers: headerParameters,
38
- query: queryParameters,
39
- }, initOverrides);
40
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxVolumeListResponseFromJSON(jsonValue));
41
- }
42
- /**
43
- * List sandbox volumes
44
- */
45
- async apiV1SandboxvolumesGet(initOverrides) {
46
- const response = await this.apiV1SandboxvolumesGetRaw(initOverrides);
47
- return await response.value();
48
- }
49
- /**
50
- * Delete sandbox volume
51
- */
52
- async apiV1SandboxvolumesIdDeleteRaw(requestParameters, initOverrides) {
53
- if (requestParameters['id'] == null) {
54
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdDelete().');
55
- }
56
- const queryParameters = {};
57
- if (requestParameters['force'] != null) {
58
- queryParameters['force'] = requestParameters['force'];
59
- }
60
- const headerParameters = {};
61
- if (this.configuration && this.configuration.accessToken) {
62
- const token = this.configuration.accessToken;
63
- const tokenString = await token("bearerAuth", []);
64
- if (tokenString) {
65
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
66
- }
67
- }
68
- let urlPath = `/api/v1/sandboxvolumes/{id}`;
69
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
70
- const response = await this.request({
71
- path: urlPath,
72
- method: 'DELETE',
73
- headers: headerParameters,
74
- query: queryParameters,
75
- }, initOverrides);
76
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessDeletedResponseFromJSON(jsonValue));
77
- }
78
- /**
79
- * Delete sandbox volume
80
- */
81
- async apiV1SandboxvolumesIdDelete(requestParameters, initOverrides) {
82
- const response = await this.apiV1SandboxvolumesIdDeleteRaw(requestParameters, initOverrides);
83
- return await response.value();
84
- }
85
- /**
86
- * Fork sandbox volume
87
- */
88
- async apiV1SandboxvolumesIdForkPostRaw(requestParameters, initOverrides) {
89
- if (requestParameters['id'] == null) {
90
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdForkPost().');
91
- }
92
- const queryParameters = {};
93
- const headerParameters = {};
94
- headerParameters['Content-Type'] = 'application/json';
95
- if (this.configuration && this.configuration.accessToken) {
96
- const token = this.configuration.accessToken;
97
- const tokenString = await token("bearerAuth", []);
98
- if (tokenString) {
99
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
100
- }
101
- }
102
- let urlPath = `/api/v1/sandboxvolumes/{id}/fork`;
103
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
104
- const response = await this.request({
105
- path: urlPath,
106
- method: 'POST',
107
- headers: headerParameters,
108
- query: queryParameters,
109
- body: ForkVolumeRequestToJSON(requestParameters['forkVolumeRequest']),
110
- }, initOverrides);
111
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxVolumeResponseFromJSON(jsonValue));
112
- }
113
- /**
114
- * Fork sandbox volume
115
- */
116
- async apiV1SandboxvolumesIdForkPost(requestParameters, initOverrides) {
117
- const response = await this.apiV1SandboxvolumesIdForkPostRaw(requestParameters, initOverrides);
118
- return await response.value();
119
- }
120
- /**
121
- * Get sandbox volume
122
- */
123
- async apiV1SandboxvolumesIdGetRaw(requestParameters, initOverrides) {
124
- if (requestParameters['id'] == null) {
125
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdGet().');
126
- }
127
- const queryParameters = {};
128
- const headerParameters = {};
129
- if (this.configuration && this.configuration.accessToken) {
130
- const token = this.configuration.accessToken;
131
- const tokenString = await token("bearerAuth", []);
132
- if (tokenString) {
133
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
134
- }
135
- }
136
- let urlPath = `/api/v1/sandboxvolumes/{id}`;
137
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
138
- const response = await this.request({
139
- path: urlPath,
140
- method: 'GET',
141
- headers: headerParameters,
142
- query: queryParameters,
143
- }, initOverrides);
144
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxVolumeResponseFromJSON(jsonValue));
145
- }
146
- /**
147
- * Get sandbox volume
148
- */
149
- async apiV1SandboxvolumesIdGet(requestParameters, initOverrides) {
150
- const response = await this.apiV1SandboxvolumesIdGetRaw(requestParameters, initOverrides);
151
- return await response.value();
152
- }
153
- /**
154
- * Create sandbox volume
155
- */
156
- async apiV1SandboxvolumesPostRaw(requestParameters, initOverrides) {
157
- if (requestParameters['createSandboxVolumeRequest'] == null) {
158
- throw new runtime.RequiredError('createSandboxVolumeRequest', 'Required parameter "createSandboxVolumeRequest" was null or undefined when calling apiV1SandboxvolumesPost().');
159
- }
160
- const queryParameters = {};
161
- const headerParameters = {};
162
- headerParameters['Content-Type'] = 'application/json';
163
- if (this.configuration && this.configuration.accessToken) {
164
- const token = this.configuration.accessToken;
165
- const tokenString = await token("bearerAuth", []);
166
- if (tokenString) {
167
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
168
- }
169
- }
170
- let urlPath = `/api/v1/sandboxvolumes`;
171
- const response = await this.request({
172
- path: urlPath,
173
- method: 'POST',
174
- headers: headerParameters,
175
- query: queryParameters,
176
- body: CreateSandboxVolumeRequestToJSON(requestParameters['createSandboxVolumeRequest']),
177
- }, initOverrides);
178
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxVolumeResponseFromJSON(jsonValue));
179
- }
180
- /**
181
- * Create sandbox volume
182
- */
183
- async apiV1SandboxvolumesPost(requestParameters, initOverrides) {
184
- const response = await this.apiV1SandboxvolumesPostRaw(requestParameters, initOverrides);
185
- return await response.value();
186
- }
187
- }
@@ -1,78 +0,0 @@
1
- /**
2
- * Sandbox0 API
3
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { CreateSnapshotRequest, SuccessDeletedResponse, SuccessRestoreResponse, SuccessSnapshotListResponse, SuccessSnapshotResponse } from '../models/index.js';
14
- export interface ApiV1SandboxvolumesIdSnapshotsGetRequest {
15
- id: string;
16
- }
17
- export interface ApiV1SandboxvolumesIdSnapshotsPostRequest {
18
- id: string;
19
- createSnapshotRequest: CreateSnapshotRequest;
20
- }
21
- export interface ApiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRequest {
22
- id: string;
23
- snapshotId: string;
24
- }
25
- export interface ApiV1SandboxvolumesIdSnapshotsSnapshotIdGetRequest {
26
- id: string;
27
- snapshotId: string;
28
- }
29
- export interface ApiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRequest {
30
- id: string;
31
- snapshotId: string;
32
- }
33
- /**
34
- *
35
- */
36
- export declare class SnapshotsApi extends runtime.BaseAPI {
37
- /**
38
- * List snapshots
39
- */
40
- apiV1SandboxvolumesIdSnapshotsGetRaw(requestParameters: ApiV1SandboxvolumesIdSnapshotsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSnapshotListResponse>>;
41
- /**
42
- * List snapshots
43
- */
44
- apiV1SandboxvolumesIdSnapshotsGet(requestParameters: ApiV1SandboxvolumesIdSnapshotsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSnapshotListResponse>;
45
- /**
46
- * Create snapshot
47
- */
48
- apiV1SandboxvolumesIdSnapshotsPostRaw(requestParameters: ApiV1SandboxvolumesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSnapshotResponse>>;
49
- /**
50
- * Create snapshot
51
- */
52
- apiV1SandboxvolumesIdSnapshotsPost(requestParameters: ApiV1SandboxvolumesIdSnapshotsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSnapshotResponse>;
53
- /**
54
- * Delete snapshot
55
- */
56
- apiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRaw(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessDeletedResponse>>;
57
- /**
58
- * Delete snapshot
59
- */
60
- apiV1SandboxvolumesIdSnapshotsSnapshotIdDelete(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessDeletedResponse>;
61
- /**
62
- * Get snapshot
63
- */
64
- apiV1SandboxvolumesIdSnapshotsSnapshotIdGetRaw(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSnapshotResponse>>;
65
- /**
66
- * Get snapshot
67
- */
68
- apiV1SandboxvolumesIdSnapshotsSnapshotIdGet(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSnapshotResponse>;
69
- /**
70
- * Restore snapshot
71
- */
72
- apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRaw(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessRestoreResponse>>;
73
- /**
74
- * Restore snapshot
75
- */
76
- apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePost(requestParameters: ApiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessRestoreResponse>;
77
- }
78
- //# sourceMappingURL=SnapshotsApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SnapshotsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SnapshotsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,qBAAqB,EAErB,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,wCAAwC;IACrD,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yCAAyC;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,MAAM,WAAW,qDAAqD;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kDAAkD;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0DAA0D;IACvE,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AA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BAAiB,EAAE,kDAAkD,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAKtN;;OAEG;IACG,sDAAsD,CAAC,iBAAiB,EAAE,0DAA0D,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IA0C7P;;OAEG;IACG,mDAAmD,CAAC,iBAAiB,EAAE,0DAA0D,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAKxO"}
@@ -1,202 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sandbox0 API
5
- * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { CreateSnapshotRequestToJSON, SuccessDeletedResponseFromJSON, SuccessRestoreResponseFromJSON, SuccessSnapshotListResponseFromJSON, SuccessSnapshotResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class SnapshotsApi extends runtime.BaseAPI {
20
- /**
21
- * List snapshots
22
- */
23
- async apiV1SandboxvolumesIdSnapshotsGetRaw(requestParameters, initOverrides) {
24
- if (requestParameters['id'] == null) {
25
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsGet().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- if (this.configuration && this.configuration.accessToken) {
30
- const token = this.configuration.accessToken;
31
- const tokenString = await token("bearerAuth", []);
32
- if (tokenString) {
33
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
34
- }
35
- }
36
- let urlPath = `/api/v1/sandboxvolumes/{id}/snapshots`;
37
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
38
- const response = await this.request({
39
- path: urlPath,
40
- method: 'GET',
41
- headers: headerParameters,
42
- query: queryParameters,
43
- }, initOverrides);
44
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSnapshotListResponseFromJSON(jsonValue));
45
- }
46
- /**
47
- * List snapshots
48
- */
49
- async apiV1SandboxvolumesIdSnapshotsGet(requestParameters, initOverrides) {
50
- const response = await this.apiV1SandboxvolumesIdSnapshotsGetRaw(requestParameters, initOverrides);
51
- return await response.value();
52
- }
53
- /**
54
- * Create snapshot
55
- */
56
- async apiV1SandboxvolumesIdSnapshotsPostRaw(requestParameters, initOverrides) {
57
- if (requestParameters['id'] == null) {
58
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsPost().');
59
- }
60
- if (requestParameters['createSnapshotRequest'] == null) {
61
- throw new runtime.RequiredError('createSnapshotRequest', 'Required parameter "createSnapshotRequest" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsPost().');
62
- }
63
- const queryParameters = {};
64
- const headerParameters = {};
65
- headerParameters['Content-Type'] = 'application/json';
66
- if (this.configuration && this.configuration.accessToken) {
67
- const token = this.configuration.accessToken;
68
- const tokenString = await token("bearerAuth", []);
69
- if (tokenString) {
70
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
- }
72
- }
73
- let urlPath = `/api/v1/sandboxvolumes/{id}/snapshots`;
74
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
75
- const response = await this.request({
76
- path: urlPath,
77
- method: 'POST',
78
- headers: headerParameters,
79
- query: queryParameters,
80
- body: CreateSnapshotRequestToJSON(requestParameters['createSnapshotRequest']),
81
- }, initOverrides);
82
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSnapshotResponseFromJSON(jsonValue));
83
- }
84
- /**
85
- * Create snapshot
86
- */
87
- async apiV1SandboxvolumesIdSnapshotsPost(requestParameters, initOverrides) {
88
- const response = await this.apiV1SandboxvolumesIdSnapshotsPostRaw(requestParameters, initOverrides);
89
- return await response.value();
90
- }
91
- /**
92
- * Delete snapshot
93
- */
94
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRaw(requestParameters, initOverrides) {
95
- if (requestParameters['id'] == null) {
96
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdDelete().');
97
- }
98
- if (requestParameters['snapshotId'] == null) {
99
- throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdDelete().');
100
- }
101
- const queryParameters = {};
102
- const headerParameters = {};
103
- if (this.configuration && this.configuration.accessToken) {
104
- const token = this.configuration.accessToken;
105
- const tokenString = await token("bearerAuth", []);
106
- if (tokenString) {
107
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
108
- }
109
- }
110
- let urlPath = `/api/v1/sandboxvolumes/{id}/snapshots/{snapshot_id}`;
111
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
112
- urlPath = urlPath.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(requestParameters['snapshotId'])));
113
- const response = await this.request({
114
- path: urlPath,
115
- method: 'DELETE',
116
- headers: headerParameters,
117
- query: queryParameters,
118
- }, initOverrides);
119
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessDeletedResponseFromJSON(jsonValue));
120
- }
121
- /**
122
- * Delete snapshot
123
- */
124
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdDelete(requestParameters, initOverrides) {
125
- const response = await this.apiV1SandboxvolumesIdSnapshotsSnapshotIdDeleteRaw(requestParameters, initOverrides);
126
- return await response.value();
127
- }
128
- /**
129
- * Get snapshot
130
- */
131
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdGetRaw(requestParameters, initOverrides) {
132
- if (requestParameters['id'] == null) {
133
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdGet().');
134
- }
135
- if (requestParameters['snapshotId'] == null) {
136
- throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdGet().');
137
- }
138
- const queryParameters = {};
139
- const headerParameters = {};
140
- if (this.configuration && this.configuration.accessToken) {
141
- const token = this.configuration.accessToken;
142
- const tokenString = await token("bearerAuth", []);
143
- if (tokenString) {
144
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
145
- }
146
- }
147
- let urlPath = `/api/v1/sandboxvolumes/{id}/snapshots/{snapshot_id}`;
148
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
149
- urlPath = urlPath.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(requestParameters['snapshotId'])));
150
- const response = await this.request({
151
- path: urlPath,
152
- method: 'GET',
153
- headers: headerParameters,
154
- query: queryParameters,
155
- }, initOverrides);
156
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSnapshotResponseFromJSON(jsonValue));
157
- }
158
- /**
159
- * Get snapshot
160
- */
161
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdGet(requestParameters, initOverrides) {
162
- const response = await this.apiV1SandboxvolumesIdSnapshotsSnapshotIdGetRaw(requestParameters, initOverrides);
163
- return await response.value();
164
- }
165
- /**
166
- * Restore snapshot
167
- */
168
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRaw(requestParameters, initOverrides) {
169
- if (requestParameters['id'] == null) {
170
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePost().');
171
- }
172
- if (requestParameters['snapshotId'] == null) {
173
- throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePost().');
174
- }
175
- const queryParameters = {};
176
- const headerParameters = {};
177
- if (this.configuration && this.configuration.accessToken) {
178
- const token = this.configuration.accessToken;
179
- const tokenString = await token("bearerAuth", []);
180
- if (tokenString) {
181
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
182
- }
183
- }
184
- let urlPath = `/api/v1/sandboxvolumes/{id}/snapshots/{snapshot_id}/restore`;
185
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
186
- urlPath = urlPath.replace(`{${"snapshot_id"}}`, encodeURIComponent(String(requestParameters['snapshotId'])));
187
- const response = await this.request({
188
- path: urlPath,
189
- method: 'POST',
190
- headers: headerParameters,
191
- query: queryParameters,
192
- }, initOverrides);
193
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessRestoreResponseFromJSON(jsonValue));
194
- }
195
- /**
196
- * Restore snapshot
197
- */
198
- async apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePost(requestParameters, initOverrides) {
199
- const response = await this.apiV1SandboxvolumesIdSnapshotsSnapshotIdRestorePostRaw(requestParameters, initOverrides);
200
- return await response.value();
201
- }
202
- }