sandbox0 0.4.0 → 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/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/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/TrafficRuleAppProtocol.d.ts +10 -10
- package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
- package/dist/apispec/src/models/index.d.ts +11 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +11 -0
- package/dist/apispec_compat.d.ts +81 -18
- package/dist/apispec_compat.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
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { FunctionRuntimeState } from './FunctionRuntimeState.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FunctionRuntimeStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface FunctionRuntimeStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FunctionRuntimeStatus
|
|
23
|
+
*/
|
|
24
|
+
functionId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof FunctionRuntimeStatus
|
|
29
|
+
*/
|
|
30
|
+
revisionId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof FunctionRuntimeStatus
|
|
35
|
+
*/
|
|
36
|
+
revisionNumber: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {FunctionRuntimeState}
|
|
40
|
+
* @memberof FunctionRuntimeStatus
|
|
41
|
+
*/
|
|
42
|
+
state: FunctionRuntimeState;
|
|
43
|
+
/**
|
|
44
|
+
* Current restored runtime sandbox, if one exists.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof FunctionRuntimeStatus
|
|
47
|
+
*/
|
|
48
|
+
runtimeSandboxId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Current runtime process context, if one exists.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof FunctionRuntimeStatus
|
|
53
|
+
*/
|
|
54
|
+
runtimeContextId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Last time the runtime mapping was updated.
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof FunctionRuntimeStatus
|
|
59
|
+
*/
|
|
60
|
+
runtimeUpdatedAt?: Date;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the FunctionRuntimeStatus interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfFunctionRuntimeStatus(value: object): value is FunctionRuntimeStatus;
|
|
66
|
+
export declare function FunctionRuntimeStatusFromJSON(json: any): FunctionRuntimeStatus;
|
|
67
|
+
export declare function FunctionRuntimeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeStatus;
|
|
68
|
+
export declare function FunctionRuntimeStatusToJSON(json: any): FunctionRuntimeStatus;
|
|
69
|
+
export declare function FunctionRuntimeStatusToJSONTyped(value?: FunctionRuntimeStatus | null, ignoreDiscriminator?: boolean): any;
|
|
70
|
+
//# sourceMappingURL=FunctionRuntimeStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionRuntimeStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;CAC3B;AAID;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAM7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAcjH;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,CAehI"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { FunctionRuntimeStateFromJSON, FunctionRuntimeStateToJSON, } from './FunctionRuntimeState.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the FunctionRuntimeStatus interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfFunctionRuntimeStatus(value) {
|
|
19
|
+
if (!('functionId' in value) || value['functionId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('revisionId' in value) || value['revisionId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('revisionNumber' in value) || value['revisionNumber'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function FunctionRuntimeStatusFromJSON(json) {
|
|
30
|
+
return FunctionRuntimeStatusFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function FunctionRuntimeStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'functionId': json['function_id'],
|
|
38
|
+
'revisionId': json['revision_id'],
|
|
39
|
+
'revisionNumber': json['revision_number'],
|
|
40
|
+
'state': FunctionRuntimeStateFromJSON(json['state']),
|
|
41
|
+
'runtimeSandboxId': json['runtime_sandbox_id'] == null ? undefined : json['runtime_sandbox_id'],
|
|
42
|
+
'runtimeContextId': json['runtime_context_id'] == null ? undefined : json['runtime_context_id'],
|
|
43
|
+
'runtimeUpdatedAt': json['runtime_updated_at'] == null ? undefined : (new Date(json['runtime_updated_at'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function FunctionRuntimeStatusToJSON(json) {
|
|
47
|
+
return FunctionRuntimeStatusToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function FunctionRuntimeStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'function_id': value['functionId'],
|
|
55
|
+
'revision_id': value['revisionId'],
|
|
56
|
+
'revision_number': value['revisionNumber'],
|
|
57
|
+
'state': FunctionRuntimeStateToJSON(value['state']),
|
|
58
|
+
'runtime_sandbox_id': value['runtimeSandboxId'],
|
|
59
|
+
'runtime_context_id': value['runtimeContextId'],
|
|
60
|
+
'runtime_updated_at': value['runtimeUpdatedAt'] == null ? value['runtimeUpdatedAt'] : value['runtimeUpdatedAt'].toISOString(),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 FunctionUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface FunctionUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Mutable function display name. Slug and domain label stay stable.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FunctionUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the function host should serve traffic. Disabled functions do not restore runtime sandboxes.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof FunctionUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FunctionUpdateRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFunctionUpdateRequest(value: object): value is FunctionUpdateRequest;
|
|
35
|
+
export declare function FunctionUpdateRequestFromJSON(json: any): FunctionUpdateRequest;
|
|
36
|
+
export declare function FunctionUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionUpdateRequest;
|
|
37
|
+
export declare function FunctionUpdateRequestToJSON(json: any): FunctionUpdateRequest;
|
|
38
|
+
export declare function FunctionUpdateRequestToJSONTyped(value?: FunctionUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=FunctionUpdateRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionUpdateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionUpdateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CASjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhI"}
|
|
@@ -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
|
+
* Check if a given object implements the FunctionUpdateRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFunctionUpdateRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function FunctionUpdateRequestFromJSON(json) {
|
|
21
|
+
return FunctionUpdateRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function FunctionUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function FunctionUpdateRequestToJSON(json) {
|
|
33
|
+
return FunctionUpdateRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function FunctionUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value['name'],
|
|
41
|
+
'enabled': value['enabled'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PortSpec } from './PortSpec.js';
|
|
13
|
+
import type { EgressProxyPolicy } from './EgressProxyPolicy.js';
|
|
13
14
|
import type { EgressCredentialRule } from './EgressCredentialRule.js';
|
|
14
15
|
import type { TrafficRule } from './TrafficRule.js';
|
|
15
16
|
/**
|
|
@@ -82,6 +83,12 @@ export interface NetworkEgressPolicy {
|
|
|
82
83
|
* @memberof NetworkEgressPolicy
|
|
83
84
|
*/
|
|
84
85
|
credentialRules?: Array<EgressCredentialRule>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {EgressProxyPolicy}
|
|
89
|
+
* @memberof NetworkEgressPolicy
|
|
90
|
+
*/
|
|
91
|
+
proxy?: EgressProxyPolicy;
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* Check if a given object implements the NetworkEgressPolicy interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkEgressPolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/NetworkEgressPolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NetworkEgressPolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/NetworkEgressPolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAClC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAgB7G;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,CAiB5H"}
|