sandbox0 0.4.0 → 0.4.4
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/FilesApi.d.ts +16 -1
- package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FilesApi.js +47 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts +106 -7
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +292 -7
- package/dist/apispec/src/apis/SandboxesApi.d.ts +1 -0
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +2 -1
- 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 +19 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +11 -0
- package/dist/apispec/src/models/FunctionAutoscaling.d.ts +51 -0
- package/dist/apispec/src/models/FunctionAutoscaling.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionAutoscaling.js +55 -0
- package/dist/apispec/src/models/FunctionCreateRequest.d.ts +7 -0
- package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionCreateRequest.js +3 -0
- package/dist/apispec/src/models/FunctionEnvRef.d.ts +39 -0
- package/dist/apispec/src/models/FunctionEnvRef.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionEnvRef.js +47 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts +19 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +11 -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/FunctionRevision.d.ts +30 -8
- package/dist/apispec/src/models/FunctionRevision.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRevision.js +14 -10
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts +26 -0
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.js +43 -0
- package/dist/apispec/src/models/FunctionRevisionMount.d.ts +66 -0
- package/dist/apispec/src/models/FunctionRevisionMount.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRevisionMount.js +61 -0
- package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts +72 -0
- package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRevisionMountSource.js +61 -0
- package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts +27 -0
- package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRevisionSourceType.js +44 -0
- package/dist/apispec/src/models/FunctionRevisionSpec.d.ts +61 -0
- package/dist/apispec/src/models/FunctionRevisionSpec.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRevisionSpec.js +57 -0
- package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts +107 -0
- package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeEvent.js +81 -0
- package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts +131 -0
- package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeInstance.js +93 -0
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts +28 -0
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.js +45 -0
- package/dist/apispec/src/models/FunctionRuntimePhase.d.ts +31 -0
- package/dist/apispec/src/models/FunctionRuntimePhase.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimePhase.js +48 -0
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts +28 -0
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.js +45 -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 +123 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +89 -0
- package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts +39 -0
- package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionSandboxServiceSource.js +47 -0
- package/dist/apispec/src/models/FunctionSourceRequest.d.ts +33 -3
- package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionSourceRequest.js +13 -6
- package/dist/apispec/src/models/FunctionStaticAsset.d.ts +45 -0
- package/dist/apispec/src/models/FunctionStaticAsset.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionStaticAsset.js +49 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +46 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.js +46 -0
- package/dist/apispec/src/models/MCPProtocolRule.d.ts +34 -0
- package/dist/apispec/src/models/MCPProtocolRule.d.ts.map +1 -0
- package/dist/apispec/src/models/MCPProtocolRule.js +42 -0
- package/dist/apispec/src/models/MCPToolPolicy.d.ts +39 -0
- package/dist/apispec/src/models/MCPToolPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/MCPToolPolicy.js +43 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +16 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
- package/dist/apispec/src/models/NetworkEgressPolicy.js +6 -0
- package/dist/apispec/src/models/ProtocolRule.d.ts +74 -0
- package/dist/apispec/src/models/ProtocolRule.d.ts.map +1 -0
- package/dist/apispec/src/models/ProtocolRule.js +60 -0
- package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts +25 -0
- package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts.map +1 -0
- package/dist/apispec/src/models/ProtocolRuleProtocol.js +42 -0
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +3 -3
- package/dist/apispec/src/models/SandboxPowerState.d.ts +2 -2
- package/dist/apispec/src/models/SandboxPowerState.js +2 -2
- package/dist/apispec/src/models/SandboxSummary.d.ts +1 -0
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +2 -1
- 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/SuccessVolumeFileArchiveImportResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +46 -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/VolumeFileArchiveImportResponse.d.ts +51 -0
- package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +55 -0
- package/dist/apispec/src/models/index.d.ts +31 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +31 -0
- package/dist/apispec_compat.d.ts +226 -20
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/functions.d.ts +14 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +82 -3
- package/dist/resources/volumes.d.ts +2 -1
- package/dist/resources/volumes.d.ts.map +1 -1
- package/dist/resources/volumes.js +9 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,18 @@ export interface Function {
|
|
|
51
52
|
* @memberof Function
|
|
52
53
|
*/
|
|
53
54
|
activeRevisionId?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof Function
|
|
59
|
+
*/
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {FunctionAutoscaling}
|
|
64
|
+
* @memberof Function
|
|
65
|
+
*/
|
|
66
|
+
autoscaling: FunctionAutoscaling;
|
|
54
67
|
/**
|
|
55
68
|
*
|
|
56
69
|
* @type {string}
|
|
@@ -69,6 +82,12 @@ export interface Function {
|
|
|
69
82
|
* @memberof Function
|
|
70
83
|
*/
|
|
71
84
|
updatedAt: Date;
|
|
85
|
+
/**
|
|
86
|
+
* Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof Function
|
|
89
|
+
*/
|
|
90
|
+
deletedAt?: Date;
|
|
72
91
|
}
|
|
73
92
|
/**
|
|
74
93
|
* 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,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;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,WAAW,EAAE,mBAAmB,CAAC;IACjC;;;;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,CAWnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAmBvF;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,CAoBtG"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { FunctionAutoscalingFromJSON, FunctionAutoscalingToJSON, } from './FunctionAutoscaling.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Function interface.
|
|
16
17
|
*/
|
|
@@ -25,6 +26,10 @@ export function instanceOfFunction(value) {
|
|
|
25
26
|
return false;
|
|
26
27
|
if (!('domainLabel' in value) || value['domainLabel'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('autoscaling' in value) || value['autoscaling'] === undefined)
|
|
32
|
+
return false;
|
|
28
33
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
34
|
return false;
|
|
30
35
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -45,9 +50,12 @@ export function FunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
50
|
'slug': json['slug'],
|
|
46
51
|
'domainLabel': json['domain_label'],
|
|
47
52
|
'activeRevisionId': json['active_revision_id'] == null ? undefined : json['active_revision_id'],
|
|
53
|
+
'enabled': json['enabled'],
|
|
54
|
+
'autoscaling': FunctionAutoscalingFromJSON(json['autoscaling']),
|
|
48
55
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
49
56
|
'createdAt': (new Date(json['created_at'])),
|
|
50
57
|
'updatedAt': (new Date(json['updated_at'])),
|
|
58
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
51
59
|
};
|
|
52
60
|
}
|
|
53
61
|
export function FunctionToJSON(json) {
|
|
@@ -64,8 +72,11 @@ export function FunctionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
72
|
'slug': value['slug'],
|
|
65
73
|
'domain_label': value['domainLabel'],
|
|
66
74
|
'active_revision_id': value['activeRevisionId'],
|
|
75
|
+
'enabled': value['enabled'],
|
|
76
|
+
'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
|
|
67
77
|
'created_by': value['createdBy'],
|
|
68
78
|
'created_at': value['createdAt'].toISOString(),
|
|
69
79
|
'updated_at': value['updatedAt'].toISOString(),
|
|
80
|
+
'deleted_at': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
70
81
|
};
|
|
71
82
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Function runtime pool autoscaling settings. target_concurrency is a soft routing and scale-out signal; it is not a strong distributed per-instance concurrency semaphore.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FunctionAutoscaling
|
|
16
|
+
*/
|
|
17
|
+
export interface FunctionAutoscaling {
|
|
18
|
+
/**
|
|
19
|
+
* Minimum ready runtime sandboxes the autoscaler keeps after traffic has created capacity.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof FunctionAutoscaling
|
|
22
|
+
*/
|
|
23
|
+
minWarm: number;
|
|
24
|
+
/**
|
|
25
|
+
* Hard upper bound for active runtime sandboxes for the function.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof FunctionAutoscaling
|
|
28
|
+
*/
|
|
29
|
+
maxActive: number;
|
|
30
|
+
/**
|
|
31
|
+
* Soft per-runtime in-flight request target used for routing and scale-out.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FunctionAutoscaling
|
|
34
|
+
*/
|
|
35
|
+
targetConcurrency: number;
|
|
36
|
+
/**
|
|
37
|
+
* Idle time before the autoscaler removes extra runtime sandboxes above min_warm.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof FunctionAutoscaling
|
|
40
|
+
*/
|
|
41
|
+
scaleDownAfterSeconds: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the FunctionAutoscaling interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfFunctionAutoscaling(value: object): value is FunctionAutoscaling;
|
|
47
|
+
export declare function FunctionAutoscalingFromJSON(json: any): FunctionAutoscaling;
|
|
48
|
+
export declare function FunctionAutoscalingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionAutoscaling;
|
|
49
|
+
export declare function FunctionAutoscalingToJSON(json: any): FunctionAutoscaling;
|
|
50
|
+
export declare function FunctionAutoscalingToJSONTyped(value?: FunctionAutoscaling | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
//# sourceMappingURL=FunctionAutoscaling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionAutoscaling.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionAutoscaling.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAMzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAW7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5H"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 FunctionAutoscaling interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFunctionAutoscaling(value) {
|
|
18
|
+
if (!('minWarm' in value) || value['minWarm'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('maxActive' in value) || value['maxActive'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('targetConcurrency' in value) || value['targetConcurrency'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('scaleDownAfterSeconds' in value) || value['scaleDownAfterSeconds'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function FunctionAutoscalingFromJSON(json) {
|
|
29
|
+
return FunctionAutoscalingFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function FunctionAutoscalingFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'minWarm': json['min_warm'],
|
|
37
|
+
'maxActive': json['max_active'],
|
|
38
|
+
'targetConcurrency': json['target_concurrency'],
|
|
39
|
+
'scaleDownAfterSeconds': json['scale_down_after_seconds'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function FunctionAutoscalingToJSON(json) {
|
|
43
|
+
return FunctionAutoscalingToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function FunctionAutoscalingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'min_warm': value['minWarm'],
|
|
51
|
+
'max_active': value['maxActive'],
|
|
52
|
+
'target_concurrency': value['targetConcurrency'],
|
|
53
|
+
'scale_down_after_seconds': value['scaleDownAfterSeconds'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { FunctionSourceRequest } from './FunctionSourceRequest.js';
|
|
13
|
+
import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -28,6 +29,12 @@ export interface FunctionCreateRequest {
|
|
|
28
29
|
* @memberof FunctionCreateRequest
|
|
29
30
|
*/
|
|
30
31
|
source: FunctionSourceRequest;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {FunctionAutoscaling}
|
|
35
|
+
* @memberof FunctionCreateRequest
|
|
36
|
+
*/
|
|
37
|
+
autoscaling?: FunctionAutoscaling;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* Check if a given object implements the FunctionCreateRequest interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACrC;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,CAUjH;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,CAWhI"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { FunctionSourceRequestFromJSON, FunctionSourceRequestToJSON, } from './FunctionSourceRequest.js';
|
|
15
|
+
import { FunctionAutoscalingFromJSON, FunctionAutoscalingToJSON, } from './FunctionAutoscaling.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the FunctionCreateRequest interface.
|
|
17
18
|
*/
|
|
@@ -30,6 +31,7 @@ export function FunctionCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
31
|
return {
|
|
31
32
|
'name': json['name'] == null ? undefined : json['name'],
|
|
32
33
|
'source': FunctionSourceRequestFromJSON(json['source']),
|
|
34
|
+
'autoscaling': json['autoscaling'] == null ? undefined : FunctionAutoscalingFromJSON(json['autoscaling']),
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
export function FunctionCreateRequestToJSON(json) {
|
|
@@ -42,5 +44,6 @@ export function FunctionCreateRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
42
44
|
return {
|
|
43
45
|
'name': value['name'],
|
|
44
46
|
'source': FunctionSourceRequestToJSON(value['source']),
|
|
47
|
+
'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 FunctionEnvRef
|
|
16
|
+
*/
|
|
17
|
+
export interface FunctionEnvRef {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FunctionEnvRef
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FunctionEnvRef
|
|
28
|
+
*/
|
|
29
|
+
sourceRef: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FunctionEnvRef interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFunctionEnvRef(value: object): value is FunctionEnvRef;
|
|
35
|
+
export declare function FunctionEnvRefFromJSON(json: any): FunctionEnvRef;
|
|
36
|
+
export declare function FunctionEnvRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionEnvRef;
|
|
37
|
+
export declare function FunctionEnvRefToJSON(json: any): FunctionEnvRef;
|
|
38
|
+
export declare function FunctionEnvRefToJSONTyped(value?: FunctionEnvRef | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=FunctionEnvRef.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionEnvRef.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionEnvRef.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CASnG;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,CAUlH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 FunctionEnvRef interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFunctionEnvRef(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('sourceRef' in value) || value['sourceRef'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function FunctionEnvRefFromJSON(json) {
|
|
25
|
+
return FunctionEnvRefFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function FunctionEnvRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'sourceRef': json['source_ref'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function FunctionEnvRefToJSON(json) {
|
|
37
|
+
return FunctionEnvRefToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function FunctionEnvRefToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'source_ref': value['sourceRef'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,18 @@ export interface FunctionRecord {
|
|
|
51
52
|
* @memberof FunctionRecord
|
|
52
53
|
*/
|
|
53
54
|
activeRevisionId?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof FunctionRecord
|
|
59
|
+
*/
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {FunctionAutoscaling}
|
|
64
|
+
* @memberof FunctionRecord
|
|
65
|
+
*/
|
|
66
|
+
autoscaling: FunctionAutoscaling;
|
|
54
67
|
/**
|
|
55
68
|
*
|
|
56
69
|
* @type {string}
|
|
@@ -69,6 +82,12 @@ export interface FunctionRecord {
|
|
|
69
82
|
* @memberof FunctionRecord
|
|
70
83
|
*/
|
|
71
84
|
updatedAt: Date;
|
|
85
|
+
/**
|
|
86
|
+
* Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof FunctionRecord
|
|
89
|
+
*/
|
|
90
|
+
deletedAt?: Date;
|
|
72
91
|
/**
|
|
73
92
|
*
|
|
74
93
|
* @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,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;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,WAAW,EAAE,mBAAmB,CAAC;IACjC;;;;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,CAa/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAqBnG;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,CAsBlH"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { FunctionAutoscalingFromJSON, FunctionAutoscalingToJSON, } from './FunctionAutoscaling.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the FunctionRecord interface.
|
|
16
17
|
*/
|
|
@@ -25,6 +26,10 @@ export function instanceOfFunctionRecord(value) {
|
|
|
25
26
|
return false;
|
|
26
27
|
if (!('domainLabel' in value) || value['domainLabel'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('autoscaling' in value) || value['autoscaling'] === undefined)
|
|
32
|
+
return false;
|
|
28
33
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
34
|
return false;
|
|
30
35
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -49,9 +54,12 @@ export function FunctionRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
54
|
'slug': json['slug'],
|
|
50
55
|
'domainLabel': json['domain_label'],
|
|
51
56
|
'activeRevisionId': json['active_revision_id'] == null ? undefined : json['active_revision_id'],
|
|
57
|
+
'enabled': json['enabled'],
|
|
58
|
+
'autoscaling': FunctionAutoscalingFromJSON(json['autoscaling']),
|
|
52
59
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
53
60
|
'createdAt': (new Date(json['created_at'])),
|
|
54
61
|
'updatedAt': (new Date(json['updated_at'])),
|
|
62
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
55
63
|
'host': json['host'],
|
|
56
64
|
'url': json['url'],
|
|
57
65
|
};
|
|
@@ -70,9 +78,12 @@ export function FunctionRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
78
|
'slug': value['slug'],
|
|
71
79
|
'domain_label': value['domainLabel'],
|
|
72
80
|
'active_revision_id': value['activeRevisionId'],
|
|
81
|
+
'enabled': value['enabled'],
|
|
82
|
+
'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
|
|
73
83
|
'created_by': value['createdBy'],
|
|
74
84
|
'created_at': value['createdAt'].toISOString(),
|
|
75
85
|
'updated_at': value['updatedAt'].toISOString(),
|
|
86
|
+
'deleted_at': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
76
87
|
'host': value['host'],
|
|
77
88
|
'url': value['url'],
|
|
78
89
|
};
|
|
@@ -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
|
}
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { FunctionRevisionSourceType } from './FunctionRevisionSourceType.js';
|
|
12
13
|
import type { SandboxAppService } from './SandboxAppService.js';
|
|
13
14
|
import type { FunctionRestoreMount } from './FunctionRestoreMount.js';
|
|
15
|
+
import type { FunctionRevisionSpec } from './FunctionRevisionSpec.js';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
@@ -43,24 +45,44 @@ export interface FunctionRevision {
|
|
|
43
45
|
revisionNumber: number;
|
|
44
46
|
/**
|
|
45
47
|
*
|
|
46
|
-
* @type {
|
|
48
|
+
* @type {FunctionRevisionSourceType}
|
|
47
49
|
* @memberof FunctionRevision
|
|
48
50
|
*/
|
|
49
|
-
|
|
51
|
+
sourceType: FunctionRevisionSourceType;
|
|
50
52
|
/**
|
|
51
53
|
*
|
|
54
|
+
* @type {FunctionRevisionSpec}
|
|
55
|
+
* @memberof FunctionRevision
|
|
56
|
+
*/
|
|
57
|
+
revisionSpec: FunctionRevisionSpec;
|
|
58
|
+
/**
|
|
59
|
+
* Non-execution metadata describing how the revision spec was produced.
|
|
60
|
+
* @type {{ [key: string]: any; }}
|
|
61
|
+
* @memberof FunctionRevision
|
|
62
|
+
*/
|
|
63
|
+
provenance?: {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Compatibility mirror for sandbox-service revisions.
|
|
52
68
|
* @type {string}
|
|
53
69
|
* @memberof FunctionRevision
|
|
54
70
|
*/
|
|
55
|
-
|
|
71
|
+
sourceSandboxId?: string;
|
|
56
72
|
/**
|
|
57
|
-
*
|
|
73
|
+
* Compatibility mirror for sandbox-service revisions.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof FunctionRevision
|
|
76
|
+
*/
|
|
77
|
+
sourceServiceId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Compatibility mirror of revision_spec.template_id.
|
|
58
80
|
* @type {string}
|
|
59
81
|
* @memberof FunctionRevision
|
|
60
82
|
*/
|
|
61
|
-
sourceTemplateId
|
|
83
|
+
sourceTemplateId?: string;
|
|
62
84
|
/**
|
|
63
|
-
*
|
|
85
|
+
* Compatibility mirror of revision_spec.mounts for prepared SandboxVolume mounts.
|
|
64
86
|
* @type {Array<FunctionRestoreMount>}
|
|
65
87
|
* @memberof FunctionRevision
|
|
66
88
|
*/
|
|
@@ -70,9 +92,9 @@ export interface FunctionRevision {
|
|
|
70
92
|
* @type {SandboxAppService}
|
|
71
93
|
* @memberof FunctionRevision
|
|
72
94
|
*/
|
|
73
|
-
serviceSnapshot
|
|
95
|
+
serviceSnapshot?: SandboxAppService;
|
|
74
96
|
/**
|
|
75
|
-
* Current restored runtime sandbox
|
|
97
|
+
* Current restored runtime sandbox serving the revision, if one exists.
|
|
76
98
|
* @type {string}
|
|
77
99
|
* @memberof FunctionRevision
|
|
78
100
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionRevision.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevision.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionRevision.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevision.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAO/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,UAAU,EAAE,0BAA0B,CAAC;IACvC;;;;OAIG;IACH,YAAY,EAAE,oBAAoB,CAAC;IACnC;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CASnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAwBvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAyBtH"}
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { FunctionRevisionSourceTypeFromJSON, FunctionRevisionSourceTypeToJSON, } from './FunctionRevisionSourceType.js';
|
|
14
15
|
import { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAppService.js';
|
|
15
16
|
import { FunctionRestoreMountFromJSON, FunctionRestoreMountToJSON, } from './FunctionRestoreMount.js';
|
|
17
|
+
import { FunctionRevisionSpecFromJSON, FunctionRevisionSpecToJSON, } from './FunctionRevisionSpec.js';
|
|
16
18
|
/**
|
|
17
19
|
* Check if a given object implements the FunctionRevision interface.
|
|
18
20
|
*/
|
|
@@ -25,13 +27,9 @@ export function instanceOfFunctionRevision(value) {
|
|
|
25
27
|
return false;
|
|
26
28
|
if (!('revisionNumber' in value) || value['revisionNumber'] === undefined)
|
|
27
29
|
return false;
|
|
28
|
-
if (!('
|
|
30
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined)
|
|
29
31
|
return false;
|
|
30
|
-
if (!('
|
|
31
|
-
return false;
|
|
32
|
-
if (!('sourceTemplateId' in value) || value['sourceTemplateId'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('serviceSnapshot' in value) || value['serviceSnapshot'] === undefined)
|
|
32
|
+
if (!('revisionSpec' in value) || value['revisionSpec'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
35
|
return false;
|
|
@@ -49,11 +47,14 @@ export function FunctionRevisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
47
|
'functionId': json['function_id'],
|
|
50
48
|
'teamId': json['team_id'],
|
|
51
49
|
'revisionNumber': json['revision_number'],
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
50
|
+
'sourceType': FunctionRevisionSourceTypeFromJSON(json['source_type']),
|
|
51
|
+
'revisionSpec': FunctionRevisionSpecFromJSON(json['revision_spec']),
|
|
52
|
+
'provenance': json['provenance'] == null ? undefined : json['provenance'],
|
|
53
|
+
'sourceSandboxId': json['source_sandbox_id'] == null ? undefined : json['source_sandbox_id'],
|
|
54
|
+
'sourceServiceId': json['source_service_id'] == null ? undefined : json['source_service_id'],
|
|
55
|
+
'sourceTemplateId': json['source_template_id'] == null ? undefined : json['source_template_id'],
|
|
55
56
|
'restoreMounts': json['restore_mounts'] == null ? undefined : (json['restore_mounts'].map(FunctionRestoreMountFromJSON)),
|
|
56
|
-
'serviceSnapshot': SandboxAppServiceFromJSON(json['service_snapshot']),
|
|
57
|
+
'serviceSnapshot': json['service_snapshot'] == null ? undefined : SandboxAppServiceFromJSON(json['service_snapshot']),
|
|
57
58
|
'runtimeSandboxId': json['runtime_sandbox_id'] == null ? undefined : json['runtime_sandbox_id'],
|
|
58
59
|
'runtimeContextId': json['runtime_context_id'] == null ? undefined : json['runtime_context_id'],
|
|
59
60
|
'runtimeUpdatedAt': json['runtime_updated_at'] == null ? undefined : (new Date(json['runtime_updated_at'])),
|
|
@@ -73,6 +74,9 @@ export function FunctionRevisionToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
73
74
|
'function_id': value['functionId'],
|
|
74
75
|
'team_id': value['teamId'],
|
|
75
76
|
'revision_number': value['revisionNumber'],
|
|
77
|
+
'source_type': FunctionRevisionSourceTypeToJSON(value['sourceType']),
|
|
78
|
+
'revision_spec': FunctionRevisionSpecToJSON(value['revisionSpec']),
|
|
79
|
+
'provenance': value['provenance'],
|
|
76
80
|
'source_sandbox_id': value['sourceSandboxId'],
|
|
77
81
|
'source_service_id': value['sourceServiceId'],
|
|
78
82
|
'source_template_id': value['sourceTemplateId'],
|