@breign/client 1.0.194 → 1.0.196

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 (94) hide show
  1. package/dist/apis/ExecutionNodesApi.d.ts +31 -3
  2. package/dist/apis/ExecutionNodesApi.js +66 -2
  3. package/dist/apis/NodeGroupsApi.d.ts +353 -0
  4. package/dist/apis/NodeGroupsApi.js +697 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.d.ts +46 -0
  8. package/dist/models/AgentExecutionGroupChoiceRuntimesInnerUio.js +62 -0
  9. package/dist/models/AgentExecutionGroupChoiceUio.d.ts +70 -0
  10. package/dist/models/AgentExecutionGroupChoiceUio.js +76 -0
  11. package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.d.ts +44 -0
  12. package/dist/models/AgentExecutionGroupChoiceWorkspacesInnerUio.js +58 -0
  13. package/dist/models/AgentExecutionGroupUio.d.ts +38 -0
  14. package/dist/models/AgentExecutionGroupUio.js +54 -0
  15. package/dist/models/AgentExecutionUio.d.ts +27 -0
  16. package/dist/models/AgentExecutionUio.js +14 -1
  17. package/dist/models/CreateNodeGroupRequestUio.d.ts +56 -0
  18. package/dist/models/CreateNodeGroupRequestUio.js +58 -0
  19. package/dist/models/NodeGroupAgentUio.d.ts +58 -0
  20. package/dist/models/NodeGroupAgentUio.js +70 -0
  21. package/dist/models/NodeGroupBulkIdsUio.d.ts +32 -0
  22. package/dist/models/NodeGroupBulkIdsUio.js +50 -0
  23. package/dist/models/NodeGroupBulkResultResultsInnerUio.d.ts +50 -0
  24. package/dist/models/NodeGroupBulkResultResultsInnerUio.js +58 -0
  25. package/dist/models/NodeGroupBulkResultUio.d.ts +33 -0
  26. package/dist/models/NodeGroupBulkResultUio.js +51 -0
  27. package/dist/models/NodeGroupCandidateUio.d.ts +115 -0
  28. package/dist/models/NodeGroupCandidateUio.js +109 -0
  29. package/dist/models/NodeGroupDelaysUio.d.ts +44 -0
  30. package/dist/models/NodeGroupDelaysUio.js +52 -0
  31. package/dist/models/NodeGroupDetailUio.d.ts +100 -0
  32. package/dist/models/NodeGroupDetailUio.js +96 -0
  33. package/dist/models/NodeGroupEnvironmentPageCountsUio.d.ts +56 -0
  34. package/dist/models/NodeGroupEnvironmentPageCountsUio.js +66 -0
  35. package/dist/models/NodeGroupEnvironmentPageUio.d.ts +52 -0
  36. package/dist/models/NodeGroupEnvironmentPageUio.js +64 -0
  37. package/dist/models/NodeGroupEnvironmentReleaseFilterUio.d.ts +45 -0
  38. package/dist/models/NodeGroupEnvironmentReleaseFilterUio.js +59 -0
  39. package/dist/models/NodeGroupEnvironmentReleaseUio.d.ts +39 -0
  40. package/dist/models/NodeGroupEnvironmentReleaseUio.js +51 -0
  41. package/dist/models/NodeGroupEnvironmentUio.d.ts +140 -0
  42. package/dist/models/NodeGroupEnvironmentUio.js +130 -0
  43. package/dist/models/NodeGroupExecutionPageUio.d.ts +45 -0
  44. package/dist/models/NodeGroupExecutionPageUio.js +59 -0
  45. package/dist/models/NodeGroupExecutionUio.d.ts +180 -0
  46. package/dist/models/NodeGroupExecutionUio.js +155 -0
  47. package/dist/models/NodeGroupMemberNodeUio.d.ts +115 -0
  48. package/dist/models/NodeGroupMemberNodeUio.js +109 -0
  49. package/dist/models/NodeGroupNodeOverviewOtherGroupsInnerUio.d.ts +38 -0
  50. package/dist/models/NodeGroupNodeOverviewOtherGroupsInnerUio.js +54 -0
  51. package/dist/models/NodeGroupNodeOverviewRunningInnerUio.d.ts +62 -0
  52. package/dist/models/NodeGroupNodeOverviewRunningInnerUio.js +70 -0
  53. package/dist/models/NodeGroupNodeOverviewUio.d.ts +135 -0
  54. package/dist/models/NodeGroupNodeOverviewUio.js +123 -0
  55. package/dist/models/NodeGroupNodePageUio.d.ts +39 -0
  56. package/dist/models/NodeGroupNodePageUio.js +55 -0
  57. package/dist/models/NodeGroupNodeUio.d.ts +103 -0
  58. package/dist/models/NodeGroupNodeUio.js +101 -0
  59. package/dist/models/NodeGroupQueueSummaryEnvironmentsUio.d.ts +44 -0
  60. package/dist/models/NodeGroupQueueSummaryEnvironmentsUio.js +58 -0
  61. package/dist/models/NodeGroupQueueSummaryMedianWaitMsUio.d.ts +38 -0
  62. package/dist/models/NodeGroupQueueSummaryMedianWaitMsUio.js +54 -0
  63. package/dist/models/NodeGroupQueueSummaryNodesInnerUio.d.ts +56 -0
  64. package/dist/models/NodeGroupQueueSummaryNodesInnerUio.js +66 -0
  65. package/dist/models/NodeGroupQueueSummaryPendingByAgentInnerUio.d.ts +44 -0
  66. package/dist/models/NodeGroupQueueSummaryPendingByAgentInnerUio.js +58 -0
  67. package/dist/models/NodeGroupQueueSummaryUio.d.ts +115 -0
  68. package/dist/models/NodeGroupQueueSummaryUio.js +107 -0
  69. package/dist/models/NodeGroupQueueSummaryWaitingForUio.d.ts +44 -0
  70. package/dist/models/NodeGroupQueueSummaryWaitingForUio.js +58 -0
  71. package/dist/models/NodeGroupSummaryUio.d.ts +116 -0
  72. package/dist/models/NodeGroupSummaryUio.js +106 -0
  73. package/dist/models/NodeGroupUio.d.ts +86 -0
  74. package/dist/models/NodeGroupUio.js +86 -0
  75. package/dist/models/NodeQueueTurnGroupUio.d.ts +38 -0
  76. package/dist/models/NodeQueueTurnGroupUio.js +54 -0
  77. package/dist/models/NodeQueueTurnUio.d.ts +114 -0
  78. package/dist/models/NodeQueueTurnUio.js +106 -0
  79. package/dist/models/NodeRefUio.d.ts +44 -0
  80. package/dist/models/NodeRefUio.js +58 -0
  81. package/dist/models/NodeSessionDetailUio.d.ts +1 -1
  82. package/dist/models/NodeSessionStateUio.d.ts +2 -1
  83. package/dist/models/NodeSessionStateUio.js +2 -1
  84. package/dist/models/NodeSessionUio.d.ts +1 -1
  85. package/dist/models/SetAgentExecutionRequestUio.d.ts +20 -1
  86. package/dist/models/SetAgentExecutionRequestUio.js +8 -1
  87. package/dist/models/UpdateNodeGroupRequestUio.d.ts +56 -0
  88. package/dist/models/UpdateNodeGroupRequestUio.js +56 -0
  89. package/dist/models/WaitingForUio.d.ts +26 -0
  90. package/dist/models/WaitingForUio.js +52 -0
  91. package/dist/models/index.d.ts +38 -0
  92. package/dist/models/index.js +38 -0
  93. package/dist/openapi.json +1994 -8
  94. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
