@norskvideo/norsk-api 1.0.345 → 1.0.347

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.
package/lib/manager_pb.ts CHANGED
@@ -5,7 +5,65 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
7
  import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
- import { Log, Version } from "./shared/common_pb.js";
8
+ import { ActiveJobKey, JobId, JobInfoMessage, Log, NodeId, NodeMetadata, ResolvedPortMappings, RunningNodeMetadata, Service, ServiceParameters, Version as Version$1 } from "./shared/common_pb.js";
9
+
10
+ /**
11
+ * @generated from enum norsk.api.manager.Version
12
+ */
13
+ export enum Version {
14
+ /**
15
+ * @generated from enum value: RECOMMENDED = 0;
16
+ */
17
+ RECOMMENDED = 0,
18
+
19
+ /**
20
+ * @generated from enum value: LATEST = 1;
21
+ */
22
+ LATEST = 1,
23
+
24
+ /**
25
+ * @generated from enum value: PREVIOUS_RECOMMENDED = 2;
26
+ */
27
+ PREVIOUS_RECOMMENDED = 2,
28
+
29
+ /**
30
+ * @generated from enum value: LTS = 3;
31
+ */
32
+ LTS = 3,
33
+ }
34
+ // Retrieve enum metadata with: proto3.getEnumType(Version)
35
+ proto3.util.setEnumType(Version, "norsk.api.manager.Version", [
36
+ { no: 0, name: "RECOMMENDED" },
37
+ { no: 1, name: "LATEST" },
38
+ { no: 2, name: "PREVIOUS_RECOMMENDED" },
39
+ { no: 3, name: "LTS" },
40
+ ]);
41
+
42
+ /**
43
+ * @generated from enum norsk.api.manager.Health
44
+ */
45
+ export enum Health {
46
+ /**
47
+ * @generated from enum value: HEALTHY = 0;
48
+ */
49
+ HEALTHY = 0,
50
+
51
+ /**
52
+ * @generated from enum value: UNSTABLE = 1;
53
+ */
54
+ UNSTABLE = 1,
55
+
56
+ /**
57
+ * @generated from enum value: FAILED = 2;
58
+ */
59
+ FAILED = 2,
60
+ }
61
+ // Retrieve enum metadata with: proto3.getEnumType(Health)
62
+ proto3.util.setEnumType(Health, "norsk.api.manager.Health", [
63
+ { no: 0, name: "HEALTHY" },
64
+ { no: 1, name: "UNSTABLE" },
65
+ { no: 2, name: "FAILED" },
66
+ ]);
9
67
 
10
68
  /**
11
69
  * `Hello` is sent to the client at the start of a status channel, and gives
@@ -19,7 +77,7 @@ export class Hello extends Message<Hello> {
19
77
  *
20
78
  * @generated from field: norsk.api.common.Version version = 1;
21
79
  */
22
- version?: Version;
80
+ version?: Version$1;
23
81
 
24
82
  constructor(data?: PartialMessage<Hello>) {
25
83
  super();
@@ -29,7 +87,7 @@ export class Hello extends Message<Hello> {
29
87
  static readonly runtime = proto3;
30
88
  static readonly typeName = "norsk.api.manager.Hello";
31
89
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
32
- { no: 1, name: "version", kind: "message", T: Version },
90
+ { no: 1, name: "version", kind: "message", T: Version$1 },
33
91
  ]);
34
92
 
35
93
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Hello {
@@ -50,963 +108,972 @@ export class Hello extends Message<Hello> {
50
108
  }
51
109
 
52
110
  /**
53
- * @generated from message norsk.api.manager.AwsS3Location
111
+ * @generated from message norsk.api.manager.Job
54
112
  */
55
- export class AwsS3Location extends Message<AwsS3Location> {
113
+ export class Job extends Message<Job> {
56
114
  /**
57
- * @generated from field: string url = 1;
115
+ * @generated from field: norsk.api.common.JobId job_id = 1;
58
116
  */
59
- url = "";
117
+ jobId?: JobId;
60
118
 
61
- constructor(data?: PartialMessage<AwsS3Location>) {
62
- super();
63
- proto3.util.initPartial(data, this);
64
- }
119
+ /**
120
+ * @generated from field: string description = 2;
121
+ */
122
+ description = "";
65
123
 
66
- static readonly runtime = proto3;
67
- static readonly typeName = "norsk.api.manager.AwsS3Location";
68
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
69
- { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
70
- ]);
124
+ /**
125
+ * @generated from field: map<string, string> tags = 3;
126
+ */
127
+ tags: { [key: string]: string } = {};
71
128
 
72
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsS3Location {
73
- return new AwsS3Location().fromBinary(bytes, options);
74
- }
129
+ /**
130
+ * @generated from field: google.protobuf.Timestamp start_date_time = 4;
131
+ */
132
+ startDateTime?: Timestamp;
75
133
 
76
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsS3Location {
77
- return new AwsS3Location().fromJson(jsonValue, options);
78
- }
134
+ /**
135
+ * @generated from field: int64 current_hash = 5;
136
+ */
137
+ currentHash = protoInt64.zero;
79
138
 
80
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsS3Location {
81
- return new AwsS3Location().fromJsonString(jsonString, options);
82
- }
139
+ /**
140
+ * @generated from field: string manager_configuration = 6;
141
+ */
142
+ managerConfiguration = "";
83
143
 
84
- static equals(a: AwsS3Location | PlainMessage<AwsS3Location> | undefined, b: AwsS3Location | PlainMessage<AwsS3Location> | undefined): boolean {
85
- return proto3.util.equals(AwsS3Location, a, b);
86
- }
87
- }
144
+ /**
145
+ * @generated from field: repeated norsk.api.common.Service services = 7;
146
+ */
147
+ services: Service[] = [];
88
148
 
89
- /**
90
- * @generated from message norsk.api.manager.PublicHttpLocation
91
- */
92
- export class PublicHttpLocation extends Message<PublicHttpLocation> {
93
149
  /**
94
- * @generated from field: string url = 1;
150
+ * @generated from field: norsk.api.manager.Version norsk_media_version = 8;
95
151
  */
96
- url = "";
152
+ norskMediaVersion = Version.RECOMMENDED;
97
153
 
98
- constructor(data?: PartialMessage<PublicHttpLocation>) {
99
- super();
100
- proto3.util.initPartial(data, this);
101
- }
154
+ /**
155
+ * @generated from field: norsk.api.common.ServiceParameters norsk_service_parameters = 9;
156
+ */
157
+ norskServiceParameters?: ServiceParameters;
102
158
 
103
- static readonly runtime = proto3;
104
- static readonly typeName = "norsk.api.manager.PublicHttpLocation";
105
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
106
- { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
107
- ]);
159
+ /**
160
+ * @generated from field: repeated string volumes = 10;
161
+ */
162
+ volumes: string[] = [];
108
163
 
109
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublicHttpLocation {
110
- return new PublicHttpLocation().fromBinary(bytes, options);
111
- }
164
+ /**
165
+ * @generated from field: norsk.api.manager.Job.JobState state = 11;
166
+ */
167
+ state = Job_JobState.PRE;
112
168
 
113
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublicHttpLocation {
114
- return new PublicHttpLocation().fromJson(jsonValue, options);
115
- }
169
+ /**
170
+ * @generated from field: string shape = 12;
171
+ */
172
+ shape = "";
116
173
 
117
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublicHttpLocation {
118
- return new PublicHttpLocation().fromJsonString(jsonString, options);
119
- }
174
+ /**
175
+ * @generated from field: string architecture = 13;
176
+ */
177
+ architecture = "";
120
178
 
121
- static equals(a: PublicHttpLocation | PlainMessage<PublicHttpLocation> | undefined, b: PublicHttpLocation | PlainMessage<PublicHttpLocation> | undefined): boolean {
122
- return proto3.util.equals(PublicHttpLocation, a, b);
123
- }
124
- }
179
+ /**
180
+ * @generated from field: string subnet = 14;
181
+ */
182
+ subnet = "";
125
183
 
