sandbox0 0.3.7 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apispec/src/apis/FunctionsApi.d.ts +98 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +284 -1
- package/dist/apispec/src/apis/SandboxesApi.d.ts +5 -30
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +5 -78
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +6 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +2 -0
- package/dist/apispec/src/models/EgressAuthProtocol.d.ts +8 -8
- package/dist/apispec/src/models/EgressAuthProtocol.js +8 -8
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts +46 -0
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyPolicy.js +50 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts +25 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyType.js +42 -0
- package/dist/apispec/src/models/Function.d.ts +12 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +6 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts +12 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +6 -0
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts +13 -1
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRestoreMount.js +4 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts +27 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeState.js +44 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +70 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +62 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +39 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.js +43 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +7 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
- package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
- package/dist/apispec/src/models/Sandbox.d.ts +0 -7
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +0 -3
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRoute.js +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts +60 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteAuth.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayAuth.js → SandboxAppServiceRouteAuth.js} +9 -9
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts +63 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteCORS.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayCORS.js → SandboxAppServiceRouteCORS.js} +8 -8
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts +39 -0
- package/dist/apispec/src/models/SandboxAppServiceRouteRateLimit.d.ts.map +1 -0
- package/dist/apispec/src/models/{PublicGatewayRateLimit.js → SandboxAppServiceRouteRateLimit.js} +8 -8
- package/dist/apispec/src/models/SandboxConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxConfig.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +0 -3
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts +6 -0
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts.map +1 -1
- package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.js +2 -0
- package/dist/apispec/src/models/TrafficRuleAppProtocol.d.ts +10 -10
- package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
- package/dist/apispec/src/models/index.d.ts +14 -7
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +14 -7
- package/dist/apispec_compat.d.ts +101 -58
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/models.d.ts +1 -6
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/functions.d.ts +9 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +49 -0
- package/package.json +1 -1
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts +0 -60
- package/dist/apispec/src/models/PublicGatewayAuth.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts +0 -63
- package/dist/apispec/src/models/PublicGatewayCORS.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts +0 -40
- package/dist/apispec/src/models/PublicGatewayConfig.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayConfig.js +0 -46
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts +0 -39
- package/dist/apispec/src/models/PublicGatewayRateLimit.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts +0 -92
- package/dist/apispec/src/models/PublicGatewayRoute.d.ts.map +0 -1
- package/dist/apispec/src/models/PublicGatewayRoute.js +0 -68
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponse.js +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts +0 -46
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessPublicGatewayResponseAllOfData.js +0 -50
- package/dist/sandbox_public_gateway.d.ts +0 -10
- package/dist/sandbox_public_gateway.d.ts.map +0 -1
- package/dist/sandbox_public_gateway.js +0 -31
|
@@ -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"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PortSpecFromJSON, PortSpecToJSON, } from './PortSpec.js';
|
|
15
|
+
import { EgressProxyPolicyFromJSON, EgressProxyPolicyToJSON, } from './EgressProxyPolicy.js';
|
|
15
16
|
import { EgressCredentialRuleFromJSON, EgressCredentialRuleToJSON, } from './EgressCredentialRule.js';
|
|
16
17
|
import { TrafficRuleFromJSON, TrafficRuleToJSON, } from './TrafficRule.js';
|
|
17
18
|
/**
|
|
@@ -36,6 +37,7 @@ export function NetworkEgressPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'deniedPorts': json['deniedPorts'] == null ? undefined : (json['deniedPorts'].map(PortSpecFromJSON)),
|
|
37
38
|
'trafficRules': json['trafficRules'] == null ? undefined : (json['trafficRules'].map(TrafficRuleFromJSON)),
|
|
38
39
|
'credentialRules': json['credentialRules'] == null ? undefined : (json['credentialRules'].map(EgressCredentialRuleFromJSON)),
|
|
40
|
+
'proxy': json['proxy'] == null ? undefined : EgressProxyPolicyFromJSON(json['proxy']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
export function NetworkEgressPolicyToJSON(json) {
|
|
@@ -54,5 +56,6 @@ export function NetworkEgressPolicyToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
54
56
|
'deniedPorts': value['deniedPorts'] == null ? undefined : (value['deniedPorts'].map(PortSpecToJSON)),
|
|
55
57
|
'trafficRules': value['trafficRules'] == null ? undefined : (value['trafficRules'].map(TrafficRuleToJSON)),
|
|
56
58
|
'credentialRules': value['credentialRules'] == null ? undefined : (value['credentialRules'].map(EgressCredentialRuleToJSON)),
|
|
59
|
+
'proxy': EgressProxyPolicyToJSON(value['proxy']),
|
|
57
60
|
};
|
|
58
61
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import type { SandboxAppService } from './SandboxAppService.js';
|
|
13
13
|
import type { ClaimMountRequest } from './ClaimMountRequest.js';
|
|
14
14
|
import type { SandboxSSHConnection } from './SandboxSSHConnection.js';
|
|
15
|
-
import type { PublicGatewayConfig } from './PublicGatewayConfig.js';
|
|
16
15
|
import type { SandboxPowerState } from './SandboxPowerState.js';
|
|
17
16
|
/**
|
|
18
17
|
*
|
|
@@ -74,12 +73,6 @@ export interface Sandbox {
|
|
|
74
73
|
* @memberof Sandbox
|
|
75
74
|
*/
|
|
76
75
|
services?: Array<SandboxAppService>;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {PublicGatewayConfig}
|
|
80
|
-
* @memberof Sandbox
|
|
81
|
-
*/
|
|
82
|
-
publicGateway?: PublicGatewayConfig;
|
|
83
76
|
/**
|
|
84
77
|
*
|
|
85
78
|
* @type {Array<ClaimMountRequest>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Sandbox.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,GAAG,CAAC,EAAE,oBAAoB,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAcjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAuBrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwBpG"}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
import { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAppService.js';
|
|
15
15
|
import { ClaimMountRequestFromJSON, ClaimMountRequestToJSON, } from './ClaimMountRequest.js';
|
|
16
16
|
import { SandboxSSHConnectionFromJSON, SandboxSSHConnectionToJSON, } from './SandboxSSHConnection.js';
|
|
17
|
-
import { PublicGatewayConfigFromJSON, PublicGatewayConfigToJSON, } from './PublicGatewayConfig.js';
|
|
18
17
|
import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Sandbox interface.
|
|
@@ -63,7 +62,6 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
62
|
'powerState': SandboxPowerStateFromJSON(json['power_state']),
|
|
64
63
|
'autoResume': json['auto_resume'],
|
|
65
64
|
'services': json['services'] == null ? undefined : (json['services'].map(SandboxAppServiceFromJSON)),
|
|
66
|
-
'publicGateway': json['public_gateway'] == null ? undefined : PublicGatewayConfigFromJSON(json['public_gateway']),
|
|
67
65
|
'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(ClaimMountRequestFromJSON)),
|
|
68
66
|
'podName': json['pod_name'],
|
|
69
67
|
'ssh': json['ssh'] == null ? undefined : SandboxSSHConnectionFromJSON(json['ssh']),
|
|
@@ -90,7 +88,6 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
88
|
'power_state': SandboxPowerStateToJSON(value['powerState']),
|
|
91
89
|
'auto_resume': value['autoResume'],
|
|
92
90
|
'services': value['services'] == null ? undefined : (value['services'].map(SandboxAppServiceToJSON)),
|
|
93
|
-
'public_gateway': PublicGatewayConfigToJSON(value['publicGateway']),
|
|
94
91
|
'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(ClaimMountRequestToJSON)),
|
|
95
92
|
'pod_name': value['podName'],
|
|
96
93
|
'ssh': SandboxSSHConnectionToJSON(value['ssh']),
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
12
|
+
import type { SandboxAppServiceRouteCORS } from './SandboxAppServiceRouteCORS.js';
|
|
13
|
+
import type { SandboxAppServiceRouteRateLimit } from './SandboxAppServiceRouteRateLimit.js';
|
|
14
|
+
import type { SandboxAppServiceRouteAuth } from './SandboxAppServiceRouteAuth.js';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -44,22 +44,22 @@ export interface SandboxAppServiceRoute {
|
|
|
44
44
|
rewritePrefix?: string | null;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
|
-
* @type {
|
|
47
|
+
* @type {SandboxAppServiceRouteAuth}
|
|
48
48
|
* @memberof SandboxAppServiceRoute
|
|
49
49
|
*/
|
|
50
|
-
auth?:
|
|
50
|
+
auth?: SandboxAppServiceRouteAuth;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
|
-
* @type {
|
|
53
|
+
* @type {SandboxAppServiceRouteCORS}
|
|
54
54
|
* @memberof SandboxAppServiceRoute
|
|
55
55
|
*/
|
|
56
|
-
cors?:
|
|
56
|
+
cors?: SandboxAppServiceRouteCORS;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
|
-
* @type {
|
|
59
|
+
* @type {SandboxAppServiceRouteRateLimit}
|
|
60
60
|
* @memberof SandboxAppServiceRoute
|
|
61
61
|
*/
|
|
62
|
-
rateLimit?:
|
|
62
|
+
rateLimit?: SandboxAppServiceRouteRateLimit;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxAppServiceRoute.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRoute.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAO/E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAOzF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,+BAA+B,CAAC;IAC5C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAI/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAgBnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBlI"}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { SandboxAppServiceRouteCORSFromJSON, SandboxAppServiceRouteCORSToJSON, } from './SandboxAppServiceRouteCORS.js';
|
|
15
|
+
import { SandboxAppServiceRouteRateLimitFromJSON, SandboxAppServiceRouteRateLimitToJSON, } from './SandboxAppServiceRouteRateLimit.js';
|
|
16
|
+
import { SandboxAppServiceRouteAuthFromJSON, SandboxAppServiceRouteAuthToJSON, } from './SandboxAppServiceRouteAuth.js';
|
|
17
17
|
/**
|
|
18
18
|
* Check if a given object implements the SandboxAppServiceRoute interface.
|
|
19
19
|
*/
|
|
@@ -36,9 +36,9 @@ export function SandboxAppServiceRouteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'pathPrefix': json['path_prefix'] == null ? undefined : json['path_prefix'],
|
|
37
37
|
'methods': json['methods'] == null ? undefined : json['methods'],
|
|
38
38
|
'rewritePrefix': json['rewrite_prefix'] == null ? undefined : json['rewrite_prefix'],
|
|
39
|
-
'auth': json['auth'] == null ? undefined :
|
|
40
|
-
'cors': json['cors'] == null ? undefined :
|
|
41
|
-
'rateLimit': json['rate_limit'] == null ? undefined :
|
|
39
|
+
'auth': json['auth'] == null ? undefined : SandboxAppServiceRouteAuthFromJSON(json['auth']),
|
|
40
|
+
'cors': json['cors'] == null ? undefined : SandboxAppServiceRouteCORSFromJSON(json['cors']),
|
|
41
|
+
'rateLimit': json['rate_limit'] == null ? undefined : SandboxAppServiceRouteRateLimitFromJSON(json['rate_limit']),
|
|
42
42
|
'timeoutSeconds': json['timeout_seconds'] == null ? undefined : json['timeout_seconds'],
|
|
43
43
|
'resume': json['resume'],
|
|
44
44
|
};
|
|
@@ -55,9 +55,9 @@ export function SandboxAppServiceRouteToJSONTyped(value, ignoreDiscriminator = f
|
|
|
55
55
|
'path_prefix': value['pathPrefix'],
|
|
56
56
|
'methods': value['methods'],
|
|
57
57
|
'rewrite_prefix': value['rewritePrefix'],
|
|
58
|
-
'auth':
|
|
59
|
-
'cors':
|
|
60
|
-
'rate_limit':
|
|
58
|
+
'auth': SandboxAppServiceRouteAuthToJSON(value['auth']),
|
|
59
|
+
'cors': SandboxAppServiceRouteCORSToJSON(value['cors']),
|
|
60
|
+
'rate_limit': SandboxAppServiceRouteRateLimitToJSON(value['rateLimit']),
|
|
61
61
|
'timeout_seconds': value['timeoutSeconds'],
|
|
62
62
|
'resume': value['resume'],
|
|
63
63
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 SandboxAppServiceRouteAuth
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxAppServiceRouteAuth {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SandboxAppServiceRouteAuth
|
|
22
|
+
*/
|
|
23
|
+
mode: SandboxAppServiceRouteAuthModeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Hex SHA-256 of the accepted bearer token. Required when mode is bearer.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SandboxAppServiceRouteAuth
|
|
28
|
+
*/
|
|
29
|
+
bearerTokenSha256?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Required header name when mode is header.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SandboxAppServiceRouteAuth
|
|
34
|
+
*/
|
|
35
|
+
headerName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Hex SHA-256 of the required header value when mode is header.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SandboxAppServiceRouteAuth
|
|
40
|
+
*/
|
|
41
|
+
headerValueSha256?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SandboxAppServiceRouteAuthModeEnum: {
|
|
47
|
+
readonly None: "none";
|
|
48
|
+
readonly Bearer: "bearer";
|
|
49
|
+
readonly Header: "header";
|
|
50
|
+
};
|
|
51
|
+
export type SandboxAppServiceRouteAuthModeEnum = typeof SandboxAppServiceRouteAuthModeEnum[keyof typeof SandboxAppServiceRouteAuthModeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SandboxAppServiceRouteAuth interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSandboxAppServiceRouteAuth(value: object): value is SandboxAppServiceRouteAuth;
|
|
56
|
+
export declare function SandboxAppServiceRouteAuthFromJSON(json: any): SandboxAppServiceRouteAuth;
|
|
57
|
+
export declare function SandboxAppServiceRouteAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAppServiceRouteAuth;
|
|
58
|
+
export declare function SandboxAppServiceRouteAuthToJSON(json: any): SandboxAppServiceRouteAuth;
|
|
59
|
+
export declare function SandboxAppServiceRouteAuthToJSONTyped(value?: SandboxAppServiceRouteAuth | null, ignoreDiscriminator?: boolean): any;
|
|
60
|
+
//# sourceMappingURL=SandboxAppServiceRouteAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRouteAuth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRouteAuth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,EAAE,kCAAkC,CAAC;IACzC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAGD;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;CAIrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAG5I;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAGvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAW3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1I"}
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const SandboxAppServiceRouteAuthModeEnum = {
|
|
18
18
|
None: 'none',
|
|
19
19
|
Bearer: 'bearer',
|
|
20
20
|
Header: 'header'
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the SandboxAppServiceRouteAuth interface.
|
|
24
24
|
*/
|
|
25
|
-
export function
|
|
25
|
+
export function instanceOfSandboxAppServiceRouteAuth(value) {
|
|
26
26
|
if (!('mode' in value) || value['mode'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
31
|
-
return
|
|
30
|
+
export function SandboxAppServiceRouteAuthFromJSON(json) {
|
|
31
|
+
return SandboxAppServiceRouteAuthFromJSONTyped(json, false);
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
33
|
+
export function SandboxAppServiceRouteAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
34
|
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
@@ -41,10 +41,10 @@ export function PublicGatewayAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'headerValueSha256': json['header_value_sha256'] == null ? undefined : json['header_value_sha256'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
export function
|
|
45
|
-
return
|
|
44
|
+
export function SandboxAppServiceRouteAuthToJSON(json) {
|
|
45
|
+
return SandboxAppServiceRouteAuthToJSONTyped(json, false);
|
|
46
46
|
}
|
|
47
|
-
export function
|
|
47
|
+
export function SandboxAppServiceRouteAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
48
|
if (value == null) {
|
|
49
49
|
return value;
|
|
50
50
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 SandboxAppServiceRouteCORS
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxAppServiceRouteCORS {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
22
|
+
*/
|
|
23
|
+
allowedOrigins?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
28
|
+
*/
|
|
29
|
+
allowedMethods?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
34
|
+
*/
|
|
35
|
+
allowedHeaders?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
40
|
+
*/
|
|
41
|
+
exposeHeaders?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
46
|
+
*/
|
|
47
|
+
allowCredentials?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SandboxAppServiceRouteCORS
|
|
52
|
+
*/
|
|
53
|
+
maxAgeSeconds?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the SandboxAppServiceRouteCORS interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfSandboxAppServiceRouteCORS(value: object): value is SandboxAppServiceRouteCORS;
|
|
59
|
+
export declare function SandboxAppServiceRouteCORSFromJSON(json: any): SandboxAppServiceRouteCORS;
|
|
60
|
+
export declare function SandboxAppServiceRouteCORSFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAppServiceRouteCORS;
|
|
61
|
+
export declare function SandboxAppServiceRouteCORSToJSON(json: any): SandboxAppServiceRouteCORS;
|
|
62
|
+
export declare function SandboxAppServiceRouteCORSToJSONTyped(value?: SandboxAppServiceRouteCORS | null, ignoreDiscriminator?: boolean): any;
|
|
63
|
+
//# sourceMappingURL=SandboxAppServiceRouteCORS.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRouteCORS.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRouteCORS.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAa3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc1I"}
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the SandboxAppServiceRouteCORS interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfSandboxAppServiceRouteCORS(value) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
|
-
export function
|
|
21
|
-
return
|
|
20
|
+
export function SandboxAppServiceRouteCORSFromJSON(json) {
|
|
21
|
+
return SandboxAppServiceRouteCORSFromJSONTyped(json, false);
|
|
22
22
|
}
|
|
23
|
-
export function
|
|
23
|
+
export function SandboxAppServiceRouteCORSFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
24
|
if (json == null) {
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
@@ -33,10 +33,10 @@ export function PublicGatewayCORSFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'maxAgeSeconds': json['max_age_seconds'] == null ? undefined : json['max_age_seconds'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
36
|
+
export function SandboxAppServiceRouteCORSToJSON(json) {
|
|
37
|
+
return SandboxAppServiceRouteCORSToJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function SandboxAppServiceRouteCORSToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|