@flyteorg/flyteidl 1.5.11 → 1.5.13

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.
@@ -1355,6 +1355,79 @@ export namespace flyteidl {
1355
1355
  public static verify(message: { [k: string]: any }): (string|null);
1356
1356
  }
1357
1357
 
1358
+ /** Properties of an ArrayNode. */
1359
+ interface IArrayNode {
1360
+
1361
+ /** ArrayNode node */
1362
+ node?: (flyteidl.core.INode|null);
1363
+
1364
+ /** ArrayNode parallelism */
1365
+ parallelism?: (number|null);
1366
+
1367
+ /** ArrayNode minSuccesses */
1368
+ minSuccesses?: (number|null);
1369
+
1370
+ /** ArrayNode minSuccessRatio */
1371
+ minSuccessRatio?: (number|null);
1372
+ }
1373
+
1374
+ /** Represents an ArrayNode. */
1375
+ class ArrayNode implements IArrayNode {
1376
+
1377
+ /**
1378
+ * Constructs a new ArrayNode.
1379
+ * @param [properties] Properties to set
1380
+ */
1381
+ constructor(properties?: flyteidl.core.IArrayNode);
1382
+
1383
+ /** ArrayNode node. */
1384
+ public node?: (flyteidl.core.INode|null);
1385
+
1386
+ /** ArrayNode parallelism. */
1387
+ public parallelism: number;
1388
+
1389
+ /** ArrayNode minSuccesses. */
1390
+ public minSuccesses: number;
1391
+
1392
+ /** ArrayNode minSuccessRatio. */
1393
+ public minSuccessRatio: number;
1394
+
1395
+ /** ArrayNode successCriteria. */
1396
+ public successCriteria?: ("minSuccesses"|"minSuccessRatio");
1397
+
1398
+ /**
1399
+ * Creates a new ArrayNode instance using the specified properties.
1400
+ * @param [properties] Properties to set
1401
+ * @returns ArrayNode instance
1402
+ */
1403
+ public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode;
1404
+
1405
+ /**
1406
+ * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages.
1407
+ * @param message ArrayNode message or plain object to encode
1408
+ * @param [writer] Writer to encode to
1409
+ * @returns Writer
1410
+ */
1411
+ public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer;
1412
+
1413
+ /**
1414
+ * Decodes an ArrayNode message from the specified reader or buffer.
1415
+ * @param reader Reader or buffer to decode from
1416
+ * @param [length] Message length if known beforehand
1417
+ * @returns ArrayNode
1418
+ * @throws {Error} If the payload is not a reader or valid buffer
1419
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1420
+ */
1421
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode;
1422
+
1423
+ /**
1424
+ * Verifies an ArrayNode message.
1425
+ * @param message Plain object to verify
1426
+ * @returns `null` if valid, otherwise the reason why it is not
1427
+ */
1428
+ public static verify(message: { [k: string]: any }): (string|null);
1429
+ }
1430
+
1358
1431
  /** Properties of a NodeMetadata. */
