sandbox0 0.7.6 → 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 (125) hide show
  1. package/README.md +47 -0
  2. package/dist/apispec/src/apis/ObservabilityApi.d.ts +27 -16
  3. package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -1
  4. package/dist/apispec/src/apis/ObservabilityApi.js +54 -25
  5. package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +6 -2
  6. package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
  7. package/dist/apispec/src/apis/SandboxRootfsApi.js +6 -2
  8. package/dist/apispec/src/apis/index.d.ts +0 -1
  9. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  10. package/dist/apispec/src/apis/index.js +0 -1
  11. package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts +2 -0
  12. package/dist/apispec/src/models/CreateSandboxRootFSSnapshotRequest.d.ts.map +1 -1
  13. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts +6 -6
  14. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.d.ts.map +1 -1
  15. package/dist/apispec/src/models/CreateSandboxVolumeS3Config.js +6 -2
  16. package/dist/apispec/src/models/ForkSandboxRequest.d.ts +2 -0
  17. package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -1
  18. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts +0 -1
  19. package/dist/apispec/src/models/SandboxObservabilityWatchLine.d.ts.map +1 -1
  20. package/dist/apispec/src/models/SandboxObservabilityWatchLine.js +0 -1
  21. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts +1 -2
  22. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.d.ts.map +1 -1
  23. package/dist/apispec/src/models/SandboxObservabilityWatchLineData.js +0 -7
  24. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts +60 -0
  25. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.d.ts.map +1 -0
  26. package/dist/apispec/src/models/SandboxRuntimeMetricDescriptor.js +62 -0
  27. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts +46 -0
  28. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.d.ts.map +1 -0
  29. package/dist/apispec/src/models/SandboxRuntimeMetricFreshness.js +48 -0
  30. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts +27 -0
  31. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.d.ts.map +1 -0
  32. package/dist/apispec/src/models/SandboxRuntimeMetricFreshnessStatus.js +44 -0
  33. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts +61 -0
  34. package/dist/apispec/src/models/SandboxRuntimeMetricGap.d.ts.map +1 -0
  35. package/dist/apispec/src/models/SandboxRuntimeMetricGap.js +59 -0
  36. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts +29 -0
  37. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.d.ts.map +1 -0
  38. package/dist/apispec/src/models/SandboxRuntimeMetricGapReason.js +46 -0
  39. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts +26 -0
  40. package/dist/apispec/src/models/SandboxRuntimeMetricKind.d.ts.map +1 -0
  41. package/dist/apispec/src/models/SandboxRuntimeMetricKind.js +43 -0
  42. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts +38 -0
  43. package/dist/apispec/src/models/SandboxRuntimeMetricName.d.ts.map +1 -0
  44. package/dist/apispec/src/models/SandboxRuntimeMetricName.js +55 -0
  45. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts +39 -0
  46. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.d.ts.map +1 -0
  47. package/dist/apispec/src/models/SandboxRuntimeMetricPoint.js +47 -0
  48. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts +34 -0
  49. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.d.ts.map +1 -0
  50. package/dist/apispec/src/models/SandboxRuntimeMetricSegment.js +44 -0
  51. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts +70 -0
  52. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.d.ts.map +1 -0
  53. package/dist/apispec/src/models/SandboxRuntimeMetricSeries.js +66 -0
  54. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts +30 -0
  55. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.d.ts.map +1 -0
  56. package/dist/apispec/src/models/SandboxRuntimeMetricStatistic.js +47 -0
  57. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts +31 -0
  58. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.d.ts.map +1 -0
  59. package/dist/apispec/src/models/SandboxRuntimeMetricUnit.js +48 -0
  60. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts +34 -0
  61. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  62. package/dist/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.js +44 -0
  63. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts +72 -0
  64. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.d.ts.map +1 -0
  65. package/dist/apispec/src/models/SandboxRuntimeMetricsResponse.js +70 -0
  66. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts +40 -0
  67. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.d.ts.map +1 -0
  68. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsCatalogResponse.js +46 -0
  69. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts +40 -0
  70. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.d.ts.map +1 -0
  71. package/dist/apispec/src/models/SuccessSandboxRuntimeMetricsResponse.js +46 -0
  72. package/dist/apispec/src/models/index.d.ts +16 -3
  73. package/dist/apispec/src/models/index.d.ts.map +1 -1
  74. package/dist/apispec/src/models/index.js +16 -3
  75. package/dist/client.d.ts +3 -6
  76. package/dist/client.d.ts.map +1 -1
  77. package/dist/client.js +10 -26
  78. package/dist/errors.d.ts +15 -0
  79. package/dist/errors.d.ts.map +1 -1
  80. package/dist/errors.js +34 -0
  81. package/dist/index.d.ts +25 -1
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +4 -1
  84. package/dist/models.d.ts +25 -11
  85. package/dist/models.d.ts.map +1 -1
  86. package/dist/resources/sandboxes.d.ts +13 -1
  87. package/dist/resources/sandboxes.d.ts.map +1 -1
  88. package/dist/resources/sandboxes.js +106 -2
  89. package/dist/sandbox_observability.d.ts +3 -5
  90. package/dist/sandbox_observability.d.ts.map +1 -1
  91. package/dist/sandbox_observability.js +4 -10
  92. package/package.json +1 -1
  93. package/dist/apispec/src/apis/AuditApi.d.ts +0 -40
  94. package/dist/apispec/src/apis/AuditApi.d.ts.map +0 -1
  95. package/dist/apispec/src/apis/AuditApi.js +0 -79
  96. package/dist/apispec/src/models/ContextStatsResponse.d.ts +0 -64
  97. package/dist/apispec/src/models/ContextStatsResponse.d.ts.map +0 -1
  98. package/dist/apispec/src/models/ContextStatsResponse.js +0 -52
  99. package/dist/apispec/src/models/LifecyclePolicy.d.ts +0 -52
  100. package/dist/apispec/src/models/LifecyclePolicy.d.ts.map +0 -1
  101. package/dist/apispec/src/models/LifecyclePolicy.js +0 -48
  102. package/dist/apispec/src/models/PreStopHook.d.ts +0 -39
  103. package/dist/apispec/src/models/PreStopHook.d.ts.map +0 -1
  104. package/dist/apispec/src/models/PreStopHook.js +0 -43
  105. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +0 -33
  106. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +0 -1
  107. package/dist/apispec/src/models/PutTeamQuotaRequest.js +0 -43
  108. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts +0 -101
  109. package/dist/apispec/src/models/SandboxObservabilityMetricSample.d.ts.map +0 -1
  110. package/dist/apispec/src/models/SandboxObservabilityMetricSample.js +0 -81
  111. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts +0 -46
  112. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.d.ts.map +0 -1
  113. package/dist/apispec/src/models/SandboxObservabilityMetricsResponse.js +0 -48
  114. package/dist/apispec/src/models/SandboxProbeSet.d.ts +0 -46
  115. package/dist/apispec/src/models/SandboxProbeSet.d.ts.map +0 -1
  116. package/dist/apispec/src/models/SandboxProbeSet.js +0 -46
  117. package/dist/apispec/src/models/SandboxProbeSpec.d.ts +0 -66
  118. package/dist/apispec/src/models/SandboxProbeSpec.d.ts.map +0 -1
  119. package/dist/apispec/src/models/SandboxProbeSpec.js +0 -54
  120. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts +0 -40
  121. package/dist/apispec/src/models/SuccessContextStatsResponse.d.ts.map +0 -1
  122. package/dist/apispec/src/models/SuccessContextStatsResponse.js +0 -46
  123. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts +0 -40
  124. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.d.ts.map +0 -1
  125. package/dist/apispec/src/models/SuccessSandboxObservabilityMetricsResponse.js +0 -46
