sandbox0 0.3.5 → 0.3.7

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.
Files changed (131) hide show
  1. package/dist/apispec/src/apis/FunctionsApi.d.ts +87 -0
  2. package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -0
  3. package/dist/apispec/src/apis/FunctionsApi.js +231 -0
  4. package/dist/apispec/src/apis/SandboxesApi.d.ts +28 -1
  5. package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
  6. package/dist/apispec/src/apis/SandboxesApi.js +76 -1
  7. package/dist/apispec/src/apis/index.d.ts +1 -0
  8. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  9. package/dist/apispec/src/apis/index.js +1 -0
  10. package/dist/apispec/src/models/Function.d.ts +81 -0
  11. package/dist/apispec/src/models/Function.d.ts.map +1 -0
  12. package/dist/apispec/src/models/Function.js +71 -0
  13. package/dist/apispec/src/models/FunctionAlias.d.ts +63 -0
  14. package/dist/apispec/src/models/FunctionAlias.d.ts.map +1 -0
  15. package/dist/apispec/src/models/FunctionAlias.js +61 -0
  16. package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts +33 -0
  17. package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts.map +1 -0
  18. package/dist/apispec/src/models/FunctionAliasUpdateRequest.js +43 -0
  19. package/dist/apispec/src/models/FunctionCreateRequest.d.ts +40 -0
  20. package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +1 -0
  21. package/dist/apispec/src/models/FunctionCreateRequest.js +46 -0
  22. package/dist/apispec/src/models/FunctionRecord.d.ts +93 -0
  23. package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -0
  24. package/dist/apispec/src/models/FunctionRecord.js +79 -0
  25. package/dist/apispec/src/models/FunctionRestoreMount.d.ts +39 -0
  26. package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -0
  27. package/dist/apispec/src/models/FunctionRestoreMount.js +47 -0
  28. package/dist/apispec/src/models/FunctionRevision.d.ts +113 -0
  29. package/dist/apispec/src/models/FunctionRevision.d.ts.map +1 -0
  30. package/dist/apispec/src/models/FunctionRevision.js +87 -0
  31. package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts +40 -0
  32. package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts.map +1 -0
  33. package/dist/apispec/src/models/FunctionRevisionCreateRequest.js +46 -0
  34. package/dist/apispec/src/models/FunctionSourceRequest.d.ts +39 -0
  35. package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +1 -0
  36. package/dist/apispec/src/models/FunctionSourceRequest.js +47 -0
  37. package/dist/apispec/src/models/Sandbox.d.ts +14 -0
  38. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  39. package/dist/apispec/src/models/Sandbox.js +6 -0
  40. package/dist/apispec/src/models/SandboxAppService.d.ts +66 -0
  41. package/dist/apispec/src/models/SandboxAppService.d.ts.map +1 -0
  42. package/dist/apispec/src/models/SandboxAppService.js +60 -0
  43. package/dist/apispec/src/models/SandboxAppServiceHealth.d.ts +33 -0
  44. package/dist/apispec/src/models/SandboxAppServiceHealth.d.ts.map +1 -0
  45. package/dist/apispec/src/models/SandboxAppServiceHealth.js +41 -0
  46. package/dist/apispec/src/models/SandboxAppServiceIngress.d.ts +40 -0
  47. package/dist/apispec/src/models/SandboxAppServiceIngress.d.ts.map +1 -0
  48. package/dist/apispec/src/models/SandboxAppServiceIngress.js +46 -0
  49. package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts +84 -0
  50. package/dist/apispec/src/models/SandboxAppServiceRoute.d.ts.map +1 -0
  51. package/dist/apispec/src/models/SandboxAppServiceRoute.js +64 -0
  52. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +68 -0
  53. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -0
  54. package/dist/apispec/src/models/SandboxAppServiceRuntime.js +59 -0
  55. package/dist/apispec/src/models/SandboxAppServiceView.d.ts +78 -0
  56. package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -0
  57. package/dist/apispec/src/models/SandboxAppServiceView.js +66 -0
  58. package/dist/apispec/src/models/SandboxConfig.d.ts +7 -0
  59. package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
  60. package/dist/apispec/src/models/SandboxConfig.js +3 -0
  61. package/dist/apispec/src/models/SandboxServicesUpdateRequest.d.ts +34 -0
  62. package/dist/apispec/src/models/SandboxServicesUpdateRequest.d.ts.map +1 -0
  63. package/dist/apispec/src/models/SandboxServicesUpdateRequest.js +44 -0
  64. package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +7 -0
  65. package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
  66. package/dist/apispec/src/models/SandboxUpdateConfig.js +3 -0
  67. package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts +40 -0
  68. package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts.map +1 -0
  69. package/dist/apispec/src/models/SuccessFunctionAliasResponse.js +46 -0
  70. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts +34 -0
  71. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts.map +1 -0
  72. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.js +44 -0
  73. package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts +40 -0
  74. package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts.map +1 -0
  75. package/dist/apispec/src/models/SuccessFunctionCreateResponse.js +46 -0
  76. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts +48 -0
  77. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts.map +1 -0
  78. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.js +54 -0
  79. package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts +40 -0
  80. package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts.map +1 -0
  81. package/dist/apispec/src/models/SuccessFunctionListResponse.js +46 -0
  82. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts +34 -0
  83. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts.map +1 -0
  84. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.js +44 -0
  85. package/dist/apispec/src/models/SuccessFunctionResponse.d.ts +40 -0
  86. package/dist/apispec/src/models/SuccessFunctionResponse.d.ts.map +1 -0
  87. package/dist/apispec/src/models/SuccessFunctionResponse.js +46 -0
  88. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts +34 -0
  89. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts.map +1 -0
  90. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.js +44 -0
  91. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts +40 -0
  92. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts.map +1 -0
  93. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.js +46 -0
  94. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts +40 -0
  95. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts.map +1 -0
  96. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.js +48 -0
  97. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts +40 -0
  98. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts.map +1 -0
  99. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.js +46 -0
  100. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts +34 -0
  101. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts.map +1 -0
  102. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.js +44 -0
  103. package/dist/apispec/src/models/SuccessSandboxServicesResponse.d.ts +40 -0
  104. package/dist/apispec/src/models/SuccessSandboxServicesResponse.d.ts.map +1 -0
  105. package/dist/apispec/src/models/SuccessSandboxServicesResponse.js +46 -0
  106. package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts +40 -0
  107. package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.d.ts.map +1 -0
  108. package/dist/apispec/src/models/SuccessSandboxServicesResponseAllOfData.js +48 -0
  109. package/dist/apispec/src/models/WarmProcessSpec.d.ts +2 -2
  110. package/dist/apispec/src/models/WarmProcessSpec.js +2 -2
  111. package/dist/apispec/src/models/index.d.ts +30 -0
  112. package/dist/apispec/src/models/index.d.ts.map +1 -1
  113. package/dist/apispec/src/models/index.js +30 -0
  114. package/dist/apispec_compat.d.ts +1535 -1
  115. package/dist/apispec_compat.d.ts.map +1 -1
  116. package/dist/apispec_compat.js +10 -1
  117. package/dist/client.d.ts +3 -0
  118. package/dist/client.d.ts.map +1 -1
  119. package/dist/client.js +4 -0
  120. package/dist/index.d.ts +3 -0
  121. package/dist/index.d.ts.map +1 -1
  122. package/dist/index.js +2 -0
  123. package/dist/models.d.ts +5 -1
  124. package/dist/models.d.ts.map +1 -1
  125. package/dist/resources/functions.d.ts +31 -0
  126. package/dist/resources/functions.d.ts.map +1 -0
  127. package/dist/resources/functions.js +79 -0
  128. package/dist/sandbox_services.d.ts +10 -0
  129. package/dist/sandbox_services.d.ts.map +1 -0
  130. package/dist/sandbox_services.js +30 -0
  131. package/package.json +1 -1