1359
1432
  interface INodeMetadata {
1360
1433
 
@@ -1515,6 +1588,9 @@ export namespace flyteidl {
1515
1588
 
1516
1589
  /** Node gateNode */
1517
1590
  gateNode?: (flyteidl.core.IGateNode|null);
1591
+
1592
+ /** Node arrayNode */
1593
+ arrayNode?: (flyteidl.core.IArrayNode|null);
1518
1594
  }
1519
1595
 
1520
1596
  /** Represents a Node. */
@@ -1553,8 +1629,11 @@ export namespace flyteidl {
1553
1629
  /** Node gateNode. */
1554
1630
  public gateNode?: (flyteidl.core.IGateNode|null);
1555
1631
 
1632
+ /** Node arrayNode. */
1633
+ public arrayNode?: (flyteidl.core.IArrayNode|null);
1634
+
1556
1635
  /** Node target. */
1557
- public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode");
1636
+ public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode");
1558
1637
 
1559
1638
  /**
1560
1639
  * Creates a new Node instance using the specified properties.
@@ -7506,6 +7585,88 @@ export namespace flyteidl {
7506
7585
  SUCCEEDED = 4
7507
7586
  }
7508
7587
 
7588
+ /** Properties of a TaskExecutionMetadata. */
7589
+ interface ITaskExecutionMetadata {
7590
+
7591
+ /** TaskExecutionMetadata taskExecutionId */
7592
+ taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null);
7593
+
7594
+ /** TaskExecutionMetadata namespace */
7595
+ namespace?: (string|null);
7596
+
7597
+ /** TaskExecutionMetadata labels */
7598
+ labels?: ({ [k: string]: string }|null);
7599
+
7600
+ /** TaskExecutionMetadata annotations */
7601
+ annotations?: ({ [k: string]: string }|null);
7602
+
7603
+ /** TaskExecutionMetadata k8sServiceAccount */
7604
+ k8sServiceAccount?: (string|null);
7605
+
7606
+ /** TaskExecutionMetadata environmentVariables */
7607
+ environmentVariables?: ({ [k: string]: string }|null);
7608
+ }
7609
+
7610
+ /** Represents a TaskExecutionMetadata. */
7611
+ class TaskExecutionMetadata implements ITaskExecutionMetadata {
7612
+
7613
+ /**
7614
+ * Constructs a new TaskExecutionMetadata.
7615
+ * @param [properties] Properties to set
7616
+ */
7617
+ constructor(properties?: flyteidl.admin.ITaskExecutionMetadata);
7618
+
7619
+ /** TaskExecutionMetadata taskExecutionId. */
7620
+ public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null);
7621
+
7622
+ /** TaskExecutionMetadata namespace. */
7623
+ public namespace: string;
7624
+
7625
+ /** TaskExecutionMetadata labels. */
7626
+ public labels: { [k: string]: string };
7627
+
7628
+ /** TaskExecutionMetadata annotations. */
7629
+ public annotations: { [k: string]: string };
7630
+
7631
+ /** TaskExecutionMetadata k8sServiceAccount. */
7632
+ public k8sServiceAccount: string;
7633
+
7634
+ /** TaskExecutionMetadata environmentVariables. */
7635
+ public environmentVariables: { [k: string]: string };
7636
+
7637
+ /**
7638
+ * Creates a new TaskExecutionMetadata instance using the specified properties.
7639
+ * @param [properties] Properties to set
7640
+ * @returns TaskExecutionMetadata instance
7641
+ */
7642
+ public static create(properties?: flyteidl.admin.ITaskExecutionMetadata): flyteidl.admin.TaskExecutionMetadata;
7643
+
7644
+ /**
7645
+ * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages.
7646
+ * @param message TaskExecutionMetadata message or plain object to encode
7647
+ * @param [writer] Writer to encode to
7648
+ * @returns Writer
7649
+ */
7650
+ public static encode(message: flyteidl.admin.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
7651
+
7652
+ /**
7653
+ * Decodes a TaskExecutionMetadata message from the specified reader or buffer.
7654
+ * @param reader Reader or buffer to decode from
7655
+ * @param [length] Message length if known beforehand
7656
+ * @returns TaskExecutionMetadata
7657
+ * @throws {Error} If the payload is not a reader or valid buffer
7658
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7659
+ */
7660
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionMetadata;
7661
+
7662
+ /**
7663
+ * Verifies a TaskExecutionMetadata message.
7664
+ * @param message Plain object to verify
7665
+ * @returns `null` if valid, otherwise the reason why it is not
7666
+ */
7667
+ public static verify(message: { [k: string]: any }): (string|null);
7668
+ }
7669
+
7509
7670
  /** Properties of a CreateTaskRequest. */
7510
7671
  interface ICreateTaskRequest {
7511
7672
 
@@ -7517,6 +7678,9 @@ export namespace flyteidl {
7517
7678
 
7518
7679
  /** CreateTaskRequest outputPrefix */
7519
7680
  outputPrefix?: (string|null);
7681
+
7682
+ /** CreateTaskRequest taskExecutionMetadata */
7683
+ taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null);
7520
7684
  }
7521
7685
 
7522
7686
  /** Represents a CreateTaskRequest. */
@@ -7537,6 +7701,9 @@ export namespace flyteidl {
7537
7701
  /** CreateTaskRequest outputPrefix. */
7538
7702
  public outputPrefix: string;
7539
7703
 
7704
+ /** CreateTaskRequest taskExecutionMetadata. */
7705
+ public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null);
7706
+
7540
7707
  /**
7541
7708
  * Creates a new CreateTaskRequest instance using the specified properties.
7542
7709
  * @param [properties] Properties to set
@@ -3200,6 +3200,190 @@
3200
3200
  return GateNode;
3201
3201
  })();
3202
3202
 
3203
+ core.ArrayNode = (function() {
3204
+
3205
+ /**
3206
+ * Properties of an ArrayNode.
3207
+ * @memberof flyteidl.core
3208
+ * @interface IArrayNode
3209
+ * @property {flyteidl.core.INode|null} [node] ArrayNode node
3210
+ * @property {number|null} [parallelism] ArrayNode parallelism
3211
+ * @property {number|null} [minSuccesses] ArrayNode minSuccesses
3212
+ * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio
3213
+ */
3214
+
3215
+ /**
3216
+ * Constructs a new ArrayNode.
3217
+ * @memberof flyteidl.core
3218
+ * @classdesc Represents an ArrayNode.
3219
+ * @implements IArrayNode
3220
+ * @constructor
3221
+ * @param {flyteidl.core.IArrayNode=} [properties] Properties to set
3222
+ */
3223
+ function ArrayNode(properties) {
3224
+ if (properties)
3225
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3226
+ if (properties[keys[i]] != null)
3227
+ this[keys[i]] = properties[keys[i]];
3228
+ }
3229
+
3230
+ /**
3231
+ * ArrayNode node.
3232
+ * @member {flyteidl.core.INode|null|undefined} node
3233
+ * @memberof flyteidl.core.ArrayNode
3234
+ * @instance
3235
+ */
3236
+ ArrayNode.prototype.node = null;
3237
+
3238
+ /**
3239
+ * ArrayNode parallelism.
3240
+ * @member {number} parallelism
3241
+ * @memberof flyteidl.core.ArrayNode
3242
+ * @instance
3243
+ */
3244
+ ArrayNode.prototype.parallelism = 0;
3245
+
3246
+ /**
3247
+ * ArrayNode minSuccesses.
3248
+ * @member {number} minSuccesses
3249
+ * @memberof flyteidl.core.ArrayNode
3250
+ * @instance
3251
+ */
3252
+ ArrayNode.prototype.minSuccesses = 0;
3253
+
3254
+ /**
3255
+ * ArrayNode minSuccessRatio.
3256
+ * @member {number} minSuccessRatio
3257
+ * @memberof flyteidl.core.ArrayNode
3258
+ * @instance
3259
+ */
3260
+ ArrayNode.prototype.minSuccessRatio = 0;
3261
+
3262
+ // OneOf field names bound to virtual getters and setters
3263
+ var $oneOfFields;
3264
+
3265
+ /**
3266
+ * ArrayNode successCriteria.
3267
+ * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria
3268
+ * @memberof flyteidl.core.ArrayNode
3269
+ * @instance
3270
+ */
3271
+ Object.defineProperty(ArrayNode.prototype, "successCriteria", {
3272
+ get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]),
3273
+ set: $util.oneOfSetter($oneOfFields)
3274
+ });
3275
+
3276
+ /**
3277
+ * Creates a new ArrayNode instance using the specified properties.
3278
+ * @function create
3279
+ * @memberof flyteidl.core.ArrayNode
3280
+ * @static
3281
+ * @param {flyteidl.core.IArrayNode=} [properties] Properties to set
3282
+ * @returns {flyteidl.core.ArrayNode} ArrayNode instance
3283
+ */
3284
+ ArrayNode.create = function create(properties) {
3285
+ return new ArrayNode(properties);
3286
+ };
3287
+
3288
+ /**
3289
+ * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages.
3290
+ * @function encode
3291
+ * @memberof flyteidl.core.ArrayNode
3292
+ * @static
3293
+ * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode
3294
+ * @param {$protobuf.Writer} [writer] Writer to encode to
3295
+ * @returns {$protobuf.Writer} Writer
3296
+ */
3297
+ ArrayNode.encode = function encode(message, writer) {
3298
+ if (!writer)
3299
+ writer = $Writer.create();
3300
+ if (message.node != null && message.hasOwnProperty("node"))
3301
+ $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
3302
+ if (message.parallelism != null && message.hasOwnProperty("parallelism"))
3303
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism);
3304
+ if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses"))
3305
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses);
3306
+ if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio"))
3307
+ writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio);
3308
+ return writer;
3309
+ };
3310
+
3311
+ /**
3312
+ * Decodes an ArrayNode message from the specified reader or buffer.
3313
+ * @function decode
3314
+ * @memberof flyteidl.core.ArrayNode
3315
+ * @static
3316
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3317
+ * @param {number} [length] Message length if known beforehand
3318
+ * @returns {flyteidl.core.ArrayNode} ArrayNode
3319
+ * @throws {Error} If the payload is not a reader or valid buffer
3320
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3321
+ */
3322
+ ArrayNode.decode = function decode(reader, length) {
3323
+ if (!(reader instanceof $Reader))
3324
+ reader = $Reader.create(reader);
3325
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode();
3326
+ while (reader.pos < end) {
3327
+ var tag = reader.uint32();
3328
+ switch (tag >>> 3) {
3329
+ case 1:
3330
+ message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32());
3331
+ break;
3332
+ case 2:
3333
+ message.parallelism = reader.uint32();
3334
+ break;
3335
+ case 3:
3336
+ message.minSuccesses = reader.uint32();
3337
+ break;
3338
+ case 4:
3339
+ message.minSuccessRatio = reader.float();
3340
+ break;
3341
+ default:
3342
+ reader.skipType(tag & 7);
3343
+ break;
3344
+ }
3345
+ }
3346
+ return message;
3347
+ };
3348
+
3349
+ /**
3350
+ * Verifies an ArrayNode message.
3351
+ * @function verify
3352
+ * @memberof flyteidl.core.ArrayNode
3353
+ * @static
3354
+ * @param {Object.<string,*>} message Plain object to verify
3355
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
3356
+ */
3357
+ ArrayNode.verify = function verify(message) {
3358
+ if (typeof message !== "object" || message === null)
3359
+ return "object expected";
3360
+ var properties = {};
3361
+ if (message.node != null && message.hasOwnProperty("node")) {
3362
+ var error = $root.flyteidl.core.Node.verify(message.node);
3363
+ if (error)
3364
+ return "node." + error;
3365
+ }
3366
+ if (message.parallelism != null && message.hasOwnProperty("parallelism"))
3367
+ if (!$util.isInteger(message.parallelism))
3368
+ return "parallelism: integer expected";
3369
+ if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) {
3370
+ properties.successCriteria = 1;
3371
+ if (!$util.isInteger(message.minSuccesses))
3372
+ return "minSuccesses: integer expected";
3373
+ }
3374
+ if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) {
3375
+ if (properties.successCriteria === 1)
3376
+ return "successCriteria: multiple values";
3377
+ properties.successCriteria = 1;
3378
+ if (typeof message.minSuccessRatio !== "number")
3379
+ return "minSuccessRatio: number expected";
3380
+ }
3381
+ return null;
3382
+ };
3383
+
3384
+ return ArrayNode;
3385
+ })();
3386
+
3203
3387
  core.NodeMetadata = (function() {
3204
3388
 
3205
3389
  /**
@@ -3524,6 +3708,7 @@
3524
3708
  * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode
3525
3709
  * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode
3526
3710
  * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode
3711
+ * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode
3527
3712
  */
3528
3713
 
3529
3714
  /**
@@ -3616,17 +3801,25 @@
3616
3801
  */
3617
3802
  Node.prototype.gateNode = null;
3618
3803
 
3804
+ /**
3805
+ * Node arrayNode.
3806
+ * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode
3807
+ * @memberof flyteidl.core.Node
3808
+ * @instance
3809
+ */
3810
+ Node.prototype.arrayNode = null;
3811
+
3619
3812
  // OneOf field names bound to virtual getters and setters
3620
3813
  var $oneOfFields;
3621
3814
 
3622
3815
  /**
3623
3816
  * Node target.
3624
- * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|undefined} target
3817
+ * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target
3625
3818
  * @memberof flyteidl.core.Node
3626
3819
  * @instance
3627
3820
  */
3628
3821
  Object.defineProperty(Node.prototype, "target", {
3629
- get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode"]),
3822
+ get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]),
3630
3823
  set: $util.oneOfSetter($oneOfFields)
3631
3824
  });
