sandbox0 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +0 -1
  2. package/dist/apispec/src/models/AppArmorProfile.d.ts +48 -0
  3. package/dist/apispec/src/models/AppArmorProfile.d.ts.map +1 -0
  4. package/dist/apispec/src/models/AppArmorProfile.js +53 -0
  5. package/dist/apispec/src/models/Capabilities.d.ts +6 -0
  6. package/dist/apispec/src/models/Capabilities.d.ts.map +1 -1
  7. package/dist/apispec/src/models/Capabilities.js +2 -0
  8. package/dist/apispec/src/models/EmptyDirMountSpec.d.ts +39 -0
  9. package/dist/apispec/src/models/EmptyDirMountSpec.d.ts.map +1 -0
  10. package/dist/apispec/src/models/EmptyDirMountSpec.js +45 -0
  11. package/dist/apispec/src/models/PauseSandboxResponse.d.ts +0 -7
  12. package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
  13. package/dist/apispec/src/models/PauseSandboxResponse.js +0 -5
  14. package/dist/apispec/src/models/PodSpecOverride.d.ts +7 -0
  15. package/dist/apispec/src/models/PodSpecOverride.d.ts.map +1 -1
  16. package/dist/apispec/src/models/PodSpecOverride.js +3 -0
  17. package/dist/apispec/src/models/ResourceQuota.d.ts +6 -0
  18. package/dist/apispec/src/models/ResourceQuota.d.ts.map +1 -1
  19. package/dist/apispec/src/models/ResourceQuota.js +2 -0
  20. package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +0 -7
  21. package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
  22. package/dist/apispec/src/models/ResumeSandboxResponse.js +0 -5
  23. package/dist/apispec/src/models/Sandbox.d.ts +13 -8
  24. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  25. package/dist/apispec/src/models/Sandbox.js +8 -5
  26. package/dist/apispec/src/models/SandboxAppService.d.ts +2 -2
  27. package/dist/apispec/src/models/SandboxAppService.d.ts.map +1 -1
  28. package/dist/apispec/src/models/SandboxAppService.js +1 -3
  29. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +1 -7
  30. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts.map +1 -1
  31. package/dist/apispec/src/models/SandboxAppServiceRuntime.js +0 -3
  32. package/dist/apispec/src/models/SandboxAppServiceView.d.ts +2 -2
  33. package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -1
  34. package/dist/apispec/src/models/SandboxAppServiceView.js +1 -3
  35. package/dist/apispec/src/models/SandboxConfig.d.ts +2 -2
  36. package/dist/apispec/src/models/SandboxFunctionSource.d.ts +0 -6
  37. package/dist/apispec/src/models/SandboxFunctionSource.d.ts.map +1 -1
  38. package/dist/apispec/src/models/SandboxFunctionSource.js +0 -2
  39. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +4 -3
  40. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -1
  41. package/dist/apispec/src/models/SandboxLifecycleStatus.js +4 -3
  42. package/dist/apispec/src/models/SandboxSummary.d.ts +10 -5
  43. package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
  44. package/dist/apispec/src/models/SandboxSummary.js +7 -4
  45. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts +0 -7
  46. package/dist/apispec/src/models/SandboxTemplateSpec.d.ts.map +1 -1
  47. package/dist/apispec/src/models/SandboxTemplateSpec.js +0 -3
  48. package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +2 -2
  49. package/dist/apispec/src/models/SeccompProfile.d.ts +48 -0
  50. package/dist/apispec/src/models/SeccompProfile.d.ts.map +1 -0
  51. package/dist/apispec/src/models/SeccompProfile.js +53 -0
  52. package/dist/apispec/src/models/SecurityContext.d.ts +38 -0
  53. package/dist/apispec/src/models/SecurityContext.d.ts.map +1 -1
  54. package/dist/apispec/src/models/SecurityContext.js +14 -0
  55. package/dist/apispec/src/models/index.d.ts +3 -4
  56. package/dist/apispec/src/models/index.d.ts.map +1 -1
  57. package/dist/apispec/src/models/index.js +3 -4
  58. package/dist/apispec_compat.d.ts +1 -1509
  59. package/dist/apispec_compat.d.ts.map +1 -1
  60. package/dist/apispec_compat.js +1 -10
  61. package/dist/response_normalize.d.ts.map +1 -1
  62. package/dist/response_normalize.js +0 -1
  63. package/dist/template_helpers.d.ts +1 -9
  64. package/dist/template_helpers.d.ts.map +1 -1
  65. package/dist/template_helpers.js +0 -10
  66. package/package.json +1 -1
  67. package/dist/apispec/src/models/SandboxPowerState.d.ts +0 -82
  68. package/dist/apispec/src/models/SandboxPowerState.d.ts.map +0 -1
  69. package/dist/apispec/src/models/SandboxPowerState.js +0 -81
  70. package/dist/apispec/src/models/WarmProcessSpec.d.ts +0 -80
  71. package/dist/apispec/src/models/WarmProcessSpec.d.ts.map +0 -1
  72. package/dist/apispec/src/models/WarmProcessSpec.js +0 -63
