@flyteorg/flyteidl 1.5.12 → 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.
- package/gen/pb-js/flyteidl.d.ts +88 -0
- package/gen/pb-js/flyteidl.js +252 -0
- package/package.json +1 -1
- package/protos/flyteidl/admin/agent.proto +19 -0
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -7585,6 +7585,88 @@ export namespace flyteidl {
|
|
|
7585
7585
|
SUCCEEDED = 4
|
|
7586
7586
|
}
|
|
7587
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
|
+
|
|
7588
7670
|
/** Properties of a CreateTaskRequest. */
|
|
7589
7671
|
interface ICreateTaskRequest {
|
|
7590
7672
|
|
|
@@ -7596,6 +7678,9 @@ export namespace flyteidl {
|
|
|
7596
7678
|
|
|
7597
7679
|
/** CreateTaskRequest outputPrefix */
|
|
7598
7680
|
outputPrefix?: (string|null);
|
|
7681
|
+
|
|
7682
|
+
/** CreateTaskRequest taskExecutionMetadata */
|
|
7683
|
+
taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null);
|
|
7599
7684
|
}
|
|
7600
7685
|
|
|
7601
7686
|
/** Represents a CreateTaskRequest. */
|
|
@@ -7616,6 +7701,9 @@ export namespace flyteidl {
|
|
|
7616
7701
|
/** CreateTaskRequest outputPrefix. */
|
|
7617
7702
|
public outputPrefix: string;
|
|
7618
7703
|
|
|
7704
|
+
/** CreateTaskRequest taskExecutionMetadata. */
|
|
7705
|
+
public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null);
|
|
7706
|
+
|
|
7619
7707
|
/**
|
|
7620
7708
|
* Creates a new CreateTaskRequest instance using the specified properties.
|
|
7621
7709
|
* @param [properties] Properties to set
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -18511,6 +18511,239 @@
|
|
|
18511
18511
|
return values;
|
|
18512
18512
|
})();
|
|
18513
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
|
+
|
|
18514
18747
|
admin.CreateTaskRequest = (function() {
|
|
18515
18748
|
|
|
18516
18749
|
/**
|
|
@@ -18520,6 +18753,7 @@
|
|
|
18520
18753
|
* @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs
|
|
18521
18754
|
* @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template
|
|
18522
18755
|
* @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix
|
|
18756
|
+
* @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata
|
|
18523
18757
|
*/
|
|
18524
18758
|
|
|
18525
18759
|
/**
|
|
@@ -18561,6 +18795,14 @@
|
|
|
18561
18795
|
*/
|
|
18562
18796
|
CreateTaskRequest.prototype.outputPrefix = "";
|
|
18563
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
|
+
|
|
18564
18806
|
/**
|
|
18565
18807
|
* Creates a new CreateTaskRequest instance using the specified properties.
|
|
18566
18808
|
* @function create
|
|
@@ -18591,6 +18833,8 @@
|
|
|
18591
18833
|
$root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
18592
18834
|
if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
|
|
18593
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();
|
|
18594
18838
|
return writer;
|
|
18595
18839
|
};
|
|
18596
18840
|
|
|
@@ -18621,6 +18865,9 @@
|
|
|
18621
18865
|
case 3:
|
|
18622
18866
|
message.outputPrefix = reader.string();
|
|
18623
18867
|
break;
|
|
18868
|
+
case 4:
|
|
18869
|
+
message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32());
|
|
18870
|
+
break;
|
|
18624
18871
|
default:
|
|
18625
18872
|
reader.skipType(tag & 7);
|
|
18626
18873
|
break;
|
|
@@ -18653,6 +18900,11 @@
|
|
|
18653
18900
|
if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
|
|
18654
18901
|
if (!$util.isString(message.outputPrefix))
|
|
18655
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
|
+
}
|
|
18656
18908
|
return null;
|
|
18657
18909
|
};
|
|
18658
18910
|
|
package/package.json
CHANGED
|
@@ -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.
|