sandbox0 0.4.1 → 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 +12 -10
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +12 -10
- 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/Function.d.ts +7 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +5 -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 +7 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +5 -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/FunctionRuntimeStatus.d.ts +55 -2
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +27 -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 +7 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionUpdateRequest.js +3 -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 +9 -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/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/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/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 +20 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +20 -0
- package/dist/apispec_compat.d.ts +145 -2
- 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 +6 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +33 -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
|
@@ -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
|
|
@@ -57,6 +58,12 @@ export interface FunctionRecord {
|
|
|
57
58
|
* @memberof FunctionRecord
|
|
58
59
|
*/
|
|
59
60
|
enabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {FunctionAutoscaling}
|
|
64
|
+
* @memberof FunctionRecord
|
|
65
|
+
*/
|
|
66
|
+
autoscaling: FunctionAutoscaling;
|
|
60
67
|
/**
|
|
61
68
|
*
|
|
62
69
|
* @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,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,
|
|
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
|
*/
|
|
@@ -27,6 +28,8 @@ export function instanceOfFunctionRecord(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('autoscaling' in value) || value['autoscaling'] === undefined)
|
|
32
|
+
return false;
|
|
30
33
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
34
|
return false;
|
|
32
35
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -52,6 +55,7 @@ export function FunctionRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'domainLabel': json['domain_label'],
|
|
53
56
|
'activeRevisionId': json['active_revision_id'] == null ? undefined : json['active_revision_id'],
|
|
54
57
|
'enabled': json['enabled'],
|
|
58
|
+
'autoscaling': FunctionAutoscalingFromJSON(json['autoscaling']),
|
|
55
59
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
56
60
|
'createdAt': (new Date(json['created_at'])),
|
|
57
61
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -75,6 +79,7 @@ export function FunctionRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
79
|
'domain_label': value['domainLabel'],
|
|
76
80
|
'active_revision_id': value['activeRevisionId'],
|
|
77
81
|
'enabled': value['enabled'],
|
|
82
|
+
'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
|
|
78
83
|
'created_by': value['createdBy'],
|
|
79
84
|
'created_at': value['createdAt'].toISOString(),
|
|
80
85
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -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'],
|
|
@@ -0,0 +1,26 @@
|
|
|
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 FunctionRevisionInputSourceType: {
|
|
17
|
+
readonly SandboxService: "sandbox_service";
|
|
18
|
+
readonly RevisionSpec: "revision_spec";
|
|
19
|
+
};
|
|
20
|
+
export type FunctionRevisionInputSourceType = typeof FunctionRevisionInputSourceType[keyof typeof FunctionRevisionInputSourceType];
|
|
21
|
+
export declare function instanceOfFunctionRevisionInputSourceType(value: any): boolean;
|
|
22
|
+
export declare function FunctionRevisionInputSourceTypeFromJSON(json: any): FunctionRevisionInputSourceType;
|
|
23
|
+
export declare function FunctionRevisionInputSourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionInputSourceType;
|
|
24
|
+
export declare function FunctionRevisionInputSourceTypeToJSON(value?: FunctionRevisionInputSourceType | null): any;
|
|
25
|
+
export declare function FunctionRevisionInputSourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): FunctionRevisionInputSourceType;
|
|
26
|
+
//# sourceMappingURL=FunctionRevisionInputSourceType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRevisionInputSourceType.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionInputSourceType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGnI,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS7E;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAElG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CAErI;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,+BAA+B,GAAG,IAAI,GAAG,GAAG,CAEzG;AAED,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CAEpI"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 FunctionRevisionInputSourceType = {
|
|
19
|
+
SandboxService: 'sandbox_service',
|
|
20
|
+
RevisionSpec: 'revision_spec'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfFunctionRevisionInputSourceType(value) {
|
|
23
|
+
for (const key in FunctionRevisionInputSourceType) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(FunctionRevisionInputSourceType, key)) {
|
|
25
|
+
if (FunctionRevisionInputSourceType[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function FunctionRevisionInputSourceTypeFromJSON(json) {
|
|
33
|
+
return FunctionRevisionInputSourceTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function FunctionRevisionInputSourceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function FunctionRevisionInputSourceTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function FunctionRevisionInputSourceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { FunctionRevisionMountSource } from './FunctionRevisionMountSource.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FunctionRevisionMount
|
|
17
|
+
*/
|
|
18
|
+
export interface FunctionRevisionMount {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FunctionRevisionMount
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof FunctionRevisionMount
|
|
29
|
+
*/
|
|
30
|
+
mountPoint: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof FunctionRevisionMount
|
|
35
|
+
*/
|
|
36
|
+
mode?: FunctionRevisionMountModeEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Optional materialization policy such as fork_per_runtime for future artifact/volume flows.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof FunctionRevisionMount
|
|
41
|
+
*/
|
|
42
|
+
materialization?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {FunctionRevisionMountSource}
|
|
46
|
+
* @memberof FunctionRevisionMount
|
|
47
|
+
*/
|
|
48
|
+
source: FunctionRevisionMountSource;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const FunctionRevisionMountModeEnum: {
|
|
54
|
+
readonly ReadOnly: "read_only";
|
|
55
|
+
readonly ReadWrite: "read_write";
|
|
56
|
+
};
|
|
57
|
+
export type FunctionRevisionMountModeEnum = typeof FunctionRevisionMountModeEnum[keyof typeof FunctionRevisionMountModeEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the FunctionRevisionMount interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfFunctionRevisionMount(value: object): value is FunctionRevisionMount;
|
|
62
|
+
export declare function FunctionRevisionMountFromJSON(json: any): FunctionRevisionMount;
|
|
63
|
+
export declare function FunctionRevisionMountFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionMount;
|
|
64
|
+
export declare function FunctionRevisionMountToJSON(json: any): FunctionRevisionMount;
|
|
65
|
+
export declare function FunctionRevisionMountToJSONTyped(value?: FunctionRevisionMount | null, ignoreDiscriminator?: boolean): any;
|
|
66
|
+
//# sourceMappingURL=FunctionRevisionMount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRevisionMount.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionMount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAQjF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,6BAA6B,CAAC;IACrC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,MAAM,EAAE,2BAA2B,CAAC;CACvC;AAGD;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAYjH;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,CAahI"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { FunctionRevisionMountSourceFromJSON, FunctionRevisionMountSourceToJSON, } from './FunctionRevisionMountSource.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const FunctionRevisionMountModeEnum = {
|
|
19
|
+
ReadOnly: 'read_only',
|
|
20
|
+
ReadWrite: 'read_write'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FunctionRevisionMount interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfFunctionRevisionMount(value) {
|
|
26
|
+
if (!('mountPoint' in value) || value['mountPoint'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function FunctionRevisionMountFromJSON(json) {
|
|
33
|
+
return FunctionRevisionMountFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function FunctionRevisionMountFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
41
|
+
'mountPoint': json['mount_point'],
|
|
42
|
+
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
43
|
+
'materialization': json['materialization'] == null ? undefined : json['materialization'],
|
|
44
|
+
'source': FunctionRevisionMountSourceFromJSON(json['source']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function FunctionRevisionMountToJSON(json) {
|
|
48
|
+
return FunctionRevisionMountToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function FunctionRevisionMountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'mount_point': value['mountPoint'],
|
|
57
|
+
'mode': value['mode'],
|
|
58
|
+
'materialization': value['materialization'],
|
|
59
|
+
'source': FunctionRevisionMountSourceToJSON(value['source']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 FunctionRevisionMountSource
|
|
16
|
+
*/
|
|
17
|
+
export interface FunctionRevisionMountSource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FunctionRevisionMountSource
|
|
22
|
+
*/
|
|
23
|
+
type: FunctionRevisionMountSourceTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Prepared SandboxVolume ID available to the runtime claim path.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FunctionRevisionMountSource
|
|
28
|
+
*/
|
|
29
|
+
sandboxvolumeId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Source SandboxVolume captured by a sandbox-service publish.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FunctionRevisionMountSource
|
|
34
|
+
*/
|
|
35
|
+
sourceSandboxvolumeId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Immutable snapshot used to materialize this mount.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FunctionRevisionMountSource
|
|
40
|
+
*/
|
|
41
|
+
snapshotId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Future first-class Function artifact ID.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FunctionRevisionMountSource
|
|
46
|
+
*/
|
|
47
|
+
artifactId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Content digest for artifact-backed sources.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof FunctionRevisionMountSource
|
|
52
|
+
*/
|
|
53
|
+
digest?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const FunctionRevisionMountSourceTypeEnum: {
|
|
59
|
+
readonly SandboxVolume: "sandbox_volume";
|
|
60
|
+
readonly Artifact: "artifact";
|
|
61
|
+
readonly VolumeSnapshot: "volume_snapshot";
|
|
62
|
+
};
|
|
63
|
+
export type FunctionRevisionMountSourceTypeEnum = typeof FunctionRevisionMountSourceTypeEnum[keyof typeof FunctionRevisionMountSourceTypeEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the FunctionRevisionMountSource interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfFunctionRevisionMountSource(value: object): value is FunctionRevisionMountSource;
|
|
68
|
+
export declare function FunctionRevisionMountSourceFromJSON(json: any): FunctionRevisionMountSource;
|
|
69
|
+
export declare function FunctionRevisionMountSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionMountSource;
|
|
70
|
+
export declare function FunctionRevisionMountSourceToJSON(json: any): FunctionRevisionMountSource;
|
|
71
|
+
export declare function FunctionRevisionMountSourceToJSONTyped(value?: FunctionRevisionMountSource | null, ignoreDiscriminator?: boolean): any;
|
|
72
|
+
//# sourceMappingURL=FunctionRevisionMountSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRevisionMountSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionMountSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,IAAI,EAAE,mCAAmC,CAAC;IAC1C;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;CAItC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAG/I;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAa7H;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,CAc5I"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 FunctionRevisionMountSourceTypeEnum = {
|
|
18
|
+
SandboxVolume: 'sandbox_volume',
|
|
19
|
+
Artifact: 'artifact',
|
|
20
|
+
VolumeSnapshot: 'volume_snapshot'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FunctionRevisionMountSource interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfFunctionRevisionMountSource(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function FunctionRevisionMountSourceFromJSON(json) {
|
|
31
|
+
return FunctionRevisionMountSourceFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function FunctionRevisionMountSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'sandboxvolumeId': json['sandboxvolume_id'] == null ? undefined : json['sandboxvolume_id'],
|
|
40
|
+
'sourceSandboxvolumeId': json['source_sandboxvolume_id'] == null ? undefined : json['source_sandboxvolume_id'],
|
|
41
|
+
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
42
|
+
'artifactId': json['artifact_id'] == null ? undefined : json['artifact_id'],
|
|
43
|
+
'digest': json['digest'] == null ? undefined : json['digest'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function FunctionRevisionMountSourceToJSON(json) {
|
|
47
|
+
return FunctionRevisionMountSourceToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function FunctionRevisionMountSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'type': value['type'],
|
|
55
|
+
'sandboxvolume_id': value['sandboxvolumeId'],
|
|
56
|
+
'source_sandboxvolume_id': value['sourceSandboxvolumeId'],
|
|
57
|
+
'snapshot_id': value['snapshotId'],
|
|
58
|
+
'artifact_id': value['artifactId'],
|
|
59
|
+
'digest': value['digest'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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 FunctionRevisionSourceType: {
|
|
17
|
+
readonly SandboxService: "sandbox_service";
|
|
18
|
+
readonly RevisionSpec: "revision_spec";
|
|
19
|
+
readonly Artifact: "artifact";
|
|
20
|
+
};
|
|
21
|
+
export type FunctionRevisionSourceType = typeof FunctionRevisionSourceType[keyof typeof FunctionRevisionSourceType];
|
|
22
|
+
export declare function instanceOfFunctionRevisionSourceType(value: any): boolean;
|
|
23
|
+
export declare function FunctionRevisionSourceTypeFromJSON(json: any): FunctionRevisionSourceType;
|
|
24
|
+
export declare function FunctionRevisionSourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionSourceType;
|
|
25
|
+
export declare function FunctionRevisionSourceTypeToJSON(value?: FunctionRevisionSourceType | null): any;
|
|
26
|
+
export declare function FunctionRevisionSourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): FunctionRevisionSourceType;
|
|
27
|
+
//# sourceMappingURL=FunctionRevisionSourceType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRevisionSourceType.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionSourceType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASxE;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAE3H;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,GAAG,GAAG,CAE/F;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAE1H"}
|