@@ -1 +1 @@
1
- {"version":3,"file":"apispec_compat.d.ts","sourceRoot":"","sources":["../src/apispec_compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,uBAAuB,CAAC;AAUvD,eAAO,MAAM,OAAO,sBAA8B,CAAC;AACnD,eAAO,MAAM,IAAI,mBAA2B,CAAC;AAK7C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
1
+ {"version":3,"file":"apispec_compat.d.ts","sourceRoot":"","sources":["../src/apispec_compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,uBAAuB,CAAC;AAUvD,eAAO,MAAM,OAAO,sBAA8B,CAAC;AACnD,eAAO,MAAM,IAAI,mBAA2B,CAAC;AAC7C,eAAO,MAAM,MAAM,qBAA6B,CAAC"}
@@ -7,13 +7,4 @@ function unwrapModule(mod) {
7
7
  }
8
8
  export const runtime = unwrapModule(runtimeImport);
9
9
  export const apis = unwrapModule(apisImport);
10
- const rawModels = unwrapModule(modelsImport);
11
- const warmProcessSpecTypeEnum = rawModels.WarmProcessSpecTypeEnum;
12
- export const models = {
13
- ...rawModels,
14
- WarmProcessSpecTypeEnum: {
15
- ...warmProcessSpecTypeEnum,
16
- Repl: warmProcessSpecTypeEnum.Repl ?? warmProcessSpecTypeEnum.WarmProcessSpecTypeRepl,
17
- Cmd: warmProcessSpecTypeEnum.Cmd ?? warmProcessSpecTypeEnum.WarmProcessSpecTypeCmd,
18
- },
19
- };
10
+ export const models = unwrapModule(modelsImport);
@@ -1 +1 @@
1
- {"version":3,"file":"response_normalize.d.ts","sourceRoot":"","sources":["../src/response_normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AA8HzE,wBAAgB,0BAA0B,IAAI,UAAU,CAIvD"}
1
+ {"version":3,"file":"response_normalize.d.ts","sourceRoot":"","sources":["../src/response_normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AA6HzE,wBAAgB,0BAA0B,IAAI,UAAU,CAIvD"}
@@ -40,7 +40,6 @@ const NULL_ARRAY_KEYS = new Set([
40
40
  "templates",
41
41
  "tolerations",
42
42
  "values",
43
- "warmProcesses",
44
43
  ]);
45
44
  function normalizeNullStringMap(value) {
46
45
  let changed = false;
@@ -1,9 +1,8 @@
1
- import type { ContainerSpec, EnvVar, LifecyclePolicy, PoolStrategy, ResourceQuota, SandboxNetworkPolicy, SandboxTemplateSpec, TemplateCreateRequest, TemplateUpdateRequest, WarmProcessSpec } from "./apispec/src/models/index.js";
1
+ import type { ContainerSpec, EnvVar, LifecyclePolicy, PoolStrategy, ResourceQuota, SandboxNetworkPolicy, SandboxTemplateSpec, TemplateCreateRequest, TemplateUpdateRequest } from "./apispec/src/models/index.js";
2
2
  export interface TemplateSpecInit {
3
3
  description?: string;
4
4
  displayName?: string;
5
5
  tags?: string[];
6
- warmProcesses?: WarmProcessSpec[];
7
6
  pod?: SandboxTemplateSpec["pod"];
8
7
  network?: SandboxNetworkPolicy;
9
8
  pool?: PoolStrategy;
@@ -18,15 +17,8 @@ export interface ContainerInit {
18
17
  env?: EnvVar[];
19
18
  securityContext?: ContainerSpec["securityContext"];
20
19
  }
21
- export interface WarmProcessInit {
22
- alias?: string;
23
- command?: string[];
24
- cwd?: string;
25
- envVars?: Record<string, string>;
26
- }
27
20
  export declare function resources(cpu: string, memory: string): ResourceQuota;
28
21
  export declare function container(image: string, containerResources: ResourceQuota, init?: ContainerInit): ContainerSpec;
29
- export declare function warmProcess(type: WarmProcessSpec["type"], init?: WarmProcessInit): WarmProcessSpec;
30
22
  export declare function templateSpec(mainContainer: ContainerSpec, init?: TemplateSpecInit): SandboxTemplateSpec;
31
23
  export declare function templateCreateRequest(templateId: string, spec: SandboxTemplateSpec): TemplateCreateRequest;
32
24
  export declare function templateUpdateRequest(spec: SandboxTemplateSpec): TemplateUpdateRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"template_helpers.d.ts","sourceRoot":"","sources":["../src/template_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,eAAe,EACf,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,GAAG,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC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IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACpD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAEpE;AAED,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,aAAa,EACjC,IAAI,GAAE,aAAkB,GACvB,aAAa,CAQf;AAED,wBAAgB,YAAY,CAC1B,aAAa,EAAE,aAAa,EAC5B,IAAI,GAAE,gBAAqB,GAC1B,mBAAmB,CAerB;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,mBAAmB,GACxB,qBAAqB,CAEvB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,mBAAmB,GAAG,qBAAqB,CAEtF"}
@@ -10,22 +10,12 @@ export function container(image, containerResources, init = {}) {
10
10
  ...(init.securityContext ? { securityContext: init.securityContext } : {}),
11
11
  };
12
12
  }
13
- export function warmProcess(type, init = {}) {
14
- return {
15
- type,
16
- ...(init.alias ? { alias: init.alias } : {}),
17
- ...(init.command ? { command: [...init.command] } : {}),
18
- ...(init.cwd ? { cwd: init.cwd } : {}),
19
- ...(init.envVars ? { envVars: { ...init.envVars } } : {}),
20
- };
21
- }
22
13
  export function templateSpec(mainContainer, init = {}) {
23
14
  return {
24
15
  mainContainer,
25
16
  ...(init.description ? { description: init.description } : {}),
26
17
  ...(init.displayName ? { displayName: init.displayName } : {}),
27
18
  ...(init.tags ? { tags: [...init.tags] } : {}),
28
- ...(init.warmProcesses ? { warmProcesses: [...init.warmProcesses] } : {}),
29
19
  ...(init.pod ? { pod: init.pod } : {}),
30
20
  ...(init.network ? { network: init.network } : {}),
31
21
  ...(init.pool ? { pool: init.pool } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandbox0",
3
- "version": "0.5.4",
3
+ "version": "0.6.0",
4
4
  "description": "Sandbox0 JavaScript/TypeScript SDK",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sandbox0 Team",
@@ -1,82 +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 SandboxPowerState
16
- */
17
- export interface SandboxPowerState {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SandboxPowerState
22
- */
23
- desired: SandboxPowerStateDesiredEnum;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof SandboxPowerState
28
- */
29
- desiredGeneration: number;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SandboxPowerState
34
- */
35
- observed: SandboxPowerStateObservedEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SandboxPowerState
40
- */
41
- observedGeneration: number;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SandboxPowerState
46
- */
47
- phase: SandboxPowerStatePhaseEnum;
48
- }
49
- /**
50
- * @export
51
- */
52
- export declare const SandboxPowerStateDesiredEnum: {
53
- readonly Active: "active";
54
- readonly Paused: "paused";
55
- };
56
- export type SandboxPowerStateDesiredEnum = typeof SandboxPowerStateDesiredEnum[keyof typeof SandboxPowerStateDesiredEnum];
57
- /**
58
- * @export
59
- */
60
- export declare const SandboxPowerStateObservedEnum: {
61
- readonly SandboxPowerStateObservedActive: "active";
62
- readonly SandboxPowerStateObservedPaused: "paused";
63
- };
64
- export type SandboxPowerStateObservedEnum = typeof SandboxPowerStateObservedEnum[keyof typeof SandboxPowerStateObservedEnum];
65
- /**
66
- * @export
67
- */
68
- export declare const SandboxPowerStatePhaseEnum: {
69
- readonly Stable: "stable";
70
- readonly Pausing: "pausing";
71
- readonly Resuming: "resuming";
72
- };
73
- export type SandboxPowerStatePhaseEnum = typeof SandboxPowerStatePhaseEnum[keyof typeof SandboxPowerStatePhaseEnum];
74
- /**
75
- * Check if a given object implements the SandboxPowerState interface.
76
- */
77
- export declare function instanceOfSandboxPowerState(value: object): value is SandboxPowerState;
78
- export declare function SandboxPowerStateFromJSON(json: any): SandboxPowerState;
79
- export declare function SandboxPowerStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SandboxPowerState;
80
- export declare function SandboxPowerStateToJSON(json: any): SandboxPowerState;
81
- export declare function SandboxPowerStateToJSONTyped(value?: SandboxPowerState | null, ignoreDiscriminator?: boolean): any;
82
- //# sourceMappingURL=SandboxPowerState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SandboxPowerState.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/SandboxPowerState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,OAAO,EAAE,4BAA4B,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,6BAA6B,CAAC;IACxC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,KAAK,EAAE,0BAA0B,CAAC;CACrC;AAGD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAE1H;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAE7H;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAOrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAYzG;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,CAaxH"}
@@ -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
- * @export
16
- */
17
- export const SandboxPowerStateDesiredEnum = {
18
- Active: 'active',
19
- Paused: 'paused'
20
- };
21
- /**
22
- * @export
23
- */
24
- export const SandboxPowerStateObservedEnum = {
25
- SandboxPowerStateObservedActive: 'active',
26
- SandboxPowerStateObservedPaused: 'paused'
27
- };
28
- /**
29
- * @export
30
- */
31
- export const SandboxPowerStatePhaseEnum = {
32
- Stable: 'stable',
33
- Pausing: 'pausing',
34
- Resuming: 'resuming'
35
- };
36
- /**
37
- * Check if a given object implements the SandboxPowerState interface.
38
- */
39
- export function instanceOfSandboxPowerState(value) {
40
- if (!('desired' in value) || value['desired'] === undefined)
41
- return false;
42
- if (!('desiredGeneration' in value) || value['desiredGeneration'] === undefined)
43
- return false;
44
- if (!('observed' in value) || value['observed'] === undefined)
45
- return false;
46
- if (!('observedGeneration' in value) || value['observedGeneration'] === undefined)
47
- return false;
48
- if (!('phase' in value) || value['phase'] === undefined)
49
- return false;
50
- return true;
51
- }
52
- export function SandboxPowerStateFromJSON(json) {
53
- return SandboxPowerStateFromJSONTyped(json, false);
54
- }
55
- export function SandboxPowerStateFromJSONTyped(json, ignoreDiscriminator) {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
- 'desired': json['desired'],
61
- 'desiredGeneration': json['desired_generation'],
62
- 'observed': json['observed'],
63
- 'observedGeneration': json['observed_generation'],
64
- 'phase': json['phase'],
65
- };
66
- }
67
- export function SandboxPowerStateToJSON(json) {
68
- return SandboxPowerStateToJSONTyped(json, false);
69
- }
70
- export function SandboxPowerStateToJSONTyped(value, ignoreDiscriminator = false) {
71
- if (value == null) {
72
- return value;
73
- }
74
- return {
75
- 'desired': value['desired'],
76
- 'desired_generation': value['desiredGeneration'],
77
- 'observed': value['observed'],
78
- 'observed_generation': value['observedGeneration'],
79
- 'phase': value['phase'],
80
- };
81
- }
@@ -1,80 +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 { SandboxProbeSet } from './SandboxProbeSet.js';
13
- /**
14
- *
15
- * @export
16
- * @interface WarmProcessSpec
17
- */
18
- export interface WarmProcessSpec {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof WarmProcessSpec
23
- */
24
- name?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof WarmProcessSpec
29
- */
30
- type: WarmProcessSpecTypeEnum;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof WarmProcessSpec
35
- */
36
- alias?: string;
37
- /**
38
- *
39
- * @type {Array<string>}
40
- * @memberof WarmProcessSpec
41
- */
42
- command?: Array<string>;
43
- /**
44
- *
45
- * @type {string}
46
- * @memberof WarmProcessSpec
47
- */
48
- cwd?: string;
49
- /**
50
- *
51
- * @type {{ [key: string]: string; }}
52
- * @memberof WarmProcessSpec
53
- */
54
- envVars?: {
55
- [key: string]: string;
56
- };
57
- /**
58
- *
59
- * @type {SandboxProbeSet}
60
- * @memberof WarmProcessSpec
61
- */
62
- probes?: SandboxProbeSet;
63
- }
64
- /**
65
- * @export
66
- */
67
- export declare const WarmProcessSpecTypeEnum: {
68
- readonly WarmProcessSpecTypeRepl: "repl";
69
- readonly WarmProcessSpecTypeCmd: "cmd";
70
- };
71
- export type WarmProcessSpecTypeEnum = typeof WarmProcessSpecTypeEnum[keyof typeof WarmProcessSpecTypeEnum];
72
- /**
73
- * Check if a given object implements the WarmProcessSpec interface.
74
- */
75
- export declare function instanceOfWarmProcessSpec(value: object): value is WarmProcessSpec;
76
- export declare function WarmProcessSpecFromJSON(json: any): WarmProcessSpec;
77
- export declare function WarmProcessSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): WarmProcessSpec;
78
- export declare function WarmProcessSpecToJSON(json: any): WarmProcessSpec;
79
- export declare function WarmProcessSpecToJSONTyped(value?: WarmProcessSpec | null, ignoreDiscriminator?: boolean): any;
80
- //# sourceMappingURL=WarmProcessSpec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WarmProcessSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/WarmProcessSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B;AAGD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAcrG;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,CAepH"}
@@ -1,63 +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 { SandboxProbeSetFromJSON, SandboxProbeSetToJSON, } from './SandboxProbeSet.js';
15
- /**
16
- * @export
17
- */
18
- export const WarmProcessSpecTypeEnum = {
19
- WarmProcessSpecTypeRepl: 'repl',
20
- WarmProcessSpecTypeCmd: 'cmd'
21
- };
22
- /**
23
- * Check if a given object implements the WarmProcessSpec interface.
24
- */
25
- export function instanceOfWarmProcessSpec(value) {
26
- if (!('type' in value) || value['type'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- export function WarmProcessSpecFromJSON(json) {
31
- return WarmProcessSpecFromJSONTyped(json, false);
32
- }
33
- export function WarmProcessSpecFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'name': json['name'] == null ? undefined : json['name'],
39
- 'type': json['type'],
40
- 'alias': json['alias'] == null ? undefined : json['alias'],
41
- 'command': json['command'] == null ? undefined : json['command'],
42
- 'cwd': json['cwd'] == null ? undefined : json['cwd'],
43
- 'envVars': json['envVars'] == null ? undefined : json['envVars'],
44
- 'probes': json['probes'] == null ? undefined : SandboxProbeSetFromJSON(json['probes']),
45
- };
46
- }
47
- export function WarmProcessSpecToJSON(json) {
48
- return WarmProcessSpecToJSONTyped(json, false);
49
- }
50
- export function WarmProcessSpecToJSONTyped(value, ignoreDiscriminator = false) {
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'name': value['name'],
56
- 'type': value['type'],
57
- 'alias': value['alias'],
58
- 'command': value['command'],
59
- 'cwd': value['cwd'],
60
- 'envVars': value['envVars'],
61
- 'probes': SandboxProbeSetToJSON(value['probes']),
62
- };
63
- }