sandbox0 0.9.7 → 0.10.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.
Files changed (109) 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/QuotaDimension.d.ts +0 -2
  15. package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -1
  16. package/dist/apispec/src/models/QuotaDimension.js +0 -2
  17. package/dist/apispec/src/models/RegistryCredentials.d.ts +12 -0
  18. package/dist/apispec/src/models/RegistryCredentials.d.ts.map +1 -1
  19. package/dist/apispec/src/models/RegistryCredentials.js +4 -0
  20. package/dist/apispec/src/models/ResourceQuota.d.ts +1 -1
  21. package/dist/apispec/src/models/Sandbox.d.ts +0 -7
  22. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  23. package/dist/apispec/src/models/Sandbox.js +0 -3
  24. package/dist/apispec/src/models/SandboxResourceConfig.d.ts +1 -1
  25. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
  26. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
  27. package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
  28. package/dist/apispec/src/models/WebhookConfig.d.ts +1 -1
  29. package/dist/apispec/src/models/index.d.ts +0 -20
  30. package/dist/apispec/src/models/index.d.ts.map +1 -1
  31. package/dist/apispec/src/models/index.js +0 -20
  32. package/dist/client.d.ts +0 -4
  33. package/dist/client.d.ts.map +1 -1
  34. package/dist/client.js +0 -5
  35. package/dist/index.d.ts +0 -2
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/resources/sandboxes.d.ts +1 -2
  38. package/dist/resources/sandboxes.d.ts.map +1 -1
  39. package/dist/resources/sandboxes.js +0 -3
  40. package/dist/sandbox.d.ts +0 -3
  41. package/dist/sandbox.d.ts.map +1 -1
  42. package/dist/sandbox.js +0 -2
  43. package/dist/sessions.d.ts +0 -20
  44. package/dist/sessions.d.ts.map +1 -1
  45. package/dist/sessions.js +0 -36
  46. package/package.json +1 -1
  47. package/dist/apispec/src/apis/SandboxVolumesApi.d.ts +0 -73
  48. package/dist/apispec/src/apis/SandboxVolumesApi.d.ts.map +0 -1
  49. package/dist/apispec/src/apis/SandboxVolumesApi.js +0 -187
  50. package/dist/apispec/src/apis/SnapshotsApi.d.ts +0 -78
  51. package/dist/apispec/src/apis/SnapshotsApi.d.ts.map +0 -1
  52. package/dist/apispec/src/apis/SnapshotsApi.js +0 -202
  53. package/dist/apispec/src/models/ClaimMountRequest.d.ts +0 -39
  54. package/dist/apispec/src/models/ClaimMountRequest.d.ts.map +0 -1
  55. package/dist/apispec/src/models/ClaimMountRequest.js +0 -47
  56. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +0 -66
  57. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +0 -1
  58. package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +0 -54
  59. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts +0 -84
  60. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts.map +0 -1
  61. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.js +0 -69
  62. package/dist/apispec/src/models/CreateSnapshotRequest.d.ts +0 -39
  63. package/dist/apispec/src/models/CreateSnapshotRequest.d.ts.map +0 -1
  64. package/dist/apispec/src/models/CreateSnapshotRequest.js +0 -45
  65. package/dist/apispec/src/models/ForkVolumeRequest.d.ts +0 -46
  66. package/dist/apispec/src/models/ForkVolumeRequest.d.ts.map +0 -1
  67. package/dist/apispec/src/models/ForkVolumeRequest.js +0 -46
  68. package/dist/apispec/src/models/MountStatus.d.ts +0 -79
  69. package/dist/apispec/src/models/MountStatus.d.ts.map +0 -1
  70. package/dist/apispec/src/models/MountStatus.js +0 -68
  71. package/dist/apispec/src/models/SandboxVolume.d.ts +0 -108
  72. package/dist/apispec/src/models/SandboxVolume.d.ts.map +0 -1
  73. package/dist/apispec/src/models/SandboxVolume.js +0 -80
  74. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts +0 -66
  75. package/dist/apispec/src/models/SandboxVolumeS3Config.d.ts.map +0 -1
  76. package/dist/apispec/src/models/SandboxVolumeS3Config.js +0 -61
  77. package/dist/apispec/src/models/Snapshot.d.ts +0 -69
  78. package/dist/apispec/src/models/Snapshot.d.ts.map +0 -1
  79. package/dist/apispec/src/models/Snapshot.js +0 -63
  80. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.d.ts +0 -40
  81. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.d.ts.map +0 -1
  82. package/dist/apispec/src/models/SuccessSandboxVolumeListResponse.js +0 -46
  83. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.d.ts +0 -40
  84. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.d.ts.map +0 -1
  85. package/dist/apispec/src/models/SuccessSandboxVolumeResponse.js +0 -46
  86. package/dist/apispec/src/models/SuccessSnapshotListResponse.d.ts +0 -40
  87. package/dist/apispec/src/models/SuccessSnapshotListResponse.d.ts.map +0 -1
  88. package/dist/apispec/src/models/SuccessSnapshotListResponse.js +0 -46
  89. package/dist/apispec/src/models/SuccessSnapshotResponse.d.ts +0 -40
  90. package/dist/apispec/src/models/SuccessSnapshotResponse.d.ts.map +0 -1
  91. package/dist/apispec/src/models/SuccessSnapshotResponse.js +0 -46
  92. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts +0 -40
  93. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +0 -1
  94. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +0 -46
  95. package/dist/apispec/src/models/VolumeAccessMode.d.ts +0 -27
  96. package/dist/apispec/src/models/VolumeAccessMode.d.ts.map +0 -1
  97. package/dist/apispec/src/models/VolumeAccessMode.js +0 -44
  98. package/dist/apispec/src/models/VolumeBackend.d.ts +0 -26
  99. package/dist/apispec/src/models/VolumeBackend.d.ts.map +0 -1
  100. package/dist/apispec/src/models/VolumeBackend.js +0 -43
  101. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts +0 -51
  102. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +0 -1
  103. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +0 -55
  104. package/dist/apispec/src/models/VolumeMountSpec.d.ts +0 -45
  105. package/dist/apispec/src/models/VolumeMountSpec.d.ts.map +0 -1
  106. package/dist/apispec/src/models/VolumeMountSpec.js +0 -49
  107. package/dist/resources/volumes.d.ts +0 -31
  108. package/dist/resources/volumes.d.ts.map +0 -1
  109. package/dist/resources/volumes.js +0 -222