@@ -0,0 +1,55 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const SandboxRuntimeMetricName = {
19
+ SandboxCpuUtilization: 'sandbox.cpu.utilization',
20
+ SandboxCpuUsage: 'sandbox.cpu.usage',
21
+ SandboxCpuTime: 'sandbox.cpu.time',
22
+ SandboxCpuLimit: 'sandbox.cpu.limit',
23
+ SandboxMemoryUsage: 'sandbox.memory.usage',
24
+ SandboxMemoryWorkingSet: 'sandbox.memory.working_set',
25
+ SandboxMemoryAvailable: 'sandbox.memory.available',
26
+ SandboxMemoryLimit: 'sandbox.memory.limit',
27
+ SandboxMemoryUtilization: 'sandbox.memory.utilization',
28
+ SandboxNetworkIo: 'sandbox.network.io',
29
+ SandboxNetworkErrors: 'sandbox.network.errors',
30
+ SandboxProcessCount: 'sandbox.process.count',
31
+ SandboxRootfsWritableUsage: 'sandbox.rootfs.writable.usage',
32
+ SandboxRootfsWritableInodes: 'sandbox.rootfs.writable.inodes'
33
+ };
34
+ export function instanceOfSandboxRuntimeMetricName(value) {
35
+ for (const key in SandboxRuntimeMetricName) {
36
+ if (Object.prototype.hasOwnProperty.call(SandboxRuntimeMetricName, key)) {
37
+ if (SandboxRuntimeMetricName[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ export function SandboxRuntimeMetricNameFromJSON(json) {
45
+ return SandboxRuntimeMetricNameFromJSONTyped(json, false);
46
+ }
47
+ export function SandboxRuntimeMetricNameFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ export function SandboxRuntimeMetricNameToJSON(value) {
51
+ return value;
52
+ }
53
+ export function SandboxRuntimeMetricNameToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }
@@ -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 SandboxRuntimeMetricPoint
16
+ */
17
+ export interface SandboxRuntimeMetricPoint {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof SandboxRuntimeMetricPoint
22
+ */
23
+ time: Date;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SandboxRuntimeMetricPoint
28
+ */
29
+ value: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SandboxRuntimeMetricPoint interface.
33
+ */
34
+ export declare function instanceOfSandboxRuntimeMetricPoint(value: object): value is SandboxRuntimeMetricPoint;
35
+ export declare function SandboxRuntimeMetricPointFromJSON(json: any): SandboxRuntimeMetricPoint;
36
+ export declare function SandboxRuntimeMetricPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricPoint;
37
+ export declare function SandboxRuntimeMetricPointToJSON(json: any): SandboxRuntimeMetricPoint;
38
+ export declare function SandboxRuntimeMetricPointToJSONTyped(value?: SandboxRuntimeMetricPoint | null, ignoreDiscriminator?: boolean): any;
39
+ //# sourceMappingURL=SandboxRuntimeMetricPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricPoint.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricPoint.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAIrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CASzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxI"}
@@ -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 SandboxRuntimeMetricPoint interface.
16
+ */
17
+ export function instanceOfSandboxRuntimeMetricPoint(value) {
18
+ if (!('time' in value) || value['time'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SandboxRuntimeMetricPointFromJSON(json) {
25
+ return SandboxRuntimeMetricPointFromJSONTyped(json, false);
26
+ }
27
+ export function SandboxRuntimeMetricPointFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'time': (new Date(json['time'])),
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function SandboxRuntimeMetricPointToJSON(json) {
37
+ return SandboxRuntimeMetricPointToJSONTyped(json, false);
38
+ }
39
+ export function SandboxRuntimeMetricPointToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'time': value['time'].toISOString(),
45
+ 'value': value['value'],
46
+ };
47
+ }
@@ -0,0 +1,34 @@
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 { SandboxRuntimeMetricPoint } from './SandboxRuntimeMetricPoint.js';
13
+ /**
14
+ * A continuous series segment. Runtime restarts and collector counter resets start a new segment without exposing internal topology identifiers.
15
+ * @export
16
+ * @interface SandboxRuntimeMetricSegment
17
+ */
18
+ export interface SandboxRuntimeMetricSegment {
19
+ /**
20
+ *
21
+ * @type {Array<SandboxRuntimeMetricPoint>}
22
+ * @memberof SandboxRuntimeMetricSegment
23
+ */
24
+ points: Array<SandboxRuntimeMetricPoint>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SandboxRuntimeMetricSegment interface.
28
+ */
29
+ export declare function instanceOfSandboxRuntimeMetricSegment(value: object): value is SandboxRuntimeMetricSegment;
30
+ export declare function SandboxRuntimeMetricSegmentFromJSON(json: any): SandboxRuntimeMetricSegment;
31
+ export declare function SandboxRuntimeMetricSegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricSegment;
32
+ export declare function SandboxRuntimeMetricSegmentToJSON(json: any): SandboxRuntimeMetricSegment;
33
+ export declare function SandboxRuntimeMetricSegmentToJSONTyped(value?: SandboxRuntimeMetricSegment | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=SandboxRuntimeMetricSegment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricSegment.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricSegment.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAQ7E;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAGzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAQ7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5I"}
@@ -0,0 +1,44 @@
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 { SandboxRuntimeMetricPointFromJSON, SandboxRuntimeMetricPointToJSON, } from './SandboxRuntimeMetricPoint.js';
15
+ /**
16
+ * Check if a given object implements the SandboxRuntimeMetricSegment interface.
17
+ */
18
+ export function instanceOfSandboxRuntimeMetricSegment(value) {
19
+ if (!('points' in value) || value['points'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SandboxRuntimeMetricSegmentFromJSON(json) {
24
+ return SandboxRuntimeMetricSegmentFromJSONTyped(json, false);
25
+ }
26
+ export function SandboxRuntimeMetricSegmentFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'points': (json['points'].map(SandboxRuntimeMetricPointFromJSON)),
32
+ };
33
+ }
34
+ export function SandboxRuntimeMetricSegmentToJSON(json) {
35
+ return SandboxRuntimeMetricSegmentToJSONTyped(json, false);
36
+ }
37
+ export function SandboxRuntimeMetricSegmentToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'points': (value['points'].map(SandboxRuntimeMetricPointToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SandboxRuntimeMetricName } from './SandboxRuntimeMetricName.js';
13
+ import type { SandboxRuntimeMetricUnit } from './SandboxRuntimeMetricUnit.js';
14
+ import type { SandboxRuntimeMetricStatistic } from './SandboxRuntimeMetricStatistic.js';
15
+ import type { SandboxRuntimeMetricKind } from './SandboxRuntimeMetricKind.js';
16
+ import type { SandboxRuntimeMetricSegment } from './SandboxRuntimeMetricSegment.js';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface SandboxRuntimeMetricSeries
21
+ */
22
+ export interface SandboxRuntimeMetricSeries {
23
+ /**
24
+ *
25
+ * @type {SandboxRuntimeMetricName}
26
+ * @memberof SandboxRuntimeMetricSeries
27
+ */
28
+ metric: SandboxRuntimeMetricName;
29
+ /**
30
+ *
31
+ * @type {SandboxRuntimeMetricKind}
32
+ * @memberof SandboxRuntimeMetricSeries
33
+ */
34
+ kind: SandboxRuntimeMetricKind;
35
+ /**
36
+ *
37
+ * @type {SandboxRuntimeMetricUnit}
38
+ * @memberof SandboxRuntimeMetricSeries
39
+ */
40
+ unit: SandboxRuntimeMetricUnit;
41
+ /**
42
+ *
43
+ * @type {SandboxRuntimeMetricStatistic}
44
+ * @memberof SandboxRuntimeMetricSeries
45
+ */
46
+ statistic: SandboxRuntimeMetricStatistic;
47
+ /**
48
+ *
49
+ * @type {{ [key: string]: string; }}
50
+ * @memberof SandboxRuntimeMetricSeries
51
+ */
52
+ dimensions?: {
53
+ [key: string]: string;
54
+ };
55
+ /**
56
+ *
57
+ * @type {Array<SandboxRuntimeMetricSegment>}
58
+ * @memberof SandboxRuntimeMetricSeries
59
+ */
60
+ segments: Array<SandboxRuntimeMetricSegment>;
61
+ }
62
+ /**
63
+ * Check if a given object implements the SandboxRuntimeMetricSeries interface.
64
+ */
65
+ export declare function instanceOfSandboxRuntimeMetricSeries(value: object): value is SandboxRuntimeMetricSeries;
66
+ export declare function SandboxRuntimeMetricSeriesFromJSON(json: any): SandboxRuntimeMetricSeries;
67
+ export declare function SandboxRuntimeMetricSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricSeries;
68
+ export declare function SandboxRuntimeMetricSeriesToJSON(json: any): SandboxRuntimeMetricSeries;
69
+ export declare function SandboxRuntimeMetricSeriesToJSONTyped(value?: SandboxRuntimeMetricSeries | null, ignoreDiscriminator?: boolean): any;
70
+ //# sourceMappingURL=SandboxRuntimeMetricSeries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricSeries.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricSeries.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAOrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAQjF;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;;;OAIG;IACH,SAAS,EAAE,6BAA6B,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACxC;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;CAChD;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAOvG;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"}
@@ -0,0 +1,66 @@
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 { SandboxRuntimeMetricNameFromJSON, SandboxRuntimeMetricNameToJSON, } from './SandboxRuntimeMetricName.js';
15
+ import { SandboxRuntimeMetricUnitFromJSON, SandboxRuntimeMetricUnitToJSON, } from './SandboxRuntimeMetricUnit.js';
16
+ import { SandboxRuntimeMetricStatisticFromJSON, SandboxRuntimeMetricStatisticToJSON, } from './SandboxRuntimeMetricStatistic.js';
17
+ import { SandboxRuntimeMetricKindFromJSON, SandboxRuntimeMetricKindToJSON, } from './SandboxRuntimeMetricKind.js';
18
+ import { SandboxRuntimeMetricSegmentFromJSON, SandboxRuntimeMetricSegmentToJSON, } from './SandboxRuntimeMetricSegment.js';
19
+ /**
20
+ * Check if a given object implements the SandboxRuntimeMetricSeries interface.
21
+ */
22
+ export function instanceOfSandboxRuntimeMetricSeries(value) {
23
+ if (!('metric' in value) || value['metric'] === undefined)
24
+ return false;
25
+ if (!('kind' in value) || value['kind'] === undefined)
26
+ return false;
27
+ if (!('unit' in value) || value['unit'] === undefined)
28
+ return false;
29
+ if (!('statistic' in value) || value['statistic'] === undefined)
30
+ return false;
31
+ if (!('segments' in value) || value['segments'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function SandboxRuntimeMetricSeriesFromJSON(json) {
36
+ return SandboxRuntimeMetricSeriesFromJSONTyped(json, false);
37
+ }
38
+ export function SandboxRuntimeMetricSeriesFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'metric': SandboxRuntimeMetricNameFromJSON(json['metric']),
44
+ 'kind': SandboxRuntimeMetricKindFromJSON(json['kind']),
45
+ 'unit': SandboxRuntimeMetricUnitFromJSON(json['unit']),
46
+ 'statistic': SandboxRuntimeMetricStatisticFromJSON(json['statistic']),
47
+ 'dimensions': json['dimensions'] == null ? undefined : json['dimensions'],
48
+ 'segments': (json['segments'].map(SandboxRuntimeMetricSegmentFromJSON)),
49
+ };
50
+ }
51
+ export function SandboxRuntimeMetricSeriesToJSON(json) {
52
+ return SandboxRuntimeMetricSeriesToJSONTyped(json, false);
53
+ }
54
+ export function SandboxRuntimeMetricSeriesToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'metric': SandboxRuntimeMetricNameToJSON(value['metric']),
60
+ 'kind': SandboxRuntimeMetricKindToJSON(value['kind']),
61
+ 'unit': SandboxRuntimeMetricUnitToJSON(value['unit']),
62
+ 'statistic': SandboxRuntimeMetricStatisticToJSON(value['statistic']),
63
+ 'dimensions': value['dimensions'],
64
+ 'segments': (value['segments'].map(SandboxRuntimeMetricSegmentToJSON)),
65
+ };
66
+ }
@@ -0,0 +1,30 @@
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
+ */
16
+ export declare const SandboxRuntimeMetricStatistic: {
17
+ readonly Auto: "auto";
18
+ readonly Average: "average";
19
+ readonly Minimum: "minimum";
20
+ readonly Maximum: "maximum";
21
+ readonly Last: "last";
22
+ readonly Rate: "rate";
23
+ };
24
+ export type SandboxRuntimeMetricStatistic = typeof SandboxRuntimeMetricStatistic[keyof typeof SandboxRuntimeMetricStatistic];
25
+ export declare function instanceOfSandboxRuntimeMetricStatistic(value: any): boolean;
26
+ export declare function SandboxRuntimeMetricStatisticFromJSON(json: any): SandboxRuntimeMetricStatistic;
27
+ export declare function SandboxRuntimeMetricStatisticFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricStatistic;
28
+ export declare function SandboxRuntimeMetricStatisticToJSON(value?: SandboxRuntimeMetricStatistic | null): any;
29
+ export declare function SandboxRuntimeMetricStatisticToJSONTyped(value: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricStatistic;
30
+ //# sourceMappingURL=SandboxRuntimeMetricStatistic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricStatistic.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricStatistic.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;CAOhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS3E;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAEjI;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,GAAG,CAErG;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAEhI"}
@@ -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
+ *
16
+ * @export
17
+ */
18
+ export const SandboxRuntimeMetricStatistic = {
19
+ Auto: 'auto',
20
+ Average: 'average',
21
+ Minimum: 'minimum',
22
+ Maximum: 'maximum',
23
+ Last: 'last',
24
+ Rate: 'rate'
25
+ };
26
+ export function instanceOfSandboxRuntimeMetricStatistic(value) {
27
+ for (const key in SandboxRuntimeMetricStatistic) {
28
+ if (Object.prototype.hasOwnProperty.call(SandboxRuntimeMetricStatistic, key)) {
29
+ if (SandboxRuntimeMetricStatistic[key] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+ export function SandboxRuntimeMetricStatisticFromJSON(json) {
37
+ return SandboxRuntimeMetricStatisticFromJSONTyped(json, false);
38
+ }
39
+ export function SandboxRuntimeMetricStatisticFromJSONTyped(json, ignoreDiscriminator) {
40
+ return json;
41
+ }
42
+ export function SandboxRuntimeMetricStatisticToJSON(value) {
43
+ return value;
44
+ }
45
+ export function SandboxRuntimeMetricStatisticToJSONTyped(value, ignoreDiscriminator) {
46
+ return value;
47
+ }
@@ -0,0 +1,31 @@
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
+ */
16
+ export declare const SandboxRuntimeMetricUnit: {
17
+ readonly Ratio: "ratio";
18
+ readonly Cores: "cores";
19
+ readonly Seconds: "seconds";
20
+ readonly Bytes: "bytes";
21
+ readonly Count: "count";
22
+ readonly BytesPerSecond: "bytes_per_second";
23
+ readonly CountPerSecond: "count_per_second";
24
+ };
25
+ export type SandboxRuntimeMetricUnit = typeof SandboxRuntimeMetricUnit[keyof typeof SandboxRuntimeMetricUnit];
26
+ export declare function instanceOfSandboxRuntimeMetricUnit(value: any): boolean;
27
+ export declare function SandboxRuntimeMetricUnitFromJSON(json: any): SandboxRuntimeMetricUnit;
28
+ export declare function SandboxRuntimeMetricUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricUnit;
29
+ export declare function SandboxRuntimeMetricUnitToJSON(value?: SandboxRuntimeMetricUnit | null): any;
30
+ export declare function SandboxRuntimeMetricUnitToJSONTyped(value: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricUnit;
31
+ //# sourceMappingURL=SandboxRuntimeMetricUnit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricUnit.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricUnit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;CAQ3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAStE;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEvH;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,GAAG,GAAG,CAE3F;AAED,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAEtH"}
@@ -0,0 +1,48 @@
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
+ *
16
+ * @export
17
+ */
18
+ export const SandboxRuntimeMetricUnit = {
19
+ Ratio: 'ratio',
20
+ Cores: 'cores',
21
+ Seconds: 'seconds',
22
+ Bytes: 'bytes',
23
+ Count: 'count',
24
+ BytesPerSecond: 'bytes_per_second',
25
+ CountPerSecond: 'count_per_second'
26
+ };
27
+ export function instanceOfSandboxRuntimeMetricUnit(value) {
28
+ for (const key in SandboxRuntimeMetricUnit) {
29
+ if (Object.prototype.hasOwnProperty.call(SandboxRuntimeMetricUnit, key)) {
30
+ if (SandboxRuntimeMetricUnit[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+ export function SandboxRuntimeMetricUnitFromJSON(json) {
38
+ return SandboxRuntimeMetricUnitFromJSONTyped(json, false);
39
+ }
40
+ export function SandboxRuntimeMetricUnitFromJSONTyped(json, ignoreDiscriminator) {
41
+ return json;
42
+ }
43
+ export function SandboxRuntimeMetricUnitToJSON(value) {
44
+ return value;
45
+ }
46
+ export function SandboxRuntimeMetricUnitToJSONTyped(value, ignoreDiscriminator) {
47
+ return value;
48
+ }
@@ -0,0 +1,34 @@
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 { SandboxRuntimeMetricDescriptor } from './SandboxRuntimeMetricDescriptor.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SandboxRuntimeMetricsCatalogResponse
17
+ */
18
+ export interface SandboxRuntimeMetricsCatalogResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SandboxRuntimeMetricDescriptor>}
22
+ * @memberof SandboxRuntimeMetricsCatalogResponse
23
+ */
24
+ metrics: Array<SandboxRuntimeMetricDescriptor>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SandboxRuntimeMetricsCatalogResponse interface.
28
+ */
29
+ export declare function instanceOfSandboxRuntimeMetricsCatalogResponse(value: object): value is SandboxRuntimeMetricsCatalogResponse;
30
+ export declare function SandboxRuntimeMetricsCatalogResponseFromJSON(json: any): SandboxRuntimeMetricsCatalogResponse;
31
+ export declare function SandboxRuntimeMetricsCatalogResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxRuntimeMetricsCatalogResponse;
32
+ export declare function SandboxRuntimeMetricsCatalogResponseToJSON(json: any): SandboxRuntimeMetricsCatalogResponse;
33
+ export declare function SandboxRuntimeMetricsCatalogResponseToJSONTyped(value?: SandboxRuntimeMetricsCatalogResponse | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=SandboxRuntimeMetricsCatalogResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxRuntimeMetricsCatalogResponse.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxRuntimeMetricsCatalogResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAQvF;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;CAClD;AAED;;GAEG;AACH,wBAAgB,8CAA8C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oCAAoC,CAG3H;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE5G;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oCAAoC,CAQ/I;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE1G;AAED,wBAAgB,+CAA+C,CAAC,KAAK,CAAC,EAAE,oCAAoC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9J"}
@@ -0,0 +1,44 @@
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 { SandboxRuntimeMetricDescriptorFromJSON, SandboxRuntimeMetricDescriptorToJSON, } from './SandboxRuntimeMetricDescriptor.js';
15
+ /**
16
+ * Check if a given object implements the SandboxRuntimeMetricsCatalogResponse interface.
17
+ */
18
+ export function instanceOfSandboxRuntimeMetricsCatalogResponse(value) {
19
+ if (!('metrics' in value) || value['metrics'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SandboxRuntimeMetricsCatalogResponseFromJSON(json) {
24
+ return SandboxRuntimeMetricsCatalogResponseFromJSONTyped(json, false);
25
+ }
26
+ export function SandboxRuntimeMetricsCatalogResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'metrics': (json['metrics'].map(SandboxRuntimeMetricDescriptorFromJSON)),
32
+ };
33
+ }
34
+ export function SandboxRuntimeMetricsCatalogResponseToJSON(json) {
35
+ return SandboxRuntimeMetricsCatalogResponseToJSONTyped(json, false);
36
+ }
37
+ export function SandboxRuntimeMetricsCatalogResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'metrics': (value['metrics'].map(SandboxRuntimeMetricDescriptorToJSON)),
43
+ };
44
+ }