@@ -0,0 +1,113 @@
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 { SandboxAppService } from './SandboxAppService.js';
13
+ import type { FunctionRestoreMount } from './FunctionRestoreMount.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FunctionRevision
18
+ */
19
+ export interface FunctionRevision {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof FunctionRevision
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof FunctionRevision
30
+ */
31
+ functionId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof FunctionRevision
36
+ */
37
+ teamId: string;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof FunctionRevision
42
+ */
43
+ revisionNumber: number;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof FunctionRevision
48
+ */
49
+ sourceSandboxId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof FunctionRevision
54
+ */
55
+ sourceServiceId: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof FunctionRevision
60
+ */
61
+ sourceTemplateId: string;
62
+ /**
63
+ * SandboxVolume mounts captured from the source sandbox and reused when the function runtime sandbox is restored.
64
+ * @type {Array<FunctionRestoreMount>}
65
+ * @memberof FunctionRevision
66
+ */
67
+ restoreMounts?: Array<FunctionRestoreMount>;
68
+ /**
69
+ *
70
+ * @type {SandboxAppService}
71
+ * @memberof FunctionRevision
72
+ */
73
+ serviceSnapshot: SandboxAppService;
74
+ /**
75
+ * Current restored runtime sandbox, when the source sandbox no longer exists.
76
+ * @type {string}
77
+ * @memberof FunctionRevision
78
+ */
79
+ runtimeSandboxId?: string;
80
+ /**
81
+ * Current runtime process context inside the restored runtime sandbox.
82
+ * @type {string}
83
+ * @memberof FunctionRevision
84
+ */
85
+ runtimeContextId?: string;
86
+ /**
87
+ * Last time the restored runtime sandbox mapping was updated.
88
+ * @type {Date}
89
+ * @memberof FunctionRevision
90
+ */
91
+ runtimeUpdatedAt?: Date;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof FunctionRevision
96
+ */
97
+ createdBy?: string;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof FunctionRevision
102
+ */
103
+ createdAt: Date;
104
+ }
105
+ /**
106
+ * Check if a given object implements the FunctionRevision interface.
107
+ */
108
+ export declare function instanceOfFunctionRevision(value: object): value is FunctionRevision;
109
+ export declare function FunctionRevisionFromJSON(json: any): FunctionRevision;
110
+ export declare function FunctionRevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevision;
111
+ export declare function FunctionRevisionToJSON(json: any): FunctionRevision;
112
+ export declare function FunctionRevisionToJSONTyped(value?: FunctionRevision | null, ignoreDiscriminator?: boolean): any;
113
+ //# sourceMappingURL=FunctionRevision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRevision.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevision.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,eAAe,EAAE,iBAAiB,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAWnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAqBvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsBtH"}
@@ -0,0 +1,87 @@
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 { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAppService.js';
15
+ import { FunctionRestoreMountFromJSON, FunctionRestoreMountToJSON, } from './FunctionRestoreMount.js';
16
+ /**
17
+ * Check if a given object implements the FunctionRevision interface.
18
+ */
19
+ export function instanceOfFunctionRevision(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('functionId' in value) || value['functionId'] === undefined)
23
+ return false;
24
+ if (!('teamId' in value) || value['teamId'] === undefined)
25
+ return false;
26
+ if (!('revisionNumber' in value) || value['revisionNumber'] === undefined)
27
+ return false;
28
+ if (!('sourceSandboxId' in value) || value['sourceSandboxId'] === undefined)
29
+ return false;
30
+ if (!('sourceServiceId' in value) || value['sourceServiceId'] === undefined)
31
+ return false;
32
+ if (!('sourceTemplateId' in value) || value['sourceTemplateId'] === undefined)
33
+ return false;
34
+ if (!('serviceSnapshot' in value) || value['serviceSnapshot'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function FunctionRevisionFromJSON(json) {
41
+ return FunctionRevisionFromJSONTyped(json, false);
42
+ }
43
+ export function FunctionRevisionFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'functionId': json['function_id'],
50
+ 'teamId': json['team_id'],
51
+ 'revisionNumber': json['revision_number'],
52
+ 'sourceSandboxId': json['source_sandbox_id'],
53
+ 'sourceServiceId': json['source_service_id'],
54
+ 'sourceTemplateId': json['source_template_id'],
55
+ 'restoreMounts': json['restore_mounts'] == null ? undefined : (json['restore_mounts'].map(FunctionRestoreMountFromJSON)),
56
+ 'serviceSnapshot': SandboxAppServiceFromJSON(json['service_snapshot']),
57
+ 'runtimeSandboxId': json['runtime_sandbox_id'] == null ? undefined : json['runtime_sandbox_id'],
58
+ 'runtimeContextId': json['runtime_context_id'] == null ? undefined : json['runtime_context_id'],
59
+ 'runtimeUpdatedAt': json['runtime_updated_at'] == null ? undefined : (new Date(json['runtime_updated_at'])),
60
+ 'createdBy': json['created_by'] == null ? undefined : json['created_by'],
61
+ 'createdAt': (new Date(json['created_at'])),
62
+ };
63
+ }
64
+ export function FunctionRevisionToJSON(json) {
65
+ return FunctionRevisionToJSONTyped(json, false);
66
+ }
67
+ export function FunctionRevisionToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'function_id': value['functionId'],
74
+ 'team_id': value['teamId'],
75
+ 'revision_number': value['revisionNumber'],
76
+ 'source_sandbox_id': value['sourceSandboxId'],
77
+ 'source_service_id': value['sourceServiceId'],
78
+ 'source_template_id': value['sourceTemplateId'],
79
+ 'restore_mounts': value['restoreMounts'] == null ? undefined : (value['restoreMounts'].map(FunctionRestoreMountToJSON)),
80
+ 'service_snapshot': SandboxAppServiceToJSON(value['serviceSnapshot']),
81
+ 'runtime_sandbox_id': value['runtimeSandboxId'],
82
+ 'runtime_context_id': value['runtimeContextId'],
83
+ 'runtime_updated_at': value['runtimeUpdatedAt'] == null ? value['runtimeUpdatedAt'] : value['runtimeUpdatedAt'].toISOString(),
84
+ 'created_by': value['createdBy'],
85
+ 'created_at': value['createdAt'].toISOString(),
86
+ };
87
+ }
@@ -0,0 +1,40 @@
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 { FunctionSourceRequest } from './FunctionSourceRequest.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FunctionRevisionCreateRequest
17
+ */
18
+ export interface FunctionRevisionCreateRequest {
19
+ /**
20
+ *
21
+ * @type {FunctionSourceRequest}
22
+ * @memberof FunctionRevisionCreateRequest
23
+ */
24
+ source: FunctionSourceRequest;
25
+ /**
26
+ * Whether to move the production alias to the new revision.
27
+ * @type {boolean}
28
+ * @memberof FunctionRevisionCreateRequest
29
+ */
30
+ promote?: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the FunctionRevisionCreateRequest interface.
34
+ */
35
+ export declare function instanceOfFunctionRevisionCreateRequest(value: object): value is FunctionRevisionCreateRequest;
36
+ export declare function FunctionRevisionCreateRequestFromJSON(json: any): FunctionRevisionCreateRequest;
37
+ export declare function FunctionRevisionCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRevisionCreateRequest;
38
+ export declare function FunctionRevisionCreateRequestToJSON(json: any): FunctionRevisionCreateRequest;
39
+ export declare function FunctionRevisionCreateRequestToJSONTyped(value?: FunctionRevisionCreateRequest | null, ignoreDiscriminator?: boolean): any;
40
+ //# sourceMappingURL=FunctionRevisionCreateRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRevisionCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRevisionCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAG7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"}
@@ -0,0 +1,46 @@
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 { FunctionSourceRequestFromJSON, FunctionSourceRequestToJSON, } from './FunctionSourceRequest.js';
15
+ /**
16
+ * Check if a given object implements the FunctionRevisionCreateRequest interface.
17
+ */
18
+ export function instanceOfFunctionRevisionCreateRequest(value) {
19
+ if (!('source' in value) || value['source'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function FunctionRevisionCreateRequestFromJSON(json) {
24
+ return FunctionRevisionCreateRequestFromJSONTyped(json, false);
25
+ }
26
+ export function FunctionRevisionCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'source': FunctionSourceRequestFromJSON(json['source']),
32
+ 'promote': json['promote'] == null ? undefined : json['promote'],
33
+ };
34
+ }
35
+ export function FunctionRevisionCreateRequestToJSON(json) {
36
+ return FunctionRevisionCreateRequestToJSONTyped(json, false);
37
+ }
38
+ export function FunctionRevisionCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'source': FunctionSourceRequestToJSON(value['source']),
44
+ 'promote': value['promote'],
45
+ };
46
+ }
@@ -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 FunctionSourceRequest
16
+ */
17
+ export interface FunctionSourceRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FunctionSourceRequest
22
+ */
23
+ sandboxId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FunctionSourceRequest
28
+ */
29
+ serviceId: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FunctionSourceRequest interface.
33
+ */
34
+ export declare function instanceOfFunctionSourceRequest(value: object): value is FunctionSourceRequest;
35
+ export declare function FunctionSourceRequestFromJSON(json: any): FunctionSourceRequest;
36
+ export declare function FunctionSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionSourceRequest;
37
+ export declare function FunctionSourceRequestToJSON(json: any): FunctionSourceRequest;
38
+ export declare function FunctionSourceRequestToJSONTyped(value?: FunctionSourceRequest | null, ignoreDiscriminator?: boolean): any;
39
+ //# sourceMappingURL=FunctionSourceRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionSourceRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionSourceRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,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,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the FunctionSourceRequest interface.
16
+ */
17
+ export function instanceOfFunctionSourceRequest(value) {
18
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
19
+ return false;
20
+ if (!('serviceId' in value) || value['serviceId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FunctionSourceRequestFromJSON(json) {
25
+ return FunctionSourceRequestFromJSONTyped(json, false);
26
+ }
27
+ export function FunctionSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'sandboxId': json['sandbox_id'],
33
+ 'serviceId': json['service_id'],
34
+ };
35
+ }
36
+ export function FunctionSourceRequestToJSON(json) {
37
+ return FunctionSourceRequestToJSONTyped(json, false);
38
+ }
39
+ export function FunctionSourceRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'sandbox_id': value['sandboxId'],
45
+ 'service_id': value['serviceId'],
46
+ };
47
+ }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SandboxAppService } from './SandboxAppService.js';
13
+ import type { ClaimMountRequest } from './ClaimMountRequest.js';
12
14
  import type { SandboxSSHConnection } from './SandboxSSHConnection.js';