3632
3825
 
@@ -3675,6 +3868,8 @@
3675
3868
  $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
3676
3869
  if (message.gateNode != null && message.hasOwnProperty("gateNode"))
3677
3870
  $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
3871
+ if (message.arrayNode != null && message.hasOwnProperty("arrayNode"))
3872
+ $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
3678
3873
  return writer;
3679
3874
  };
3680
3875
 
@@ -3729,6 +3924,9 @@
3729
3924
  case 9:
3730
3925
  message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32());
3731
3926
  break;
3927
+ case 10:
3928
+ message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32());
3929
+ break;
3732
3930
  default:
3733
3931
  reader.skipType(tag & 7);
3734
3932
  break;
@@ -3820,6 +4018,16 @@
3820
4018
  return "gateNode." + error;
3821
4019
  }
3822
4020
  }
4021
+ if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) {
4022
+ if (properties.target === 1)
4023
+ return "target: multiple values";
4024
+ properties.target = 1;
4025
+ {
4026
+ var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode);
4027
+ if (error)
4028
+ return "arrayNode." + error;
4029
+ }
4030
+ }
3823
4031
  return null;
3824
4032
  };
3825
4033
 
@@ -18303,6 +18511,239 @@
18303
18511
  return values;
18304
18512
  })();
18305
18513
 