126
- /**
127
- * @generated from message norsk.api.manager.CustomLocation
128
- */
129
- export class CustomLocation extends Message<CustomLocation> {
130
184
  /**
131
- * @generated from oneof norsk.api.manager.CustomLocation.script
185
+ * @generated from field: string availabilityDomain = 15;
132
186
  */
133
- script: {
134
- /**
135
- * @generated from field: norsk.api.manager.AwsS3Location aws_s3_location = 1;
136
- */
137
- value: AwsS3Location;
138
- case: "awsS3Location";
139
- } | {
140
- /**
141
- * @generated from field: norsk.api.manager.PublicHttpLocation http_location = 2;
142
- */
143
- value: PublicHttpLocation;
144
- case: "httpLocation";
145
- } | { case: undefined; value?: undefined } = { case: undefined };
187
+ availabilityDomain = "";
146
188
 
147
- constructor(data?: PartialMessage<CustomLocation>) {
189
+ constructor(data?: PartialMessage<Job>) {
148
190
  super();
149
191
  proto3.util.initPartial(data, this);
150
192
  }
151
193
 
152
194
  static readonly runtime = proto3;
153
- static readonly typeName = "norsk.api.manager.CustomLocation";
195
+ static readonly typeName = "norsk.api.manager.Job";
154
196
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
155
- { no: 1, name: "aws_s3_location", kind: "message", T: AwsS3Location, oneof: "script" },
156
- { no: 2, name: "http_location", kind: "message", T: PublicHttpLocation, oneof: "script" },
197
+ { no: 1, name: "job_id", kind: "message", T: JobId },
198
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
199
+ { no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
200
+ { no: 4, name: "start_date_time", kind: "message", T: Timestamp },
201
+ { no: 5, name: "current_hash", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
202
+ { no: 6, name: "manager_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
+ { no: 7, name: "services", kind: "message", T: Service, repeated: true },
204
+ { no: 8, name: "norsk_media_version", kind: "enum", T: proto3.getEnumType(Version) },
205
+ { no: 9, name: "norsk_service_parameters", kind: "message", T: ServiceParameters },
206
+ { no: 10, name: "volumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
207
+ { no: 11, name: "state", kind: "enum", T: proto3.getEnumType(Job_JobState) },
208
+ { no: 12, name: "shape", kind: "scalar", T: 9 /* ScalarType.STRING */ },
209
+ { no: 13, name: "architecture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
+ { no: 14, name: "subnet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
+ { no: 15, name: "availabilityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
157
212
  ]);
158
213
 
159
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomLocation {
160
- return new CustomLocation().fromBinary(bytes, options);
214
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Job {
215
+ return new Job().fromBinary(bytes, options);
161
216
  }
162
217
 
163
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomLocation {
164
- return new CustomLocation().fromJson(jsonValue, options);
218
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Job {
219
+ return new Job().fromJson(jsonValue, options);
165
220
  }
166
221
 
167
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomLocation {
168
- return new CustomLocation().fromJsonString(jsonString, options);
222
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Job {
223
+ return new Job().fromJsonString(jsonString, options);
169
224
  }
170
225
 
171
- static equals(a: CustomLocation | PlainMessage<CustomLocation> | undefined, b: CustomLocation | PlainMessage<CustomLocation> | undefined): boolean {
172
- return proto3.util.equals(CustomLocation, a, b);
226
+ static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean {
227
+ return proto3.util.equals(Job, a, b);
173
228
  }
174
229
  }
175
230
 
176
231
  /**
177
- * @generated from message norsk.api.manager.Location
232
+ * @generated from enum norsk.api.manager.Job.JobState
178
233
  */
179
- export class Location extends Message<Location> {
234
+ export enum Job_JobState {
180
235
  /**
181
- * @generated from oneof norsk.api.manager.Location.location
236
+ * @generated from enum value: PRE = 0;
182
237
  */
183
- location: {
184
- /**
185
- * @generated from field: norsk.api.manager.AwsS3Location aws_s3_location = 1;
186
- */
187
- value: AwsS3Location;
188
- case: "awsS3Location";
189
- } | {
190
- /**
191
- * @generated from field: norsk.api.manager.PublicHttpLocation http_location = 2;
192
- */
193
- value: PublicHttpLocation;
194
- case: "httpLocation";
195
- } | {
196
- /**
197
- * @generated from field: norsk.api.manager.CustomLocation custom_location = 3;
198
- */
199
- value: CustomLocation;
200
- case: "customLocation";
201
- } | { case: undefined; value?: undefined } = { case: undefined };
238
+ PRE = 0,
239
+
240
+ /**
241
+ * @generated from enum value: ACTIVE = 1;
242
+ */
243
+ ACTIVE = 1,
244
+
245
+ /**
246
+ * @generated from enum value: POST = 2;
247
+ */
248
+ POST = 2,
249
+ }
250
+ // Retrieve enum metadata with: proto3.getEnumType(Job_JobState)
251
+ proto3.util.setEnumType(Job_JobState, "norsk.api.manager.Job.JobState", [
252
+ { no: 0, name: "PRE" },
253
+ { no: 1, name: "ACTIVE" },
254
+ { no: 2, name: "POST" },
255
+ ]);
256
+
257
+ /**
258
+ * @generated from message norsk.api.manager.JobHash
259
+ */
260
+ export class JobHash extends Message<JobHash> {
261
+ /**
262
+ * @generated from field: int64 hash = 1;
263
+ */
264
+ hash = protoInt64.zero;
202
265
 
203
- constructor(data?: PartialMessage<Location>) {
266
+ constructor(data?: PartialMessage<JobHash>) {
204
267
  super();
205
268
  proto3.util.initPartial(data, this);
206
269
  }
207
270
 
208
271
  static readonly runtime = proto3;
209
- static readonly typeName = "norsk.api.manager.Location";
272
+ static readonly typeName = "norsk.api.manager.JobHash";
210
273
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
211
- { no: 1, name: "aws_s3_location", kind: "message", T: AwsS3Location, oneof: "location" },
212
- { no: 2, name: "http_location", kind: "message", T: PublicHttpLocation, oneof: "location" },
213
- { no: 3, name: "custom_location", kind: "message", T: CustomLocation, oneof: "location" },
274
+ { no: 1, name: "hash", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
214
275
  ]);
215
276
 
216
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Location {
217
- return new Location().fromBinary(bytes, options);
277
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHash {
278
+ return new JobHash().fromBinary(bytes, options);
218
279
  }
219
280
 
220
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Location {
221
- return new Location().fromJson(jsonValue, options);
281
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHash {
282
+ return new JobHash().fromJson(jsonValue, options);
222
283
  }
223
284
 
224
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Location {
225
- return new Location().fromJsonString(jsonString, options);
285
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHash {
286
+ return new JobHash().fromJsonString(jsonString, options);
226
287
  }
227
288
 
228
- static equals(a: Location | PlainMessage<Location> | undefined, b: Location | PlainMessage<Location> | undefined): boolean {
229
- return proto3.util.equals(Location, a, b);
289
+ static equals(a: JobHash | PlainMessage<JobHash> | undefined, b: JobHash | PlainMessage<JobHash> | undefined): boolean {
290
+ return proto3.util.equals(JobHash, a, b);
230
291
  }
231
292
  }
232
293
 
233
294
  /**
234
- * @generated from message norsk.api.manager.DockerContainer
295
+ * @generated from message norsk.api.manager.JobHistoryJobCreated
235
296
  */
236
- export class DockerContainer extends Message<DockerContainer> {
297
+ export class JobHistoryJobCreated extends Message<JobHistoryJobCreated> {
237
298
  /**
238
- * @generated from field: norsk.api.manager.Location location = 1;
299
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
239
300
  */
240
- location?: Location;
301
+ timestamp?: Timestamp;
241
302
 
242
- constructor(data?: PartialMessage<DockerContainer>) {
303
+ constructor(data?: PartialMessage<JobHistoryJobCreated>) {
243
304
  super();
244
305
  proto3.util.initPartial(data, this);
245
306
  }
246
307
 
247
308
  static readonly runtime = proto3;
248
- static readonly typeName = "norsk.api.manager.DockerContainer";
309
+ static readonly typeName = "norsk.api.manager.JobHistoryJobCreated";
249
310
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
250
- { no: 1, name: "location", kind: "message", T: Location },
311
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
251
312
  ]);
252
313
 
253
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DockerContainer {
254
- return new DockerContainer().fromBinary(bytes, options);
314
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobCreated {
315
+ return new JobHistoryJobCreated().fromBinary(bytes, options);
255
316
  }
256
317
 
257
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DockerContainer {
258
- return new DockerContainer().fromJson(jsonValue, options);
318
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobCreated {
319
+ return new JobHistoryJobCreated().fromJson(jsonValue, options);
259
320
  }
260
321
 
261
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DockerContainer {
262
- return new DockerContainer().fromJsonString(jsonString, options);
322
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobCreated {
323
+ return new JobHistoryJobCreated().fromJsonString(jsonString, options);
263
324
  }
264
325
 
265
- static equals(a: DockerContainer | PlainMessage<DockerContainer> | undefined, b: DockerContainer | PlainMessage<DockerContainer> | undefined): boolean {
266
- return proto3.util.equals(DockerContainer, a, b);
326
+ static equals(a: JobHistoryJobCreated | PlainMessage<JobHistoryJobCreated> | undefined, b: JobHistoryJobCreated | PlainMessage<JobHistoryJobCreated> | undefined): boolean {
327
+ return proto3.util.equals(JobHistoryJobCreated, a, b);
267
328
  }
268
329
  }
269
330
 
270
331
  /**
271
- * @generated from message norsk.api.manager.NpmPackage
332
+ * @generated from message norsk.api.manager.JobHistoryJobUpdated
272
333
  */
273
- export class NpmPackage extends Message<NpmPackage> {
334
+ export class JobHistoryJobUpdated extends Message<JobHistoryJobUpdated> {
335
+ /**
336
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
337
+ */
338
+ timestamp?: Timestamp;
339
+
274
340
  /**
275
- * @generated from field: norsk.api.manager.Location location = 1;
341
+ * @generated from field: norsk.api.manager.Job previous_job = 2;
276
342
  */
277
- location?: Location;
343
+ previousJob?: Job;
278
344
 
279
- constructor(data?: PartialMessage<NpmPackage>) {
345
+ constructor(data?: PartialMessage<JobHistoryJobUpdated>) {
280
346
  super();
281
347
  proto3.util.initPartial(data, this);
282
348
  }
283
349
 
284
350
  static readonly runtime = proto3;
285
- static readonly typeName = "norsk.api.manager.NpmPackage";
351
+ static readonly typeName = "norsk.api.manager.JobHistoryJobUpdated";
286
352
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
287
- { no: 1, name: "location", kind: "message", T: Location },
353
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
354
+ { no: 2, name: "previous_job", kind: "message", T: Job },
288
355
  ]);
289
356
 
290
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NpmPackage {
291
- return new NpmPackage().fromBinary(bytes, options);
357
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobUpdated {
358
+ return new JobHistoryJobUpdated().fromBinary(bytes, options);
292
359
  }
293
360
 
294
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NpmPackage {
295
- return new NpmPackage().fromJson(jsonValue, options);
361
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobUpdated {
362
+ return new JobHistoryJobUpdated().fromJson(jsonValue, options);
296
363
  }
297
364
 
298
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NpmPackage {
299
- return new NpmPackage().fromJsonString(jsonString, options);
365
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobUpdated {
366
+ return new JobHistoryJobUpdated().fromJsonString(jsonString, options);
300
367
  }
301
368
 
302
- static equals(a: NpmPackage | PlainMessage<NpmPackage> | undefined, b: NpmPackage | PlainMessage<NpmPackage> | undefined): boolean {
303
- return proto3.util.equals(NpmPackage, a, b);
369
+ static equals(a: JobHistoryJobUpdated | PlainMessage<JobHistoryJobUpdated> | undefined, b: JobHistoryJobUpdated | PlainMessage<JobHistoryJobUpdated> | undefined): boolean {
370
+ return proto3.util.equals(JobHistoryJobUpdated, a, b);
304
371
  }
305
372
  }
306
373
 
307
374
  /**
308
- * @generated from message norsk.api.manager.Job
375
+ * @generated from message norsk.api.manager.JobHistoryJobProvisioned
309
376
  */
310
- export class Job extends Message<Job> {
311
- /**
312
- * @generated from field: string id = 1;
313
- */
314
- id = "";
315
-
316
- /**
317
- * @generated from field: string description = 2;
318
- */
319
- description = "";
320
-
321
- /**
322
- * @generated from field: map<string, string> tags = 3;
323
- */
324
- tags: { [key: string]: string } = {};
325
-
326
- /**
327
- * @generated from field: google.protobuf.Timestamp start_date_time = 4;
328
- */
329
- startDateTime?: Timestamp;
330
-
331
- /**
332
- * @generated from field: google.protobuf.Timestamp end_date_time = 5;
333
- */
334
- endDateTime?: Timestamp;
335
-
336
- /**
337
- * @generated from field: int64 current_hash = 6;
338
- */
339
- currentHash = protoInt64.zero;
340
-
341
- /**
342
- * @generated from field: string media_configuration = 7;
343
- */
344
- mediaConfiguration = "";
345
-
377
+ export class JobHistoryJobProvisioned extends Message<JobHistoryJobProvisioned> {
346
378
  /**
347
- * @generated from field: string manager_configuration = 8;
379
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
348
380
  */
349
- managerConfiguration = "";
381
+ timestamp?: Timestamp;
350
382
 
351
383
  /**
352
- * @generated from field: string norsk_media_version = 9;
384
+ * @generated from field: string role = 2;
353
385
  */
354
- norskMediaVersion = "";
386
+ role = "";
355
387
 
356
388
  /**
357
- * @generated from oneof norsk.api.manager.Job.client_code
389
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 3;
358
390
  */
359
- clientCode: {
360
- /**
361
- * @generated from field: norsk.api.manager.DockerContainer docker = 10;
362
- */
363
- value: DockerContainer;
364
- case: "docker";
365
- } | {
366
- /**
367
- * @generated from field: norsk.api.manager.NpmPackage npm = 11;
368
- */
369
- value: NpmPackage;
370
- case: "npm";
371
- } | { case: undefined; value?: undefined } = { case: undefined };
391
+ nodeMetadata?: NodeMetadata;
372
392
 
373
- constructor(data?: PartialMessage<Job>) {
393
+ constructor(data?: PartialMessage<JobHistoryJobProvisioned>) {
374
394
  super();
375
395
  proto3.util.initPartial(data, this);
376
396
  }
377
397
 
378
398
  static readonly runtime = proto3;
379
- static readonly typeName = "norsk.api.manager.Job";
399
+ static readonly typeName = "norsk.api.manager.JobHistoryJobProvisioned";
380
400
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
381
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
382
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
383
- { no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
384
- { no: 4, name: "start_date_time", kind: "message", T: Timestamp },
385
- { no: 5, name: "end_date_time", kind: "message", T: Timestamp },
386
- { no: 6, name: "current_hash", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
387
- { no: 7, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
388
- { no: 8, name: "manager_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
389
- { no: 9, name: "norsk_media_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
390
- { no: 10, name: "docker", kind: "message", T: DockerContainer, oneof: "client_code" },
391
- { no: 11, name: "npm", kind: "message", T: NpmPackage, oneof: "client_code" },
401
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
402
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 3, name: "nodeMetadata", kind: "message", T: NodeMetadata },
392
404
  ]);
393
405
 
394
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Job {
395
- return new Job().fromBinary(bytes, options);
406
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobProvisioned {
407
+ return new JobHistoryJobProvisioned().fromBinary(bytes, options);
396
408
  }
397
409
 
398
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Job {
399
- return new Job().fromJson(jsonValue, options);
410
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobProvisioned {
411
+ return new JobHistoryJobProvisioned().fromJson(jsonValue, options);
400
412
  }
401
413
 
402
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Job {
403
- return new Job().fromJsonString(jsonString, options);
414
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobProvisioned {
415
+ return new JobHistoryJobProvisioned().fromJsonString(jsonString, options);
404
416
  }
405
417
 
406
- static equals(a: Job | PlainMessage<Job> | undefined, b: Job | PlainMessage<Job> | undefined): boolean {
407
- return proto3.util.equals(Job, a, b);
418
+ static equals(a: JobHistoryJobProvisioned | PlainMessage<JobHistoryJobProvisioned> | undefined, b: JobHistoryJobProvisioned | PlainMessage<JobHistoryJobProvisioned> | undefined): boolean {
419
+ return proto3.util.equals(JobHistoryJobProvisioned, a, b);
408
420
  }
409
421
  }
410
422
 
411
423
  /**
412
- * @generated from message norsk.api.manager.AwsNode
424
+ * @generated from message norsk.api.manager.JobHistoryJobRunning
413
425
  */
414
- export class AwsNode extends Message<AwsNode> {
415
- /**
416
- * @generated from field: string id = 1;
417
- */
418
- id = "";
419
-
426
+ export class JobHistoryJobRunning extends Message<JobHistoryJobRunning> {
420
427
  /**
421
- * @generated from field: map<string, string> tags = 2;
428
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
422
429
  */
423
- tags: { [key: string]: string } = {};
430
+ timestamp?: Timestamp;
424
431
 
425
432
  /**
426
- * @generated from field: string instance_type = 3;
427
- */
428
- instanceType = "";
429
-
430
- /**
431
- * @generated from field: string region = 4;
433
+ * @generated from field: string role = 2;
432
434
  */
433
- region = "";
435
+ role = "";
434
436
 
435
437
  /**
436
- * @generated from field: string az = 5;
438
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 3;
437
439
  */
438
- az = "";
440
+ nodeMetadata?: NodeMetadata;
439
441
 
440
442
  /**
441
- * @generated from field: google.protobuf.Timestamp created_at = 6;
443
+ * @generated from field: norsk.api.common.RunningNodeMetadata runningNodeMetadata = 4;
442
444
  */
443
- createdAt?: Timestamp;
445
+ runningNodeMetadata?: RunningNodeMetadata;
444
446
 
445
447
  /**
446
- * @generated from field: string daemon_version = 7;
448
+ * @generated from field: map<string, norsk.api.common.ResolvedPortMappings> service_port_mappings = 5;
447
449
  */
448
- daemonVersion = "";
450
+ servicePortMappings: { [key: string]: ResolvedPortMappings } = {};
449
451
 
450
- constructor(data?: PartialMessage<AwsNode>) {
452
+ constructor(data?: PartialMessage<JobHistoryJobRunning>) {
451
453
  super();
452
454
  proto3.util.initPartial(data, this);
453
455
  }
454
456
 
455
457
  static readonly runtime = proto3;
456
- static readonly typeName = "norsk.api.manager.AwsNode";
458
+ static readonly typeName = "norsk.api.manager.JobHistoryJobRunning";
457
459
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
458
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
459
- { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
460
- { no: 3, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
461
- { no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
- { no: 5, name: "az", kind: "scalar", T: 9 /* ScalarType.STRING */ },
463
- { no: 6, name: "created_at", kind: "message", T: Timestamp },
464
- { no: 7, name: "daemon_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
460
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
461
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
+ { no: 3, name: "nodeMetadata", kind: "message", T: NodeMetadata },
463
+ { no: 4, name: "runningNodeMetadata", kind: "message", T: RunningNodeMetadata },
464
+ { no: 5, name: "service_port_mappings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ResolvedPortMappings} },
465
465
  ]);
466
466
 
467
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsNode {
468
- return new AwsNode().fromBinary(bytes, options);
467
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobRunning {
468
+ return new JobHistoryJobRunning().fromBinary(bytes, options);
469
469
  }
470
470
 
471
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsNode {
472
- return new AwsNode().fromJson(jsonValue, options);
471
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobRunning {
472
+ return new JobHistoryJobRunning().fromJson(jsonValue, options);
473
473
  }
474
474
 
475
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsNode {
476
- return new AwsNode().fromJsonString(jsonString, options);
475
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobRunning {
476
+ return new JobHistoryJobRunning().fromJsonString(jsonString, options);
477
477
  }
478
478
 
479
- static equals(a: AwsNode | PlainMessage<AwsNode> | undefined, b: AwsNode | PlainMessage<AwsNode> | undefined): boolean {
480
- return proto3.util.equals(AwsNode, a, b);
479
+ static equals(a: JobHistoryJobRunning | PlainMessage<JobHistoryJobRunning> | undefined, b: JobHistoryJobRunning | PlainMessage<JobHistoryJobRunning> | undefined): boolean {
480
+ return proto3.util.equals(JobHistoryJobRunning, a, b);
481
481
  }
482
482
  }
483
483
 
484
484
  /**
485
- * @generated from message norsk.api.manager.AwsNodeAddress
485
+ * @generated from message norsk.api.manager.JobHistoryJobStopping
486
486
  */
487
- export class AwsNodeAddress extends Message<AwsNodeAddress> {
487
+ export class JobHistoryJobStopping extends Message<JobHistoryJobStopping> {
488
+ /**
489
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
490
+ */
491
+ timestamp?: Timestamp;
492
+
493
+ /**
494
+ * @generated from field: string role = 2;
495
+ */
496
+ role = "";
497
+
488
498
  /**
489
- * @generated from field: string public_dns_name = 1;
499
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 3;
490
500
  */
491
- publicDnsName = "";
501
+ nodeMetadata?: NodeMetadata;
492
502
 
493
503
  /**
494
- * @generated from field: string private_dns_name = 2;
504
+ * @generated from field: norsk.api.common.RunningNodeMetadata runningNodeMetadata = 4;
495
505
  */
496
- privateDnsName = "";
506
+ runningNodeMetadata?: RunningNodeMetadata;
497
507
 
498
508
  /**
499
- * @generated from field: string private_ip_address = 3;
509
+ * @generated from field: norsk.api.manager.JobHistoryJobStopping.Reason reason = 5;
500
510
  */
501
- privateIpAddress = "";
511
+ reason = JobHistoryJobStopping_Reason.JOB_STOPPED_NODE_STOPPED;
502
512
 
503
- constructor(data?: PartialMessage<AwsNodeAddress>) {
513
+ constructor(data?: PartialMessage<JobHistoryJobStopping>) {
504
514
  super();
505
515
  proto3.util.initPartial(data, this);
506
516
  }
507
517
 
508
518
  static readonly runtime = proto3;
509
- static readonly typeName = "norsk.api.manager.AwsNodeAddress";
519
+ static readonly typeName = "norsk.api.manager.JobHistoryJobStopping";
510
520
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
511
- { no: 1, name: "public_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
512
- { no: 2, name: "private_dns_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
513
- { no: 3, name: "private_ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
521
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
522
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
+ { no: 3, name: "nodeMetadata", kind: "message", T: NodeMetadata },
524
+ { no: 4, name: "runningNodeMetadata", kind: "message", T: RunningNodeMetadata },
525
+ { no: 5, name: "reason", kind: "enum", T: proto3.getEnumType(JobHistoryJobStopping_Reason) },
514
526
  ]);
515
527
 
516
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsNodeAddress {
517
- return new AwsNodeAddress().fromBinary(bytes, options);
528
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobStopping {
529
+ return new JobHistoryJobStopping().fromBinary(bytes, options);
518
530
  }
519
531
 
520
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsNodeAddress {
521
- return new AwsNodeAddress().fromJson(jsonValue, options);
532
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobStopping {
533
+ return new JobHistoryJobStopping().fromJson(jsonValue, options);
522
534
  }
523
535
 
524
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsNodeAddress {
525
- return new AwsNodeAddress().fromJsonString(jsonString, options);
536
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobStopping {
537
+ return new JobHistoryJobStopping().fromJsonString(jsonString, options);
526
538
  }
527
539
 
528
- static equals(a: AwsNodeAddress | PlainMessage<AwsNodeAddress> | undefined, b: AwsNodeAddress | PlainMessage<AwsNodeAddress> | undefined): boolean {
529
- return proto3.util.equals(AwsNodeAddress, a, b);
540
+ static equals(a: JobHistoryJobStopping | PlainMessage<JobHistoryJobStopping> | undefined, b: JobHistoryJobStopping | PlainMessage<JobHistoryJobStopping> | undefined): boolean {
541
+ return proto3.util.equals(JobHistoryJobStopping, a, b);
530
542
  }
531
543
  }
532
544
 
533
545
  /**
534
- * @generated from message norsk.api.manager.AwsRunningNode
546
+ * @generated from enum norsk.api.manager.JobHistoryJobStopping.Reason
535
547
  */
536
- export class AwsRunningNode extends Message<AwsRunningNode> {
548
+ export enum JobHistoryJobStopping_Reason {
537
549
  /**
538
- * @generated from field: norsk.api.manager.AwsNode node = 1;
550
+ * @generated from enum value: JOB_STOPPED_NODE_STOPPED = 0;
539
551
  */
540
- node?: AwsNode;
552
+ JOB_STOPPED_NODE_STOPPED = 0,
541
553
 
542
554
  /**
543
- * @generated from field: norsk.api.manager.AwsNodeAddress address = 2;
555
+ * @generated from enum value: JOB_STOPPED_NODE_TERMINATED = 1;
544
556
  */
545
- address?: AwsNodeAddress;
546
-
547
- constructor(data?: PartialMessage<AwsRunningNode>) {
548
- super();
549
- proto3.util.initPartial(data, this);
550
- }
551
-
552
- static readonly runtime = proto3;
553
- static readonly typeName = "norsk.api.manager.AwsRunningNode";
554
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
555
- { no: 1, name: "node", kind: "message", T: AwsNode },
556
- { no: 2, name: "address", kind: "message", T: AwsNodeAddress },
557
- ]);
558
-
559
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsRunningNode {
560
- return new AwsRunningNode().fromBinary(bytes, options);
561
- }
557
+ JOB_STOPPED_NODE_TERMINATED = 1,
562
558
 
563
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsRunningNode {
564
- return new AwsRunningNode().fromJson(jsonValue, options);
565
- }
559
+ /**
560
+ * @generated from enum value: JOB_STOPPED_USER_REQUESTED = 2;
561
+ */
562
+ JOB_STOPPED_USER_REQUESTED = 2,
566
563
 
567
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsRunningNode {
568
- return new AwsRunningNode().fromJsonString(jsonString, options);
569
- }
564
+ /**
565
+ * @generated from enum value: JOB_STOPPED_UNKNOWN_JOB = 3;
566
+ */
567
+ JOB_STOPPED_UNKNOWN_JOB = 3,
570
568
 
571
- static equals(a: AwsRunningNode | PlainMessage<AwsRunningNode> | undefined, b: AwsRunningNode | PlainMessage<AwsRunningNode> | undefined): boolean {
572
- return proto3.util.equals(AwsRunningNode, a, b);
573
- }
569
+ /**
570
+ * @generated from enum value: JOB_STOPPED_JOB_FAILED = 4;
571
+ */
572
+ JOB_STOPPED_JOB_FAILED = 4,
574
573
  }
574
+ // Retrieve enum metadata with: proto3.getEnumType(JobHistoryJobStopping_Reason)
575
+ proto3.util.setEnumType(JobHistoryJobStopping_Reason, "norsk.api.manager.JobHistoryJobStopping.Reason", [
576
+ { no: 0, name: "JOB_STOPPED_NODE_STOPPED" },
577
+ { no: 1, name: "JOB_STOPPED_NODE_TERMINATED" },
578
+ { no: 2, name: "JOB_STOPPED_USER_REQUESTED" },
579
+ { no: 3, name: "JOB_STOPPED_UNKNOWN_JOB" },
580
+ { no: 4, name: "JOB_STOPPED_JOB_FAILED" },
581
+ ]);
575
582
 
576
583
  /**
577
- * @generated from message norsk.api.manager.PhysicalNode
584
+ * @generated from message norsk.api.manager.JobHistoryJobStopped
578
585
  */
579
- export class PhysicalNode extends Message<PhysicalNode> {
586
+ export class JobHistoryJobStopped extends Message<JobHistoryJobStopped> {
580
587
  /**
581
- * @generated from field: string id = 1;
588
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
582
589
  */
583
- id = "";
590
+ timestamp?: Timestamp;
584
591
 
585
592
  /**
586
- * @generated from field: map<string, string> tags = 2;
593
+ * @generated from field: string role = 2;
587
594
  */
588
- tags: { [key: string]: string } = {};
595
+ role = "";
589
596
 
590
597
  /**
591
- * @generated from field: string ip_address = 3;
598
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 3;
592
599
  */
593
- ipAddress = "";
600
+ nodeMetadata?: NodeMetadata;
594
601
 
595
- constructor(data?: PartialMessage<PhysicalNode>) {
602
+ /**
603
+ * @generated from field: norsk.api.common.RunningNodeMetadata runningNodeMetadata = 4;
604
+ */
605
+ runningNodeMetadata?: RunningNodeMetadata;
606
+
607
+ constructor(data?: PartialMessage<JobHistoryJobStopped>) {
596
608
  super();
597
609
  proto3.util.initPartial(data, this);
598
610
  }
599
611
 
600
612
  static readonly runtime = proto3;
601
- static readonly typeName = "norsk.api.manager.PhysicalNode";
613
+ static readonly typeName = "norsk.api.manager.JobHistoryJobStopped";
602
614
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
603
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
604
- { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
605
- { no: 3, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
615
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
616
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
617
+ { no: 3, name: "nodeMetadata", kind: "message", T: NodeMetadata },
618
+ { no: 4, name: "runningNodeMetadata", kind: "message", T: RunningNodeMetadata },
606
619
  ]);
607
620
 
608
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhysicalNode {
609
- return new PhysicalNode().fromBinary(bytes, options);
621
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobStopped {
622
+ return new JobHistoryJobStopped().fromBinary(bytes, options);
610
623
  }
611
624
 
612
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhysicalNode {
613
- return new PhysicalNode().fromJson(jsonValue, options);
625
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobStopped {
626
+ return new JobHistoryJobStopped().fromJson(jsonValue, options);
614
627
  }
615
628
 
616
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhysicalNode {
617
- return new PhysicalNode().fromJsonString(jsonString, options);
629
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobStopped {
630
+ return new JobHistoryJobStopped().fromJsonString(jsonString, options);
618
631
  }
619
-
620
- static equals(a: PhysicalNode | PlainMessage<PhysicalNode> | undefined, b: PhysicalNode | PlainMessage<PhysicalNode> | undefined): boolean {
621
- return proto3.util.equals(PhysicalNode, a, b);
632
+
633
+ static equals(a: JobHistoryJobStopped | PlainMessage<JobHistoryJobStopped> | undefined, b: JobHistoryJobStopped | PlainMessage<JobHistoryJobStopped> | undefined): boolean {
634
+ return proto3.util.equals(JobHistoryJobStopped, a, b);
622
635
  }
623
636
  }
624
637
 
625
638
  /**
626
- * @generated from message norsk.api.manager.RunningJob
639
+ * @generated from message norsk.api.manager.JobHistoryJobCompleted
627
640
  */
628
- export class RunningJob extends Message<RunningJob> {
629
- /**
630
- * @generated from field: norsk.api.manager.JobId job_id = 1;
631
- */
632
- jobId?: JobId;
633
-
634
- /**
635
- * @generated from field: string role = 2;
636
- */
637
- role = "";
638
-
641
+ export class JobHistoryJobCompleted extends Message<JobHistoryJobCompleted> {
639
642
  /**
640
- * @generated from field: norsk.api.manager.NodeId node_id = 3;
643
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
641
644
  */
642
- nodeId?: NodeId;
645
+ timestamp?: Timestamp;
643
646
 
644
- constructor(data?: PartialMessage<RunningJob>) {
647
+ constructor(data?: PartialMessage<JobHistoryJobCompleted>) {
645
648
  super();
646
649
  proto3.util.initPartial(data, this);
647
650
  }
648
651
 
649
652
  static readonly runtime = proto3;
650
- static readonly typeName = "norsk.api.manager.RunningJob";
653
+ static readonly typeName = "norsk.api.manager.JobHistoryJobCompleted";
651
654
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
652
- { no: 1, name: "job_id", kind: "message", T: JobId },
653
- { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
654
- { no: 3, name: "node_id", kind: "message", T: NodeId },
655
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
655
656
  ]);
656
657
 
657
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningJob {
658
- return new RunningJob().fromBinary(bytes, options);
658
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryJobCompleted {
659
+ return new JobHistoryJobCompleted().fromBinary(bytes, options);
659
660
  }
660
661
 
661
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningJob {
662
- return new RunningJob().fromJson(jsonValue, options);
662
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryJobCompleted {
663
+ return new JobHistoryJobCompleted().fromJson(jsonValue, options);
663
664
  }
664
665
 
665
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningJob {
666
- return new RunningJob().fromJsonString(jsonString, options);
666
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryJobCompleted {
667
+ return new JobHistoryJobCompleted().fromJsonString(jsonString, options);
667
668
  }
668
669
 
669
- static equals(a: RunningJob | PlainMessage<RunningJob> | undefined, b: RunningJob | PlainMessage<RunningJob> | undefined): boolean {
670
- return proto3.util.equals(RunningJob, a, b);
670
+ static equals(a: JobHistoryJobCompleted | PlainMessage<JobHistoryJobCompleted> | undefined, b: JobHistoryJobCompleted | PlainMessage<JobHistoryJobCompleted> | undefined): boolean {
671
+ return proto3.util.equals(JobHistoryJobCompleted, a, b);
671
672
  }
672
673
  }
673
674
 
674
675
  /**
675
- * @generated from message norsk.api.manager.JobPending
676
+ * @generated from message norsk.api.manager.JobHistoryEntry
676
677
  */
677
- export class JobPending extends Message<JobPending> {
678
+ export class JobHistoryEntry extends Message<JobHistoryEntry> {
678
679
  /**
679
- * @generated from field: norsk.api.manager.Job job = 1;
680
+ * @generated from oneof norsk.api.manager.JobHistoryEntry.history_entry
680
681
  */
681
- job?: Job;
682
+ historyEntry: {
683
+ /**
684
+ * @generated from field: norsk.api.manager.JobHistoryJobCreated job_created = 1;
685
+ */
686
+ value: JobHistoryJobCreated;
687
+ case: "jobCreated";
688
+ } | {
689
+ /**
690
+ * @generated from field: norsk.api.manager.JobHistoryJobUpdated job_updated = 2;
691
+ */
692
+ value: JobHistoryJobUpdated;
693
+ case: "jobUpdated";
694
+ } | {
695
+ /**
696
+ * @generated from field: norsk.api.manager.JobHistoryJobProvisioned job_provisioned = 3;
697
+ */
698
+ value: JobHistoryJobProvisioned;
699
+ case: "jobProvisioned";
700
+ } | {
701
+ /**
702
+ * @generated from field: norsk.api.manager.JobHistoryJobRunning job_running = 4;
703
+ */
704
+ value: JobHistoryJobRunning;
705
+ case: "jobRunning";
706
+ } | {
707
+ /**
708
+ * @generated from field: norsk.api.manager.JobHistoryJobStopping job_stopping = 5;
709
+ */
710
+ value: JobHistoryJobStopping;
711
+ case: "jobStopping";
712
+ } | {
713
+ /**
714
+ * @generated from field: norsk.api.manager.JobHistoryJobStopped job_stopped = 6;
715
+ */
716
+ value: JobHistoryJobStopped;
717
+ case: "jobStopped";
718
+ } | {
719
+ /**
720
+ * @generated from field: norsk.api.manager.JobHistoryJobCompleted job_completed = 7;
721
+ */
722
+ value: JobHistoryJobCompleted;
723
+ case: "jobCompleted";
724
+ } | { case: undefined; value?: undefined } = { case: undefined };
682
725
 
683
- constructor(data?: PartialMessage<JobPending>) {
726
+ constructor(data?: PartialMessage<JobHistoryEntry>) {
684
727
  super();
685
728
  proto3.util.initPartial(data, this);
686
729
  }
687
730
 
688
731
  static readonly runtime = proto3;
689
- static readonly typeName = "norsk.api.manager.JobPending";
732
+ static readonly typeName = "norsk.api.manager.JobHistoryEntry";
690
733
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
691
- { no: 1, name: "job", kind: "message", T: Job },
734
+ { no: 1, name: "job_created", kind: "message", T: JobHistoryJobCreated, oneof: "history_entry" },
735
+ { no: 2, name: "job_updated", kind: "message", T: JobHistoryJobUpdated, oneof: "history_entry" },
736
+ { no: 3, name: "job_provisioned", kind: "message", T: JobHistoryJobProvisioned, oneof: "history_entry" },
737
+ { no: 4, name: "job_running", kind: "message", T: JobHistoryJobRunning, oneof: "history_entry" },
738
+ { no: 5, name: "job_stopping", kind: "message", T: JobHistoryJobStopping, oneof: "history_entry" },
739
+ { no: 6, name: "job_stopped", kind: "message", T: JobHistoryJobStopped, oneof: "history_entry" },
740
+ { no: 7, name: "job_completed", kind: "message", T: JobHistoryJobCompleted, oneof: "history_entry" },
692
741
  ]);
693
742
 
694
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobPending {
695
- return new JobPending().fromBinary(bytes, options);
743
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobHistoryEntry {
744
+ return new JobHistoryEntry().fromBinary(bytes, options);
696
745
  }
697
746
 
698
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobPending {
699
- return new JobPending().fromJson(jsonValue, options);
747
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobHistoryEntry {
748
+ return new JobHistoryEntry().fromJson(jsonValue, options);
700
749
  }
701
750
 
702
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobPending {
703
- return new JobPending().fromJsonString(jsonString, options);
751
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobHistoryEntry {
752
+ return new JobHistoryEntry().fromJsonString(jsonString, options);
704
753
  }
705
754
 
706
- static equals(a: JobPending | PlainMessage<JobPending> | undefined, b: JobPending | PlainMessage<JobPending> | undefined): boolean {
707
- return proto3.util.equals(JobPending, a, b);
755
+ static equals(a: JobHistoryEntry | PlainMessage<JobHistoryEntry> | undefined, b: JobHistoryEntry | PlainMessage<JobHistoryEntry> | undefined): boolean {
756
+ return proto3.util.equals(JobHistoryEntry, a, b);
708
757
  }
709
758
  }
710
759
 
711
760
  /**
712
- * @generated from message norsk.api.manager.JobUpdated
761
+ * @generated from message norsk.api.manager.JobWithHistory
713
762
  */
714
- export class JobUpdated extends Message<JobUpdated> {
763
+ export class JobWithHistory extends Message<JobWithHistory> {
715
764
  /**
716
765
  * @generated from field: norsk.api.manager.Job job = 1;
717
766
  */
718
767
  job?: Job;
719
768
 
720
- constructor(data?: PartialMessage<JobUpdated>) {
769
+ /**
770
+ * @generated from field: repeated norsk.api.manager.JobHistoryEntry history_entry = 2;
771
+ */
772
+ historyEntry: JobHistoryEntry[] = [];
773
+
774
+ constructor(data?: PartialMessage<JobWithHistory>) {
721
775
  super();
722
776
  proto3.util.initPartial(data, this);
723
777
  }
724
778
 
725
779
  static readonly runtime = proto3;
726
- static readonly typeName = "norsk.api.manager.JobUpdated";
780
+ static readonly typeName = "norsk.api.manager.JobWithHistory";
727
781
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
728
782
  { no: 1, name: "job", kind: "message", T: Job },
783
+ { no: 2, name: "history_entry", kind: "message", T: JobHistoryEntry, repeated: true },
729
784
  ]);
730
785
 
731
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobUpdated {
732
- return new JobUpdated().fromBinary(bytes, options);
786
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobWithHistory {
787
+ return new JobWithHistory().fromBinary(bytes, options);
733
788
  }
734
789
 
735
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobUpdated {
736
- return new JobUpdated().fromJson(jsonValue, options);
790
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobWithHistory {
791
+ return new JobWithHistory().fromJson(jsonValue, options);
737
792
  }
738
793
 
739
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobUpdated {
740
- return new JobUpdated().fromJsonString(jsonString, options);
794
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobWithHistory {
795
+ return new JobWithHistory().fromJsonString(jsonString, options);
741
796
  }
742
797
 
743
- static equals(a: JobUpdated | PlainMessage<JobUpdated> | undefined, b: JobUpdated | PlainMessage<JobUpdated> | undefined): boolean {
744
- return proto3.util.equals(JobUpdated, a, b);
798
+ static equals(a: JobWithHistory | PlainMessage<JobWithHistory> | undefined, b: JobWithHistory | PlainMessage<JobWithHistory> | undefined): boolean {
799
+ return proto3.util.equals(JobWithHistory, a, b);
745
800
  }
746
801
  }
747
802
 
748
803
  /**
749
- * @generated from message norsk.api.manager.JobDueToStart
804
+ * @generated from message norsk.api.manager.PhysicalNode
750
805
  */
751
- export class JobDueToStart extends Message<JobDueToStart> {
806
+ export class PhysicalNode extends Message<PhysicalNode> {
752
807
  /**
753
- * @generated from field: norsk.api.manager.Job job = 1;
808
+ * @generated from field: string id = 1;
754
809
  */
755
- job?: Job;
810
+ id = "";
811
+
812
+ /**
813
+ * @generated from field: map<string, string> tags = 2;
814
+ */
815
+ tags: { [key: string]: string } = {};
816
+
817
+ /**
818
+ * @generated from field: string ip_address = 3;
819
+ */
820
+ ipAddress = "";
756
821
 
757
- constructor(data?: PartialMessage<JobDueToStart>) {
822
+ constructor(data?: PartialMessage<PhysicalNode>) {
758
823
  super();
759
824
  proto3.util.initPartial(data, this);
760
825
  }
761
826
 
762
827
  static readonly runtime = proto3;
763
- static readonly typeName = "norsk.api.manager.JobDueToStart";
828
+ static readonly typeName = "norsk.api.manager.PhysicalNode";
764
829
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
765
- { no: 1, name: "job", kind: "message", T: Job },
830
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
831
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
832
+ { no: 3, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
766
833
  ]);
767
834
 
768
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDueToStart {
769
- return new JobDueToStart().fromBinary(bytes, options);
835
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PhysicalNode {
836
+ return new PhysicalNode().fromBinary(bytes, options);
770
837
  }
771
838
 
772
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDueToStart {
773
- return new JobDueToStart().fromJson(jsonValue, options);
839
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PhysicalNode {
840
+ return new PhysicalNode().fromJson(jsonValue, options);
774
841
  }
775
842
 
776
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDueToStart {
777
- return new JobDueToStart().fromJsonString(jsonString, options);
843
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PhysicalNode {
844
+ return new PhysicalNode().fromJsonString(jsonString, options);
778
845
  }
779
846
 
780
- static equals(a: JobDueToStart | PlainMessage<JobDueToStart> | undefined, b: JobDueToStart | PlainMessage<JobDueToStart> | undefined): boolean {
781
- return proto3.util.equals(JobDueToStart, a, b);
847
+ static equals(a: PhysicalNode | PlainMessage<PhysicalNode> | undefined, b: PhysicalNode | PlainMessage<PhysicalNode> | undefined): boolean {
848
+ return proto3.util.equals(PhysicalNode, a, b);
782
849
  }
783
850
  }
784
851
 
785
852
  /**
786
- * @generated from message norsk.api.manager.JobInstanceStarting
853
+ * @generated from message norsk.api.manager.RunningJob
787
854
  */
788
- export class JobInstanceStarting extends Message<JobInstanceStarting> {
855
+ export class RunningJob extends Message<RunningJob> {
856
+ /**
857
+ * @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
858
+ */
859
+ jobKey?: ActiveJobKey;
860
+
789
861
  /**
790
- * @generated from field: norsk.api.manager.RunningJob running_job = 1;
862
+ * @generated from field: norsk.api.common.NodeId node_id = 2;
791
863
  */
792
- runningJob?: RunningJob;
864
+ nodeId?: NodeId;
793
865
 
794
- constructor(data?: PartialMessage<JobInstanceStarting>) {
866
+ constructor(data?: PartialMessage<RunningJob>) {
795
867
  super();
796
868
  proto3.util.initPartial(data, this);
797
869
  }
798
870
 
799
871
  static readonly runtime = proto3;
800
- static readonly typeName = "norsk.api.manager.JobInstanceStarting";
872
+ static readonly typeName = "norsk.api.manager.RunningJob";
801
873
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
802
- { no: 1, name: "running_job", kind: "message", T: RunningJob },
874
+ { no: 1, name: "job_key", kind: "message", T: ActiveJobKey },
875
+ { no: 2, name: "node_id", kind: "message", T: NodeId },
803
876
  ]);
804
877
 
805
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStarting {
806
- return new JobInstanceStarting().fromBinary(bytes, options);
878
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningJob {
879
+ return new RunningJob().fromBinary(bytes, options);
807
880
  }
808
881
 
809
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStarting {
810
- return new JobInstanceStarting().fromJson(jsonValue, options);
882
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningJob {
883
+ return new RunningJob().fromJson(jsonValue, options);
811
884
  }
812
885
 
813
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStarting {
814
- return new JobInstanceStarting().fromJsonString(jsonString, options);
886
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningJob {
887
+ return new RunningJob().fromJsonString(jsonString, options);
815
888
  }
816
889
 
817
- static equals(a: JobInstanceStarting | PlainMessage<JobInstanceStarting> | undefined, b: JobInstanceStarting | PlainMessage<JobInstanceStarting> | undefined): boolean {
818
- return proto3.util.equals(JobInstanceStarting, a, b);
890
+ static equals(a: RunningJob | PlainMessage<RunningJob> | undefined, b: RunningJob | PlainMessage<RunningJob> | undefined): boolean {
891
+ return proto3.util.equals(RunningJob, a, b);
819
892
  }
820
893
  }
821
894
 
822
895
  /**
823
- * @generated from message norsk.api.manager.JobInstanceStarted
896
+ * @generated from message norsk.api.manager.JobActive
824
897
  */
825
- export class JobInstanceStarted extends Message<JobInstanceStarted> {
898
+ export class JobActive extends Message<JobActive> {
826
899
  /**
827
- * @generated from field: norsk.api.manager.RunningJob running_job = 1;
900
+ * @generated from field: norsk.api.manager.JobWithHistory jobWithHistory = 1;
828
901
  */
829
- runningJob?: RunningJob;
902
+ jobWithHistory?: JobWithHistory;
830
903
 
831
- constructor(data?: PartialMessage<JobInstanceStarted>) {
904
+ constructor(data?: PartialMessage<JobActive>) {
832
905
  super();
833
906
  proto3.util.initPartial(data, this);
834
907
  }
835
908
 
836
909
  static readonly runtime = proto3;
837
- static readonly typeName = "norsk.api.manager.JobInstanceStarted";
910
+ static readonly typeName = "norsk.api.manager.JobActive";
838
911
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
839
- { no: 1, name: "running_job", kind: "message", T: RunningJob },
912
+ { no: 1, name: "jobWithHistory", kind: "message", T: JobWithHistory },
840
913
  ]);
841
914
 
842
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStarted {
843
- return new JobInstanceStarted().fromBinary(bytes, options);
915
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobActive {
916
+ return new JobActive().fromBinary(bytes, options);
844
917
  }
845
918
 
846
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStarted {
847
- return new JobInstanceStarted().fromJson(jsonValue, options);
919
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobActive {
920
+ return new JobActive().fromJson(jsonValue, options);
848
921
  }
849
922
 
850
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStarted {
851
- return new JobInstanceStarted().fromJsonString(jsonString, options);
923
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobActive {
924
+ return new JobActive().fromJsonString(jsonString, options);
852
925
  }
853
926
 
854
- static equals(a: JobInstanceStarted | PlainMessage<JobInstanceStarted> | undefined, b: JobInstanceStarted | PlainMessage<JobInstanceStarted> | undefined): boolean {
855
- return proto3.util.equals(JobInstanceStarted, a, b);
927
+ static equals(a: JobActive | PlainMessage<JobActive> | undefined, b: JobActive | PlainMessage<JobActive> | undefined): boolean {
928
+ return proto3.util.equals(JobActive, a, b);
856
929
  }
857
930
  }
858
931
 
859
932
  /**
860
- * @generated from message norsk.api.manager.JobDueToStop
933
+ * @generated from message norsk.api.manager.JobPending
861
934
  */
862
- export class JobDueToStop extends Message<JobDueToStop> {
863
- /**
864
- * @generated from field: norsk.api.manager.Job job = 1;
865
- */
866
- job?: Job;
867
-
935
+ export class JobPending extends Message<JobPending> {
868
936
  /**
869
- * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
937
+ * @generated from field: norsk.api.manager.JobWithHistory jobWithHistory = 1;
870
938
  */
871
- instances: RunningJob[] = [];
939
+ jobWithHistory?: JobWithHistory;
872
940
 
873
- constructor(data?: PartialMessage<JobDueToStop>) {
941
+ constructor(data?: PartialMessage<JobPending>) {
874
942
  super();
875
943
  proto3.util.initPartial(data, this);
876
944
  }
877
945
 
878
946
  static readonly runtime = proto3;
879
- static readonly typeName = "norsk.api.manager.JobDueToStop";
947
+ static readonly typeName = "norsk.api.manager.JobPending";
880
948
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
881
- { no: 1, name: "job", kind: "message", T: Job },
882
- { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
949
+ { no: 1, name: "jobWithHistory", kind: "message", T: JobWithHistory },
883
950
  ]);
884
951
 
885
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDueToStop {
886
- return new JobDueToStop().fromBinary(bytes, options);
952
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobPending {
953
+ return new JobPending().fromBinary(bytes, options);
887
954
  }
888
955
 
889
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDueToStop {
890
- return new JobDueToStop().fromJson(jsonValue, options);
956
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobPending {
957
+ return new JobPending().fromJson(jsonValue, options);
891
958
  }
892
959
 
893
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDueToStop {
894
- return new JobDueToStop().fromJsonString(jsonString, options);
960
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobPending {
961
+ return new JobPending().fromJsonString(jsonString, options);
895
962
  }
896
963
 
897
- static equals(a: JobDueToStop | PlainMessage<JobDueToStop> | undefined, b: JobDueToStop | PlainMessage<JobDueToStop> | undefined): boolean {
898
- return proto3.util.equals(JobDueToStop, a, b);
964
+ static equals(a: JobPending | PlainMessage<JobPending> | undefined, b: JobPending | PlainMessage<JobPending> | undefined): boolean {
965
+ return proto3.util.equals(JobPending, a, b);
899
966
  }
900
967
  }
901
968
 
902
969
  /**
903
- * @generated from message norsk.api.manager.JobInstanceStopping
970
+ * @generated from message norsk.api.manager.JobUpdated
904
971
  */
905
- export class JobInstanceStopping extends Message<JobInstanceStopping> {
972
+ export class JobUpdated extends Message<JobUpdated> {
906
973
  /**
907
- * @generated from field: norsk.api.manager.RunningJob running_job = 1;
974
+ * @generated from field: norsk.api.manager.JobWithHistory jobWithHistory = 1;
908
975
  */
909
- runningJob?: RunningJob;
976
+ jobWithHistory?: JobWithHistory;
910
977
 
911
- constructor(data?: PartialMessage<JobInstanceStopping>) {
978
+ constructor(data?: PartialMessage<JobUpdated>) {
912
979
  super();
913
980
  proto3.util.initPartial(data, this);
914
981
  }
915
982
 
916
983
  static readonly runtime = proto3;
917
- static readonly typeName = "norsk.api.manager.JobInstanceStopping";
984
+ static readonly typeName = "norsk.api.manager.JobUpdated";
918
985
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
919
- { no: 1, name: "running_job", kind: "message", T: RunningJob },
986
+ { no: 1, name: "jobWithHistory", kind: "message", T: JobWithHistory },
920
987
  ]);
921
988
 
922
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStopping {
923
- return new JobInstanceStopping().fromBinary(bytes, options);
989
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobUpdated {
990
+ return new JobUpdated().fromBinary(bytes, options);
924
991
  }
925
992
 
926
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStopping {
927
- return new JobInstanceStopping().fromJson(jsonValue, options);
993
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobUpdated {
994
+ return new JobUpdated().fromJson(jsonValue, options);
928
995
  }
929
996
 
930
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStopping {
931
- return new JobInstanceStopping().fromJsonString(jsonString, options);
997
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobUpdated {
998
+ return new JobUpdated().fromJsonString(jsonString, options);
932
999
  }
933
1000
 
934
- static equals(a: JobInstanceStopping | PlainMessage<JobInstanceStopping> | undefined, b: JobInstanceStopping | PlainMessage<JobInstanceStopping> | undefined): boolean {
935
- return proto3.util.equals(JobInstanceStopping, a, b);
1001
+ static equals(a: JobUpdated | PlainMessage<JobUpdated> | undefined, b: JobUpdated | PlainMessage<JobUpdated> | undefined): boolean {
1002
+ return proto3.util.equals(JobUpdated, a, b);
936
1003
  }
937
1004
  }
938
1005
 
939
1006
  /**
940
- * @generated from message norsk.api.manager.JobInstanceStopped
1007
+ * @generated from message norsk.api.manager.JobDeleted
941
1008
  */
942
- export class JobInstanceStopped extends Message<JobInstanceStopped> {
1009
+ export class JobDeleted extends Message<JobDeleted> {
943
1010
  /**
944
- * @generated from field: norsk.api.manager.RunningJob running_job = 1;
1011
+ * @generated from field: norsk.api.common.JobId jobId = 1;
945
1012
  */
946
- runningJob?: RunningJob;
1013
+ jobId?: JobId;
947
1014
 
948
- constructor(data?: PartialMessage<JobInstanceStopped>) {
1015
+ constructor(data?: PartialMessage<JobDeleted>) {
949
1016
  super();
950
1017
  proto3.util.initPartial(data, this);
951
1018
  }
952
1019
 
953
1020
  static readonly runtime = proto3;
954
- static readonly typeName = "norsk.api.manager.JobInstanceStopped";
1021
+ static readonly typeName = "norsk.api.manager.JobDeleted";
955
1022
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
956
- { no: 1, name: "running_job", kind: "message", T: RunningJob },
1023
+ { no: 1, name: "jobId", kind: "message", T: JobId },
957
1024
  ]);
958
1025
 
959
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceStopped {
960
- return new JobInstanceStopped().fromBinary(bytes, options);
1026
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDeleted {
1027
+ return new JobDeleted().fromBinary(bytes, options);
961
1028
  }
962
1029
 
963
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceStopped {
964
- return new JobInstanceStopped().fromJson(jsonValue, options);
1030
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDeleted {
1031
+ return new JobDeleted().fromJson(jsonValue, options);
965
1032
  }
966
1033
 
967
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceStopped {
968
- return new JobInstanceStopped().fromJsonString(jsonString, options);
1034
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDeleted {
1035
+ return new JobDeleted().fromJsonString(jsonString, options);
969
1036
  }
970
1037
 
971
- static equals(a: JobInstanceStopped | PlainMessage<JobInstanceStopped> | undefined, b: JobInstanceStopped | PlainMessage<JobInstanceStopped> | undefined): boolean {
972
- return proto3.util.equals(JobInstanceStopped, a, b);
1038
+ static equals(a: JobDeleted | PlainMessage<JobDeleted> | undefined, b: JobDeleted | PlainMessage<JobDeleted> | undefined): boolean {
1039
+ return proto3.util.equals(JobDeleted, a, b);
973
1040
  }
974
1041
  }
975
1042
 
976
1043
  /**
977
- * @generated from message norsk.api.manager.JobInstanceFailed
1044
+ * @generated from message norsk.api.manager.JobOutOfWindow
978
1045
  */
979
- export class JobInstanceFailed extends Message<JobInstanceFailed> {
1046
+ export class JobOutOfWindow extends Message<JobOutOfWindow> {
980
1047
  /**
981
- * @generated from field: norsk.api.manager.RunningJob running_job = 1;
1048
+ * @generated from field: norsk.api.manager.JobWithHistory jobWithHistory = 1;
982
1049
  */
983
- runningJob?: RunningJob;
1050
+ jobWithHistory?: JobWithHistory;
984
1051
 
985
- constructor(data?: PartialMessage<JobInstanceFailed>) {
1052
+ constructor(data?: PartialMessage<JobOutOfWindow>) {
986
1053
  super();
987
1054
  proto3.util.initPartial(data, this);
988
1055
  }
989
1056
 
990
1057
  static readonly runtime = proto3;
991
- static readonly typeName = "norsk.api.manager.JobInstanceFailed";
1058
+ static readonly typeName = "norsk.api.manager.JobOutOfWindow";
992
1059
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
993
- { no: 1, name: "running_job", kind: "message", T: RunningJob },
1060
+ { no: 1, name: "jobWithHistory", kind: "message", T: JobWithHistory },
994
1061
  ]);
995
1062
 
996
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobInstanceFailed {
997
- return new JobInstanceFailed().fromBinary(bytes, options);
1063
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobOutOfWindow {
1064
+ return new JobOutOfWindow().fromBinary(bytes, options);
998
1065
  }
999
1066
 
1000
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobInstanceFailed {
1001
- return new JobInstanceFailed().fromJson(jsonValue, options);
1067
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobOutOfWindow {
1068
+ return new JobOutOfWindow().fromJson(jsonValue, options);
1002
1069
  }
1003
1070
 
1004
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobInstanceFailed {
1005
- return new JobInstanceFailed().fromJsonString(jsonString, options);
1071
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobOutOfWindow {
1072
+ return new JobOutOfWindow().fromJsonString(jsonString, options);
1006
1073
  }
1007
1074
 
1008
- static equals(a: JobInstanceFailed | PlainMessage<JobInstanceFailed> | undefined, b: JobInstanceFailed | PlainMessage<JobInstanceFailed> | undefined): boolean {
1009
- return proto3.util.equals(JobInstanceFailed, a, b);
1075
+ static equals(a: JobOutOfWindow | PlainMessage<JobOutOfWindow> | undefined, b: JobOutOfWindow | PlainMessage<JobOutOfWindow> | undefined): boolean {
1076
+ return proto3.util.equals(JobOutOfWindow, a, b);
1010
1077
  }
1011
1078
  }
1012
1079
 
@@ -1058,9 +1125,9 @@ export class CurrentJob extends Message<CurrentJob> {
1058
1125
  */
1059
1126
  export class NodeStarting extends Message<NodeStarting> {
1060
1127
  /**
1061
- * @generated from field: norsk.api.manager.NodeId node_id = 1;
1128
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 1;
1062
1129
  */
1063
- nodeId?: NodeId;
1130
+ nodeMetadata?: NodeMetadata;
1064
1131
 
1065
1132
  constructor(data?: PartialMessage<NodeStarting>) {
1066
1133
  super();
@@ -1070,7 +1137,7 @@ export class NodeStarting extends Message<NodeStarting> {
1070
1137
  static readonly runtime = proto3;
1071
1138
  static readonly typeName = "norsk.api.manager.NodeStarting";
1072
1139
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1073
- { no: 1, name: "node_id", kind: "message", T: NodeId },
1140
+ { no: 1, name: "nodeMetadata", kind: "message", T: NodeMetadata },
1074
1141
  ]);
1075
1142
 
1076
1143
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStarting {
@@ -1095,15 +1162,14 @@ export class NodeStarting extends Message<NodeStarting> {
1095
1162
  */
1096
1163
  export class NodeStarted extends Message<NodeStarted> {
1097
1164
  /**
1098
- * @generated from oneof norsk.api.manager.NodeStarted.node
1165
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 1;
1099
1166
  */
1100
- node: {
1101
- /**
1102
- * @generated from field: norsk.api.manager.AwsRunningNode aws_node = 1;
1103
- */
1104
- value: AwsRunningNode;
1105
- case: "awsNode";
1106
- } | { case: undefined; value?: undefined } = { case: undefined };
1167
+ nodeMetadata?: NodeMetadata;
1168
+
1169
+ /**
1170
+ * @generated from field: norsk.api.common.RunningNodeMetadata runningNodeMetadata = 2;
1171
+ */
1172
+ runningNodeMetadata?: RunningNodeMetadata;
1107
1173
 
1108
1174
  constructor(data?: PartialMessage<NodeStarted>) {
1109
1175
  super();
@@ -1113,7 +1179,8 @@ export class NodeStarted extends Message<NodeStarted> {
1113
1179
  static readonly runtime = proto3;
1114
1180
  static readonly typeName = "norsk.api.manager.NodeStarted";
1115
1181
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1116
- { no: 1, name: "aws_node", kind: "message", T: AwsRunningNode, oneof: "node" },
1182
+ { no: 1, name: "nodeMetadata", kind: "message", T: NodeMetadata },
1183
+ { no: 2, name: "runningNodeMetadata", kind: "message", T: RunningNodeMetadata },
1117
1184
  ]);
1118
1185
 
1119
1186
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStarted {
@@ -1138,14 +1205,14 @@ export class NodeStarted extends Message<NodeStarted> {
1138
1205
  */
1139
1206
  export class NodeStopping extends Message<NodeStopping> {
1140
1207
  /**
1141
- * @generated from field: norsk.api.manager.NodeId node_id = 1;
1208
+ * @generated from field: norsk.api.common.NodeId node_id = 1;
1142
1209
  */
1143
1210
  nodeId?: NodeId;
1144
1211
 
1145
1212
  /**
1146
- * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1213
+ * @generated from field: norsk.api.manager.NodeStopping.Reason reason = 2;
1147
1214
  */
1148
- instances: RunningJob[] = [];
1215
+ reason = NodeStopping_Reason.CREATE_FAILED;
1149
1216
 
1150
1217
  constructor(data?: PartialMessage<NodeStopping>) {
1151
1218
  super();
@@ -1156,7 +1223,7 @@ export class NodeStopping extends Message<NodeStopping> {
1156
1223
  static readonly typeName = "norsk.api.manager.NodeStopping";
1157
1224
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1158
1225
  { no: 1, name: "node_id", kind: "message", T: NodeId },
1159
- { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1226
+ { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(NodeStopping_Reason) },
1160
1227
  ]);
1161
1228
 
1162
1229
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeStopping {
@@ -1176,12 +1243,80 @@ export class NodeStopping extends Message<NodeStopping> {
1176
1243
  }
1177
1244
  }
1178
1245
 
1246
+ /**
1247
+ * @generated from enum norsk.api.manager.NodeStopping.Reason
1248
+ */
1249
+ export enum NodeStopping_Reason {
1250
+ /**
1251
+ * @generated from enum value: CREATE_FAILED = 0;
1252
+ */
1253
+ CREATE_FAILED = 0,
1254
+
1255
+ /**
1256
+ * @generated from enum value: PENDING_TIME_EXCEEDED = 1;
1257
+ */
1258
+ PENDING_TIME_EXCEEDED = 1,
1259
+
1260
+ /**
1261
+ * @generated from enum value: STARTUP_TIME_EXCEEDED = 2;
1262
+ */
1263
+ STARTUP_TIME_EXCEEDED = 2,
1264
+
1265
+ /**
1266
+ * @generated from enum value: INITIALISATION_HEALTH_PING_TIME_EXCEEDED = 3;
1267
+ */
1268
+ INITIALISATION_HEALTH_PING_TIME_EXCEEDED = 3,
1269
+
1270
+ /**
1271
+ * @generated from enum value: HEALTH_PING_TIME_EXCEEDED = 4;
1272
+ */
1273
+ HEALTH_PING_TIME_EXCEEDED = 4,
1274
+
1275
+ /**
1276
+ * @generated from enum value: DUPLICATE_JOB = 5;
1277
+ */
1278
+ DUPLICATE_JOB = 5,
1279
+
1280
+ /**
1281
+ * @generated from enum value: PROVIDER_STOP = 6;
1282
+ */
1283
+ PROVIDER_STOP = 6,
1284
+
1285
+ /**
1286
+ * @generated from enum value: PROVIDER_TERMINATE = 7;
1287
+ */
1288
+ PROVIDER_TERMINATE = 7,
1289
+
1290
+ /**
1291
+ * @generated from enum value: USER_REQUESTED = 8;
1292
+ */
1293
+ USER_REQUESTED = 8,
1294
+
1295
+ /**
1296
+ * @generated from enum value: UNKNOWN_NODE = 9;
1297
+ */
1298
+ UNKNOWN_NODE = 9,
1299
+ }
1300
+ // Retrieve enum metadata with: proto3.getEnumType(NodeStopping_Reason)
1301
+ proto3.util.setEnumType(NodeStopping_Reason, "norsk.api.manager.NodeStopping.Reason", [
1302
+ { no: 0, name: "CREATE_FAILED" },
1303
+ { no: 1, name: "PENDING_TIME_EXCEEDED" },
1304
+ { no: 2, name: "STARTUP_TIME_EXCEEDED" },
1305
+ { no: 3, name: "INITIALISATION_HEALTH_PING_TIME_EXCEEDED" },
1306
+ { no: 4, name: "HEALTH_PING_TIME_EXCEEDED" },
1307
+ { no: 5, name: "DUPLICATE_JOB" },
1308
+ { no: 6, name: "PROVIDER_STOP" },
1309
+ { no: 7, name: "PROVIDER_TERMINATE" },
1310
+ { no: 8, name: "USER_REQUESTED" },
1311
+ { no: 9, name: "UNKNOWN_NODE" },
1312
+ ]);
1313
+
1179
1314
  /**
1180
1315
  * @generated from message norsk.api.manager.NodeStopped
1181
1316
  */
1182
1317
  export class NodeStopped extends Message<NodeStopped> {
1183
1318
  /**
1184
- * @generated from field: norsk.api.manager.NodeId node_id = 1;
1319
+ * @generated from field: norsk.api.common.NodeId node_id = 1;
1185
1320
  */
1186
1321
  nodeId?: NodeId;
1187
1322
 
@@ -1214,68 +1349,18 @@ export class NodeStopped extends Message<NodeStopped> {
1214
1349
  }
1215
1350
 
1216
1351
  /**
1217
- * @generated from message norsk.api.manager.NodeFailed
1352
+ * @generated from message norsk.api.manager.NodeRunning
1218
1353
  */
1219
- export class NodeFailed extends Message<NodeFailed> {
1220
- /**
1221
- * @generated from field: norsk.api.manager.NodeId node_id = 1;
1222
- */
1223
- nodeId?: NodeId;
1224
-
1354
+ export class NodeRunning extends Message<NodeRunning> {
1225
1355
  /**
1226
- * @generated from field: repeated norsk.api.manager.RunningJob instances = 2;
1356
+ * @generated from field: norsk.api.common.NodeMetadata nodeMetadata = 1;
1227
1357
  */
1228
- instances: RunningJob[] = [];
1229
-
1230
- constructor(data?: PartialMessage<NodeFailed>) {
1231
- super();
1232
- proto3.util.initPartial(data, this);
1233
- }
1234
-
1235
- static readonly runtime = proto3;
1236
- static readonly typeName = "norsk.api.manager.NodeFailed";
1237
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1238
- { no: 1, name: "node_id", kind: "message", T: NodeId },
1239
- { no: 2, name: "instances", kind: "message", T: RunningJob, repeated: true },
1240
- ]);
1241
-
1242
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeFailed {
1243
- return new NodeFailed().fromBinary(bytes, options);
1244
- }
1245
-
1246
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeFailed {
1247
- return new NodeFailed().fromJson(jsonValue, options);
1248
- }
1358
+ nodeMetadata?: NodeMetadata;
1249
1359
 
1250
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeFailed {
1251
- return new NodeFailed().fromJsonString(jsonString, options);
1252
- }
1253
-
1254
- static equals(a: NodeFailed | PlainMessage<NodeFailed> | undefined, b: NodeFailed | PlainMessage<NodeFailed> | undefined): boolean {
1255
- return proto3.util.equals(NodeFailed, a, b);
1256
- }
1257
- }
1258
-
1259
- /**
1260
- * @generated from message norsk.api.manager.NodeRunning
1261
- */
1262
- export class NodeRunning extends Message<NodeRunning> {
1263
1360
  /**
1264
- * @generated from oneof norsk.api.manager.NodeRunning.node
1361
+ * @generated from field: norsk.api.common.RunningNodeMetadata runningNodeMetadata = 2;
1265
1362
  */
1266
- node: {
1267
- /**
1268
- * @generated from field: norsk.api.manager.AwsRunningNode aws_node = 1;
1269
- */
1270
- value: AwsRunningNode;
1271
- case: "awsNode";
1272
- } | {
1273
- /**
1274
- * @generated from field: norsk.api.manager.PhysicalNode physical_node = 2;
1275
- */
1276
- value: PhysicalNode;
1277
- case: "physicalNode";
1278
- } | { case: undefined; value?: undefined } = { case: undefined };
1363
+ runningNodeMetadata?: RunningNodeMetadata;
1279
1364
 
1280
1365
  /**
1281
1366
  * @generated from field: repeated norsk.api.manager.RunningJob instances = 3;
@@ -1290,8 +1375,8 @@ export class NodeRunning extends Message<NodeRunning> {
1290
1375
  static readonly runtime = proto3;
1291
1376
  static readonly typeName = "norsk.api.manager.NodeRunning";
1292
1377
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1293
- { no: 1, name: "aws_node", kind: "message", T: AwsRunningNode, oneof: "node" },
1294
- { no: 2, name: "physical_node", kind: "message", T: PhysicalNode, oneof: "node" },
1378
+ { no: 1, name: "nodeMetadata", kind: "message", T: NodeMetadata },
1379
+ { no: 2, name: "runningNodeMetadata", kind: "message", T: RunningNodeMetadata },
1295
1380
  { no: 3, name: "instances", kind: "message", T: RunningJob, repeated: true },
1296
1381
  ]);
1297
1382
 
@@ -1356,76 +1441,108 @@ export class PhysicalNodeConnected extends Message<PhysicalNodeConnected> {
1356
1441
  }
1357
1442
 
1358
1443
  /**
1359
- * @generated from message norsk.api.manager.JobId
1444
+ * @generated from message norsk.api.manager.AwsLaunchTemplate
1360
1445
  */
1361
- export class JobId extends Message<JobId> {
1446
+ export class AwsLaunchTemplate extends Message<AwsLaunchTemplate> {
1447
+ /**
1448
+ * @generated from oneof norsk.api.manager.AwsLaunchTemplate.template
1449
+ */
1450
+ template: {
1451
+ /**
1452
+ * @generated from field: string id = 1;
1453
+ */
1454
+ value: string;
1455
+ case: "id";
1456
+ } | {
1457
+ /**
1458
+ * @generated from field: string name = 2;
1459
+ */
1460
+ value: string;
1461
+ case: "name";
1462
+ } | { case: undefined; value?: undefined } = { case: undefined };
1463
+
1362
1464
  /**
1363
- * @generated from field: string job_id = 1;
1465
+ * @generated from field: string version = 3;
1364
1466
  */
1365
- jobId = "";
1467
+ version = "";
1366
1468
 
1367
- constructor(data?: PartialMessage<JobId>) {
1469
+ constructor(data?: PartialMessage<AwsLaunchTemplate>) {
1368
1470
  super();
1369
1471
  proto3.util.initPartial(data, this);
1370
1472
  }
1371
1473
 
1372
1474
  static readonly runtime = proto3;
1373
- static readonly typeName = "norsk.api.manager.JobId";
1475
+ static readonly typeName = "norsk.api.manager.AwsLaunchTemplate";
1374
1476
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1375
- { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1477
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "template" },
1478
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "template" },
1479
+ { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1376
1480
  ]);
1377
1481
 
1378
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobId {
1379
- return new JobId().fromBinary(bytes, options);
1482
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsLaunchTemplate {
1483
+ return new AwsLaunchTemplate().fromBinary(bytes, options);
1380
1484
  }
1381
1485
 
1382
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobId {
1383
- return new JobId().fromJson(jsonValue, options);
1486
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsLaunchTemplate {
1487
+ return new AwsLaunchTemplate().fromJson(jsonValue, options);
1384
1488
  }
1385
1489
 
1386
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobId {
1387
- return new JobId().fromJsonString(jsonString, options);
1490
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsLaunchTemplate {
1491
+ return new AwsLaunchTemplate().fromJsonString(jsonString, options);
1388
1492
  }
1389
1493
 
1390
- static equals(a: JobId | PlainMessage<JobId> | undefined, b: JobId | PlainMessage<JobId> | undefined): boolean {
1391
- return proto3.util.equals(JobId, a, b);
1494
+ static equals(a: AwsLaunchTemplate | PlainMessage<AwsLaunchTemplate> | undefined, b: AwsLaunchTemplate | PlainMessage<AwsLaunchTemplate> | undefined): boolean {
1495
+ return proto3.util.equals(AwsLaunchTemplate, a, b);
1392
1496
  }
1393
1497
  }
1394
1498
 
1395
1499
  /**
1396
- * @generated from message norsk.api.manager.NodeId
1500
+ * @generated from message norsk.api.manager.AwsIamRole
1397
1501
  */
1398
- export class NodeId extends Message<NodeId> {
1502
+ export class AwsIamRole extends Message<AwsIamRole> {
1399
1503
  /**
1400
- * @generated from field: string node_id = 1;
1504
+ * @generated from oneof norsk.api.manager.AwsIamRole.iam_role
1401
1505
  */
1402
- nodeId = "";
1506
+ iamRole: {
1507
+ /**
1508
+ * @generated from field: string arn = 1;
1509
+ */
1510
+ value: string;
1511
+ case: "arn";
1512
+ } | {
1513
+ /**
1514
+ * @generated from field: string name = 2;
1515
+ */
1516
+ value: string;
1517
+ case: "name";
1518
+ } | { case: undefined; value?: undefined } = { case: undefined };
1403
1519
 
1404
- constructor(data?: PartialMessage<NodeId>) {
1520
+ constructor(data?: PartialMessage<AwsIamRole>) {
1405
1521
  super();
1406
1522
  proto3.util.initPartial(data, this);
1407
1523
  }
1408
1524
 
1409
1525
  static readonly runtime = proto3;
1410
- static readonly typeName = "norsk.api.manager.NodeId";
1526
+ static readonly typeName = "norsk.api.manager.AwsIamRole";
1411
1527
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1412
- { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1528
+ { no: 1, name: "arn", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "iam_role" },
1529
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "iam_role" },
1413
1530
  ]);
1414
1531
 
1415
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeId {
1416
- return new NodeId().fromBinary(bytes, options);
1532
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsIamRole {
1533
+ return new AwsIamRole().fromBinary(bytes, options);
1417
1534
  }
1418
1535
 
1419
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeId {
1420
- return new NodeId().fromJson(jsonValue, options);
1536
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsIamRole {
1537
+ return new AwsIamRole().fromJson(jsonValue, options);
1421
1538
  }
1422
1539
 
1423
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeId {
1424
- return new NodeId().fromJsonString(jsonString, options);
1540
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsIamRole {
1541
+ return new AwsIamRole().fromJsonString(jsonString, options);
1425
1542
  }
1426
1543
 
1427
- static equals(a: NodeId | PlainMessage<NodeId> | undefined, b: NodeId | PlainMessage<NodeId> | undefined): boolean {
1428
- return proto3.util.equals(NodeId, a, b);
1544
+ static equals(a: AwsIamRole | PlainMessage<AwsIamRole> | undefined, b: AwsIamRole | PlainMessage<AwsIamRole> | undefined): boolean {
1545
+ return proto3.util.equals(AwsIamRole, a, b);
1429
1546
  }
1430
1547
  }
1431
1548
 
@@ -1434,14 +1551,14 @@ export class NodeId extends Message<NodeId> {
1434
1551
  */
1435
1552
  export class CreateAwsNodeRequest extends Message<CreateAwsNodeRequest> {
1436
1553
  /**
1437
- * @generated from field: map<string, string> tags = 1;
1554
+ * @generated from field: norsk.api.common.NodeId node_id = 1;
1438
1555
  */
1439
- tags: { [key: string]: string } = {};
1556
+ nodeId?: NodeId;
1440
1557
 
1441
1558
  /**
1442
- * @generated from field: string instance_type = 2;
1559
+ * @generated from field: map<string, string> tags = 2;
1443
1560
  */
1444
- instanceType = "";
1561
+ tags: { [key: string]: string } = {};
1445
1562
 
1446
1563
  /**
1447
1564
  * @generated from field: string region = 3;
@@ -1449,14 +1566,24 @@ export class CreateAwsNodeRequest extends Message<CreateAwsNodeRequest> {
1449
1566
  region = "";
1450
1567
 
1451
1568
  /**
1452
- * @generated from field: string az = 4;
1569
+ * @generated from field: string instance_type = 4;
1570
+ */
1571
+ instanceType = "";
1572
+
1573
+ /**
1574
+ * @generated from field: norsk.api.manager.AwsLaunchTemplate template = 5;
1575
+ */
1576
+ template?: AwsLaunchTemplate;
1577
+
1578
+ /**
1579
+ * @generated from field: norsk.api.manager.Version worker_image_version = 11;
1453
1580
  */
1454
- az = "";
1581
+ workerImageVersion = Version.RECOMMENDED;
1455
1582
 
1456
1583
  /**
1457
- * @generated from field: string norsk_bootstrap_version = 5;
1584
+ * @generated from field: norsk.api.manager.Version worker_daemon_version = 12;
1458
1585
  */
1459
- norskBootstrapVersion = "";
1586
+ workerDaemonVersion = Version.RECOMMENDED;
1460
1587
 
1461
1588
  constructor(data?: PartialMessage<CreateAwsNodeRequest>) {
1462
1589
  super();
@@ -1466,11 +1593,13 @@ export class CreateAwsNodeRequest extends Message<CreateAwsNodeRequest> {
1466
1593
  static readonly runtime = proto3;
1467
1594
  static readonly typeName = "norsk.api.manager.CreateAwsNodeRequest";
1468
1595
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1469
- { no: 1, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1470
- { no: 2, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1596
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1597
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1471
1598
  { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1472
- { no: 4, name: "az", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1473
- { no: 5, name: "norsk_bootstrap_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1599
+ { no: 4, name: "instance_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1600
+ { no: 5, name: "template", kind: "message", T: AwsLaunchTemplate },
1601
+ { no: 11, name: "worker_image_version", kind: "enum", T: proto3.getEnumType(Version) },
1602
+ { no: 12, name: "worker_daemon_version", kind: "enum", T: proto3.getEnumType(Version) },
1474
1603
  ]);
1475
1604
 
1476
1605
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAwsNodeRequest {
@@ -1490,6 +1619,85 @@ export class CreateAwsNodeRequest extends Message<CreateAwsNodeRequest> {
1490
1619
  }
1491
1620
  }
1492
1621
 
1622
+ /**
1623
+ * @generated from message norsk.api.manager.CreateOciNodeRequest
1624
+ */
1625
+ export class CreateOciNodeRequest extends Message<CreateOciNodeRequest> {
1626
+ /**
1627
+ * @generated from field: norsk.api.common.NodeId node_id = 1;
1628
+ */
1629
+ nodeId?: NodeId;
1630
+
1631
+ /**
1632
+ * @generated from field: map<string, string> tags = 2;
1633
+ */
1634
+ tags: { [key: string]: string } = {};
1635
+
1636
+ /**
1637
+ * @generated from field: string availabilityDomain = 3;
1638
+ */
1639
+ availabilityDomain = "";
1640
+
1641
+ /**
1642
+ * @generated from field: string architecture = 4;
1643
+ */
1644
+ architecture = "";
1645
+
1646
+ /**
1647
+ * @generated from field: string shape = 5;
1648
+ */
1649
+ shape = "";
1650
+
1651
+ /**
1652
+ * @generated from field: string subnet = 6;
1653
+ */
1654
+ subnet = "";
1655
+
1656
+ /**
1657
+ * @generated from field: norsk.api.manager.Version worker_image_version = 11;
1658
+ */
1659
+ workerImageVersion = Version.RECOMMENDED;
1660
+
1661
+ /**
1662
+ * @generated from field: norsk.api.manager.Version worker_daemon_version = 12;
1663
+ */
1664
+ workerDaemonVersion = Version.RECOMMENDED;
1665
+
1666
+ constructor(data?: PartialMessage<CreateOciNodeRequest>) {
1667
+ super();
1668
+ proto3.util.initPartial(data, this);
1669
+ }
1670
+
1671
+ static readonly runtime = proto3;
1672
+ static readonly typeName = "norsk.api.manager.CreateOciNodeRequest";
1673
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1674
+ { no: 1, name: "node_id", kind: "message", T: NodeId },
1675
+ { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1676
+ { no: 3, name: "availabilityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1677
+ { no: 4, name: "architecture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1678
+ { no: 5, name: "shape", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1679
+ { no: 6, name: "subnet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1680
+ { no: 11, name: "worker_image_version", kind: "enum", T: proto3.getEnumType(Version) },
1681
+ { no: 12, name: "worker_daemon_version", kind: "enum", T: proto3.getEnumType(Version) },
1682
+ ]);
1683
+
1684
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOciNodeRequest {
1685
+ return new CreateOciNodeRequest().fromBinary(bytes, options);
1686
+ }
1687
+
1688
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOciNodeRequest {
1689
+ return new CreateOciNodeRequest().fromJson(jsonValue, options);
1690
+ }
1691
+
1692
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOciNodeRequest {
1693
+ return new CreateOciNodeRequest().fromJsonString(jsonString, options);
1694
+ }
1695
+
1696
+ static equals(a: CreateOciNodeRequest | PlainMessage<CreateOciNodeRequest> | undefined, b: CreateOciNodeRequest | PlainMessage<CreateOciNodeRequest> | undefined): boolean {
1697
+ return proto3.util.equals(CreateOciNodeRequest, a, b);
1698
+ }
1699
+ }
1700
+
1493
1701
  /**
1494
1702
  * @generated from message norsk.api.manager.UpdatePhysicalNodeRequest
1495
1703
  */
@@ -1500,9 +1708,9 @@ export class UpdatePhysicalNodeRequest extends Message<UpdatePhysicalNodeRequest
1500
1708
  id = "";
1501
1709
 
1502
1710
  /**
1503
- * @generated from field: string norsk_bootstrap_version = 2;
1711
+ * @generated from field: string daemon_version = 2;
1504
1712
  */
1505
- norskBootstrapVersion = "";
1713
+ daemonVersion = "";
1506
1714
 
1507
1715
  constructor(data?: PartialMessage<UpdatePhysicalNodeRequest>) {
1508
1716
  super();
@@ -1513,7 +1721,7 @@ export class UpdatePhysicalNodeRequest extends Message<UpdatePhysicalNodeRequest
1513
1721
  static readonly typeName = "norsk.api.manager.UpdatePhysicalNodeRequest";
1514
1722
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1515
1723
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1516
- { no: 2, name: "norsk_bootstrap_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1724
+ { no: 2, name: "daemon_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1517
1725
  ]);
1518
1726
 
1519
1727
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePhysicalNodeRequest {
@@ -1538,7 +1746,7 @@ export class UpdatePhysicalNodeRequest extends Message<UpdatePhysicalNodeRequest
1538
1746
  */
1539
1747
  export class StartJobRequest extends Message<StartJobRequest> {
1540
1748
  /**
1541
- * @generated from field: norsk.api.manager.JobId job_id = 1;
1749
+ * @generated from field: norsk.api.common.JobId job_id = 1;
1542
1750
  */
1543
1751
  jobId?: JobId;
1544
1752
 
@@ -1548,7 +1756,7 @@ export class StartJobRequest extends Message<StartJobRequest> {
1548
1756
  role = "";
1549
1757
 
1550
1758
  /**
1551
- * @generated from field: norsk.api.manager.NodeId node_id = 3;
1759
+ * @generated from field: norsk.api.common.NodeId node_id = 3;
1552
1760
  */
1553
1761
  nodeId?: NodeId;
1554
1762
 
@@ -1587,7 +1795,7 @@ export class StartJobRequest extends Message<StartJobRequest> {
1587
1795
  */
1588
1796
  export class StopJobRequest extends Message<StopJobRequest> {
1589
1797
  /**
1590
- * @generated from field: norsk.api.manager.JobId job_id = 1;
1798
+ * @generated from field: norsk.api.common.JobId job_id = 1;
1591
1799
  */
1592
1800
  jobId?: JobId;
1593
1801
 
@@ -1597,7 +1805,7 @@ export class StopJobRequest extends Message<StopJobRequest> {
1597
1805
  role = "";
1598
1806
 
1599
1807
  /**
1600
- * @generated from field: norsk.api.manager.NodeId node_id = 3;
1808
+ * @generated from field: norsk.api.common.NodeId node_id = 3;
1601
1809
  */
1602
1810
  nodeId?: NodeId;
1603
1811
 
@@ -1937,45 +2145,287 @@ export class JobFilter extends Message<JobFilter> {
1937
2145
  }
1938
2146
 
1939
2147
  /**
1940
- * @generated from message norsk.api.manager.ManagerActivityStreamRequest
2148
+ * @generated from message norsk.api.manager.EventStreamRequest
1941
2149
  */
1942
- export class ManagerActivityStreamRequest extends Message<ManagerActivityStreamRequest> {
2150
+ export class EventStreamRequest extends Message<EventStreamRequest> {
1943
2151
  /**
1944
2152
  * @generated from field: int32 pending_window_s = 1;
1945
2153
  */
1946
2154
  pendingWindowS = 0;
1947
2155
 
2156
+ constructor(data?: PartialMessage<EventStreamRequest>) {
2157
+ super();
2158
+ proto3.util.initPartial(data, this);
2159
+ }
2160
+
2161
+ static readonly runtime = proto3;
2162
+ static readonly typeName = "norsk.api.manager.EventStreamRequest";
2163
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2164
+ { no: 1, name: "pending_window_s", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2165
+ ]);
2166
+
2167
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventStreamRequest {
2168
+ return new EventStreamRequest().fromBinary(bytes, options);
2169
+ }
2170
+
2171
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventStreamRequest {
2172
+ return new EventStreamRequest().fromJson(jsonValue, options);
2173
+ }
2174
+
2175
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventStreamRequest {
2176
+ return new EventStreamRequest().fromJsonString(jsonString, options);
2177
+ }
2178
+
2179
+ static equals(a: EventStreamRequest | PlainMessage<EventStreamRequest> | undefined, b: EventStreamRequest | PlainMessage<EventStreamRequest> | undefined): boolean {
2180
+ return proto3.util.equals(EventStreamRequest, a, b);
2181
+ }
2182
+ }
2183
+
2184
+ /**
2185
+ * @generated from message norsk.api.manager.AwsRegionHealth
2186
+ */
2187
+ export class AwsRegionHealth extends Message<AwsRegionHealth> {
1948
2188
  /**
1949
- * @generated from field: repeated norsk.api.manager.JobFilter job_filter = 2;
2189
+ * @generated from field: string region = 1;
1950
2190
  */
1951
- jobFilter: JobFilter[] = [];
2191
+ region = "";
1952
2192
 
1953
- constructor(data?: PartialMessage<ManagerActivityStreamRequest>) {
2193
+ /**
2194
+ * @generated from field: norsk.api.manager.Health health = 2;
2195
+ */
2196
+ health = Health.HEALTHY;
2197
+
2198
+ constructor(data?: PartialMessage<AwsRegionHealth>) {
1954
2199
  super();
1955
2200
  proto3.util.initPartial(data, this);
1956
2201
  }
1957
2202
 
1958
2203
  static readonly runtime = proto3;
1959
- static readonly typeName = "norsk.api.manager.ManagerActivityStreamRequest";
2204
+ static readonly typeName = "norsk.api.manager.AwsRegionHealth";
1960
2205
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
1961
- { no: 1, name: "pending_window_s", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1962
- { no: 2, name: "job_filter", kind: "message", T: JobFilter, repeated: true },
2206
+ { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2207
+ { no: 2, name: "health", kind: "enum", T: proto3.getEnumType(Health) },
2208
+ ]);
2209
+
2210
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsRegionHealth {
2211
+ return new AwsRegionHealth().fromBinary(bytes, options);
2212
+ }
2213
+
2214
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsRegionHealth {
2215
+ return new AwsRegionHealth().fromJson(jsonValue, options);
2216
+ }
2217
+
2218
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsRegionHealth {
2219
+ return new AwsRegionHealth().fromJsonString(jsonString, options);
2220
+ }
2221
+
2222
+ static equals(a: AwsRegionHealth | PlainMessage<AwsRegionHealth> | undefined, b: AwsRegionHealth | PlainMessage<AwsRegionHealth> | undefined): boolean {
2223
+ return proto3.util.equals(AwsRegionHealth, a, b);
2224
+ }
2225
+ }
2226
+
2227
+ /**
2228
+ * @generated from message norsk.api.manager.AwsHealth
2229
+ */
2230
+ export class AwsHealth extends Message<AwsHealth> {
2231
+ /**
2232
+ * @generated from field: repeated norsk.api.manager.AwsRegionHealth region_health = 1;
2233
+ */
2234
+ regionHealth: AwsRegionHealth[] = [];
2235
+
2236
+ constructor(data?: PartialMessage<AwsHealth>) {
2237
+ super();
2238
+ proto3.util.initPartial(data, this);
2239
+ }
2240
+
2241
+ static readonly runtime = proto3;
2242
+ static readonly typeName = "norsk.api.manager.AwsHealth";
2243
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2244
+ { no: 1, name: "region_health", kind: "message", T: AwsRegionHealth, repeated: true },
2245
+ ]);
2246
+
2247
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AwsHealth {
2248
+ return new AwsHealth().fromBinary(bytes, options);
2249
+ }
2250
+
2251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AwsHealth {
2252
+ return new AwsHealth().fromJson(jsonValue, options);
2253
+ }
2254
+
2255
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AwsHealth {
2256
+ return new AwsHealth().fromJsonString(jsonString, options);
2257
+ }
2258
+
2259
+ static equals(a: AwsHealth | PlainMessage<AwsHealth> | undefined, b: AwsHealth | PlainMessage<AwsHealth> | undefined): boolean {
2260
+ return proto3.util.equals(AwsHealth, a, b);
2261
+ }
2262
+ }
2263
+
2264
+ /**
2265
+ * @generated from message norsk.api.manager.OciRegionHealth
2266
+ */
2267
+ export class OciRegionHealth extends Message<OciRegionHealth> {
2268
+ /**
2269
+ * @generated from field: string availabilityDomain = 1;
2270
+ */
2271
+ availabilityDomain = "";
2272
+
2273
+ /**
2274
+ * @generated from field: norsk.api.manager.Health health = 2;
2275
+ */
2276
+ health = Health.HEALTHY;
2277
+
2278
+ constructor(data?: PartialMessage<OciRegionHealth>) {
2279
+ super();
2280
+ proto3.util.initPartial(data, this);
2281
+ }
2282
+
2283
+ static readonly runtime = proto3;
2284
+ static readonly typeName = "norsk.api.manager.OciRegionHealth";
2285
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2286
+ { no: 1, name: "availabilityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2287
+ { no: 2, name: "health", kind: "enum", T: proto3.getEnumType(Health) },
2288
+ ]);
2289
+
2290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OciRegionHealth {
2291
+ return new OciRegionHealth().fromBinary(bytes, options);
2292
+ }
2293
+
2294
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OciRegionHealth {
2295
+ return new OciRegionHealth().fromJson(jsonValue, options);
2296
+ }
2297
+
2298
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OciRegionHealth {
2299
+ return new OciRegionHealth().fromJsonString(jsonString, options);
2300
+ }
2301
+
2302
+ static equals(a: OciRegionHealth | PlainMessage<OciRegionHealth> | undefined, b: OciRegionHealth | PlainMessage<OciRegionHealth> | undefined): boolean {
2303
+ return proto3.util.equals(OciRegionHealth, a, b);
2304
+ }
2305
+ }
2306
+
2307
+ /**
2308
+ * @generated from message norsk.api.manager.OciHealth
2309
+ */
2310
+ export class OciHealth extends Message<OciHealth> {
2311
+ /**
2312
+ * @generated from field: repeated norsk.api.manager.OciRegionHealth region_health = 1;
2313
+ */
2314
+ regionHealth: OciRegionHealth[] = [];
2315
+
2316
+ constructor(data?: PartialMessage<OciHealth>) {
2317
+ super();
2318
+ proto3.util.initPartial(data, this);
2319
+ }
2320
+
2321
+ static readonly runtime = proto3;
2322
+ static readonly typeName = "norsk.api.manager.OciHealth";
2323
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2324
+ { no: 1, name: "region_health", kind: "message", T: OciRegionHealth, repeated: true },
2325
+ ]);
2326
+
2327
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OciHealth {
2328
+ return new OciHealth().fromBinary(bytes, options);
2329
+ }
2330
+
2331
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OciHealth {
2332
+ return new OciHealth().fromJson(jsonValue, options);
2333
+ }
2334
+
2335
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OciHealth {
2336
+ return new OciHealth().fromJsonString(jsonString, options);
2337
+ }
2338
+
2339
+ static equals(a: OciHealth | PlainMessage<OciHealth> | undefined, b: OciHealth | PlainMessage<OciHealth> | undefined): boolean {
2340
+ return proto3.util.equals(OciHealth, a, b);
2341
+ }
2342
+ }
2343
+
2344
+ /**
2345
+ * @generated from message norsk.api.manager.TestHealth
2346
+ */
2347
+ export class TestHealth extends Message<TestHealth> {
2348
+ constructor(data?: PartialMessage<TestHealth>) {
2349
+ super();
2350
+ proto3.util.initPartial(data, this);
2351
+ }
2352
+
2353
+ static readonly runtime = proto3;
2354
+ static readonly typeName = "norsk.api.manager.TestHealth";
2355
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2356
+ ]);
2357
+
2358
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TestHealth {
2359
+ return new TestHealth().fromBinary(bytes, options);
2360
+ }
2361
+
2362
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TestHealth {
2363
+ return new TestHealth().fromJson(jsonValue, options);
2364
+ }
2365
+
2366
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TestHealth {
2367
+ return new TestHealth().fromJsonString(jsonString, options);
2368
+ }
2369
+
2370
+ static equals(a: TestHealth | PlainMessage<TestHealth> | undefined, b: TestHealth | PlainMessage<TestHealth> | undefined): boolean {
2371
+ return proto3.util.equals(TestHealth, a, b);
2372
+ }
2373
+ }
2374
+
2375
+ /**
2376
+ * @generated from message norsk.api.manager.ProviderHealth
2377
+ */
2378
+ export class ProviderHealth extends Message<ProviderHealth> {
2379
+ /**
2380
+ * @generated from oneof norsk.api.manager.ProviderHealth.health
2381
+ */
2382
+ health: {
2383
+ /**
2384
+ * @generated from field: norsk.api.manager.AwsHealth aws = 1;
2385
+ */
2386
+ value: AwsHealth;
2387
+ case: "aws";
2388
+ } | {
2389
+ /**
2390
+ * @generated from field: norsk.api.manager.OciHealth oci = 2;
2391
+ */
2392
+ value: OciHealth;
2393
+ case: "oci";
2394
+ } | {
2395
+ /**
2396
+ * @generated from field: norsk.api.manager.TestHealth test = 3;
2397
+ */
2398
+ value: TestHealth;
2399
+ case: "test";
2400
+ } | { case: undefined; value?: undefined } = { case: undefined };
2401
+
2402
+ constructor(data?: PartialMessage<ProviderHealth>) {
2403
+ super();
2404
+ proto3.util.initPartial(data, this);
2405
+ }
2406
+
2407
+ static readonly runtime = proto3;
2408
+ static readonly typeName = "norsk.api.manager.ProviderHealth";
2409
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2410
+ { no: 1, name: "aws", kind: "message", T: AwsHealth, oneof: "health" },
2411
+ { no: 2, name: "oci", kind: "message", T: OciHealth, oneof: "health" },
2412
+ { no: 3, name: "test", kind: "message", T: TestHealth, oneof: "health" },
1963
2413
  ]);
1964
2414
 
1965
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ManagerActivityStreamRequest {
1966
- return new ManagerActivityStreamRequest().fromBinary(bytes, options);
2415
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProviderHealth {
2416
+ return new ProviderHealth().fromBinary(bytes, options);
1967
2417
  }
1968
2418
 
1969
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ManagerActivityStreamRequest {
1970
- return new ManagerActivityStreamRequest().fromJson(jsonValue, options);
2419
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProviderHealth {
2420
+ return new ProviderHealth().fromJson(jsonValue, options);
1971
2421
  }
1972
2422
 
1973
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ManagerActivityStreamRequest {
1974
- return new ManagerActivityStreamRequest().fromJsonString(jsonString, options);
2423
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProviderHealth {
2424
+ return new ProviderHealth().fromJsonString(jsonString, options);
1975
2425
  }
1976
2426
 
1977
- static equals(a: ManagerActivityStreamRequest | PlainMessage<ManagerActivityStreamRequest> | undefined, b: ManagerActivityStreamRequest | PlainMessage<ManagerActivityStreamRequest> | undefined): boolean {
1978
- return proto3.util.equals(ManagerActivityStreamRequest, a, b);
2427
+ static equals(a: ProviderHealth | PlainMessage<ProviderHealth> | undefined, b: ProviderHealth | PlainMessage<ProviderHealth> | undefined): boolean {
2428
+ return proto3.util.equals(ProviderHealth, a, b);
1979
2429
  }
1980
2430
  }
1981
2431
 
@@ -1983,6 +2433,11 @@ export class ManagerActivityStreamRequest extends Message<ManagerActivityStreamR
1983
2433
  * @generated from message norsk.api.manager.InitialDataComplete
1984
2434
  */
1985
2435
  export class InitialDataComplete extends Message<InitialDataComplete> {
2436
+ /**
2437
+ * @generated from field: repeated norsk.api.manager.ProviderHealth health = 1;
2438
+ */
2439
+ health: ProviderHealth[] = [];
2440
+
1986
2441
  constructor(data?: PartialMessage<InitialDataComplete>) {
1987
2442
  super();
1988
2443
  proto3.util.initPartial(data, this);
@@ -1991,6 +2446,7 @@ export class InitialDataComplete extends Message<InitialDataComplete> {
1991
2446
  static readonly runtime = proto3;
1992
2447
  static readonly typeName = "norsk.api.manager.InitialDataComplete";
1993
2448
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2449
+ { no: 1, name: "health", kind: "message", T: ProviderHealth, repeated: true },
1994
2450
  ]);
1995
2451
 
1996
2452
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitialDataComplete {
@@ -2011,159 +2467,140 @@ export class InitialDataComplete extends Message<InitialDataComplete> {
2011
2467
  }
2012
2468
 
2013
2469
  /**
2014
- * @generated from message norsk.api.manager.ManagerActivityStreamEvent
2470
+ * @generated from message norsk.api.manager.EventStreamEvent
2015
2471
  */
2016
- export class ManagerActivityStreamEvent extends Message<ManagerActivityStreamEvent> {
2472
+ export class EventStreamEvent extends Message<EventStreamEvent> {
2017
2473
  /**
2018
- * @generated from oneof norsk.api.manager.ManagerActivityStreamEvent.event
2474
+ * @generated from oneof norsk.api.manager.EventStreamEvent.event
2019
2475
  */
2020
2476
  event: {
2021
2477
  /**
2022
- * @generated from field: norsk.api.manager.InitialDataComplete initial_data_complete = 1;
2023
- */
2024
- value: InitialDataComplete;
2025
- case: "initialDataComplete";
2026
- } | {
2027
- /**
2028
- * @generated from field: norsk.api.manager.JobUpdated job_updated = 2;
2029
- */
2030
- value: JobUpdated;
2031
- case: "jobUpdated";
2032
- } | {
2033
- /**
2034
- * @generated from field: norsk.api.manager.JobPending job_pending = 3;
2035
- */
2036
- value: JobPending;
2037
- case: "jobPending";
2038
- } | {
2039
- /**
2040
- * @generated from field: norsk.api.manager.JobDueToStart job_due_to_start = 4;
2041
- */
2042
- value: JobDueToStart;
2043
- case: "jobDueToStart";
2044
- } | {
2045
- /**
2046
- * @generated from field: norsk.api.manager.JobInstanceStarting job_instance_starting = 5;
2478
+ * Only sent before initial_data_complete
2479
+ *
2480
+ * @generated from field: norsk.api.manager.NodeRunning node_running = 1;
2047
2481
  */
2048
- value: JobInstanceStarting;
2049
- case: "jobInstanceStarting";
2482
+ value: NodeRunning;
2483
+ case: "nodeRunning";
2050
2484
  } | {
2051
2485
  /**
2052
- * @generated from field: norsk.api.manager.JobInstanceStarted job_instance_started = 6;
2486
+ * Only sent before initial_data_complete
2487
+ *
2488
+ * @generated from field: norsk.api.manager.JobActive job_active = 2;
2053
2489
  */
2054
- value: JobInstanceStarted;
2055
- case: "jobInstanceStarted";
2490
+ value: JobActive;
2491
+ case: "jobActive";
2056
2492
  } | {
2057
2493
  /**
2058
- * @generated from field: norsk.api.manager.JobDueToStop job_due_to_stop = 7;
2494
+ * @generated from field: norsk.api.manager.InitialDataComplete initial_data_complete = 3;
2059
2495
  */
2060
- value: JobDueToStop;
2061
- case: "jobDueToStop";
2496
+ value: InitialDataComplete;
2497
+ case: "initialDataComplete";
2062
2498
  } | {
2063
2499
  /**
2064
- * @generated from field: norsk.api.manager.JobInstanceStopping job_instance_stopping = 8;
2500
+ * @generated from field: norsk.api.manager.JobUpdated job_updated = 4;
2065
2501
  */
2066
- value: JobInstanceStopping;
2067
- case: "jobInstanceStopping";
2502
+ value: JobUpdated;
2503
+ case: "jobUpdated";
2068
2504
  } | {
2069
2505
  /**
2070
- * @generated from field: norsk.api.manager.JobInstanceStopped job_instance_stopped = 9;
2506
+ * @generated from field: norsk.api.manager.JobDeleted job_deleted = 5;
2071
2507
  */
2072
- value: JobInstanceStopped;
2073
- case: "jobInstanceStopped";
2508
+ value: JobDeleted;
2509
+ case: "jobDeleted";
2074
2510
  } | {
2075
2511
  /**
2076
- * @generated from field: norsk.api.manager.JobInstanceFailed job_instance_failed = 10;
2512
+ * @generated from field: norsk.api.manager.JobPending job_pending = 6;
2077
2513
  */
2078
- value: JobInstanceFailed;
2079
- case: "jobInstanceFailed";
2514
+ value: JobPending;
2515
+ case: "jobPending";
2080
2516
  } | {
2081
2517
  /**
2082
- * Only sent before initial_data_complete
2083
- *
2084
- * @generated from field: norsk.api.manager.NodeRunning node_running = 11;
2518
+ * @generated from field: norsk.api.manager.JobOutOfWindow job_out_of_window = 7;
2085
2519
  */
2086
- value: NodeRunning;
2087
- case: "nodeRunning";
2520
+ value: JobOutOfWindow;
2521
+ case: "jobOutOfWindow";
2088
2522
  } | {
2089
2523
  /**
2090
- * @generated from field: norsk.api.manager.NodeStarting node_starting = 12;
2524
+ * @generated from field: norsk.api.manager.NodeStarting node_starting = 8;
2091
2525
  */
2092
2526
  value: NodeStarting;
2093
2527
  case: "nodeStarting";
2094
2528
  } | {
2095
2529
  /**
2096
- * @generated from field: norsk.api.manager.NodeStarted node_started = 13;
2530
+ * @generated from field: norsk.api.manager.NodeStarted node_started = 9;
2097
2531
  */
2098
2532
  value: NodeStarted;
2099
2533
  case: "nodeStarted";
2100
2534
  } | {
2101
2535
  /**
2102
- * @generated from field: norsk.api.manager.NodeStopping node_stopping = 14;
2536
+ * @generated from field: norsk.api.manager.NodeStopping node_stopping = 10;
2103
2537
  */
2104
2538
  value: NodeStopping;
2105
2539
  case: "nodeStopping";
2106
2540
  } | {
2107
2541
  /**
2108
- * @generated from field: norsk.api.manager.NodeStopped node_stopped = 15;
2542
+ * @generated from field: norsk.api.manager.NodeStopped node_stopped = 11;
2109
2543
  */
2110
2544
  value: NodeStopped;
2111
2545
  case: "nodeStopped";
2112
2546
  } | {
2113
2547
  /**
2114
- * @generated from field: norsk.api.manager.NodeFailed node_failed = 16;
2548
+ * @generated from field: norsk.api.manager.PhysicalNodeConnected physical_node_connected = 12;
2115
2549
  */
2116
- value: NodeFailed;
2117
- case: "nodeFailed";
2550
+ value: PhysicalNodeConnected;
2551
+ case: "physicalNodeConnected";
2118
2552
  } | {
2119
2553
  /**
2120
- * @generated from field: norsk.api.manager.PhysicalNodeConnected physical_node_connected = 17;
2554
+ * @generated from field: norsk.api.manager.ProviderHealth provider_health_change = 13;
2121
2555
  */
2122
- value: PhysicalNodeConnected;
2123
- case: "physicalNodeConnected";
2556
+ value: ProviderHealth;
2557
+ case: "providerHealthChange";
2558
+ } | {
2559
+ /**
2560
+ * @generated from field: norsk.api.common.JobInfoMessage job_info = 14;
2561
+ */
2562
+ value: JobInfoMessage;
2563
+ case: "jobInfo";
2124
2564
  } | { case: undefined; value?: undefined } = { case: undefined };
2125
2565
 
2126
- constructor(data?: PartialMessage<ManagerActivityStreamEvent>) {
2566
+ constructor(data?: PartialMessage<EventStreamEvent>) {
2127
2567
  super();
2128
2568
  proto3.util.initPartial(data, this);
2129
2569
  }
2130
2570
 
2131
2571
  static readonly runtime = proto3;
2132
- static readonly typeName = "norsk.api.manager.ManagerActivityStreamEvent";
2572
+ static readonly typeName = "norsk.api.manager.EventStreamEvent";
2133
2573
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
2134
- { no: 1, name: "initial_data_complete", kind: "message", T: InitialDataComplete, oneof: "event" },
2135
- { no: 2, name: "job_updated", kind: "message", T: JobUpdated, oneof: "event" },
2136
- { no: 3, name: "job_pending", kind: "message", T: JobPending, oneof: "event" },
2137
- { no: 4, name: "job_due_to_start", kind: "message", T: JobDueToStart, oneof: "event" },
2138
- { no: 5, name: "job_instance_starting", kind: "message", T: JobInstanceStarting, oneof: "event" },
2139
- { no: 6, name: "job_instance_started", kind: "message", T: JobInstanceStarted, oneof: "event" },
2140
- { no: 7, name: "job_due_to_stop", kind: "message", T: JobDueToStop, oneof: "event" },
2141
- { no: 8, name: "job_instance_stopping", kind: "message", T: JobInstanceStopping, oneof: "event" },
2142
- { no: 9, name: "job_instance_stopped", kind: "message", T: JobInstanceStopped, oneof: "event" },
2143
- { no: 10, name: "job_instance_failed", kind: "message", T: JobInstanceFailed, oneof: "event" },
2144
- { no: 11, name: "node_running", kind: "message", T: NodeRunning, oneof: "event" },
2145
- { no: 12, name: "node_starting", kind: "message", T: NodeStarting, oneof: "event" },
2146
- { no: 13, name: "node_started", kind: "message", T: NodeStarted, oneof: "event" },
2147
- { no: 14, name: "node_stopping", kind: "message", T: NodeStopping, oneof: "event" },
2148
- { no: 15, name: "node_stopped", kind: "message", T: NodeStopped, oneof: "event" },
2149
- { no: 16, name: "node_failed", kind: "message", T: NodeFailed, oneof: "event" },
2150
- { no: 17, name: "physical_node_connected", kind: "message", T: PhysicalNodeConnected, oneof: "event" },
2574
+ { no: 1, name: "node_running", kind: "message", T: NodeRunning, oneof: "event" },
2575
+ { no: 2, name: "job_active", kind: "message", T: JobActive, oneof: "event" },
2576
+ { no: 3, name: "initial_data_complete", kind: "message", T: InitialDataComplete, oneof: "event" },
2577
+ { no: 4, name: "job_updated", kind: "message", T: JobUpdated, oneof: "event" },
2578
+ { no: 5, name: "job_deleted", kind: "message", T: JobDeleted, oneof: "event" },
2579
+ { no: 6, name: "job_pending", kind: "message", T: JobPending, oneof: "event" },
2580
+ { no: 7, name: "job_out_of_window", kind: "message", T: JobOutOfWindow, oneof: "event" },
2581
+ { no: 8, name: "node_starting", kind: "message", T: NodeStarting, oneof: "event" },
2582
+ { no: 9, name: "node_started", kind: "message", T: NodeStarted, oneof: "event" },
2583
+ { no: 10, name: "node_stopping", kind: "message", T: NodeStopping, oneof: "event" },
2584
+ { no: 11, name: "node_stopped", kind: "message", T: NodeStopped, oneof: "event" },
2585
+ { no: 12, name: "physical_node_connected", kind: "message", T: PhysicalNodeConnected, oneof: "event" },
2586
+ { no: 13, name: "provider_health_change", kind: "message", T: ProviderHealth, oneof: "event" },
2587
+ { no: 14, name: "job_info", kind: "message", T: JobInfoMessage, oneof: "event" },
2151
2588
  ]);
2152
2589
 
2153
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ManagerActivityStreamEvent {
2154
- return new ManagerActivityStreamEvent().fromBinary(bytes, options);
2590
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventStreamEvent {
2591
+ return new EventStreamEvent().fromBinary(bytes, options);
2155
2592
  }
2156
2593
 
2157
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ManagerActivityStreamEvent {
2158
- return new ManagerActivityStreamEvent().fromJson(jsonValue, options);
2594
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventStreamEvent {
2595
+ return new EventStreamEvent().fromJson(jsonValue, options);
2159
2596
  }
2160
2597
 
2161
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ManagerActivityStreamEvent {
2162
- return new ManagerActivityStreamEvent().fromJsonString(jsonString, options);
2598
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventStreamEvent {
2599
+ return new EventStreamEvent().fromJsonString(jsonString, options);
2163
2600
  }
2164
2601
 
2165
- static equals(a: ManagerActivityStreamEvent | PlainMessage<ManagerActivityStreamEvent> | undefined, b: ManagerActivityStreamEvent | PlainMessage<ManagerActivityStreamEvent> | undefined): boolean {
2166
- return proto3.util.equals(ManagerActivityStreamEvent, a, b);
2602
+ static equals(a: EventStreamEvent | PlainMessage<EventStreamEvent> | undefined, b: EventStreamEvent | PlainMessage<EventStreamEvent> | undefined): boolean {
2603
+ return proto3.util.equals(EventStreamEvent, a, b);
2167
2604
  }
2168
2605
  }
2169
2606