sandbox0 0.7.7 → 0.7.8

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 (109) hide show
  1. package/README.md +28 -0
  2. package/dist/apispec/src/apis/ObservabilityApi.d.ts +25 -14
  3. package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -1
  4. package/dist/apispec/src/apis/ObservabilityApi.js +52 -23
  5. package/dist/apispec/src/apis/index.d.ts +0 -1
  6. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  7. package/dist/apispec/src/apis/index.js +0 -1
  8. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +0 -1
  9. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -1
  10. package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +0 -1
  11. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +1 -2
  12. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -1
  13. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +0 -7
  14. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts +60 -0
  15. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts.map +1 -0
  16. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.js +62 -0
  17. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts +46 -0
  18. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts.map +1 -0
  19. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.js +48 -0
  20. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts +27 -0
  21. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts.map +1 -0
  22. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.js +44 -0
  23. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts +61 -0
  24. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts.map +1 -0
  25. package/dist/apispec/src/models/SandboxRuntimeMetricGap.js +59 -0
  26. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts +29 -0
  27. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts.map +1 -0
  28. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.js +46 -0
  29. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts +26 -0
  30. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts.map +1 -0
  31. package/dist/apispec/src/models/SandboxRuntimeMetricKind.js +43 -0
  32. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts +38 -0
  33. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts.map +1 -0
  34. package/dist/apispec/src/models/SandboxRuntimeMetricName.js +55 -0
  35. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts +39 -0
  36. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts.map +1 -0
  37. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.js +47 -0
  38. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts +34 -0
  39. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts.map +1 -0
  40. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.js +44 -0
  41. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts +70 -0
  42. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts.map +1 -0
  43. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.js +66 -0
  44. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts +30 -0
  45. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts.map +1 -0
  46. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.js +47 -0
  47. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts +31 -0
  48. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts.map +1 -0
  49. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.js +48 -0
  50. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts +34 -0
  51. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  52. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.js +44 -0
  53. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts +72 -0
  54. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts.map +1 -0
  55. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.js +70 -0
  56. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts +40 -0
  57. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  58. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.js +46 -0
  59. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts +40 -0
  60. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts.map +1 -0
  61. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.js +46 -0
  62. package/dist/apispec/src/models/index.d.ts +16 -3
  63. package/dist/apispec/src/models/index.d.ts.map +1 -1
  64. package/dist/apispec/src/models/index.js +16 -3
  65. package/dist/client.d.ts +3 -6
  66. package/dist/client.d.ts.map +1 -1
  67. package/dist/client.js +10 -26
  68. package/dist/index.d.ts +24 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +3 -0
  71. package/dist/models.d.ts +16 -11
  72. package/dist/models.d.ts.map +1 -1
  73. package/dist/sandbox_observability.d.ts +3 -5
  74. package/dist/sandbox_observability.d.ts.map +1 -1
  75. package/dist/sandbox_observability.js +4 -10
  76. package/package.json +1 -1
  77. package/dist/apispec/src/apis/AuditApi.d.ts +0 -40
  78. package/dist/apispec/src/apis/AuditApi.d.ts.map +0 -1
  79. package/dist/apispec/src/apis/AuditApi.js +0 -79
  80. package/dist/apispec/src/models/ContextStatsResponse.d.ts +0 -64
  81. package/dist/apispec/src/models/ContextStatsResponse.d.ts.map +0 -1
  82. package/dist/apispec/src/models/ContextStatsResponse.js +0 -52
  83. package/dist/apispec/src/models/LifecyclePolicy.d.ts +0 -52
  84. package/dist/apispec/src/models/LifecyclePolicy.d.ts.map +0 -1
  85. package/dist/apispec/src/models/LifecyclePolicy.js +0 -48
  86. package/dist/apispec/src/models/PreStopHook.d.ts +0 -39
  87. package/dist/apispec/src/models/PreStopHook.d.ts.map +0 -1
  88. package/dist/apispec/src/models/PreStopHook.js +0 -43
  89. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +0 -33
  90. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +0 -1
  91. package/dist/apispec/src/models/PutTeamQuotaRequest.js +0 -43
  92. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +0 -101
  93. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +0 -1
  94. package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +0 -81
  95. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +0 -46
  96. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +0 -1
  97. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +0 -48
  98. package/dist/apispec/src/models/SandboxProbeSet.d.ts +0 -46
  99. package/dist/apispec/src/models/SandboxProbeSet.d.ts.map +0 -1
  100. package/dist/apispec/src/models/SandboxProbeSet.js +0 -46
  101. package/dist/apispec/src/models/SandboxProbeSpec.d.ts +0 -66
  102. package/dist/apispec/src/models/SandboxProbeSpec.d.ts.map +0 -1
  103. package/dist/apispec/src/models/SandboxProbeSpec.js +0 -54
  104. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts +0 -40
  105. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts.map +0 -1
  106. package/dist/apispec/src/models/SuccessContextStatsResponse.js +0 -46
  107. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +0 -40
  108. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +0 -1
  109. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +0 -46