18514
+ admin.TaskExecutionMetadata = (function() {
18515
+
18516
+ /**
18517
+ * Properties of a TaskExecutionMetadata.
18518
+ * @memberof flyteidl.admin
18519
+ * @interface ITaskExecutionMetadata
18520
+ * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] TaskExecutionMetadata taskExecutionId
18521
+ * @property {string|null} [namespace] TaskExecutionMetadata namespace
18522
+ * @property {Object.<string,string>|null} [labels] TaskExecutionMetadata labels
18523
+ * @property {Object.<string,string>|null} [annotations] TaskExecutionMetadata annotations
18524
+ * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount
18525
+ * @property {Object.<string,string>|null} [environmentVariables] TaskExecutionMetadata environmentVariables
18526
+ */
18527
+
18528
+ /**
18529
+ * Constructs a new TaskExecutionMetadata.
18530
+ * @memberof flyteidl.admin
18531
+ * @classdesc Represents a TaskExecutionMetadata.
18532
+ * @implements ITaskExecutionMetadata
18533
+ * @constructor
18534
+ * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set
18535
+ */
18536
+ function TaskExecutionMetadata(properties) {
18537
+ this.labels = {};
18538
+ this.annotations = {};
18539
+ this.environmentVariables = {};
18540
+ if (properties)
18541
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18542
+ if (properties[keys[i]] != null)
18543
+ this[keys[i]] = properties[keys[i]];
18544
+ }
18545
+
18546
+ /**
18547
+ * TaskExecutionMetadata taskExecutionId.
18548
+ * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId
18549
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18550
+ * @instance
18551
+ */
18552
+ TaskExecutionMetadata.prototype.taskExecutionId = null;
18553
+
18554
+ /**
18555
+ * TaskExecutionMetadata namespace.
18556
+ * @member {string} namespace
18557
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18558
+ * @instance
18559
+ */
18560
+ TaskExecutionMetadata.prototype.namespace = "";
18561
+
18562
+ /**
18563
+ * TaskExecutionMetadata labels.
18564
+ * @member {Object.<string,string>} labels
18565
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18566
+ * @instance
18567
+ */
18568
+ TaskExecutionMetadata.prototype.labels = $util.emptyObject;
18569
+
18570
+ /**
18571
+ * TaskExecutionMetadata annotations.
18572
+ * @member {Object.<string,string>} annotations
18573
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18574
+ * @instance
18575
+ */
18576
+ TaskExecutionMetadata.prototype.annotations = $util.emptyObject;
18577
+
18578
+ /**
18579
+ * TaskExecutionMetadata k8sServiceAccount.
18580
+ * @member {string} k8sServiceAccount
18581
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18582
+ * @instance
18583
+ */
18584
+ TaskExecutionMetadata.prototype.k8sServiceAccount = "";
18585
+
18586
+ /**
18587
+ * TaskExecutionMetadata environmentVariables.
18588
+ * @member {Object.<string,string>} environmentVariables
18589
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18590
+ * @instance
18591
+ */
18592
+ TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject;
18593
+
18594
+ /**
18595
+ * Creates a new TaskExecutionMetadata instance using the specified properties.
18596
+ * @function create
18597
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18598
+ * @static
18599
+ * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set
18600
+ * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata instance
18601
+ */
18602
+ TaskExecutionMetadata.create = function create(properties) {
18603
+ return new TaskExecutionMetadata(properties);
18604
+ };
18605
+
18606
+ /**
18607
+ * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages.
18608
+ * @function encode
18609
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18610
+ * @static
18611
+ * @param {flyteidl.admin.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode
18612
+ * @param {$protobuf.Writer} [writer] Writer to encode to
18613
+ * @returns {$protobuf.Writer} Writer
18614
+ */
18615
+ TaskExecutionMetadata.encode = function encode(message, writer) {
18616
+ if (!writer)
18617
+ writer = $Writer.create();
18618
+ if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId"))
18619
+ $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
18620
+ if (message.namespace != null && message.hasOwnProperty("namespace"))
18621
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace);
18622
+ if (message.labels != null && message.hasOwnProperty("labels"))
18623
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
18624
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
18625
+ if (message.annotations != null && message.hasOwnProperty("annotations"))
18626
+ for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i)
18627
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
18628
+ if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount"))
18629
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.k8sServiceAccount);
18630
+ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables"))
18631
+ for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i)
18632
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim();
18633
+ return writer;
18634
+ };
18635
+
18636
+ /**
18637
+ * Decodes a TaskExecutionMetadata message from the specified reader or buffer.
18638
+ * @function decode
18639
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18640
+ * @static
18641
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
18642
+ * @param {number} [length] Message length if known beforehand
18643
+ * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata
18644
+ * @throws {Error} If the payload is not a reader or valid buffer
18645
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18646
+ */
18647
+ TaskExecutionMetadata.decode = function decode(reader, length) {
18648
+ if (!(reader instanceof $Reader))
18649
+ reader = $Reader.create(reader);
18650
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionMetadata(), key;
18651
+ while (reader.pos < end) {
18652
+ var tag = reader.uint32();
18653
+ switch (tag >>> 3) {
18654
+ case 1:
18655
+ message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32());
18656
+ break;
18657
+ case 2:
18658
+ message.namespace = reader.string();
18659
+ break;
18660
+ case 3:
18661
+ reader.skip().pos++;
18662
+ if (message.labels === $util.emptyObject)
18663
+ message.labels = {};
18664
+ key = reader.string();
18665
+ reader.pos++;
18666
+ message.labels[key] = reader.string();
18667
+ break;
18668
+ case 4:
18669
+ reader.skip().pos++;
18670
+ if (message.annotations === $util.emptyObject)
18671
+ message.annotations = {};
18672
+ key = reader.string();
18673
+ reader.pos++;
18674
+ message.annotations[key] = reader.string();
18675
+ break;
18676
+ case 5:
18677
+ message.k8sServiceAccount = reader.string();
18678
+ break;
18679
+ case 6:
18680
+ reader.skip().pos++;
18681
+ if (message.environmentVariables === $util.emptyObject)
18682
+ message.environmentVariables = {};
18683
+ key = reader.string();
18684
+ reader.pos++;
18685
+ message.environmentVariables[key] = reader.string();
18686
+ break;
18687
+ default:
18688
+ reader.skipType(tag & 7);
18689
+ break;
18690
+ }
18691
+ }
18692
+ return message;
18693
+ };
18694
+
18695
+ /**
18696
+ * Verifies a TaskExecutionMetadata message.
18697
+ * @function verify
18698
+ * @memberof flyteidl.admin.TaskExecutionMetadata
18699
+ * @static
18700
+ * @param {Object.<string,*>} message Plain object to verify
18701
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
18702
+ */
18703
+ TaskExecutionMetadata.verify = function verify(message) {
18704
+ if (typeof message !== "object" || message === null)
18705
+ return "object expected";
18706
+ if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) {
18707
+ var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId);
18708
+ if (error)
18709
+ return "taskExecutionId." + error;
18710
+ }
18711
+ if (message.namespace != null && message.hasOwnProperty("namespace"))
18712
+ if (!$util.isString(message.namespace))
18713
+ return "namespace: string expected";
18714
+ if (message.labels != null && message.hasOwnProperty("labels")) {
18715
+ if (!$util.isObject(message.labels))
18716
+ return "labels: object expected";
18717
+ var key = Object.keys(message.labels);
18718
+ for (var i = 0; i < key.length; ++i)
18719
+ if (!$util.isString(message.labels[key[i]]))
18720
+ return "labels: string{k:string} expected";
18721
+ }
18722
+ if (message.annotations != null && message.hasOwnProperty("annotations")) {
18723
+ if (!$util.isObject(message.annotations))
18724
+ return "annotations: object expected";
18725
+ var key = Object.keys(message.annotations);
18726
+ for (var i = 0; i < key.length; ++i)
18727
+ if (!$util.isString(message.annotations[key[i]]))
18728
+ return "annotations: string{k:string} expected";
18729
+ }
18730
+ if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount"))
18731
+ if (!$util.isString(message.k8sServiceAccount))
18732
+ return "k8sServiceAccount: string expected";
18733
+ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) {
18734
+ if (!$util.isObject(message.environmentVariables))
18735
+ return "environmentVariables: object expected";
18736
+ var key = Object.keys(message.environmentVariables);
18737
+ for (var i = 0; i < key.length; ++i)
18738
+ if (!$util.isString(message.environmentVariables[key[i]]))
18739
+ return "environmentVariables: string{k:string} expected";
18740
+ }
18741
+ return null;
18742
+ };
18743
+
18744
+ return TaskExecutionMetadata;
18745
+ })();
18746
+
18306
18747
  admin.CreateTaskRequest = (function() {
18307
18748
 
18308
18749
  /**
@@ -18312,6 +18753,7 @@
18312
18753
  * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs
18313
18754
  * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template
18314
18755
  * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix
18756
+ * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata
18315
18757
  */
18316
18758
 
18317
18759
  /**
@@ -18353,6 +18795,14 @@
18353
18795
  */
18354
18796
  CreateTaskRequest.prototype.outputPrefix = "";
18355
18797
 
18798
+ /**
18799
+ * CreateTaskRequest taskExecutionMetadata.
18800
+ * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata
18801
+ * @memberof flyteidl.admin.CreateTaskRequest
18802
+ * @instance
18803
+ */
18804
+ CreateTaskRequest.prototype.taskExecutionMetadata = null;
18805
+
18356
18806
  /**
18357
18807
  * Creates a new CreateTaskRequest instance using the specified properties.
18358
18808
  * @function create
@@ -18383,6 +18833,8 @@
18383
18833
  $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
18384
18834
  if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
18385
18835
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix);
18836
+ if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata"))
18837
+ $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
18386
18838
  return writer;
18387
18839
  };
18388
18840
 
@@ -18413,6 +18865,9 @@
18413
18865
  case 3:
18414
18866
  message.outputPrefix = reader.string();
18415
18867
  break;
18868
+ case 4:
18869
+ message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32());
18870
+ break;
18416
18871
  default:
18417
18872
  reader.skipType(tag & 7);
18418
18873
  break;
@@ -18445,6 +18900,11 @@
18445
18900
  if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
18446
18901
  if (!$util.isString(message.outputPrefix))
18447
18902
  return "outputPrefix: string expected";
18903
+ if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) {
18904
+ var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata);
18905
+ if (error)
18906
+ return "taskExecutionMetadata." + error;
18907
+ }
18448
18908
  return null;
18449
18909
  };
18450
18910
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -6,6 +6,7 @@ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
6
6
  import "flyteidl/core/literals.proto";
7
7
  import "flyteidl/core/tasks.proto";
8
8
  import "flyteidl/core/interface.proto";
9
+ import "flyteidl/core/identifier.proto";
9
10
 
10
11
  // The state of the execution is used to control its visibility in the UI/CLI.
11
12
  enum State {
@@ -16,6 +17,22 @@ enum State {
16
17
  SUCCEEDED = 4;
17
18
  }
18
19
 
20
+ // Represents a subset of runtime task execution metadata that are relevant to external plugins.
21
+ message TaskExecutionMetadata {
22
+ // ID of the task execution
23
+ core.TaskExecutionIdentifier task_execution_id = 1;
24
+ // k8s namespace where the task is executed in
25
+ string namespace = 2;
26
+ // Labels attached to the task execution
27
+ map<string, string> labels = 3;
28
+ // Annotations attached to the task execution
29
+ map<string, string> annotations = 4;
30
+ // k8s service account associated with the task execution
31
+ string k8s_service_account = 5;
32
+ // Environment variables attached to the task execution
33
+ map<string, string> environment_variables = 6;
34
+ }
35
+
19
36
  // Represents a request structure to create task.
20
37
  message CreateTaskRequest {
21
38
  // The inputs required to start the execution. All required inputs must be
@@ -26,6 +43,8 @@ message CreateTaskRequest {
26
43
  core.TaskTemplate template = 2;
27
44
  // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
28
45
  string output_prefix = 3;
46
+ // subset of runtime task execution metadata.
47
+ TaskExecutionMetadata task_execution_metadata = 4;
29
48
  }
30
49
 
31
50
  // Represents a create response structure.
@@ -107,6 +107,32 @@ message GateNode {
107
107
  }
108
108
  }
109
109
 
110
+ // ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input
111
+ // values. An ArrayNode can be executed with configurable parallelism (separate from the parent
112
+ // workflow) and can be configured to succeed when a certain number of sub-nodes succeed.
113
+ message ArrayNode {
114
+ // node is the sub-node that will be executed for each element in the array.
115
+ Node node = 1;
116
+
117
+ // parallelism defines the minimum number of instances to bring up concurrently at any given
118
+ // point. Note that this is an optimistic restriction and that, due to network partitioning or
119
+ // other failures, the actual number of currently running instances might be more. This has to
120
+ // be a positive number if assigned. Default value is size.
121
+ uint32 parallelism = 2;
122
+
123
+ oneof success_criteria {
124
+ // min_successes is an absolute number of the minimum number of successful completions of
125
+ // sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
126
+ // and outputs will be computed. This has to be a non-negative number if assigned. Default
127
+ // value is size (if specified).
128
+ uint32 min_successes = 3;
129
+
130
+ // If the array job size is not known beforehand, the min_success_ratio can instead be used
131
+ // to determine when an ArrayNode can be marked successful.
132
+ float min_success_ratio = 4;
133
+ }
134
+ }
135
+
110
136
  // Defines extra information about the Node.
111
137
  message NodeMetadata {
112
138
  // A friendly name for the Node
@@ -171,6 +197,10 @@ message Node {
171
197
 
172
198
  // Information about the condition to evaluate in this node.
173
199
  GateNode gate_node = 9;
200
+
201
+ // Information about the sub-node executions for each value in the list of this nodes
202
+ // inputs values.
203
+ ArrayNode array_node = 10;
174
204
  }
175
205
  }
176
206