13
+ import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
14
+ import type { NodeGroupNodeOverviewRunningInnerUio } from './NodeGroupNodeOverviewRunningInnerUio';
15
+ import type { NodeGroupNodeOverviewOtherGroupsInnerUio } from './NodeGroupNodeOverviewOtherGroupsInnerUio';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface NodeGroupNodeOverviewUio
20
+ */
21
+ export interface NodeGroupNodeOverviewUio {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof NodeGroupNodeOverviewUio
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof NodeGroupNodeOverviewUio
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof NodeGroupNodeOverviewUio
38
+ */
39
+ os: NodeGroupNodeOverviewUioOsEnum;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof NodeGroupNodeOverviewUio
44
+ */
45
+ appVersion: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof NodeGroupNodeOverviewUio
50
+ */
51
+ ownerUserId: string;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof NodeGroupNodeOverviewUio
56
+ */
57
+ connected: boolean;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof NodeGroupNodeOverviewUio
62
+ */
63
+ lastSeenAt: string | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof NodeGroupNodeOverviewUio
68
+ */
69
+ slots: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof NodeGroupNodeOverviewUio
74
+ */
75
+ usedSlots: number;
76
+ /**
77
+ *
78
+ * @type {Array<ExecutionNodeRuntimeUio>}
79
+ * @memberof NodeGroupNodeOverviewUio
80
+ */
81
+ runtimes: Array<ExecutionNodeRuntimeUio>;
82
+ /**
83
+ *
84
+ * @type {Array<ExecutionNodeWorkspaceUio>}
85
+ * @memberof NodeGroupNodeOverviewUio
86
+ */
87
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
88
+ /**
89
+ *
90
+ * @type {Array<NodeGroupNodeOverviewRunningInnerUio>}
91
+ * @memberof NodeGroupNodeOverviewUio
92
+ */
93
+ running: Array<NodeGroupNodeOverviewRunningInnerUio>;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof NodeGroupNodeOverviewUio
98
+ */
99
+ environmentCount: number;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof NodeGroupNodeOverviewUio
104
+ */
105
+ idleEnvironmentCount: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof NodeGroupNodeOverviewUio
110
+ */
111
+ releasePendingCount: number;
112
+ /**
113
+ *
114
+ * @type {Array<NodeGroupNodeOverviewOtherGroupsInnerUio>}
115
+ * @memberof NodeGroupNodeOverviewUio
116
+ */
117
+ otherGroups: Array<NodeGroupNodeOverviewOtherGroupsInnerUio>;
118
+ }
119
+ /**
120
+ * @export
121
+ */
122
+ export declare const NodeGroupNodeOverviewUioOsEnum: {
123
+ readonly Macos: "macos";
124
+ readonly Windows: "windows";
125
+ readonly Linux: "linux";
126
+ };
127
+ export type NodeGroupNodeOverviewUioOsEnum = typeof NodeGroupNodeOverviewUioOsEnum[keyof typeof NodeGroupNodeOverviewUioOsEnum];
128
+ /**
129
+ * Check if a given object implements the NodeGroupNodeOverviewUio interface.
130
+ */
131
+ export declare function instanceOfNodeGroupNodeOverviewUio(value: object): value is NodeGroupNodeOverviewUio;
132
+ export declare function NodeGroupNodeOverviewUioFromJSON(json: any): NodeGroupNodeOverviewUio;
133
+ export declare function NodeGroupNodeOverviewUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupNodeOverviewUio;
134
+ export declare function NodeGroupNodeOverviewUioToJSON(json: any): NodeGroupNodeOverviewUio;
135
+ export declare function NodeGroupNodeOverviewUioToJSONTyped(value?: NodeGroupNodeOverviewUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NodeGroupNodeOverviewUioOsEnum = void 0;
17
+ exports.instanceOfNodeGroupNodeOverviewUio = instanceOfNodeGroupNodeOverviewUio;
18
+ exports.NodeGroupNodeOverviewUioFromJSON = NodeGroupNodeOverviewUioFromJSON;
19
+ exports.NodeGroupNodeOverviewUioFromJSONTyped = NodeGroupNodeOverviewUioFromJSONTyped;
20
+ exports.NodeGroupNodeOverviewUioToJSON = NodeGroupNodeOverviewUioToJSON;
21
+ exports.NodeGroupNodeOverviewUioToJSONTyped = NodeGroupNodeOverviewUioToJSONTyped;
22
+ const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
23
+ const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
24
+ const NodeGroupNodeOverviewRunningInnerUio_1 = require("./NodeGroupNodeOverviewRunningInnerUio");
25
+ const NodeGroupNodeOverviewOtherGroupsInnerUio_1 = require("./NodeGroupNodeOverviewOtherGroupsInnerUio");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.NodeGroupNodeOverviewUioOsEnum = {
30
+ Macos: 'macos',
31
+ Windows: 'windows',
32
+ Linux: 'linux'
33
+ };
34
+ /**
35
+ * Check if a given object implements the NodeGroupNodeOverviewUio interface.
36
+ */
37
+ function instanceOfNodeGroupNodeOverviewUio(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('name' in value) || value['name'] === undefined)
41
+ return false;
42
+ if (!('os' in value) || value['os'] === undefined)
43
+ return false;
44
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
45
+ return false;
46
+ if (!('ownerUserId' in value) || value['ownerUserId'] === undefined)
47
+ return false;
48
+ if (!('connected' in value) || value['connected'] === undefined)
49
+ return false;
50
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
51
+ return false;
52
+ if (!('slots' in value) || value['slots'] === undefined)
53
+ return false;
54
+ if (!('usedSlots' in value) || value['usedSlots'] === undefined)
55
+ return false;
56
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
57
+ return false;
58
+ if (!('workspaces' in value) || value['workspaces'] === undefined)
59
+ return false;
60
+ if (!('running' in value) || value['running'] === undefined)
61
+ return false;
62
+ if (!('environmentCount' in value) || value['environmentCount'] === undefined)
63
+ return false;
64
+ if (!('idleEnvironmentCount' in value) || value['idleEnvironmentCount'] === undefined)
65
+ return false;
66
+ if (!('releasePendingCount' in value) || value['releasePendingCount'] === undefined)
67
+ return false;
68
+ if (!('otherGroups' in value) || value['otherGroups'] === undefined)
69
+ return false;
70
+ return true;
71
+ }
72
+ function NodeGroupNodeOverviewUioFromJSON(json) {
73
+ return NodeGroupNodeOverviewUioFromJSONTyped(json, false);
74
+ }
75
+ function NodeGroupNodeOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+ 'id': json['id'],
81
+ 'name': json['name'],
82
+ 'os': json['os'],
83
+ 'appVersion': json['appVersion'],
84
+ 'ownerUserId': json['ownerUserId'],
85
+ 'connected': json['connected'],
86
+ 'lastSeenAt': json['lastSeenAt'],
87
+ 'slots': json['slots'],
88
+ 'usedSlots': json['usedSlots'],
89
+ 'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
90
+ 'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
91
+ 'running': (json['running'].map(NodeGroupNodeOverviewRunningInnerUio_1.NodeGroupNodeOverviewRunningInnerUioFromJSON)),
92
+ 'environmentCount': json['environmentCount'],
93
+ 'idleEnvironmentCount': json['idleEnvironmentCount'],
94
+ 'releasePendingCount': json['releasePendingCount'],
95
+ 'otherGroups': (json['otherGroups'].map(NodeGroupNodeOverviewOtherGroupsInnerUio_1.NodeGroupNodeOverviewOtherGroupsInnerUioFromJSON)),
96
+ };
97
+ }
98
+ function NodeGroupNodeOverviewUioToJSON(json) {
99
+ return NodeGroupNodeOverviewUioToJSONTyped(json, false);
100
+ }
101
+ function NodeGroupNodeOverviewUioToJSONTyped(value, ignoreDiscriminator = false) {
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+ return {
106
+ 'id': value['id'],
107
+ 'name': value['name'],
108
+ 'os': value['os'],
109
+ 'appVersion': value['appVersion'],
110
+ 'ownerUserId': value['ownerUserId'],
111
+ 'connected': value['connected'],
112
+ 'lastSeenAt': value['lastSeenAt'],
113
+ 'slots': value['slots'],
114
+ 'usedSlots': value['usedSlots'],
115
+ 'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
116
+ 'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
117
+ 'running': (value['running'].map(NodeGroupNodeOverviewRunningInnerUio_1.NodeGroupNodeOverviewRunningInnerUioToJSON)),
118
+ 'environmentCount': value['environmentCount'],
119
+ 'idleEnvironmentCount': value['idleEnvironmentCount'],
120
+ 'releasePendingCount': value['releasePendingCount'],
121
+ 'otherGroups': (value['otherGroups'].map(NodeGroupNodeOverviewOtherGroupsInnerUio_1.NodeGroupNodeOverviewOtherGroupsInnerUioToJSON)),
122
+ };
123
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { NodeGroupNodeOverviewUio } from './NodeGroupNodeOverviewUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NodeGroupNodePageUio
17
+ */
18
+ export interface NodeGroupNodePageUio {
19
+ /**
20
+ *
21
+ * @type {Array<NodeGroupNodeOverviewUio>}
22
+ * @memberof NodeGroupNodePageUio
23
+ */
24
+ items: Array<NodeGroupNodeOverviewUio>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof NodeGroupNodePageUio
29
+ */
30
+ total: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the NodeGroupNodePageUio interface.
34
+ */
35
+ export declare function instanceOfNodeGroupNodePageUio(value: object): value is NodeGroupNodePageUio;
36
+ export declare function NodeGroupNodePageUioFromJSON(json: any): NodeGroupNodePageUio;
37
+ export declare function NodeGroupNodePageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupNodePageUio;
38
+ export declare function NodeGroupNodePageUioToJSON(json: any): NodeGroupNodePageUio;
39
+ export declare function NodeGroupNodePageUioToJSONTyped(value?: NodeGroupNodePageUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNodeGroupNodePageUio = instanceOfNodeGroupNodePageUio;
17
+ exports.NodeGroupNodePageUioFromJSON = NodeGroupNodePageUioFromJSON;
18
+ exports.NodeGroupNodePageUioFromJSONTyped = NodeGroupNodePageUioFromJSONTyped;
19
+ exports.NodeGroupNodePageUioToJSON = NodeGroupNodePageUioToJSON;
20
+ exports.NodeGroupNodePageUioToJSONTyped = NodeGroupNodePageUioToJSONTyped;
21
+ const NodeGroupNodeOverviewUio_1 = require("./NodeGroupNodeOverviewUio");
22
+ /**
23
+ * Check if a given object implements the NodeGroupNodePageUio interface.
24
+ */
25
+ function instanceOfNodeGroupNodePageUio(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function NodeGroupNodePageUioFromJSON(json) {
33
+ return NodeGroupNodePageUioFromJSONTyped(json, false);
34
+ }
35
+ function NodeGroupNodePageUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'items': (json['items'].map(NodeGroupNodeOverviewUio_1.NodeGroupNodeOverviewUioFromJSON)),
41
+ 'total': json['total'],
42
+ };
43
+ }
44
+ function NodeGroupNodePageUioToJSON(json) {
45
+ return NodeGroupNodePageUioToJSONTyped(json, false);
46
+ }
47
+ function NodeGroupNodePageUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'items': (value['items'].map(NodeGroupNodeOverviewUio_1.NodeGroupNodeOverviewUioToJSON)),
53
+ 'total': value['total'],
54
+ };
55
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
13
+ import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface NodeGroupNodeUio
18
+ */
19
+ export interface NodeGroupNodeUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof NodeGroupNodeUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof NodeGroupNodeUio
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof NodeGroupNodeUio
36
+ */
37
+ os: NodeGroupNodeUioOsEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof NodeGroupNodeUio
42
+ */
43
+ appVersion: string;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof NodeGroupNodeUio
48
+ */
49
+ connected: boolean;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof NodeGroupNodeUio
54
+ */
55
+ revoked: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof NodeGroupNodeUio
60
+ */
61
+ lastSeenAt: string | null;
62
+ /**
63
+ * Exécutions que le nœud mène en même temps
64
+ * @type {number}
65
+ * @memberof NodeGroupNodeUio
66
+ */
67
+ slots: number;
68
+ /**
69
+ * Version du contrat parlée par le nœud ; un nœud v1 n'entre dans aucun groupe.
70
+ * @type {number}
71
+ * @memberof NodeGroupNodeUio
72
+ */
73
+ contractVersion: number;
74
+ /**
75
+ *
76
+ * @type {Array<ExecutionNodeRuntimeUio>}
77
+ * @memberof NodeGroupNodeUio
78
+ */
79
+ runtimes: Array<ExecutionNodeRuntimeUio>;
80
+ /**
81
+ *
82
+ * @type {Array<ExecutionNodeWorkspaceUio>}
83
+ * @memberof NodeGroupNodeUio
84
+ */
85
+ workspaces: Array<ExecutionNodeWorkspaceUio>;
86
+ }
87
+ /**
88
+ * @export
89
+ */
90
+ export declare const NodeGroupNodeUioOsEnum: {
91
+ readonly Macos: "macos";
92
+ readonly Windows: "windows";
93
+ readonly Linux: "linux";
94
+ };
95
+ export type NodeGroupNodeUioOsEnum = typeof NodeGroupNodeUioOsEnum[keyof typeof NodeGroupNodeUioOsEnum];
96
+ /**
97
+ * Check if a given object implements the NodeGroupNodeUio interface.
98
+ */
99
+ export declare function instanceOfNodeGroupNodeUio(value: object): value is NodeGroupNodeUio;
100
+ export declare function NodeGroupNodeUioFromJSON(json: any): NodeGroupNodeUio;
101
+ export declare function NodeGroupNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupNodeUio;
102
+ export declare function NodeGroupNodeUioToJSON(json: any): NodeGroupNodeUio;
103
+ export declare function NodeGroupNodeUioToJSONTyped(value?: NodeGroupNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NodeGroupNodeUioOsEnum = void 0;
17
+ exports.instanceOfNodeGroupNodeUio = instanceOfNodeGroupNodeUio;
18
+ exports.NodeGroupNodeUioFromJSON = NodeGroupNodeUioFromJSON;
19
+ exports.NodeGroupNodeUioFromJSONTyped = NodeGroupNodeUioFromJSONTyped;
20
+ exports.NodeGroupNodeUioToJSON = NodeGroupNodeUioToJSON;
21
+ exports.NodeGroupNodeUioToJSONTyped = NodeGroupNodeUioToJSONTyped;
22
+ const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
23
+ const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.NodeGroupNodeUioOsEnum = {
28
+ Macos: 'macos',
29
+ Windows: 'windows',
30
+ Linux: 'linux'
31
+ };
32
+ /**
33
+ * Check if a given object implements the NodeGroupNodeUio interface.
34
+ */
35
+ function instanceOfNodeGroupNodeUio(value) {
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('os' in value) || value['os'] === undefined)
41
+ return false;
42
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
43
+ return false;
44
+ if (!('connected' in value) || value['connected'] === undefined)
45
+ return false;
46
+ if (!('revoked' in value) || value['revoked'] === undefined)
47
+ return false;
48
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
49
+ return false;
50
+ if (!('slots' in value) || value['slots'] === undefined)
51
+ return false;
52
+ if (!('contractVersion' in value) || value['contractVersion'] === undefined)
53
+ return false;
54
+ if (!('runtimes' in value) || value['runtimes'] === undefined)
55
+ return false;
56
+ if (!('workspaces' in value) || value['workspaces'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ function NodeGroupNodeUioFromJSON(json) {
61
+ return NodeGroupNodeUioFromJSONTyped(json, false);
62
+ }
63
+ function NodeGroupNodeUioFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'],
69
+ 'name': json['name'],
70
+ 'os': json['os'],
71
+ 'appVersion': json['appVersion'],
72
+ 'connected': json['connected'],
73
+ 'revoked': json['revoked'],
74
+ 'lastSeenAt': json['lastSeenAt'],
75
+ 'slots': json['slots'],
76
+ 'contractVersion': json['contractVersion'],
77
+ 'runtimes': (json['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioFromJSON)),
78
+ 'workspaces': (json['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioFromJSON)),
79
+ };
80
+ }
81
+ function NodeGroupNodeUioToJSON(json) {
82
+ return NodeGroupNodeUioToJSONTyped(json, false);
83
+ }
84
+ function NodeGroupNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+ 'id': value['id'],
90
+ 'name': value['name'],
91
+ 'os': value['os'],
92
+ 'appVersion': value['appVersion'],
93
+ 'connected': value['connected'],
94
+ 'revoked': value['revoked'],
95
+ 'lastSeenAt': value['lastSeenAt'],
96
+ 'slots': value['slots'],
97
+ 'contractVersion': value['contractVersion'],
98
+ 'runtimes': (value['runtimes'].map(ExecutionNodeRuntimeUio_1.ExecutionNodeRuntimeUioToJSON)),
99
+ 'workspaces': (value['workspaces'].map(ExecutionNodeWorkspaceUio_1.ExecutionNodeWorkspaceUioToJSON)),
100
+ };
101
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 NodeGroupQueueSummaryEnvironmentsUio
16
+ */
17
+ export interface NodeGroupQueueSummaryEnvironmentsUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof NodeGroupQueueSummaryEnvironmentsUio
22
+ */
23
+ total: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof NodeGroupQueueSummaryEnvironmentsUio
28
+ */
29
+ idleOver12h: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof NodeGroupQueueSummaryEnvironmentsUio
34
+ */
35
+ releasePending: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the NodeGroupQueueSummaryEnvironmentsUio interface.
39
+ */
40
+ export declare function instanceOfNodeGroupQueueSummaryEnvironmentsUio(value: object): value is NodeGroupQueueSummaryEnvironmentsUio;
41
+ export declare function NodeGroupQueueSummaryEnvironmentsUioFromJSON(json: any): NodeGroupQueueSummaryEnvironmentsUio;
42
+ export declare function NodeGroupQueueSummaryEnvironmentsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGroupQueueSummaryEnvironmentsUio;
43
+ export declare function NodeGroupQueueSummaryEnvironmentsUioToJSON(json: any): NodeGroupQueueSummaryEnvironmentsUio;
44
+ export declare function NodeGroupQueueSummaryEnvironmentsUioToJSONTyped(value?: NodeGroupQueueSummaryEnvironmentsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNodeGroupQueueSummaryEnvironmentsUio = instanceOfNodeGroupQueueSummaryEnvironmentsUio;
17
+ exports.NodeGroupQueueSummaryEnvironmentsUioFromJSON = NodeGroupQueueSummaryEnvironmentsUioFromJSON;
18
+ exports.NodeGroupQueueSummaryEnvironmentsUioFromJSONTyped = NodeGroupQueueSummaryEnvironmentsUioFromJSONTyped;
19
+ exports.NodeGroupQueueSummaryEnvironmentsUioToJSON = NodeGroupQueueSummaryEnvironmentsUioToJSON;
20
+ exports.NodeGroupQueueSummaryEnvironmentsUioToJSONTyped = NodeGroupQueueSummaryEnvironmentsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the NodeGroupQueueSummaryEnvironmentsUio interface.
23
+ */
24
+ function instanceOfNodeGroupQueueSummaryEnvironmentsUio(value) {
25
+ if (!('total' in value) || value['total'] === undefined)
26
+ return false;
27
+ if (!('idleOver12h' in value) || value['idleOver12h'] === undefined)
28
+ return false;
29
+ if (!('releasePending' in value) || value['releasePending'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function NodeGroupQueueSummaryEnvironmentsUioFromJSON(json) {
34
+ return NodeGroupQueueSummaryEnvironmentsUioFromJSONTyped(json, false);
35
+ }
36
+ function NodeGroupQueueSummaryEnvironmentsUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'total': json['total'],
42
+ 'idleOver12h': json['idleOver12h'],
43
+ 'releasePending': json['releasePending'],
44
+ };
45
+ }
46
+ function NodeGroupQueueSummaryEnvironmentsUioToJSON(json) {
47
+ return NodeGroupQueueSummaryEnvironmentsUioToJSONTyped(json, false);
48
+ }
49
+ function NodeGroupQueueSummaryEnvironmentsUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'total': value['total'],
55
+ 'idleOver12h': value['idleOver12h'],
56
+ 'releasePending': value['releasePending'],
57
+ };
58
+ }