sandbox0 0.3.7 → 0.4.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.
- package/dist/apispec/src/apis/FunctionsApi.d.ts +98 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +284 -1
- package/dist/apispec/src/apis/SandboxesApi.d.ts +5 -30
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +5 -78
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +6 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +2 -0
- package/dist/apispec/src/models/EgressAuthProtocol.d.ts +8 -8
- package/dist/apispec/src/models/EgressAuthProtocol.js +8 -8
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts +46 -0
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyPolicy.js +50 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts +25 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyType.js +42 -0
- package/dist/apispec/src/models/Function.d.ts +12 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +6 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts +12 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +6 -0
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts +13 -1
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRestoreMount.js +4 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts +27 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeState.js +44 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +70 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +62 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +39 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.js +43 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +7 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
- package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
- package/dist/apispec/src/models/Sandbox.d.ts +0 -7
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +0 -3
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRoute.js +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts +60 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayAuth.js → SandboxAppServiceRouteAuth.js} +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts +63 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayCORS.js → SandboxAppServiceRouteCORS.js} +8 -8
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts +39 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayRateLimit.js → SandboxAppServiceRouteRateLimit.js} +8 -8
- package/dist/apispec/src/models/SandboxConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxConfig.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +0 -3
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts +6 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts.map +1 -1
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.js +2 -0
- package/dist/apispec/src/models/TrafficRuleAppProtocol.d.ts +10 -10
- package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
- package/dist/apispec/src/models/index.d.ts +14 -7
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +14 -7
- package/dist/apispec_compat.d.ts +101 -58
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/models.d.ts +1 -6
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/functions.d.ts +9 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +49 -0
- package/package.json +1 -1
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts +0 -60
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts +0 -63
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts +0 -40
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.js +0 -46
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts +0 -39
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts +0 -92
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.js +0 -68
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.js +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.js +0 -50
- package/dist/sandbox_public_gateway.d.ts +0 -10
- package/dist/sandbox_public_gateway.d.ts.map +0 -1
- package/dist/sandbox_public_gateway.js +0 -31
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ClaimRequestToJSON,
|
|
15
|
+
import { ClaimRequestToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxServicesUpdateRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxServicesResponseFromJSON, SuccessSandboxStatusResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -294,79 +294,6 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
294
294
|
const response = await this.apiV1SandboxesIdPausePostRaw(requestParameters, initOverrides);
|
|
295
295
|
return await response.value();
|
|
296
296
|
}
|
|
297
|
-
/**
|
|
298
|
-
* Get sandbox public gateway policy
|
|
299
|
-
*/
|
|
300
|
-
async apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides) {
|
|
301
|
-
if (requestParameters['id'] == null) {
|
|
302
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayGet().');
|
|
303
|
-
}
|
|
304
|
-
const queryParameters = {};
|
|
305
|
-
const headerParameters = {};
|
|
306
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
-
const token = this.configuration.accessToken;
|
|
308
|
-
const tokenString = await token("bearerAuth", []);
|
|
309
|
-
if (tokenString) {
|
|
310
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
314
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
315
|
-
const response = await this.request({
|
|
316
|
-
path: urlPath,
|
|
317
|
-
method: 'GET',
|
|
318
|
-
headers: headerParameters,
|
|
319
|
-
query: queryParameters,
|
|
320
|
-
}, initOverrides);
|
|
321
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Get sandbox public gateway policy
|
|
325
|
-
*/
|
|
326
|
-
async apiV1SandboxesIdPublicGatewayGet(requestParameters, initOverrides) {
|
|
327
|
-
const response = await this.apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides);
|
|
328
|
-
return await response.value();
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
332
|
-
* Update sandbox public gateway policy
|
|
333
|
-
*/
|
|
334
|
-
async apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides) {
|
|
335
|
-
if (requestParameters['id'] == null) {
|
|
336
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
337
|
-
}
|
|
338
|
-
if (requestParameters['publicGatewayConfig'] == null) {
|
|
339
|
-
throw new runtime.RequiredError('publicGatewayConfig', 'Required parameter "publicGatewayConfig" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
340
|
-
}
|
|
341
|
-
const queryParameters = {};
|
|
342
|
-
const headerParameters = {};
|
|
343
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
344
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
345
|
-
const token = this.configuration.accessToken;
|
|
346
|
-
const tokenString = await token("bearerAuth", []);
|
|
347
|
-
if (tokenString) {
|
|
348
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
352
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
353
|
-
const response = await this.request({
|
|
354
|
-
path: urlPath,
|
|
355
|
-
method: 'PUT',
|
|
356
|
-
headers: headerParameters,
|
|
357
|
-
query: queryParameters,
|
|
358
|
-
body: PublicGatewayConfigToJSON(requestParameters['publicGatewayConfig']),
|
|
359
|
-
}, initOverrides);
|
|
360
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
364
|
-
* Update sandbox public gateway policy
|
|
365
|
-
*/
|
|
366
|
-
async apiV1SandboxesIdPublicGatewayPut(requestParameters, initOverrides) {
|
|
367
|
-
const response = await this.apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides);
|
|
368
|
-
return await response.value();
|
|
369
|
-
}
|
|
370
297
|
/**
|
|
371
298
|
* Update sandbox configuration
|
|
372
299
|
*/
|
|
@@ -474,7 +401,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
474
401
|
return await response.value();
|
|
475
402
|
}
|
|
476
403
|
/**
|
|
477
|
-
* Lists
|
|
404
|
+
* Lists sandbox services configured on the sandbox.
|
|
478
405
|
* List sandbox services
|
|
479
406
|
*/
|
|
480
407
|
async apiV1SandboxesIdServicesGetRaw(requestParameters, initOverrides) {
|
|
@@ -501,7 +428,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
501
428
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxServicesResponseFromJSON(jsonValue));
|
|
502
429
|
}
|
|
503
430
|
/**
|
|
504
|
-
* Lists
|
|
431
|
+
* Lists sandbox services configured on the sandbox.
|
|
505
432
|
* List sandbox services
|
|
506
433
|
*/
|
|
507
434
|
async apiV1SandboxesIdServicesGet(requestParameters, initOverrides) {
|
|
@@ -509,7 +436,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
509
436
|
return await response.value();
|
|
510
437
|
}
|
|
511
438
|
/**
|
|
512
|
-
* Replaces the
|
|
439
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
513
440
|
* Replace sandbox services
|
|
514
441
|
*/
|
|
515
442
|
async apiV1SandboxesIdServicesPutRaw(requestParameters, initOverrides) {
|
|
@@ -541,7 +468,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
541
468
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxServicesResponseFromJSON(jsonValue));
|
|
542
469
|
}
|
|
543
470
|
/**
|
|
544
|
-
* Replaces the
|
|
471
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
545
472
|
* Replace sandbox services
|
|
546
473
|
*/
|
|
547
474
|
async apiV1SandboxesIdServicesPut(requestParameters, initOverrides) {
|
|
@@ -16,6 +16,12 @@ import type { VolumeAccessMode } from './VolumeAccessMode.js';
|
|
|
16
16
|
* @interface CreateSandboxVolumeRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateSandboxVolumeRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Optional snapshot ID used to initialize the new volume from immutable snapshot state.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateSandboxVolumeRequest
|
|
23
|
+
*/
|
|
24
|
+
snapshotId?: string;
|
|
19
25
|
/**
|
|
20
26
|
* Default POSIX UID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
|
|
21
27
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
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;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;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,
|
|
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;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;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,CAW3H;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,CAY1I"}
|
|
@@ -26,6 +26,7 @@ export function CreateSandboxVolumeRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
29
30
|
'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
|
|
30
31
|
'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
|
|
31
32
|
'accessMode': json['access_mode'] == null ? undefined : VolumeAccessModeFromJSON(json['access_mode']),
|
|
@@ -39,6 +40,7 @@ export function CreateSandboxVolumeRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
39
40
|
return value;
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
43
|
+
'snapshot_id': value['snapshotId'],
|
|
42
44
|
'default_posix_uid': value['defaultPosixUid'],
|
|
43
45
|
'default_posix_gid': value['defaultPosixGid'],
|
|
44
46
|
'access_mode': VolumeAccessModeToJSON(value['accessMode']),
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const EgressAuthProtocol: {
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
17
|
+
readonly EgressAuthProtocolHttp: "http";
|
|
18
|
+
readonly EgressAuthProtocolHttps: "https";
|
|
19
|
+
readonly EgressAuthProtocolGrpc: "grpc";
|
|
20
|
+
readonly EgressAuthProtocolTls: "tls";
|
|
21
|
+
readonly EgressAuthProtocolSsh: "ssh";
|
|
22
|
+
readonly EgressAuthProtocolSocks5: "socks5";
|
|
23
|
+
readonly EgressAuthProtocolMqtt: "mqtt";
|
|
24
|
+
readonly EgressAuthProtocolRedis: "redis";
|
|
25
25
|
};
|
|
26
26
|
export type EgressAuthProtocol = typeof EgressAuthProtocol[keyof typeof EgressAuthProtocol];
|
|
27
27
|
export declare function instanceOfEgressAuthProtocol(value: any): boolean;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const EgressAuthProtocol = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
EgressAuthProtocolHttp: 'http',
|
|
20
|
+
EgressAuthProtocolHttps: 'https',
|
|
21
|
+
EgressAuthProtocolGrpc: 'grpc',
|
|
22
|
+
EgressAuthProtocolTls: 'tls',
|
|
23
|
+
EgressAuthProtocolSsh: 'ssh',
|
|
24
|
+
EgressAuthProtocolSocks5: 'socks5',
|
|
25
|
+
EgressAuthProtocolMqtt: 'mqtt',
|
|
26
|
+
EgressAuthProtocolRedis: 'redis'
|
|
27
27
|
};
|
|
28
28
|
export function instanceOfEgressAuthProtocol(value) {
|
|
29
29
|
for (const key in EgressAuthProtocol) {
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { EgressProxyType } from './EgressProxyType.js';
|
|
13
|
+
/**
|
|
14
|
+
* Customer-managed transparent egress proxy for allowed TCP traffic.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EgressProxyPolicy
|
|
17
|
+
*/
|
|
18
|
+
export interface EgressProxyPolicy {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {EgressProxyType}
|
|
22
|
+
* @memberof EgressProxyPolicy
|
|
23
|
+
*/
|
|
24
|
+
type: EgressProxyType;
|
|
25
|
+
/**
|
|
26
|
+
* SOCKS5 proxy endpoint in host:port form.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EgressProxyPolicy
|
|
29
|
+
*/
|
|
30
|
+
address: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional credential binding ref using a username_password projection.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EgressProxyPolicy
|
|
35
|
+
*/
|
|
36
|
+
credentialRef?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the EgressProxyPolicy interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEgressProxyPolicy(value: object): value is EgressProxyPolicy;
|
|
42
|
+
export declare function EgressProxyPolicyFromJSON(json: any): EgressProxyPolicy;
|
|
43
|
+
export declare function EgressProxyPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EgressProxyPolicy;
|
|
44
|
+
export declare function EgressProxyPolicyToJSON(json: any): EgressProxyPolicy;
|
|
45
|
+
export declare function EgressProxyPolicyToJSONTyped(value?: EgressProxyPolicy | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=EgressProxyPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EgressProxyPolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/EgressProxyPolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID;;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,CAUzG;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,CAWxH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { EgressProxyTypeFromJSON, EgressProxyTypeToJSON, } from './EgressProxyType.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the EgressProxyPolicy interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfEgressProxyPolicy(value) {
|
|
19
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function EgressProxyPolicyFromJSON(json) {
|
|
26
|
+
return EgressProxyPolicyFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function EgressProxyPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'type': EgressProxyTypeFromJSON(json['type']),
|
|
34
|
+
'address': json['address'],
|
|
35
|
+
'credentialRef': json['credentialRef'] == null ? undefined : json['credentialRef'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function EgressProxyPolicyToJSON(json) {
|
|
39
|
+
return EgressProxyPolicyToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function EgressProxyPolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'type': EgressProxyTypeToJSON(value['type']),
|
|
47
|
+
'address': value['address'],
|
|
48
|
+
'credentialRef': value['credentialRef'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const EgressProxyType: {
|
|
17
|
+
readonly EgressProxyTypeSocks5: "socks5";
|
|
18
|
+
};
|
|
19
|
+
export type EgressProxyType = typeof EgressProxyType[keyof typeof EgressProxyType];
|
|
20
|
+
export declare function instanceOfEgressProxyType(value: any): boolean;
|
|
21
|
+
export declare function EgressProxyTypeFromJSON(json: any): EgressProxyType;
|
|
22
|
+
export declare function EgressProxyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EgressProxyType;
|
|
23
|
+
export declare function EgressProxyTypeToJSON(value?: EgressProxyType | null): any;
|
|
24
|
+
export declare function EgressProxyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): EgressProxyType;
|
|
25
|
+
//# sourceMappingURL=EgressProxyType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EgressProxyType.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/EgressProxyType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,eAAe;;CAElB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGnF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS7D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAErG;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,GAAG,CAEzE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAEpG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const EgressProxyType = {
|
|
19
|
+
EgressProxyTypeSocks5: 'socks5'
|
|
20
|
+
};
|
|
21
|
+
export function instanceOfEgressProxyType(value) {
|
|
22
|
+
for (const key in EgressProxyType) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(EgressProxyType, key)) {
|
|
24
|
+
if (EgressProxyType[key] === value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
export function EgressProxyTypeFromJSON(json) {
|
|
32
|
+
return EgressProxyTypeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function EgressProxyTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
export function EgressProxyTypeToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
export function EgressProxyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
@@ -51,6 +51,12 @@ export interface Function {
|
|
|
51
51
|
* @memberof Function
|
|
52
52
|
*/
|
|
53
53
|
activeRevisionId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof Function
|
|
58
|
+
*/
|
|
59
|
+
enabled: boolean;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {string}
|
|
@@ -69,6 +75,12 @@ export interface Function {
|
|
|
69
75
|
* @memberof Function
|
|
70
76
|
*/
|
|
71
77
|
updatedAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
* Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof Function
|
|
82
|
+
*/
|
|
83
|
+
deletedAt?: Date;
|
|
72
84
|
}
|
|
73
85
|
/**
|
|
74
86
|
* Check if a given object implements the Function interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Function.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Function.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAUnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAkBvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBtG"}
|
|
@@ -25,6 +25,8 @@ export function instanceOfFunction(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('domainLabel' in value) || value['domainLabel'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -45,9 +47,11 @@ export function FunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'slug': json['slug'],
|
|
46
48
|
'domainLabel': json['domain_label'],
|
|
47
49
|
'activeRevisionId': json['active_revision_id'] == null ? undefined : json['active_revision_id'],
|
|
50
|
+
'enabled': json['enabled'],
|
|
48
51
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
49
52
|
'createdAt': (new Date(json['created_at'])),
|
|
50
53
|
'updatedAt': (new Date(json['updated_at'])),
|
|
54
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
export function FunctionToJSON(json) {
|
|
@@ -64,8 +68,10 @@ export function FunctionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
68
|
'slug': value['slug'],
|
|
65
69
|
'domain_label': value['domainLabel'],
|
|
66
70
|
'active_revision_id': value['activeRevisionId'],
|
|
71
|
+
'enabled': value['enabled'],
|
|
67
72
|
'created_by': value['createdBy'],
|
|
68
73
|
'created_at': value['createdAt'].toISOString(),
|
|
69
74
|
'updated_at': value['updatedAt'].toISOString(),
|
|
75
|
+
'deleted_at': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
70
76
|
};
|
|
71
77
|
}
|
|
@@ -51,6 +51,12 @@ export interface FunctionRecord {
|
|
|
51
51
|
* @memberof FunctionRecord
|
|
52
52
|
*/
|
|
53
53
|
activeRevisionId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof FunctionRecord
|
|
58
|
+
*/
|
|
59
|
+
enabled: boolean;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {string}
|
|
@@ -69,6 +75,12 @@ export interface FunctionRecord {
|
|
|
69
75
|
* @memberof FunctionRecord
|
|
70
76
|
*/
|
|
71
77
|
updatedAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
* Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof FunctionRecord
|
|
82
|
+
*/
|
|
83
|
+
deletedAt?: Date;
|
|
72
84
|
/**
|
|
73
85
|
*
|
|
74
86
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionRecord.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRecord.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"FunctionRecord.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRecord.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAY/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAoBnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqBlH"}
|
|
@@ -25,6 +25,8 @@ export function instanceOfFunctionRecord(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('domainLabel' in value) || value['domainLabel'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -49,9 +51,11 @@ export function FunctionRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'slug': json['slug'],
|
|
50
52
|
'domainLabel': json['domain_label'],
|
|
51
53
|
'activeRevisionId': json['active_revision_id'] == null ? undefined : json['active_revision_id'],
|
|
54
|
+
'enabled': json['enabled'],
|
|
52
55
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
53
56
|
'createdAt': (new Date(json['created_at'])),
|
|
54
57
|
'updatedAt': (new Date(json['updated_at'])),
|
|
58
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
55
59
|
'host': json['host'],
|
|
56
60
|
'url': json['url'],
|
|
57
61
|
};
|
|
@@ -70,9 +74,11 @@ export function FunctionRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
74
|
'slug': value['slug'],
|
|
71
75
|
'domain_label': value['domainLabel'],
|
|
72
76
|
'active_revision_id': value['activeRevisionId'],
|
|
77
|
+
'enabled': value['enabled'],
|
|
73
78
|
'created_by': value['createdBy'],
|
|
74
79
|
'created_at': value['createdAt'].toISOString(),
|
|
75
80
|
'updated_at': value['updatedAt'].toISOString(),
|
|
81
|
+
'deleted_at': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
76
82
|
'host': value['host'],
|
|
77
83
|
'url': value['url'],
|
|
78
84
|
};
|
|
@@ -16,11 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface FunctionRestoreMount {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Revision-owned SandboxVolume prepared when the function revision was published.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof FunctionRestoreMount
|
|
22
22
|
*/
|
|
23
23
|
sandboxvolumeId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Source SandboxVolume captured when the function revision was published.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FunctionRestoreMount
|
|
28
|
+
*/
|
|
29
|
+
sourceSandboxvolumeId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Immutable source volume snapshot captured for this function revision.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FunctionRestoreMount
|
|
34
|
+
*/
|
|
35
|
+
snapshotId?: string;
|
|
24
36
|
/**
|
|
25
37
|
*
|
|
26
38
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionRestoreMount.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRestoreMount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"FunctionRestoreMount.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRestoreMount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAW/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY9H"}
|
|
@@ -30,6 +30,8 @@ export function FunctionRestoreMountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'sandboxvolumeId': json['sandboxvolume_id'],
|
|
33
|
+
'sourceSandboxvolumeId': json['source_sandboxvolume_id'] == null ? undefined : json['source_sandboxvolume_id'],
|
|
34
|
+
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
33
35
|
'mountPoint': json['mount_point'],
|
|
34
36
|
};
|
|
35
37
|
}
|
|
@@ -42,6 +44,8 @@ export function FunctionRestoreMountToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
42
44
|
}
|
|
43
45
|
return {
|
|
44
46
|
'sandboxvolume_id': value['sandboxvolumeId'],
|
|
47
|
+
'source_sandboxvolume_id': value['sourceSandboxvolumeId'],
|
|
48
|
+
'snapshot_id': value['snapshotId'],
|
|
45
49
|
'mount_point': value['mountPoint'],
|
|
46
50
|
};
|
|
47
51
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const FunctionRuntimeState: {
|
|
17
|
+
readonly Disabled: "disabled";
|
|
18
|
+
readonly Idle: "idle";
|
|
19
|
+
readonly Active: "active";
|
|
20
|
+
};
|
|
21
|
+
export type FunctionRuntimeState = typeof FunctionRuntimeState[keyof typeof FunctionRuntimeState];
|
|
22
|
+
export declare function instanceOfFunctionRuntimeState(value: any): boolean;
|
|
23
|
+
export declare function FunctionRuntimeStateFromJSON(json: any): FunctionRuntimeState;
|
|
24
|
+
export declare function FunctionRuntimeStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeState;
|
|
25
|
+
export declare function FunctionRuntimeStateToJSON(value?: FunctionRuntimeState | null): any;
|
|
26
|
+
export declare function FunctionRuntimeStateToJSONTyped(value: any, ignoreDiscriminator: boolean): FunctionRuntimeState;
|
|
27
|
+
//# sourceMappingURL=FunctionRuntimeState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRuntimeState.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const FunctionRuntimeState = {
|
|
19
|
+
Disabled: 'disabled',
|
|
20
|
+
Idle: 'idle',
|
|
21
|
+
Active: 'active'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfFunctionRuntimeState(value) {
|
|
24
|
+
for (const key in FunctionRuntimeState) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(FunctionRuntimeState, key)) {
|
|
26
|
+
if (FunctionRuntimeState[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function FunctionRuntimeStateFromJSON(json) {
|
|
34
|
+
return FunctionRuntimeStateFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function FunctionRuntimeStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function FunctionRuntimeStateToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function FunctionRuntimeStateToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|