sandbox0 0.3.7 → 0.4.0
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/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/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/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/index.d.ts +3 -7
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +3 -7
- package/dist/apispec_compat.d.ts +20 -40
- 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/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
|
@@ -1,46 +0,0 @@
|
|
|
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 { PublicGatewayRouteFromJSON, PublicGatewayRouteToJSON, } from './PublicGatewayRoute.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the PublicGatewayConfig interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfPublicGatewayConfig(value) {
|
|
19
|
-
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function PublicGatewayConfigFromJSON(json) {
|
|
24
|
-
return PublicGatewayConfigFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function PublicGatewayConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'enabled': json['enabled'],
|
|
32
|
-
'routes': json['routes'] == null ? undefined : (json['routes'].map(PublicGatewayRouteFromJSON)),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function PublicGatewayConfigToJSON(json) {
|
|
36
|
-
return PublicGatewayConfigToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function PublicGatewayConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'enabled': value['enabled'],
|
|
44
|
-
'routes': value['routes'] == null ? undefined : (value['routes'].map(PublicGatewayRouteToJSON)),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 PublicGatewayRateLimit
|
|
16
|
-
*/
|
|
17
|
-
export interface PublicGatewayRateLimit {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof PublicGatewayRateLimit
|
|
22
|
-
*/
|
|
23
|
-
rps: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof PublicGatewayRateLimit
|
|
28
|
-
*/
|
|
29
|
-
burst: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the PublicGatewayRateLimit interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPublicGatewayRateLimit(value: object): value is PublicGatewayRateLimit;
|
|
35
|
-
export declare function PublicGatewayRateLimitFromJSON(json: any): PublicGatewayRateLimit;
|
|
36
|
-
export declare function PublicGatewayRateLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayRateLimit;
|
|
37
|
-
export declare function PublicGatewayRateLimitToJSON(json: any): PublicGatewayRateLimit;
|
|
38
|
-
export declare function PublicGatewayRateLimitToJSONTyped(value?: PublicGatewayRateLimit | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=PublicGatewayRateLimit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayRateLimit.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayRateLimit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;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,CASnH;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,CAUlI"}
|
|
@@ -1,92 +0,0 @@
|
|
|
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 { PublicGatewayRateLimit } from './PublicGatewayRateLimit.js';
|
|
13
|
-
import type { PublicGatewayCORS } from './PublicGatewayCORS.js';
|
|
14
|
-
import type { PublicGatewayAuth } from './PublicGatewayAuth.js';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface PublicGatewayRoute
|
|
19
|
-
*/
|
|
20
|
-
export interface PublicGatewayRoute {
|
|
21
|
-
/**
|
|
22
|
-
* Stable route id. Must be a DNS label and unique within the sandbox policy.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof PublicGatewayRoute
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof PublicGatewayRoute
|
|
31
|
-
*/
|
|
32
|
-
port: number;
|
|
33
|
-
/**
|
|
34
|
-
* Request path prefix matched before proxying to the sandbox port.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof PublicGatewayRoute
|
|
37
|
-
*/
|
|
38
|
-
pathPrefix?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Allowed HTTP methods. Empty allows every method.
|
|
41
|
-
* @type {Array<string>}
|
|
42
|
-
* @memberof PublicGatewayRoute
|
|
43
|
-
*/
|
|
44
|
-
methods?: Array<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Optional replacement prefix applied before proxying.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof PublicGatewayRoute
|
|
49
|
-
*/
|
|
50
|
-
rewritePrefix?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {PublicGatewayAuth}
|
|
54
|
-
* @memberof PublicGatewayRoute
|
|
55
|
-
*/
|
|
56
|
-
auth?: PublicGatewayAuth;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {PublicGatewayCORS}
|
|
60
|
-
* @memberof PublicGatewayRoute
|
|
61
|
-
*/
|
|
62
|
-
cors?: PublicGatewayCORS;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {PublicGatewayRateLimit}
|
|
66
|
-
* @memberof PublicGatewayRoute
|
|
67
|
-
*/
|
|
68
|
-
rateLimit?: PublicGatewayRateLimit;
|
|
69
|
-
/**
|
|
70
|
-
* Per-route upstream timeout in seconds. Zero disables the route override.
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof PublicGatewayRoute
|
|
73
|
-
*/
|
|
74
|
-
timeoutSeconds?: number;
|
|
75
|
-
/**
|
|
76
|
-
* Route-level resume gate for public gateway traffic. Evaluated only when
|
|
77
|
-
* sandbox auto_resume is true.
|
|
78
|
-
*
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @memberof PublicGatewayRoute
|
|
81
|
-
*/
|
|
82
|
-
resume: boolean;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Check if a given object implements the PublicGatewayRoute interface.
|
|
86
|
-
*/
|
|
87
|
-
export declare function instanceOfPublicGatewayRoute(value: object): value is PublicGatewayRoute;
|
|
88
|
-
export declare function PublicGatewayRouteFromJSON(json: any): PublicGatewayRoute;
|
|
89
|
-
export declare function PublicGatewayRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicGatewayRoute;
|
|
90
|
-
export declare function PublicGatewayRouteToJSON(json: any): PublicGatewayRoute;
|
|
91
|
-
export declare function PublicGatewayRouteToJSONTyped(value?: PublicGatewayRoute | null, ignoreDiscriminator?: boolean): any;
|
|
92
|
-
//# sourceMappingURL=PublicGatewayRoute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublicGatewayRoute.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PublicGatewayRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAOvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;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,iBAAiB,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,MAAM,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAKvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAiB3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkB1H"}
|
|
@@ -1,68 +0,0 @@
|
|
|
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 { PublicGatewayRateLimitFromJSON, PublicGatewayRateLimitToJSON, } from './PublicGatewayRateLimit.js';
|
|
15
|
-
import { PublicGatewayCORSFromJSON, PublicGatewayCORSToJSON, } from './PublicGatewayCORS.js';
|
|
16
|
-
import { PublicGatewayAuthFromJSON, PublicGatewayAuthToJSON, } from './PublicGatewayAuth.js';
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the PublicGatewayRoute interface.
|
|
19
|
-
*/
|
|
20
|
-
export function instanceOfPublicGatewayRoute(value) {
|
|
21
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('port' in value) || value['port'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
if (!('resume' in value) || value['resume'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
export function PublicGatewayRouteFromJSON(json) {
|
|
30
|
-
return PublicGatewayRouteFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
export function PublicGatewayRouteFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'],
|
|
38
|
-
'port': json['port'],
|
|
39
|
-
'pathPrefix': json['path_prefix'] == null ? undefined : json['path_prefix'],
|
|
40
|
-
'methods': json['methods'] == null ? undefined : json['methods'],
|
|
41
|
-
'rewritePrefix': json['rewrite_prefix'] == null ? undefined : json['rewrite_prefix'],
|
|
42
|
-
'auth': json['auth'] == null ? undefined : PublicGatewayAuthFromJSON(json['auth']),
|
|
43
|
-
'cors': json['cors'] == null ? undefined : PublicGatewayCORSFromJSON(json['cors']),
|
|
44
|
-
'rateLimit': json['rate_limit'] == null ? undefined : PublicGatewayRateLimitFromJSON(json['rate_limit']),
|
|
45
|
-
'timeoutSeconds': json['timeout_seconds'] == null ? undefined : json['timeout_seconds'],
|
|
46
|
-
'resume': json['resume'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export function PublicGatewayRouteToJSON(json) {
|
|
50
|
-
return PublicGatewayRouteToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
export function PublicGatewayRouteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'id': value['id'],
|
|
58
|
-
'port': value['port'],
|
|
59
|
-
'path_prefix': value['pathPrefix'],
|
|
60
|
-
'methods': value['methods'],
|
|
61
|
-
'rewrite_prefix': value['rewritePrefix'],
|
|
62
|
-
'auth': PublicGatewayAuthToJSON(value['auth']),
|
|
63
|
-
'cors': PublicGatewayCORSToJSON(value['cors']),
|
|
64
|
-
'rate_limit': PublicGatewayRateLimitToJSON(value['rateLimit']),
|
|
65
|
-
'timeout_seconds': value['timeoutSeconds'],
|
|
66
|
-
'resume': value['resume'],
|
|
67
|
-
};
|
|
68
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { SuccessPublicGatewayResponseAllOfData } from './SuccessPublicGatewayResponseAllOfData.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SuccessPublicGatewayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface SuccessPublicGatewayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof SuccessPublicGatewayResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {SuccessPublicGatewayResponseAllOfData}
|
|
28
|
-
* @memberof SuccessPublicGatewayResponse
|
|
29
|
-
*/
|
|
30
|
-
data?: SuccessPublicGatewayResponseAllOfData;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the SuccessPublicGatewayResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfSuccessPublicGatewayResponse(value: object): value is SuccessPublicGatewayResponse;
|
|
36
|
-
export declare function SuccessPublicGatewayResponseFromJSON(json: any): SuccessPublicGatewayResponse;
|
|
37
|
-
export declare function SuccessPublicGatewayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessPublicGatewayResponse;
|
|
38
|
-
export declare function SuccessPublicGatewayResponseToJSON(json: any): SuccessPublicGatewayResponse;
|
|
39
|
-
export declare function SuccessPublicGatewayResponseToJSONTyped(value?: SuccessPublicGatewayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
-
//# sourceMappingURL=SuccessPublicGatewayResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessPublicGatewayResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessPublicGatewayResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAQrG;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,qCAAqC,CAAC;CAChD;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { SuccessPublicGatewayResponseAllOfDataFromJSON, SuccessPublicGatewayResponseAllOfDataToJSON, } from './SuccessPublicGatewayResponseAllOfData.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessPublicGatewayResponse interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessPublicGatewayResponse(value) {
|
|
19
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function SuccessPublicGatewayResponseFromJSON(json) {
|
|
24
|
-
return SuccessPublicGatewayResponseFromJSONTyped(json, false);
|
|
25
|
-
}
|
|
26
|
-
export function SuccessPublicGatewayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
-
if (json == null) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
'success': json['success'],
|
|
32
|
-
'data': json['data'] == null ? undefined : SuccessPublicGatewayResponseAllOfDataFromJSON(json['data']),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export function SuccessPublicGatewayResponseToJSON(json) {
|
|
36
|
-
return SuccessPublicGatewayResponseToJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
export function SuccessPublicGatewayResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'success': value['success'],
|
|
44
|
-
'data': SuccessPublicGatewayResponseAllOfDataToJSON(value['data']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { PublicGatewayConfig } from './PublicGatewayConfig.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SuccessPublicGatewayResponseAllOfData
|
|
17
|
-
*/
|
|
18
|
-
export interface SuccessPublicGatewayResponseAllOfData {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SuccessPublicGatewayResponseAllOfData
|
|
23
|
-
*/
|
|
24
|
-
sandboxId: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {PublicGatewayConfig}
|
|
28
|
-
* @memberof SuccessPublicGatewayResponseAllOfData
|
|
29
|
-
*/
|
|
30
|
-
publicGateway: PublicGatewayConfig;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof SuccessPublicGatewayResponseAllOfData
|
|
35
|
-
*/
|
|
36
|
-
exposureDomain?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the SuccessPublicGatewayResponseAllOfData interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfSuccessPublicGatewayResponseAllOfData(value: object): value is SuccessPublicGatewayResponseAllOfData;
|
|
42
|
-
export declare function SuccessPublicGatewayResponseAllOfDataFromJSON(json: any): SuccessPublicGatewayResponseAllOfData;
|
|
43
|
-
export declare function SuccessPublicGatewayResponseAllOfDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessPublicGatewayResponseAllOfData;
|
|
44
|
-
export declare function SuccessPublicGatewayResponseAllOfDataToJSON(json: any): SuccessPublicGatewayResponseAllOfData;
|
|
45
|
-
export declare function SuccessPublicGatewayResponseAllOfDataToJSONTyped(value?: SuccessPublicGatewayResponseAllOfData | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
-
//# sourceMappingURL=SuccessPublicGatewayResponseAllOfData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessPublicGatewayResponseAllOfData.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SuccessPublicGatewayResponseAllOfData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,qCAAqC;IAClD;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,mBAAmB,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qCAAqC,CAI7H;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,GAAG,qCAAqC,CAE9G;AAED,wBAAgB,kDAAkD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qCAAqC,CAUjJ;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,GAAG,qCAAqC,CAE5G;AAED,wBAAgB,gDAAgD,CAAC,KAAK,CAAC,EAAE,qCAAqC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhK"}
|
|
@@ -1,50 +0,0 @@
|
|
|
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 { PublicGatewayConfigFromJSON, PublicGatewayConfigToJSON, } from './PublicGatewayConfig.js';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the SuccessPublicGatewayResponseAllOfData interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfSuccessPublicGatewayResponseAllOfData(value) {
|
|
19
|
-
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('publicGateway' in value) || value['publicGateway'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
export function SuccessPublicGatewayResponseAllOfDataFromJSON(json) {
|
|
26
|
-
return SuccessPublicGatewayResponseAllOfDataFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
export function SuccessPublicGatewayResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'sandboxId': json['sandbox_id'],
|
|
34
|
-
'publicGateway': PublicGatewayConfigFromJSON(json['public_gateway']),
|
|
35
|
-
'exposureDomain': json['exposure_domain'] == null ? undefined : json['exposure_domain'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function SuccessPublicGatewayResponseAllOfDataToJSON(json) {
|
|
39
|
-
return SuccessPublicGatewayResponseAllOfDataToJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
export function SuccessPublicGatewayResponseAllOfDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
-
if (value == null) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'sandbox_id': value['sandboxId'],
|
|
47
|
-
'public_gateway': PublicGatewayConfigToJSON(value['publicGateway']),
|
|
48
|
-
'exposure_domain': value['exposureDomain'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PublicGatewayConfig } from "./apispec/src/models/index.js";
|
|
2
|
-
import type { PublicGatewayResponse } from "./models.js";
|
|
3
|
-
declare module "./sandbox" {
|
|
4
|
-
interface Sandbox {
|
|
5
|
-
getPublicGateway(): Promise<PublicGatewayResponse>;
|
|
6
|
-
updatePublicGateway(publicGateway: PublicGatewayConfig): Promise<PublicGatewayResponse>;
|
|
7
|
-
clearPublicGateway(): Promise<PublicGatewayResponse>;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=sandbox_public_gateway.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox_public_gateway.d.ts","sourceRoot":"","sources":["../src/sandbox_public_gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD,OAAO,QAAQ,WAAW,CAAC;IACzB,UAAU,OAAO;QACf,gBAAgB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACnD,mBAAmB,CACjB,aAAa,EAAE,mBAAmB,GACjC,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAClC,kBAAkB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;KACtD;CACF"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { wrapApiCall } from "./errors.js";
|
|
2
|
-
import { ensureData } from "./response.js";
|
|
3
|
-
import { Sandbox } from "./sandbox.js";
|
|
4
|
-
function getClient(sandbox) {
|
|
5
|
-
return sandbox.client;
|
|
6
|
-
}
|
|
7
|
-
Sandbox.prototype.getPublicGateway = async function () {
|
|
8
|
-
const client = getClient(this);
|
|
9
|
-
const response = await wrapApiCall(() => client.apispec.sandboxes.apiV1SandboxesIdPublicGatewayGet({ id: this.id }));
|
|
10
|
-
const data = ensureData(response, "get public gateway returned empty response");
|
|
11
|
-
return toPublicGatewayResponse(data);
|
|
12
|
-
};
|
|
13
|
-
Sandbox.prototype.updatePublicGateway = async function (publicGateway) {
|
|
14
|
-
const client = getClient(this);
|
|
15
|
-
const response = await wrapApiCall(() => client.apispec.sandboxes.apiV1SandboxesIdPublicGatewayPut({
|
|
16
|
-
id: this.id,
|
|
17
|
-
publicGatewayConfig: publicGateway,
|
|
18
|
-
}));
|
|
19
|
-
const data = ensureData(response, "update public gateway returned empty response");
|
|
20
|
-
return toPublicGatewayResponse(data);
|
|
21
|
-
};
|
|
22
|
-
Sandbox.prototype.clearPublicGateway = async function () {
|
|
23
|
-
return this.updatePublicGateway({ enabled: false });
|
|
24
|
-
};
|
|
25
|
-
function toPublicGatewayResponse(data) {
|
|
26
|
-
return {
|
|
27
|
-
sandboxId: data.sandboxId,
|
|
28
|
-
publicGateway: data.publicGateway,
|
|
29
|
-
exposureDomain: data.exposureDomain ?? undefined,
|
|
30
|
-
};
|
|
31
|
-
}
|