@@ -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
- }
@@ -1,39 +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
- /**
13
- *
14
- * @export
15
- * @interface ClaimMountRequest
16
- */
17
- export interface ClaimMountRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ClaimMountRequest
22
- */
23
- sandboxvolumeId: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ClaimMountRequest
28
- */
29
- mountPoint: string;
30
- }
31
- /**
32
- * Check if a given object implements the ClaimMountRequest interface.
33
- */
34
- export declare function instanceOfClaimMountRequest(value: object): value is ClaimMountRequest;
35
- export declare function ClaimMountRequestFromJSON(json: any): ClaimMountRequest;
36
- export declare function ClaimMountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClaimMountRequest;
37
- export declare function ClaimMountRequestToJSON(json: any): ClaimMountRequest;
38
- export declare function ClaimMountRequestToJSONTyped(value?: ClaimMountRequest | null, ignoreDiscriminator?: boolean): any;
39
- //# sourceMappingURL=ClaimMountRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClaimMountRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ClaimMountRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"}
@@ -1,47 +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
- /**
15
- * Check if a given object implements the ClaimMountRequest interface.
16
- */
17
- export function instanceOfClaimMountRequest(value) {
18
- if (!('sandboxvolumeId' in value) || value['sandboxvolumeId'] === undefined)
19
- return false;
20
- if (!('mountPoint' in value) || value['mountPoint'] === undefined)
21
- return false;
22
- return true;
23
- }
24
- export function ClaimMountRequestFromJSON(json) {
25
- return ClaimMountRequestFromJSONTyped(json, false);
26
- }
27
- export function ClaimMountRequestFromJSONTyped(json, ignoreDiscriminator) {
28
- if (json == null) {
29
- return json;
30
- }
31
- return {
32
- 'sandboxvolumeId': json['sandboxvolume_id'],
33
- 'mountPoint': json['mount_point'],
34
- };
35
- }
36
- export function ClaimMountRequestToJSON(json) {
37
- return ClaimMountRequestToJSONTyped(json, false);
38
- }
39
- export function ClaimMountRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'sandboxvolume_id': value['sandboxvolumeId'],
45
- 'mount_point': value['mountPoint'],
46
- };
47
- }
@@ -1,66 +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 type { VolumeAccessMode } from './VolumeAccessMode.js';
13
- import type { CreateSandboxVolumeS3Config } from './CreateSandboxVolumeS3Config.js';
14
- import type { VolumeBackend } from './VolumeBackend.js';
15
- /**
16
- *
17
- * @export
18
- * @interface CreateSandboxVolumeRequest
19
- */
20
- export interface CreateSandboxVolumeRequest {
21
- /**
22
- * Optional snapshot ID used to initialize the new volume from immutable snapshot state.
23
- * @type {string}
24
- * @memberof CreateSandboxVolumeRequest
25
- */
26
- snapshotId?: string;
27
- /**
28
- *
29
- * @type {VolumeBackend}
30
- * @memberof CreateSandboxVolumeRequest
31
- */
32
- backend?: VolumeBackend;
33
- /**
34
- *
35
- * @type {CreateSandboxVolumeS3Config}
36
- * @memberof CreateSandboxVolumeRequest
37
- */
38
- s3?: CreateSandboxVolumeS3Config;
39
- /**
40
- * Default POSIX UID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
41
- * @type {number}
42
- * @memberof CreateSandboxVolumeRequest
43
- */
44
- defaultPosixUid?: number;
45
- /**
46
- * Default POSIX GID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
47
- * @type {number}
48
- * @memberof CreateSandboxVolumeRequest
49
- */
50
- defaultPosixGid?: number;
51
- /**
52
- *
53
- * @type {VolumeAccessMode}
54
- * @memberof CreateSandboxVolumeRequest
55
- */
56
- accessMode?: VolumeAccessMode;
57
- }
58
- /**
59
- * Check if a given object implements the CreateSandboxVolumeRequest interface.
60
- */
61
- export declare function instanceOfCreateSandboxVolumeRequest(value: object): value is CreateSandboxVolumeRequest;
62
- export declare function CreateSandboxVolumeRequestFromJSON(json: any): CreateSandboxVolumeRequest;
63
- export declare function CreateSandboxVolumeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSandboxVolumeRequest;
64
- export declare function CreateSandboxVolumeRequestToJSON(json: any): CreateSandboxVolumeRequest;
65
- export declare function CreateSandboxVolumeRequestToJSONTyped(value?: CreateSandboxVolumeRequest | null, ignoreDiscriminator?: boolean): any;
66
- //# sourceMappingURL=CreateSandboxVolumeRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAOjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,EAAE,CAAC,EAAE,2BAA2B,CAAC;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAa3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc1I"}
@@ -1,54 +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 { VolumeAccessModeFromJSON, VolumeAccessModeToJSON, } from './VolumeAccessMode.js';
15
- import { CreateSandboxVolumeS3ConfigFromJSON, CreateSandboxVolumeS3ConfigToJSON, } from './CreateSandboxVolumeS3Config.js';
16
- import { VolumeBackendFromJSON, VolumeBackendToJSON, } from './VolumeBackend.js';
17
- /**
18
- * Check if a given object implements the CreateSandboxVolumeRequest interface.
19
- */
20
- export function instanceOfCreateSandboxVolumeRequest(value) {
21
- return true;
22
- }
23
- export function CreateSandboxVolumeRequestFromJSON(json) {
24
- return CreateSandboxVolumeRequestFromJSONTyped(json, false);
25
- }
26
- export function CreateSandboxVolumeRequestFromJSONTyped(json, ignoreDiscriminator) {
27
- if (json == null) {
28
- return json;
29
- }
30
- return {
31
- 'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
32
- 'backend': json['backend'] == null ? undefined : VolumeBackendFromJSON(json['backend']),
33
- 's3': json['s3'] == null ? undefined : CreateSandboxVolumeS3ConfigFromJSON(json['s3']),
34
- 'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
35
- 'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
36
- 'accessMode': json['access_mode'] == null ? undefined : VolumeAccessModeFromJSON(json['access_mode']),
37
- };
38
- }
39
- export function CreateSandboxVolumeRequestToJSON(json) {
40
- return CreateSandboxVolumeRequestToJSONTyped(json, false);
41
- }
42
- export function CreateSandboxVolumeRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'snapshot_id': value['snapshotId'],
48
- 'backend': VolumeBackendToJSON(value['backend']),
49
- 's3': CreateSandboxVolumeS3ConfigToJSON(value['s3']),
50
- 'default_posix_uid': value['defaultPosixUid'],
51
- 'default_posix_gid': value['defaultPosixGid'],
52
- 'access_mode': VolumeAccessModeToJSON(value['accessMode']),
53
- };
54
- }
@@ -1,84 +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
- /**
13
- *
14
- * @export
15
- * @interface CreateSandboxVolumeS3Config
16
- */
17
- export interface CreateSandboxVolumeS3Config {
18
- /**
19
- * S3-compatible provider. ali is Aliyun OSS; r2 is Cloudflare R2.
20
- * @type {string}
21
- * @memberof CreateSandboxVolumeS3Config
22
- */
23
- provider?: CreateSandboxVolumeS3ConfigProviderEnum;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateSandboxVolumeS3Config
28
- */
29
- bucket: string;
30
- /**
31
- * Optional object key prefix to expose as the volume root.
32
- * @type {string}
33
- * @memberof CreateSandboxVolumeS3Config
34
- */
35
- prefix?: string;
36
- /**
37
- * AWS region for the target bucket. Required for provider aws unless endpoint_url is provided.
38
- * @type {string}
39
- * @memberof CreateSandboxVolumeS3Config
40
- */
41
- region?: string;
42
- /**
43
- * Optional endpoint override. Required for ali and r2. For aws, endpoint_url can be used instead of region for S3-compatible endpoints.
44
- * @type {string}
45
- * @memberof CreateSandboxVolumeS3Config
46
- */
47
- endpointUrl?: string;
48
- /**
49
- * Access key for this S3 backend volume. Required with secret_key. Stored encrypted and omitted from API responses.
50
- * @type {string}
51
- * @memberof CreateSandboxVolumeS3Config
52
- */
53
- accessKey: string;
54
- /**
55
- * Secret key for this S3 backend volume. Required with access_key. Stored encrypted and omitted from API responses.
56
- * @type {string}
57
- * @memberof CreateSandboxVolumeS3Config
58
- */
59
- secretKey: string;
60
- /**
61
- * Optional temporary credential session token.
62
- * @type {string}
63
- * @memberof CreateSandboxVolumeS3Config
64
- */
65
- sessionToken?: string;
66
- }
67
- /**
68
- * @export
69
- */
70
- export declare const CreateSandboxVolumeS3ConfigProviderEnum: {
71
- readonly Aws: "aws";
72
- readonly Ali: "ali";
73
- readonly R2: "r2";
74
- };
75
- export type CreateSandboxVolumeS3ConfigProviderEnum = typeof CreateSandboxVolumeS3ConfigProviderEnum[keyof typeof CreateSandboxVolumeS3ConfigProviderEnum];
76
- /**
77
- * Check if a given object implements the CreateSandboxVolumeS3Config interface.
78
- */
79
- export declare function instanceOfCreateSandboxVolumeS3Config(value: object): value is CreateSandboxVolumeS3Config;
80
- export declare function CreateSandboxVolumeS3ConfigFromJSON(json: any): CreateSandboxVolumeS3Config;
81
- export declare function CreateSandboxVolumeS3ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSandboxVolumeS3Config;
82
- export declare function CreateSandboxVolumeS3ConfigToJSON(json: any): CreateSandboxVolumeS3Config;
83
- export declare function CreateSandboxVolumeS3ConfigToJSONTyped(value?: CreateSandboxVolumeS3Config | null, ignoreDiscriminator?: boolean): any;
84
- //# sourceMappingURL=CreateSandboxVolumeS3Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateSandboxVolumeS3Config.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeS3Config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,uCAAuC,CAAC;IACnD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,OAAO,uCAAuC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAG3J;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAKzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAe7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB5I"}
@@ -1,69 +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
- /**
15
- * @export
16
- */
17
- export const CreateSandboxVolumeS3ConfigProviderEnum = {
18
- Aws: 'aws',
19
- Ali: 'ali',
20
- R2: 'r2'
21
- };
22
- /**
23
- * Check if a given object implements the CreateSandboxVolumeS3Config interface.
24
- */
25
- export function instanceOfCreateSandboxVolumeS3Config(value) {
26
- if (!('bucket' in value) || value['bucket'] === undefined)
27
- return false;
28
- if (!('accessKey' in value) || value['accessKey'] === undefined)
29
- return false;
30
- if (!('secretKey' in value) || value['secretKey'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- export function CreateSandboxVolumeS3ConfigFromJSON(json) {
35
- return CreateSandboxVolumeS3ConfigFromJSONTyped(json, false);
36
- }
37
- export function CreateSandboxVolumeS3ConfigFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'provider': json['provider'] == null ? undefined : json['provider'],
43
- 'bucket': json['bucket'],
44
- 'prefix': json['prefix'] == null ? undefined : json['prefix'],
45
- 'region': json['region'] == null ? undefined : json['region'],
46
- 'endpointUrl': json['endpoint_url'] == null ? undefined : json['endpoint_url'],
47
- 'accessKey': json['access_key'],
48
- 'secretKey': json['secret_key'],
49
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
50
- };
51
- }
52
- export function CreateSandboxVolumeS3ConfigToJSON(json) {
53
- return CreateSandboxVolumeS3ConfigToJSONTyped(json, false);
54
- }
55
- export function CreateSandboxVolumeS3ConfigToJSONTyped(value, ignoreDiscriminator = false) {
56
- if (value == null) {
57
- return value;
58
- }
59
- return {
60
- 'provider': value['provider'],
61
- 'bucket': value['bucket'],
62
- 'prefix': value['prefix'],
63
- 'region': value['region'],
64
- 'endpoint_url': value['endpointUrl'],
65
- 'access_key': value['accessKey'],
66
- 'secret_key': value['secretKey'],
67
- 'session_token': value['sessionToken'],
68
- };
69
- }
@@ -1,39 +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
- /**
13
- *
14
- * @export
15
- * @interface CreateSnapshotRequest
16
- */
17
- export interface CreateSnapshotRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof CreateSnapshotRequest
22
- */
23
- name: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateSnapshotRequest
28
- */
29
- description?: string;
30
- }
31
- /**
32
- * Check if a given object implements the CreateSnapshotRequest interface.
33
- */
34
- export declare function instanceOfCreateSnapshotRequest(value: object): value is CreateSnapshotRequest;
35
- export declare function CreateSnapshotRequestFromJSON(json: any): CreateSnapshotRequest;
36
- export declare function CreateSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSnapshotRequest;
37
- export declare function CreateSnapshotRequestToJSON(json: any): CreateSnapshotRequest;
38
- export declare function CreateSnapshotRequestToJSONTyped(value?: CreateSnapshotRequest | null, ignoreDiscriminator?: boolean): any;
39
- //# sourceMappingURL=CreateSnapshotRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateSnapshotRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSnapshotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CASjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhI"}
@@ -1,45 +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
- /**
15
- * Check if a given object implements the CreateSnapshotRequest interface.
16
- */
17
- export function instanceOfCreateSnapshotRequest(value) {
18
- if (!('name' in value) || value['name'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function CreateSnapshotRequestFromJSON(json) {
23
- return CreateSnapshotRequestFromJSONTyped(json, false);
24
- }
25
- export function CreateSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'name': json['name'],
31
- 'description': json['description'] == null ? undefined : json['description'],
32
- };
33
- }
34
- export function CreateSnapshotRequestToJSON(json) {
35
- return CreateSnapshotRequestToJSONTyped(json, false);
36
- }
37
- export function CreateSnapshotRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'name': value['name'],
43
- 'description': value['description'],
44
- };
45
- }