sandbox0 0.3.6 → 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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/models.d.ts +3 -4
- package/dist/models.d.ts.map +1 -1
- package/dist/sandbox_services.d.ts +10 -0
- package/dist/sandbox_services.d.ts.map +1 -0
- package/dist/sandbox_services.js +30 -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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { ClaimRequest,
|
|
13
|
+
import type { ClaimRequest, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxServicesUpdateRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxResponse, SuccessSandboxServicesResponse, SuccessSandboxStatusResponse } from '../models/index.js';
|
|
14
14
|
export interface ApiV1SandboxesGetRequest {
|
|
15
15
|
status?: ApiV1SandboxesGetStatusEnum;
|
|
16
16
|
templateId?: string;
|
|
@@ -44,13 +44,6 @@ export interface ApiV1SandboxesIdNetworkPutRequest {
|
|
|
44
44
|
export interface ApiV1SandboxesIdPausePostRequest {
|
|
45
45
|
id: string;
|
|
46
46
|
}
|
|
47
|
-
export interface ApiV1SandboxesIdPublicGatewayGetRequest {
|
|
48
|
-
id: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ApiV1SandboxesIdPublicGatewayPutRequest {
|
|
51
|
-
id: string;
|
|
52
|
-
publicGatewayConfig: PublicGatewayConfig;
|
|
53
|
-
}
|
|
54
47
|
export interface ApiV1SandboxesIdPutRequest {
|
|
55
48
|
id: string;
|
|
56
49
|
sandboxUpdateRequest: SandboxUpdateRequest;
|
|
@@ -139,24 +132,6 @@ export declare class SandboxesApi extends runtime.BaseAPI {
|
|
|
139
132
|
* Pause a sandbox
|
|
140
133
|
*/
|
|
141
134
|
apiV1SandboxesIdPausePost(requestParameters: ApiV1SandboxesIdPausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPauseSandboxResponse>;
|
|
142
|
-
/**
|
|
143
|
-
* Get sandbox public gateway policy
|
|
144
|
-
*/
|
|
145
|
-
apiV1SandboxesIdPublicGatewayGetRaw(requestParameters: ApiV1SandboxesIdPublicGatewayGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessPublicGatewayResponse>>;
|
|
146
|
-
/**
|
|
147
|
-
* Get sandbox public gateway policy
|
|
148
|
-
*/
|
|
149
|
-
apiV1SandboxesIdPublicGatewayGet(requestParameters: ApiV1SandboxesIdPublicGatewayGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPublicGatewayResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
152
|
-
* Update sandbox public gateway policy
|
|
153
|
-
*/
|
|
154
|
-
apiV1SandboxesIdPublicGatewayPutRaw(requestParameters: ApiV1SandboxesIdPublicGatewayPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessPublicGatewayResponse>>;
|
|
155
|
-
/**
|
|
156
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
157
|
-
* Update sandbox public gateway policy
|
|
158
|
-
*/
|
|
159
|
-
apiV1SandboxesIdPublicGatewayPut(requestParameters: ApiV1SandboxesIdPublicGatewayPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessPublicGatewayResponse>;
|
|
160
135
|
/**
|
|
161
136
|
* Update sandbox configuration
|
|
162
137
|
*/
|
|
@@ -182,22 +157,22 @@ export declare class SandboxesApi extends runtime.BaseAPI {
|
|
|
182
157
|
*/
|
|
183
158
|
apiV1SandboxesIdResumePost(requestParameters: ApiV1SandboxesIdResumePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResumeSandboxResponse>;
|
|
184
159
|
/**
|
|
185
|
-
* Lists
|
|
160
|
+
* Lists sandbox services configured on the sandbox.
|
|
186
161
|
* List sandbox services
|
|
187
162
|
*/
|
|
188
163
|
apiV1SandboxesIdServicesGetRaw(requestParameters: ApiV1SandboxesIdServicesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxServicesResponse>>;
|
|
189
164
|
/**
|
|
190
|
-
* Lists
|
|
165
|
+
* Lists sandbox services configured on the sandbox.
|
|
191
166
|
* List sandbox services
|
|
192
167
|
*/
|
|
193
168
|
apiV1SandboxesIdServicesGet(requestParameters: ApiV1SandboxesIdServicesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxServicesResponse>;
|
|
194
169
|
/**
|
|
195
|
-
* Replaces the
|
|
170
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
196
171
|
* Replace sandbox services
|
|
197
172
|
*/
|
|
198
173
|
apiV1SandboxesIdServicesPutRaw(requestParameters: ApiV1SandboxesIdServicesPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessSandboxServicesResponse>>;
|
|
199
174
|
/**
|
|
200
|
-
* Replaces the
|
|
175
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
201
176
|
* Replace sandbox services
|
|
202
177
|
*/
|
|
203
178
|
apiV1SandboxesIdServicesPut(requestParameters: ApiV1SandboxesIdServicesPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessSandboxServicesResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OA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KvL;;OAEG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAoCzL;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKpK;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;CAK9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ClaimRequestToJSON,
|
|
15
|
+
import { ClaimRequestToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxServicesUpdateRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxServicesResponseFromJSON, SuccessSandboxStatusResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -294,79 +294,6 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
294
294
|
const response = await this.apiV1SandboxesIdPausePostRaw(requestParameters, initOverrides);
|
|
295
295
|
return await response.value();
|
|
296
296
|
}
|
|
297
|
-
/**
|
|
298
|
-
* Get sandbox public gateway policy
|
|
299
|
-
*/
|
|
300
|
-
async apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides) {
|
|
301
|
-
if (requestParameters['id'] == null) {
|
|
302
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayGet().');
|
|
303
|
-
}
|
|
304
|
-
const queryParameters = {};
|
|
305
|
-
const headerParameters = {};
|
|
306
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
-
const token = this.configuration.accessToken;
|
|
308
|
-
const tokenString = await token("bearerAuth", []);
|
|
309
|
-
if (tokenString) {
|
|
310
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
314
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
315
|
-
const response = await this.request({
|
|
316
|
-
path: urlPath,
|
|
317
|
-
method: 'GET',
|
|
318
|
-
headers: headerParameters,
|
|
319
|
-
query: queryParameters,
|
|
320
|
-
}, initOverrides);
|
|
321
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Get sandbox public gateway policy
|
|
325
|
-
*/
|
|
326
|
-
async apiV1SandboxesIdPublicGatewayGet(requestParameters, initOverrides) {
|
|
327
|
-
const response = await this.apiV1SandboxesIdPublicGatewayGetRaw(requestParameters, initOverrides);
|
|
328
|
-
return await response.value();
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
332
|
-
* Update sandbox public gateway policy
|
|
333
|
-
*/
|
|
334
|
-
async apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides) {
|
|
335
|
-
if (requestParameters['id'] == null) {
|
|
336
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
337
|
-
}
|
|
338
|
-
if (requestParameters['publicGatewayConfig'] == null) {
|
|
339
|
-
throw new runtime.RequiredError('publicGatewayConfig', 'Required parameter "publicGatewayConfig" was null or undefined when calling apiV1SandboxesIdPublicGatewayPut().');
|
|
340
|
-
}
|
|
341
|
-
const queryParameters = {};
|
|
342
|
-
const headerParameters = {};
|
|
343
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
344
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
345
|
-
const token = this.configuration.accessToken;
|
|
346
|
-
const tokenString = await token("bearerAuth", []);
|
|
347
|
-
if (tokenString) {
|
|
348
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
let urlPath = `/api/v1/sandboxes/{id}/public-gateway`;
|
|
352
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
353
|
-
const response = await this.request({
|
|
354
|
-
path: urlPath,
|
|
355
|
-
method: 'PUT',
|
|
356
|
-
headers: headerParameters,
|
|
357
|
-
query: queryParameters,
|
|
358
|
-
body: PublicGatewayConfigToJSON(requestParameters['publicGatewayConfig']),
|
|
359
|
-
}, initOverrides);
|
|
360
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessPublicGatewayResponseFromJSON(jsonValue));
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Replaces the request-level public gateway policy for sandbox public traffic. When enabled, matching routes control method, path, authentication, CORS, per-route rate limits, timeout, rewrite, and paused sandbox auto-resume.
|
|
364
|
-
* Update sandbox public gateway policy
|
|
365
|
-
*/
|
|
366
|
-
async apiV1SandboxesIdPublicGatewayPut(requestParameters, initOverrides) {
|
|
367
|
-
const response = await this.apiV1SandboxesIdPublicGatewayPutRaw(requestParameters, initOverrides);
|
|
368
|
-
return await response.value();
|
|
369
|
-
}
|
|
370
297
|
/**
|
|
371
298
|
* Update sandbox configuration
|
|
372
299
|
*/
|
|
@@ -474,7 +401,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
474
401
|
return await response.value();
|
|
475
402
|
}
|
|
476
403
|
/**
|
|
477
|
-
* Lists
|
|
404
|
+
* Lists sandbox services configured on the sandbox.
|
|
478
405
|
* List sandbox services
|
|
479
406
|
*/
|
|
480
407
|
async apiV1SandboxesIdServicesGetRaw(requestParameters, initOverrides) {
|
|
@@ -501,7 +428,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
501
428
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxServicesResponseFromJSON(jsonValue));
|
|
502
429
|
}
|
|
503
430
|
/**
|
|
504
|
-
* Lists
|
|
431
|
+
* Lists sandbox services configured on the sandbox.
|
|
505
432
|
* List sandbox services
|
|
506
433
|
*/
|
|
507
434
|
async apiV1SandboxesIdServicesGet(requestParameters, initOverrides) {
|
|
@@ -509,7 +436,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
509
436
|
return await response.value();
|
|
510
437
|
}
|
|
511
438
|
/**
|
|
512
|
-
* Replaces the
|
|
439
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
513
440
|
* Replace sandbox services
|
|
514
441
|
*/
|
|
515
442
|
async apiV1SandboxesIdServicesPutRaw(requestParameters, initOverrides) {
|
|
@@ -541,7 +468,7 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
541
468
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxServicesResponseFromJSON(jsonValue));
|
|
542
469
|
}
|
|
543
470
|
/**
|
|
544
|
-
* Replaces the
|
|
471
|
+
* Replaces the sandbox services used for public exposure and function publishing.
|
|
545
472
|
* Replace sandbox services
|
|
546
473
|
*/
|
|
547
474
|
async apiV1SandboxesIdServicesPut(requestParameters, initOverrides) {
|
|
@@ -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,qB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AAe,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
|
}
|
|
@@ -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 SandboxAppServiceRouteRateLimit
|
|
16
|
+
*/
|
|
17
|
+
export interface SandboxAppServiceRouteRateLimit {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SandboxAppServiceRouteRateLimit
|
|
22
|
+
*/
|
|
23
|
+
rps: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SandboxAppServiceRouteRateLimit
|
|
28
|
+
*/
|
|
29
|
+
burst: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SandboxAppServiceRouteRateLimit interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSandboxAppServiceRouteRateLimit(value: object): value is SandboxAppServiceRouteRateLimit;
|
|
35
|
+
export declare function SandboxAppServiceRouteRateLimitFromJSON(json: any): SandboxAppServiceRouteRateLimit;
|
|
36
|
+
export declare function SandboxAppServiceRouteRateLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAppServiceRouteRateLimit;
|
|
37
|
+
export declare function SandboxAppServiceRouteRateLimitToJSON(json: any): SandboxAppServiceRouteRateLimit;
|
|
38
|
+
export declare function SandboxAppServiceRouteRateLimitToJSONTyped(value?: SandboxAppServiceRouteRateLimit | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=SandboxAppServiceRouteRateLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxAppServiceRouteRateLimit.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceRouteRateLimit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,+BAA+B,CAIjH;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAElG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CASrI;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAEhG;AAED,wBAAgB,0CAA0C,CAAC,KAAK,CAAC,EAAE,+BAA+B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpJ"}
|