13
15
  import type { PublicGatewayConfig } from './PublicGatewayConfig.js';
14
16
  import type { SandboxPowerState } from './SandboxPowerState.js';
@@ -66,12 +68,24 @@ export interface Sandbox {
66
68
  * @memberof Sandbox
67
69
  */
68
70
  autoResume: boolean;
71
+ /**
72
+ *
73
+ * @type {Array<SandboxAppService>}
74
+ * @memberof Sandbox
75
+ */
76
+ services?: Array<SandboxAppService>;
69
77
  /**
70
78
  *
71
79
  * @type {PublicGatewayConfig}
72
80
  * @memberof Sandbox
73
81
  */
74
82
  publicGateway?: PublicGatewayConfig;
83
+ /**
84
+ *
85
+ * @type {Array<ClaimMountRequest>}
86
+ * @memberof Sandbox
87
+ */
88
+ mounts?: Array<ClaimMountRequest>;
75
89
  /**
76
90
  *
77
91
  * @type {string}
@@ -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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,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,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;;;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,CAsBrF;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,CAuBpG"}
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,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,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,aAAa,CAAC,EAAE,mBAAmB,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,CAwBrF;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,CAyBpG"}
@@ -11,6 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SandboxAppServiceFromJSON, SandboxAppServiceToJSON, } from './SandboxAppService.js';
15
+ import { ClaimMountRequestFromJSON, ClaimMountRequestToJSON, } from './ClaimMountRequest.js';
14
16
  import { SandboxSSHConnectionFromJSON, SandboxSSHConnectionToJSON, } from './SandboxSSHConnection.js';
15
17
  import { PublicGatewayConfigFromJSON, PublicGatewayConfigToJSON, } from './PublicGatewayConfig.js';
16
18
  import { SandboxPowerStateFromJSON, SandboxPowerStateToJSON, } from './SandboxPowerState.js';
@@ -60,7 +62,9 @@ export function SandboxFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'paused': json['paused'],
61
63
  'powerState': SandboxPowerStateFromJSON(json['power_state']),
62
64
  'autoResume': json['auto_resume'],
65
+ 'services': json['services'] == null ? undefined : (json['services'].map(SandboxAppServiceFromJSON)),
63
66
  'publicGateway': json['public_gateway'] == null ? undefined : PublicGatewayConfigFromJSON(json['public_gateway']),
67
+ 'mounts': json['mounts'] == null ? undefined : (json['mounts'].map(ClaimMountRequestFromJSON)),
64
68
  'podName': json['pod_name'],
65
69
  'ssh': json['ssh'] == null ? undefined : SandboxSSHConnectionFromJSON(json['ssh']),
66
70
  'expiresAt': (new Date(json['expires_at'])),
@@ -85,7 +89,9 @@ export function SandboxToJSONTyped(value, ignoreDiscriminator = false) {
85
89
  'paused': value['paused'],
86
90
  'power_state': SandboxPowerStateToJSON(value['powerState']),
87
91
  'auto_resume': value['autoResume'],
92
+ 'services': value['services'] == null ? undefined : (value['services'].map(SandboxAppServiceToJSON)),
88
93
  'public_gateway': PublicGatewayConfigToJSON(value['publicGateway']),
94
+ 'mounts': value['mounts'] == null ? undefined : (value['mounts'].map(ClaimMountRequestToJSON)),
89
95
  'pod_name': value['podName'],
90
96
  'ssh': SandboxSSHConnectionToJSON(value['ssh']),
91
97
  'expires_at': value['expiresAt'].toISOString(),
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SandboxAppServiceHealth } from './SandboxAppServiceHealth.js';
13
+ import type { SandboxAppServiceIngress } from './SandboxAppServiceIngress.js';
14
+ import type { SandboxAppServiceRuntime } from './SandboxAppServiceRuntime.js';
15
+ /**
16
+ * Canonical service model for sandbox exposure and function publishing.
17
+ * @export
18
+ * @interface SandboxAppService
19
+ */
20
+ export interface SandboxAppService {
21
+ /**
22
+ * Stable service ID. Must be a DNS label.
23
+ * @type {string}
24
+ * @memberof SandboxAppService
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof SandboxAppService
31
+ */
32
+ displayName?: string;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof SandboxAppService
37
+ */
38
+ port: number;
39
+ /**
40
+ *
41
+ * @type {SandboxAppServiceRuntime}
42
+ * @memberof SandboxAppService
43
+ */
44
+ runtime?: SandboxAppServiceRuntime;
45
+ /**
46
+ *
47
+ * @type {SandboxAppServiceIngress}
48
+ * @memberof SandboxAppService
49
+ */
50
+ ingress: SandboxAppServiceIngress;
51
+ /**
52
+ *
53
+ * @type {SandboxAppServiceHealth}
54
+ * @memberof SandboxAppService
55
+ */
56
+ healthCheck?: SandboxAppServiceHealth;
57
+ }
58
+ /**
59
+ * Check if a given object implements the SandboxAppService interface.
60
+ */
61
+ export declare function instanceOfSandboxAppService(value: object): value is SandboxAppService;
62
+ export declare function SandboxAppServiceFromJSON(json: any): SandboxAppService;
63
+ export declare function SandboxAppServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAppService;
64
+ export declare function SandboxAppServiceToJSON(json: any): SandboxAppService;
65
+ export declare function SandboxAppServiceToJSONTyped(value?: SandboxAppService | null, ignoreDiscriminator?: boolean): any;
66
+ //# sourceMappingURL=SandboxAppService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxAppService.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppService.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAQ3E;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAazG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxH"}
@@ -0,0 +1,60 @@
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 { SandboxAppServiceHealthFromJSON, SandboxAppServiceHealthToJSON, } from './SandboxAppServiceHealth.js';
15
+ import { SandboxAppServiceIngressFromJSON, SandboxAppServiceIngressToJSON, } from './SandboxAppServiceIngress.js';
16
+ import { SandboxAppServiceRuntimeFromJSON, SandboxAppServiceRuntimeToJSON, } from './SandboxAppServiceRuntime.js';
17
+ /**
18
+ * Check if a given object implements the SandboxAppService interface.
19
+ */
20
+ export function instanceOfSandboxAppService(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 (!('ingress' in value) || value['ingress'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function SandboxAppServiceFromJSON(json) {
30
+ return SandboxAppServiceFromJSONTyped(json, false);
31
+ }
32
+ export function SandboxAppServiceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'],
38
+ 'displayName': json['display_name'] == null ? undefined : json['display_name'],
39
+ 'port': json['port'],
40
+ 'runtime': json['runtime'] == null ? undefined : SandboxAppServiceRuntimeFromJSON(json['runtime']),
41
+ 'ingress': SandboxAppServiceIngressFromJSON(json['ingress']),
42
+ 'healthCheck': json['health_check'] == null ? undefined : SandboxAppServiceHealthFromJSON(json['health_check']),
43
+ };
44
+ }
45
+ export function SandboxAppServiceToJSON(json) {
46
+ return SandboxAppServiceToJSONTyped(json, false);
47
+ }
48
+ export function SandboxAppServiceToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'display_name': value['displayName'],
55
+ 'port': value['port'],
56
+ 'runtime': SandboxAppServiceRuntimeToJSON(value['runtime']),
57
+ 'ingress': SandboxAppServiceIngressToJSON(value['ingress']),
58
+ 'health_check': SandboxAppServiceHealthToJSON(value['healthCheck']),
59
+ };
60
+ }
@@ -0,0 +1,33 @@
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 SandboxAppServiceHealth
16
+ */
17
+ export interface SandboxAppServiceHealth {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SandboxAppServiceHealth
22
+ */
23
+ path?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SandboxAppServiceHealth interface.
27
+ */
28
+ export declare function instanceOfSandboxAppServiceHealth(value: object): value is SandboxAppServiceHealth;
29
+ export declare function SandboxAppServiceHealthFromJSON(json: any): SandboxAppServiceHealth;
30
+ export declare function SandboxAppServiceHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxAppServiceHealth;
31
+ export declare function SandboxAppServiceHealthToJSON(json: any): SandboxAppServiceHealth;
32
+ export declare function SandboxAppServiceHealthToJSONTyped(value?: SandboxAppServiceHealth | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=SandboxAppServiceHealth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxAppServiceHealth.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxAppServiceHealth.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAQrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpI"}