@@ -1,79 +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 * as runtime from '../runtime.js';
15
- import { SuccessSandboxObservabilityEventsResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class AuditApi extends runtime.BaseAPI {
20
- /**
21
- * Queries the audit-focused projection for a sandbox. Network audit events are included in scope; file audit is intentionally not included.
22
- * Query historical sandbox audit events
23
- */
24
- async apiV1SandboxesIdAuditEventsGetRaw(requestParameters, initOverrides) {
25
- if (requestParameters['id'] == null) {
26
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdAuditEventsGet().');
27
- }
28
- const queryParameters = {};
29
- if (requestParameters['startTime'] != null) {
30
- queryParameters['start_time'] = requestParameters['startTime'].toISOString();
31
- }
32
- if (requestParameters['endTime'] != null) {
33
- queryParameters['end_time'] = requestParameters['endTime'].toISOString();
34
- }
35
- if (requestParameters['limit'] != null) {
36
- queryParameters['limit'] = requestParameters['limit'];
37
- }
38
- if (requestParameters['cursor'] != null) {
39
- queryParameters['cursor'] = requestParameters['cursor'];
40
- }
41
- if (requestParameters['watch'] != null) {
42
- queryParameters['watch'] = requestParameters['watch'];
43
- }
44
- if (requestParameters['source'] != null) {
45
- queryParameters['source'] = requestParameters['source'];
46
- }
47
- if (requestParameters['eventType'] != null) {
48
- queryParameters['event_type'] = requestParameters['eventType'];
49
- }
50
- if (requestParameters['outcome'] != null) {
51
- queryParameters['outcome'] = requestParameters['outcome'];
52
- }
53
- const headerParameters = {};
54
- if (this.configuration && this.configuration.accessToken) {
55
- const token = this.configuration.accessToken;
56
- const tokenString = await token("bearerAuth", []);
57
- if (tokenString) {
58
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
59
- }
60
- }
61
- let urlPath = `/api/v1/sandboxes/{id}/audit/events`;
62
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
63
- const response = await this.request({
64
- path: urlPath,
65
- method: 'GET',
66
- headers: headerParameters,
67
- query: queryParameters,
68
- }, initOverrides);
69
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessSandboxObservabilityEventsResponseFromJSON(jsonValue));
70
- }
71
- /**
72
- * Queries the audit-focused projection for a sandbox. Network audit events are included in scope; file audit is intentionally not included.
73
- * Query historical sandbox audit events
74
- */
75
- async apiV1SandboxesIdAuditEventsGet(requestParameters, initOverrides) {
76
- const response = await this.apiV1SandboxesIdAuditEventsGetRaw(requestParameters, initOverrides);
77
- return await response.value();
78
- }
79
- }
@@ -1,64 +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 { ResourceUsage } from './ResourceUsage.js';
13
- /**
14
- *
15
- * @export
16
- * @interface ContextStatsResponse
17
- */
18
- export interface ContextStatsResponse {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof ContextStatsResponse
23
- */
24
- contextId?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof ContextStatsResponse
29
- */
30
- type?: string;
31
- /**
32
- * Alias for the REPL or CLI tool (e.g., python, node, bash, redis-cli)
33
- * @type {string}
34
- * @memberof ContextStatsResponse
35
- */
36
- alias?: string;
37
- /**
38
- *
39
- * @type {boolean}
40
- * @memberof ContextStatsResponse
41
- */
42
- running?: boolean;
43
- /**
44
- *
45
- * @type {boolean}
46
- * @memberof ContextStatsResponse
47
- */
48
- paused?: boolean;
49
- /**
50
- *
51
- * @type {ResourceUsage}
52
- * @memberof ContextStatsResponse
53
- */
54
- usage?: ResourceUsage;
55
- }
56
- /**
57
- * Check if a given object implements the ContextStatsResponse interface.
58
- */
59
- export declare function instanceOfContextStatsResponse(value: object): value is ContextStatsResponse;
60
- export declare function ContextStatsResponseFromJSON(json: any): ContextStatsResponse;
61
- export declare function ContextStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextStatsResponse;
62
- export declare function ContextStatsResponseToJSON(json: any): ContextStatsResponse;
63
- export declare function ContextStatsResponseToJSONTyped(value?: ContextStatsResponse | null, ignoreDiscriminator?: boolean): any;
64
- //# sourceMappingURL=ContextStatsResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContextStatsResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContextStatsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAE3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAa/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc9H"}
@@ -1,52 +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 { ResourceUsageFromJSON, ResourceUsageToJSON, } from './ResourceUsage.js';
15
- /**
16
- * Check if a given object implements the ContextStatsResponse interface.
17
- */
18
- export function instanceOfContextStatsResponse(value) {
19
- return true;
20
- }
21
- export function ContextStatsResponseFromJSON(json) {
22
- return ContextStatsResponseFromJSONTyped(json, false);
23
- }
24
- export function ContextStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'contextId': json['context_id'] == null ? undefined : json['context_id'],
30
- 'type': json['type'] == null ? undefined : json['type'],
31
- 'alias': json['alias'] == null ? undefined : json['alias'],
32
- 'running': json['running'] == null ? undefined : json['running'],
33
- 'paused': json['paused'] == null ? undefined : json['paused'],
34
- 'usage': json['usage'] == null ? undefined : ResourceUsageFromJSON(json['usage']),
35
- };
36
- }
37
- export function ContextStatsResponseToJSON(json) {
38
- return ContextStatsResponseToJSONTyped(json, false);
39
- }
40
- export function ContextStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- return {
45
- 'context_id': value['contextId'],
46
- 'type': value['type'],
47
- 'alias': value['alias'],
48
- 'running': value['running'],
49
- 'paused': value['paused'],
50
- 'usage': ResourceUsageToJSON(value['usage']),
51
- };
52
- }
@@ -1,52 +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 { PreStopHook } from './PreStopHook.js';
13
- /**
14
- *
15
- * @export
16
- * @interface LifecyclePolicy
17
- */
18
- export interface LifecyclePolicy {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof LifecyclePolicy
23
- */
24
- defaultTTL?: number;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof LifecyclePolicy
29
- */
30
- maxTTL?: number;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof LifecyclePolicy
35
- */
36
- idleTimeout?: number;
37
- /**
38
- *
39
- * @type {PreStopHook}
40
- * @memberof LifecyclePolicy
41
- */
42
- preStop?: PreStopHook;
43
- }
44
- /**
45
- * Check if a given object implements the LifecyclePolicy interface.
46
- */
47
- export declare function instanceOfLifecyclePolicy(value: object): value is LifecyclePolicy;
48
- export declare function LifecyclePolicyFromJSON(json: any): LifecyclePolicy;
49
- export declare function LifecyclePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LifecyclePolicy;
50
- export declare function LifecyclePolicyToJSON(json: any): LifecyclePolicy;
51
- export declare function LifecyclePolicyToJSONTyped(value?: LifecyclePolicy | null, ignoreDiscriminator?: boolean): any;
52
- //# sourceMappingURL=LifecyclePolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LifecyclePolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/LifecyclePolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"}
@@ -1,48 +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 { PreStopHookFromJSON, PreStopHookToJSON, } from './PreStopHook.js';
15
- /**
16
- * Check if a given object implements the LifecyclePolicy interface.
17
- */
18
- export function instanceOfLifecyclePolicy(value) {
19
- return true;
20
- }
21
- export function LifecyclePolicyFromJSON(json) {
22
- return LifecyclePolicyFromJSONTyped(json, false);
23
- }
24
- export function LifecyclePolicyFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'defaultTTL': json['defaultTTL'] == null ? undefined : json['defaultTTL'],
30
- 'maxTTL': json['maxTTL'] == null ? undefined : json['maxTTL'],
31
- 'idleTimeout': json['idleTimeout'] == null ? undefined : json['idleTimeout'],
32
- 'preStop': json['preStop'] == null ? undefined : PreStopHookFromJSON(json['preStop']),
33
- };
34
- }
35
- export function LifecyclePolicyToJSON(json) {
36
- return LifecyclePolicyToJSONTyped(json, false);
37
- }
38
- export function LifecyclePolicyToJSONTyped(value, ignoreDiscriminator = false) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- 'defaultTTL': value['defaultTTL'],
44
- 'maxTTL': value['maxTTL'],
45
- 'idleTimeout': value['idleTimeout'],
46
- 'preStop': PreStopHookToJSON(value['preStop']),
47
- };
48
- }
@@ -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 PreStopHook
16
- */
17
- export interface PreStopHook {
18
- /**
19
- *
20
- * @type {Array<string>}
21
- * @memberof PreStopHook
22
- */
23
- command?: Array<string>;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof PreStopHook
28
- */
29
- timeoutSeconds?: number;
30
- }
31
- /**
32
- * Check if a given object implements the PreStopHook interface.
33
- */
34
- export declare function instanceOfPreStopHook(value: object): value is PreStopHook;
35
- export declare function PreStopHookFromJSON(json: any): PreStopHook;
36
- export declare function PreStopHookFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreStopHook;
37
- export declare function PreStopHookToJSON(json: any): PreStopHook;
38
- export declare function PreStopHookToJSONTyped(value?: PreStopHook | null, ignoreDiscriminator?: boolean): any;
39
- //# sourceMappingURL=PreStopHook.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreStopHook.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PreStopHook.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAEzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAS7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5G"}
@@ -1,43 +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
- /**
15
- * Check if a given object implements the PreStopHook interface.
16
- */
17
- export function instanceOfPreStopHook(value) {
18
- return true;
19
- }
20
- export function PreStopHookFromJSON(json) {
21
- return PreStopHookFromJSONTyped(json, false);
22
- }
23
- export function PreStopHookFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'command': json['command'] == null ? undefined : json['command'],
29
- 'timeoutSeconds': json['timeoutSeconds'] == null ? undefined : json['timeoutSeconds'],
30
- };
31
- }
32
- export function PreStopHookToJSON(json) {
33
- return PreStopHookToJSONTyped(json, false);
34
- }
35
- export function PreStopHookToJSONTyped(value, ignoreDiscriminator = false) {
36
- if (value == null) {
37
- return value;
38
- }
39
- return {
40
- 'command': value['command'],
41
- 'timeoutSeconds': value['timeoutSeconds'],
42
- };
43
- }
@@ -1,33 +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 PutTeamQuotaRequest
16
- */
17
- export interface PutTeamQuotaRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof PutTeamQuotaRequest
22
- */
23
- limitValue: number;
24
- }
25
- /**
26
- * Check if a given object implements the PutTeamQuotaRequest interface.
27
- */
28
- export declare function instanceOfPutTeamQuotaRequest(value: object): value is PutTeamQuotaRequest;
29
- export declare function PutTeamQuotaRequestFromJSON(json: any): PutTeamQuotaRequest;
30
- export declare function PutTeamQuotaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutTeamQuotaRequest;
31
- export declare function PutTeamQuotaRequestToJSON(json: any): PutTeamQuotaRequest;
32
- export declare function PutTeamQuotaRequestToJSONTyped(value?: PutTeamQuotaRequest | null, ignoreDiscriminator?: boolean): any;
33
- //# sourceMappingURL=PutTeamQuotaRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PutTeamQuotaRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/PutTeamQuotaRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"}
@@ -1,43 +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
- /**
15
- * Check if a given object implements the PutTeamQuotaRequest interface.
16
- */
17
- export function instanceOfPutTeamQuotaRequest(value) {
18
- if (!('limitValue' in value) || value['limitValue'] === undefined)
19
- return false;
20
- return true;
21
- }
22
- export function PutTeamQuotaRequestFromJSON(json) {
23
- return PutTeamQuotaRequestFromJSONTyped(json, false);
24
- }
25
- export function PutTeamQuotaRequestFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'limitValue': json['limit_value'],
31
- };
32
- }
33
- export function PutTeamQuotaRequestToJSON(json) {
34
- return PutTeamQuotaRequestToJSONTyped(json, false);
35
- }
36
- export function PutTeamQuotaRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'limit_value': value['limitValue'],
42
- };
43
- }
@@ -1,101 +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 SandboxObservabilityMetricSample
16
- */
17
- export interface SandboxObservabilityMetricSample {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SandboxObservabilityMetricSample
22
- */
23
- teamId: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SandboxObservabilityMetricSample
28
- */
29
- sandboxId: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SandboxObservabilityMetricSample
34
- */
35
- regionId: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof SandboxObservabilityMetricSample
40
- */
41
- clusterId: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SandboxObservabilityMetricSample
46
- */
47
- contextId?: string;
48
- /**
49
- *
50
- * @type {Date}
51
- * @memberof SandboxObservabilityMetricSample
52
- */
53
- occurredAt: Date;
54
- /**
55
- *
56
- * @type {Date}
57
- * @memberof SandboxObservabilityMetricSample
58
- */
59
- ingestedAt: Date;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof SandboxObservabilityMetricSample
64
- */
65
- name: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof SandboxObservabilityMetricSample
70
- */
71
- unit?: string;
72
- /**
73
- *
74
- * @type {number}
75
- * @memberof SandboxObservabilityMetricSample
76
- */
77
- value: number;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof SandboxObservabilityMetricSample
82
- */
83
- cursor: string;
84
- /**
85
- *
86
- * @type {{ [key: string]: any; }}
87
- * @memberof SandboxObservabilityMetricSample
88
- */
89
- attributes?: {
90
- [key: string]: any;
91
- };
92
- }
93
- /**
94
- * Check if a given object implements the SandboxObservabilityMetricSample interface.
95
- */
96
- export declare function instanceOfSandboxObservabilityMetricSample(value: object): value is SandboxObservabilityMetricSample;
97
- export declare function SandboxObservabilityMetricSampleFromJSON(json: any): SandboxObservabilityMetricSample;
98
- export declare function SandboxObservabilityMetricSampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxObservabilityMetricSample;
99
- export declare function SandboxObservabilityMetricSampleToJSON(json: any): SandboxObservabilityMetricSample;
100
- export declare function SandboxObservabilityMetricSampleToJSONTyped(value?: SandboxObservabilityMetricSample | null, ignoreDiscriminator?: boolean): any;
101
- //# sourceMappingURL=SandboxObservabilityMetricSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SandboxObservabilityMetricSample.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxObservabilityMetricSample.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAWnH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CAmBvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBtJ"}
@@ -1,81 +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
- /**
15
- * Check if a given object implements the SandboxObservabilityMetricSample interface.
16
- */
17
- export function instanceOfSandboxObservabilityMetricSample(value) {
18
- if (!('teamId' in value) || value['teamId'] === undefined)
19
- return false;
20
- if (!('sandboxId' in value) || value['sandboxId'] === undefined)
21
- return false;
22
- if (!('regionId' in value) || value['regionId'] === undefined)
23
- return false;
24
- if (!('clusterId' in value) || value['clusterId'] === undefined)
25
- return false;
26
- if (!('occurredAt' in value) || value['occurredAt'] === undefined)
27
- return false;
28
- if (!('ingestedAt' in value) || value['ingestedAt'] === undefined)
29
- return false;
30
- if (!('name' in value) || value['name'] === undefined)
31
- return false;
32
- if (!('value' in value) || value['value'] === undefined)
33
- return false;
34
- if (!('cursor' in value) || value['cursor'] === undefined)
35
- return false;
36
- return true;
37
- }
38
- export function SandboxObservabilityMetricSampleFromJSON(json) {
39
- return SandboxObservabilityMetricSampleFromJSONTyped(json, false);
40
- }
41
- export function SandboxObservabilityMetricSampleFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'teamId': json['team_id'],
47
- 'sandboxId': json['sandbox_id'],
48
- 'regionId': json['region_id'],
49
- 'clusterId': json['cluster_id'],
50
- 'contextId': json['context_id'] == null ? undefined : json['context_id'],
51
- 'occurredAt': (new Date(json['occurred_at'])),
52
- 'ingestedAt': (new Date(json['ingested_at'])),
53
- 'name': json['name'],
54
- 'unit': json['unit'] == null ? undefined : json['unit'],
55
- 'value': json['value'],
56
- 'cursor': json['cursor'],
57
- 'attributes': json['attributes'] == null ? undefined : json['attributes'],
58
- };
59
- }
60
- export function SandboxObservabilityMetricSampleToJSON(json) {
61
- return SandboxObservabilityMetricSampleToJSONTyped(json, false);
62
- }
63
- export function SandboxObservabilityMetricSampleToJSONTyped(value, ignoreDiscriminator = false) {
64
- if (value == null) {
65
- return value;
66
- }
67
- return {
68
- 'team_id': value['teamId'],
69
- 'sandbox_id': value['sandboxId'],
70
- 'region_id': value['regionId'],
71
- 'cluster_id': value['clusterId'],
72
- 'context_id': value['contextId'],
73
- 'occurred_at': value['occurredAt'].toISOString(),
74
- 'ingested_at': value['ingestedAt'].toISOString(),
75
- 'name': value['name'],
76
- 'unit': value['unit'],
77
- 'value': value['value'],
78
- 'cursor': value['cursor'],
79
- 'attributes': value['attributes'],
80
- };
81
- }