@flyteorg/flyteidl 1.12.1-rc0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/pb-js/flyteidl.d.ts +153 -4
- package/gen/pb-js/flyteidl.js +343 -10
- package/package.json +1 -1
- package/protos/flyteidl/admin/execution.proto +1 -1
- package/protos/flyteidl/admin/project.proto +7 -0
- package/protos/flyteidl/core/execution.proto +2 -0
- package/protos/flyteidl/core/execution_envs.proto +8 -2
- package/protos/flyteidl/event/event.proto +13 -0
- package/protos/flyteidl/plugins/common.proto +27 -0
- package/protos/flyteidl/plugins/kubeflow/common.proto +3 -8
- package/protos/flyteidl/plugins/kubeflow/mpi.proto +11 -7
- package/protos/flyteidl/plugins/kubeflow/pytorch.proto +11 -7
- package/protos/flyteidl/plugins/kubeflow/tensorflow.proto +10 -6
- package/protos/flyteidl/service/admin.proto +9 -0
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -5743,6 +5743,12 @@ export namespace flyteidl {
|
|
|
5743
5743
|
|
|
5744
5744
|
/** TaskLog ttl */
|
|
5745
5745
|
ttl?: (google.protobuf.IDuration|null);
|
|
5746
|
+
|
|
5747
|
+
/** TaskLog ShowWhilePending */
|
|
5748
|
+
ShowWhilePending?: (boolean|null);
|
|
5749
|
+
|
|
5750
|
+
/** TaskLog HideOnceFinished */
|
|
5751
|
+
HideOnceFinished?: (boolean|null);
|
|
5746
5752
|
}
|
|
5747
5753
|
|
|
5748
5754
|
/** Represents a TaskLog. */
|
|
@@ -5766,6 +5772,12 @@ export namespace flyteidl {
|
|
|
5766
5772
|
/** TaskLog ttl. */
|
|
5767
5773
|
public ttl?: (google.protobuf.IDuration|null);
|
|
5768
5774
|
|
|
5775
|
+
/** TaskLog ShowWhilePending. */
|
|
5776
|
+
public ShowWhilePending: boolean;
|
|
5777
|
+
|
|
5778
|
+
/** TaskLog HideOnceFinished. */
|
|
5779
|
+
public HideOnceFinished: boolean;
|
|
5780
|
+
|
|
5769
5781
|
/**
|
|
5770
5782
|
* Creates a new TaskLog instance using the specified properties.
|
|
5771
5783
|
* @param [properties] Properties to set
|
|
@@ -7642,8 +7654,8 @@ export namespace flyteidl {
|
|
|
7642
7654
|
/** Properties of an ExecutionEnv. */
|
|
7643
7655
|
interface IExecutionEnv {
|
|
7644
7656
|
|
|
7645
|
-
/** ExecutionEnv
|
|
7646
|
-
|
|
7657
|
+
/** ExecutionEnv name */
|
|
7658
|
+
name?: (string|null);
|
|
7647
7659
|
|
|
7648
7660
|
/** ExecutionEnv type */
|
|
7649
7661
|
type?: (string|null);
|
|
@@ -7653,6 +7665,9 @@ export namespace flyteidl {
|
|
|
7653
7665
|
|
|
7654
7666
|
/** ExecutionEnv spec */
|
|
7655
7667
|
spec?: (google.protobuf.IStruct|null);
|
|
7668
|
+
|
|
7669
|
+
/** ExecutionEnv version */
|
|
7670
|
+
version?: (string|null);
|
|
7656
7671
|
}
|
|
7657
7672
|
|
|
7658
7673
|
/** Represents an ExecutionEnv. */
|
|
@@ -7664,8 +7679,8 @@ export namespace flyteidl {
|
|
|
7664
7679
|
*/
|
|
7665
7680
|
constructor(properties?: flyteidl.core.IExecutionEnv);
|
|
7666
7681
|
|
|
7667
|
-
/** ExecutionEnv
|
|
7668
|
-
public
|
|
7682
|
+
/** ExecutionEnv name. */
|
|
7683
|
+
public name: string;
|
|
7669
7684
|
|
|
7670
7685
|
/** ExecutionEnv type. */
|
|
7671
7686
|
public type: string;
|
|
@@ -7676,6 +7691,9 @@ export namespace flyteidl {
|
|
|
7676
7691
|
/** ExecutionEnv spec. */
|
|
7677
7692
|
public spec?: (google.protobuf.IStruct|null);
|
|
7678
7693
|
|
|
7694
|
+
/** ExecutionEnv version. */
|
|
7695
|
+
public version: string;
|
|
7696
|
+
|
|
7679
7697
|
/** ExecutionEnv environment. */
|
|
7680
7698
|
public environment?: ("extant"|"spec");
|
|
7681
7699
|
|
|
@@ -8380,6 +8398,12 @@ export namespace flyteidl {
|
|
|
8380
8398
|
|
|
8381
8399
|
/** NodeExecutionEvent isArray */
|
|
8382
8400
|
isArray?: (boolean|null);
|
|
8401
|
+
|
|
8402
|
+
/** NodeExecutionEvent targetEntity */
|
|
8403
|
+
targetEntity?: (flyteidl.core.IIdentifier|null);
|
|
8404
|
+
|
|
8405
|
+
/** NodeExecutionEvent isInDynamicChain */
|
|
8406
|
+
isInDynamicChain?: (boolean|null);
|
|
8383
8407
|
}
|
|
8384
8408
|
|
|
8385
8409
|
/** Represents a NodeExecutionEvent. */
|
|
@@ -8457,6 +8481,12 @@ export namespace flyteidl {
|
|
|
8457
8481
|
/** NodeExecutionEvent isArray. */
|
|
8458
8482
|
public isArray: boolean;
|
|
8459
8483
|
|
|
8484
|
+
/** NodeExecutionEvent targetEntity. */
|
|
8485
|
+
public targetEntity?: (flyteidl.core.IIdentifier|null);
|
|
8486
|
+
|
|
8487
|
+
/** NodeExecutionEvent isInDynamicChain. */
|
|
8488
|
+
public isInDynamicChain: boolean;
|
|
8489
|
+
|
|
8460
8490
|
/** NodeExecutionEvent inputValue. */
|
|
8461
8491
|
public inputValue?: ("inputUri"|"inputData");
|
|
8462
8492
|
|
|
@@ -17548,6 +17578,52 @@ export namespace flyteidl {
|
|
|
17548
17578
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
17549
17579
|
}
|
|
17550
17580
|
|
|
17581
|
+
/** Properties of a GetDomainRequest. */
|
|
17582
|
+
interface IGetDomainRequest {
|
|
17583
|
+
}
|
|
17584
|
+
|
|
17585
|
+
/** Represents a GetDomainRequest. */
|
|
17586
|
+
class GetDomainRequest implements IGetDomainRequest {
|
|
17587
|
+
|
|
17588
|
+
/**
|
|
17589
|
+
* Constructs a new GetDomainRequest.
|
|
17590
|
+
* @param [properties] Properties to set
|
|
17591
|
+
*/
|
|
17592
|
+
constructor(properties?: flyteidl.admin.IGetDomainRequest);
|
|
17593
|
+
|
|
17594
|
+
/**
|
|
17595
|
+
* Creates a new GetDomainRequest instance using the specified properties.
|
|
17596
|
+
* @param [properties] Properties to set
|
|
17597
|
+
* @returns GetDomainRequest instance
|
|
17598
|
+
*/
|
|
17599
|
+
public static create(properties?: flyteidl.admin.IGetDomainRequest): flyteidl.admin.GetDomainRequest;
|
|
17600
|
+
|
|
17601
|
+
/**
|
|
17602
|
+
* Encodes the specified GetDomainRequest message. Does not implicitly {@link flyteidl.admin.GetDomainRequest.verify|verify} messages.
|
|
17603
|
+
* @param message GetDomainRequest message or plain object to encode
|
|
17604
|
+
* @param [writer] Writer to encode to
|
|
17605
|
+
* @returns Writer
|
|
17606
|
+
*/
|
|
17607
|
+
public static encode(message: flyteidl.admin.IGetDomainRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
17608
|
+
|
|
17609
|
+
/**
|
|
17610
|
+
* Decodes a GetDomainRequest message from the specified reader or buffer.
|
|
17611
|
+
* @param reader Reader or buffer to decode from
|
|
17612
|
+
* @param [length] Message length if known beforehand
|
|
17613
|
+
* @returns GetDomainRequest
|
|
17614
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17615
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17616
|
+
*/
|
|
17617
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetDomainRequest;
|
|
17618
|
+
|
|
17619
|
+
/**
|
|
17620
|
+
* Verifies a GetDomainRequest message.
|
|
17621
|
+
* @param message Plain object to verify
|
|
17622
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
17623
|
+
*/
|
|
17624
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
17625
|
+
}
|
|
17626
|
+
|
|
17551
17627
|
/** Properties of a Domain. */
|
|
17552
17628
|
interface IDomain {
|
|
17553
17629
|
|
|
@@ -17606,6 +17682,58 @@ export namespace flyteidl {
|
|
|
17606
17682
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
17607
17683
|
}
|
|
17608
17684
|
|
|
17685
|
+
/** Properties of a GetDomainsResponse. */
|
|
17686
|
+
interface IGetDomainsResponse {
|
|
17687
|
+
|
|
17688
|
+
/** GetDomainsResponse domains */
|
|
17689
|
+
domains?: (flyteidl.admin.IDomain[]|null);
|
|
17690
|
+
}
|
|
17691
|
+
|
|
17692
|
+
/** Represents a GetDomainsResponse. */
|
|
17693
|
+
class GetDomainsResponse implements IGetDomainsResponse {
|
|
17694
|
+
|
|
17695
|
+
/**
|
|
17696
|
+
* Constructs a new GetDomainsResponse.
|
|
17697
|
+
* @param [properties] Properties to set
|
|
17698
|
+
*/
|
|
17699
|
+
constructor(properties?: flyteidl.admin.IGetDomainsResponse);
|
|
17700
|
+
|
|
17701
|
+
/** GetDomainsResponse domains. */
|
|
17702
|
+
public domains: flyteidl.admin.IDomain[];
|
|
17703
|
+
|
|
17704
|
+
/**
|
|
17705
|
+
* Creates a new GetDomainsResponse instance using the specified properties.
|
|
17706
|
+
* @param [properties] Properties to set
|
|
17707
|
+
* @returns GetDomainsResponse instance
|
|
17708
|
+
*/
|
|
17709
|
+
public static create(properties?: flyteidl.admin.IGetDomainsResponse): flyteidl.admin.GetDomainsResponse;
|
|
17710
|
+
|
|
17711
|
+
/**
|
|
17712
|
+
* Encodes the specified GetDomainsResponse message. Does not implicitly {@link flyteidl.admin.GetDomainsResponse.verify|verify} messages.
|
|
17713
|
+
* @param message GetDomainsResponse message or plain object to encode
|
|
17714
|
+
* @param [writer] Writer to encode to
|
|
17715
|
+
* @returns Writer
|
|
17716
|
+
*/
|
|
17717
|
+
public static encode(message: flyteidl.admin.IGetDomainsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
17718
|
+
|
|
17719
|
+
/**
|
|
17720
|
+
* Decodes a GetDomainsResponse message from the specified reader or buffer.
|
|
17721
|
+
* @param reader Reader or buffer to decode from
|
|
17722
|
+
* @param [length] Message length if known beforehand
|
|
17723
|
+
* @returns GetDomainsResponse
|
|
17724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17726
|
+
*/
|
|
17727
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetDomainsResponse;
|
|
17728
|
+
|
|
17729
|
+
/**
|
|
17730
|
+
* Verifies a GetDomainsResponse message.
|
|
17731
|
+
* @param message Plain object to verify
|
|
17732
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
17733
|
+
*/
|
|
17734
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
17735
|
+
}
|
|
17736
|
+
|
|
17609
17737
|
/** Properties of a Project. */
|
|
17610
17738
|
interface IProject {
|
|
17611
17739
|
|
|
@@ -21688,6 +21816,20 @@ export namespace flyteidl {
|
|
|
21688
21816
|
*/
|
|
21689
21817
|
public listProjects(request: flyteidl.admin.IProjectListRequest): Promise<flyteidl.admin.Projects>;
|
|
21690
21818
|
|
|
21819
|
+
/**
|
|
21820
|
+
* Calls GetDomains.
|
|
21821
|
+
* @param request GetDomainRequest message or plain object
|
|
21822
|
+
* @param callback Node-style callback called with the error, if any, and GetDomainsResponse
|
|
21823
|
+
*/
|
|
21824
|
+
public getDomains(request: flyteidl.admin.IGetDomainRequest, callback: flyteidl.service.AdminService.GetDomainsCallback): void;
|
|
21825
|
+
|
|
21826
|
+
/**
|
|
21827
|
+
* Calls GetDomains.
|
|
21828
|
+
* @param request GetDomainRequest message or plain object
|
|
21829
|
+
* @returns Promise
|
|
21830
|
+
*/
|
|
21831
|
+
public getDomains(request: flyteidl.admin.IGetDomainRequest): Promise<flyteidl.admin.GetDomainsResponse>;
|
|
21832
|
+
|
|
21691
21833
|
/**
|
|
21692
21834
|
* Calls CreateWorkflowEvent.
|
|
21693
21835
|
* @param request WorkflowExecutionEventRequest message or plain object
|
|
@@ -22237,6 +22379,13 @@ export namespace flyteidl {
|
|
|
22237
22379
|
*/
|
|
22238
22380
|
type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void;
|
|
22239
22381
|
|
|
22382
|
+
/**
|
|
22383
|
+
* Callback as used by {@link flyteidl.service.AdminService#getDomains}.
|
|
22384
|
+
* @param error Error, if any
|
|
22385
|
+
* @param [response] GetDomainsResponse
|
|
22386
|
+
*/
|
|
22387
|
+
type GetDomainsCallback = (error: (Error|null), response?: flyteidl.admin.GetDomainsResponse) => void;
|
|
22388
|
+
|
|
22240
22389
|
/**
|
|
22241
22390
|
* Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}.
|
|
22242
22391
|
* @param error Error, if any
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -13800,6 +13800,8 @@
|
|
|
13800
13800
|
* @property {string|null} [name] TaskLog name
|
|
13801
13801
|
* @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat
|
|
13802
13802
|
* @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl
|
|
13803
|
+
* @property {boolean|null} [ShowWhilePending] TaskLog ShowWhilePending
|
|
13804
|
+
* @property {boolean|null} [HideOnceFinished] TaskLog HideOnceFinished
|
|
13803
13805
|
*/
|
|
13804
13806
|
|
|
13805
13807
|
/**
|
|
@@ -13849,6 +13851,22 @@
|
|
|
13849
13851
|
*/
|
|
13850
13852
|
TaskLog.prototype.ttl = null;
|
|
13851
13853
|
|
|
13854
|
+
/**
|
|
13855
|
+
* TaskLog ShowWhilePending.
|
|
13856
|
+
* @member {boolean} ShowWhilePending
|
|
13857
|
+
* @memberof flyteidl.core.TaskLog
|
|
13858
|
+
* @instance
|
|
13859
|
+
*/
|
|
13860
|
+
TaskLog.prototype.ShowWhilePending = false;
|
|
13861
|
+
|
|
13862
|
+
/**
|
|
13863
|
+
* TaskLog HideOnceFinished.
|
|
13864
|
+
* @member {boolean} HideOnceFinished
|
|
13865
|
+
* @memberof flyteidl.core.TaskLog
|
|
13866
|
+
* @instance
|
|
13867
|
+
*/
|
|
13868
|
+
TaskLog.prototype.HideOnceFinished = false;
|
|
13869
|
+
|
|
13852
13870
|
/**
|
|
13853
13871
|
* Creates a new TaskLog instance using the specified properties.
|
|
13854
13872
|
* @function create
|
|
@@ -13881,6 +13899,10 @@
|
|
|
13881
13899
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat);
|
|
13882
13900
|
if (message.ttl != null && message.hasOwnProperty("ttl"))
|
|
13883
13901
|
$root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
13902
|
+
if (message.ShowWhilePending != null && message.hasOwnProperty("ShowWhilePending"))
|
|
13903
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ShowWhilePending);
|
|
13904
|
+
if (message.HideOnceFinished != null && message.hasOwnProperty("HideOnceFinished"))
|
|
13905
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.HideOnceFinished);
|
|
13884
13906
|
return writer;
|
|
13885
13907
|
};
|
|
13886
13908
|
|
|
@@ -13914,6 +13936,12 @@
|
|
|
13914
13936
|
case 4:
|
|
13915
13937
|
message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
13916
13938
|
break;
|
|
13939
|
+
case 5:
|
|
13940
|
+
message.ShowWhilePending = reader.bool();
|
|
13941
|
+
break;
|
|
13942
|
+
case 6:
|
|
13943
|
+
message.HideOnceFinished = reader.bool();
|
|
13944
|
+
break;
|
|
13917
13945
|
default:
|
|
13918
13946
|
reader.skipType(tag & 7);
|
|
13919
13947
|
break;
|
|
@@ -13953,6 +13981,12 @@
|
|
|
13953
13981
|
if (error)
|
|
13954
13982
|
return "ttl." + error;
|
|
13955
13983
|
}
|
|
13984
|
+
if (message.ShowWhilePending != null && message.hasOwnProperty("ShowWhilePending"))
|
|
13985
|
+
if (typeof message.ShowWhilePending !== "boolean")
|
|
13986
|
+
return "ShowWhilePending: boolean expected";
|
|
13987
|
+
if (message.HideOnceFinished != null && message.hasOwnProperty("HideOnceFinished"))
|
|
13988
|
+
if (typeof message.HideOnceFinished !== "boolean")
|
|
13989
|
+
return "HideOnceFinished: boolean expected";
|
|
13956
13990
|
return null;
|
|
13957
13991
|
};
|
|
13958
13992
|
|
|
@@ -18476,10 +18510,11 @@
|
|
|
18476
18510
|
* Properties of an ExecutionEnv.
|
|
18477
18511
|
* @memberof flyteidl.core
|
|
18478
18512
|
* @interface IExecutionEnv
|
|
18479
|
-
* @property {string|null} [
|
|
18513
|
+
* @property {string|null} [name] ExecutionEnv name
|
|
18480
18514
|
* @property {string|null} [type] ExecutionEnv type
|
|
18481
18515
|
* @property {google.protobuf.IStruct|null} [extant] ExecutionEnv extant
|
|
18482
18516
|
* @property {google.protobuf.IStruct|null} [spec] ExecutionEnv spec
|
|
18517
|
+
* @property {string|null} [version] ExecutionEnv version
|
|
18483
18518
|
*/
|
|
18484
18519
|
|
|
18485
18520
|
/**
|
|
@@ -18498,12 +18533,12 @@
|
|
|
18498
18533
|
}
|
|
18499
18534
|
|
|
18500
18535
|
/**
|
|
18501
|
-
* ExecutionEnv
|
|
18502
|
-
* @member {string}
|
|
18536
|
+
* ExecutionEnv name.
|
|
18537
|
+
* @member {string} name
|
|
18503
18538
|
* @memberof flyteidl.core.ExecutionEnv
|
|
18504
18539
|
* @instance
|
|
18505
18540
|
*/
|
|
18506
|
-
ExecutionEnv.prototype.
|
|
18541
|
+
ExecutionEnv.prototype.name = "";
|
|
18507
18542
|
|
|
18508
18543
|
/**
|
|
18509
18544
|
* ExecutionEnv type.
|
|
@@ -18529,6 +18564,14 @@
|
|
|
18529
18564
|
*/
|
|
18530
18565
|
ExecutionEnv.prototype.spec = null;
|
|
18531
18566
|
|
|
18567
|
+
/**
|
|
18568
|
+
* ExecutionEnv version.
|
|
18569
|
+
* @member {string} version
|
|
18570
|
+
* @memberof flyteidl.core.ExecutionEnv
|
|
18571
|
+
* @instance
|
|
18572
|
+
*/
|
|
18573
|
+
ExecutionEnv.prototype.version = "";
|
|
18574
|
+
|
|
18532
18575
|
// OneOf field names bound to virtual getters and setters
|
|
18533
18576
|
var $oneOfFields;
|
|
18534
18577
|
|
|
@@ -18567,14 +18610,16 @@
|
|
|
18567
18610
|
ExecutionEnv.encode = function encode(message, writer) {
|
|
18568
18611
|
if (!writer)
|
|
18569
18612
|
writer = $Writer.create();
|
|
18570
|
-
if (message.
|
|
18571
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
18613
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18614
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
18572
18615
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
18573
18616
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.type);
|
|
18574
18617
|
if (message.extant != null && message.hasOwnProperty("extant"))
|
|
18575
18618
|
$root.google.protobuf.Struct.encode(message.extant, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
18576
18619
|
if (message.spec != null && message.hasOwnProperty("spec"))
|
|
18577
18620
|
$root.google.protobuf.Struct.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
18621
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
18622
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.version);
|
|
18578
18623
|
return writer;
|
|
18579
18624
|
};
|
|
18580
18625
|
|
|
@@ -18597,7 +18642,7 @@
|
|
|
18597
18642
|
var tag = reader.uint32();
|
|
18598
18643
|
switch (tag >>> 3) {
|
|
18599
18644
|
case 1:
|
|
18600
|
-
message.
|
|
18645
|
+
message.name = reader.string();
|
|
18601
18646
|
break;
|
|
18602
18647
|
case 2:
|
|
18603
18648
|
message.type = reader.string();
|
|
@@ -18608,6 +18653,9 @@
|
|
|
18608
18653
|
case 4:
|
|
18609
18654
|
message.spec = $root.google.protobuf.Struct.decode(reader, reader.uint32());
|
|
18610
18655
|
break;
|
|
18656
|
+
case 5:
|
|
18657
|
+
message.version = reader.string();
|
|
18658
|
+
break;
|
|
18611
18659
|
default:
|
|
18612
18660
|
reader.skipType(tag & 7);
|
|
18613
18661
|
break;
|
|
@@ -18628,9 +18676,9 @@
|
|
|
18628
18676
|
if (typeof message !== "object" || message === null)
|
|
18629
18677
|
return "object expected";
|
|
18630
18678
|
var properties = {};
|
|
18631
|
-
if (message.
|
|
18632
|
-
if (!$util.isString(message.
|
|
18633
|
-
return "
|
|
18679
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18680
|
+
if (!$util.isString(message.name))
|
|
18681
|
+
return "name: string expected";
|
|
18634
18682
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
18635
18683
|
if (!$util.isString(message.type))
|
|
18636
18684
|
return "type: string expected";
|
|
@@ -18652,6 +18700,9 @@
|
|
|
18652
18700
|
return "spec." + error;
|
|
18653
18701
|
}
|
|
18654
18702
|
}
|
|
18703
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
18704
|
+
if (!$util.isString(message.version))
|
|
18705
|
+
return "version: string expected";
|
|
18655
18706
|
return null;
|
|
18656
18707
|
};
|
|
18657
18708
|
|
|
@@ -20247,6 +20298,8 @@
|
|
|
20247
20298
|
* @property {string|null} [deckUri] NodeExecutionEvent deckUri
|
|
20248
20299
|
* @property {google.protobuf.ITimestamp|null} [reportedAt] NodeExecutionEvent reportedAt
|
|
20249
20300
|
* @property {boolean|null} [isArray] NodeExecutionEvent isArray
|
|
20301
|
+
* @property {flyteidl.core.IIdentifier|null} [targetEntity] NodeExecutionEvent targetEntity
|
|
20302
|
+
* @property {boolean|null} [isInDynamicChain] NodeExecutionEvent isInDynamicChain
|
|
20250
20303
|
*/
|
|
20251
20304
|
|
|
20252
20305
|
/**
|
|
@@ -20440,6 +20493,22 @@
|
|
|
20440
20493
|
*/
|
|
20441
20494
|
NodeExecutionEvent.prototype.isArray = false;
|
|
20442
20495
|
|
|
20496
|
+
/**
|
|
20497
|
+
* NodeExecutionEvent targetEntity.
|
|
20498
|
+
* @member {flyteidl.core.IIdentifier|null|undefined} targetEntity
|
|
20499
|
+
* @memberof flyteidl.event.NodeExecutionEvent
|
|
20500
|
+
* @instance
|
|
20501
|
+
*/
|
|
20502
|
+
NodeExecutionEvent.prototype.targetEntity = null;
|
|
20503
|
+
|
|
20504
|
+
/**
|
|
20505
|
+
* NodeExecutionEvent isInDynamicChain.
|
|
20506
|
+
* @member {boolean} isInDynamicChain
|
|
20507
|
+
* @memberof flyteidl.event.NodeExecutionEvent
|
|
20508
|
+
* @instance
|
|
20509
|
+
*/
|
|
20510
|
+
NodeExecutionEvent.prototype.isInDynamicChain = false;
|
|
20511
|
+
|
|
20443
20512
|
// OneOf field names bound to virtual getters and setters
|
|
20444
20513
|
var $oneOfFields;
|
|
20445
20514
|
|
|
@@ -20544,6 +20613,10 @@
|
|
|
20544
20613
|
$root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
20545
20614
|
if (message.isArray != null && message.hasOwnProperty("isArray"))
|
|
20546
20615
|
writer.uint32(/* id 22, wireType 0 =*/176).bool(message.isArray);
|
|
20616
|
+
if (message.targetEntity != null && message.hasOwnProperty("targetEntity"))
|
|
20617
|
+
$root.flyteidl.core.Identifier.encode(message.targetEntity, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
20618
|
+
if (message.isInDynamicChain != null && message.hasOwnProperty("isInDynamicChain"))
|
|
20619
|
+
writer.uint32(/* id 24, wireType 0 =*/192).bool(message.isInDynamicChain);
|
|
20547
20620
|
return writer;
|
|
20548
20621
|
};
|
|
20549
20622
|
|
|
@@ -20631,6 +20704,12 @@
|
|
|
20631
20704
|
case 22:
|
|
20632
20705
|
message.isArray = reader.bool();
|
|
20633
20706
|
break;
|
|
20707
|
+
case 23:
|
|
20708
|
+
message.targetEntity = $root.flyteidl.core.Identifier.decode(reader, reader.uint32());
|
|
20709
|
+
break;
|
|
20710
|
+
case 24:
|
|
20711
|
+
message.isInDynamicChain = reader.bool();
|
|
20712
|
+
break;
|
|
20634
20713
|
default:
|
|
20635
20714
|
reader.skipType(tag & 7);
|
|
20636
20715
|
break;
|
|
@@ -20778,6 +20857,14 @@
|
|
|
20778
20857
|
if (message.isArray != null && message.hasOwnProperty("isArray"))
|
|
20779
20858
|
if (typeof message.isArray !== "boolean")
|
|
20780
20859
|
return "isArray: boolean expected";
|
|
20860
|
+
if (message.targetEntity != null && message.hasOwnProperty("targetEntity")) {
|
|
20861
|
+
var error = $root.flyteidl.core.Identifier.verify(message.targetEntity);
|
|
20862
|
+
if (error)
|
|
20863
|
+
return "targetEntity." + error;
|
|
20864
|
+
}
|
|
20865
|
+
if (message.isInDynamicChain != null && message.hasOwnProperty("isInDynamicChain"))
|
|
20866
|
+
if (typeof message.isInDynamicChain !== "boolean")
|
|
20867
|
+
return "isInDynamicChain: boolean expected";
|
|
20781
20868
|
return null;
|
|
20782
20869
|
};
|
|
20783
20870
|
|
|
@@ -42498,6 +42585,99 @@
|
|
|
42498
42585
|
return EmailMessage;
|
|
42499
42586
|
})();
|
|
42500
42587
|
|
|
42588
|
+
admin.GetDomainRequest = (function() {
|
|
42589
|
+
|
|
42590
|
+
/**
|
|
42591
|
+
* Properties of a GetDomainRequest.
|
|
42592
|
+
* @memberof flyteidl.admin
|
|
42593
|
+
* @interface IGetDomainRequest
|
|
42594
|
+
*/
|
|
42595
|
+
|
|
42596
|
+
/**
|
|
42597
|
+
* Constructs a new GetDomainRequest.
|
|
42598
|
+
* @memberof flyteidl.admin
|
|
42599
|
+
* @classdesc Represents a GetDomainRequest.
|
|
42600
|
+
* @implements IGetDomainRequest
|
|
42601
|
+
* @constructor
|
|
42602
|
+
* @param {flyteidl.admin.IGetDomainRequest=} [properties] Properties to set
|
|
42603
|
+
*/
|
|
42604
|
+
function GetDomainRequest(properties) {
|
|
42605
|
+
if (properties)
|
|
42606
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42607
|
+
if (properties[keys[i]] != null)
|
|
42608
|
+
this[keys[i]] = properties[keys[i]];
|
|
42609
|
+
}
|
|
42610
|
+
|
|
42611
|
+
/**
|
|
42612
|
+
* Creates a new GetDomainRequest instance using the specified properties.
|
|
42613
|
+
* @function create
|
|
42614
|
+
* @memberof flyteidl.admin.GetDomainRequest
|
|
42615
|
+
* @static
|
|
42616
|
+
* @param {flyteidl.admin.IGetDomainRequest=} [properties] Properties to set
|
|
42617
|
+
* @returns {flyteidl.admin.GetDomainRequest} GetDomainRequest instance
|
|
42618
|
+
*/
|
|
42619
|
+
GetDomainRequest.create = function create(properties) {
|
|
42620
|
+
return new GetDomainRequest(properties);
|
|
42621
|
+
};
|
|
42622
|
+
|
|
42623
|
+
/**
|
|
42624
|
+
* Encodes the specified GetDomainRequest message. Does not implicitly {@link flyteidl.admin.GetDomainRequest.verify|verify} messages.
|
|
42625
|
+
* @function encode
|
|
42626
|
+
* @memberof flyteidl.admin.GetDomainRequest
|
|
42627
|
+
* @static
|
|
42628
|
+
* @param {flyteidl.admin.IGetDomainRequest} message GetDomainRequest message or plain object to encode
|
|
42629
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42630
|
+
* @returns {$protobuf.Writer} Writer
|
|
42631
|
+
*/
|
|
42632
|
+
GetDomainRequest.encode = function encode(message, writer) {
|
|
42633
|
+
if (!writer)
|
|
42634
|
+
writer = $Writer.create();
|
|
42635
|
+
return writer;
|
|
42636
|
+
};
|
|
42637
|
+
|
|
42638
|
+
/**
|
|
42639
|
+
* Decodes a GetDomainRequest message from the specified reader or buffer.
|
|
42640
|
+
* @function decode
|
|
42641
|
+
* @memberof flyteidl.admin.GetDomainRequest
|
|
42642
|
+
* @static
|
|
42643
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42644
|
+
* @param {number} [length] Message length if known beforehand
|
|
42645
|
+
* @returns {flyteidl.admin.GetDomainRequest} GetDomainRequest
|
|
42646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42648
|
+
*/
|
|
42649
|
+
GetDomainRequest.decode = function decode(reader, length) {
|
|
42650
|
+
if (!(reader instanceof $Reader))
|
|
42651
|
+
reader = $Reader.create(reader);
|
|
42652
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetDomainRequest();
|
|
42653
|
+
while (reader.pos < end) {
|
|
42654
|
+
var tag = reader.uint32();
|
|
42655
|
+
switch (tag >>> 3) {
|
|
42656
|
+
default:
|
|
42657
|
+
reader.skipType(tag & 7);
|
|
42658
|
+
break;
|
|
42659
|
+
}
|
|
42660
|
+
}
|
|
42661
|
+
return message;
|
|
42662
|
+
};
|
|
42663
|
+
|
|
42664
|
+
/**
|
|
42665
|
+
* Verifies a GetDomainRequest message.
|
|
42666
|
+
* @function verify
|
|
42667
|
+
* @memberof flyteidl.admin.GetDomainRequest
|
|
42668
|
+
* @static
|
|
42669
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
42670
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
42671
|
+
*/
|
|
42672
|
+
GetDomainRequest.verify = function verify(message) {
|
|
42673
|
+
if (typeof message !== "object" || message === null)
|
|
42674
|
+
return "object expected";
|
|
42675
|
+
return null;
|
|
42676
|
+
};
|
|
42677
|
+
|
|
42678
|
+
return GetDomainRequest;
|
|
42679
|
+
})();
|
|
42680
|
+
|
|
42501
42681
|
admin.Domain = (function() {
|
|
42502
42682
|
|
|
42503
42683
|
/**
|
|
@@ -42625,6 +42805,126 @@
|
|
|
42625
42805
|
return Domain;
|
|
42626
42806
|
})();
|
|
42627
42807
|
|
|
42808
|
+
admin.GetDomainsResponse = (function() {
|
|
42809
|
+
|
|
42810
|
+
/**
|
|
42811
|
+
* Properties of a GetDomainsResponse.
|
|
42812
|
+
* @memberof flyteidl.admin
|
|
42813
|
+
* @interface IGetDomainsResponse
|
|
42814
|
+
* @property {Array.<flyteidl.admin.IDomain>|null} [domains] GetDomainsResponse domains
|
|
42815
|
+
*/
|
|
42816
|
+
|
|
42817
|
+
/**
|
|
42818
|
+
* Constructs a new GetDomainsResponse.
|
|
42819
|
+
* @memberof flyteidl.admin
|
|
42820
|
+
* @classdesc Represents a GetDomainsResponse.
|
|
42821
|
+
* @implements IGetDomainsResponse
|
|
42822
|
+
* @constructor
|
|
42823
|
+
* @param {flyteidl.admin.IGetDomainsResponse=} [properties] Properties to set
|
|
42824
|
+
*/
|
|
42825
|
+
function GetDomainsResponse(properties) {
|
|
42826
|
+
this.domains = [];
|
|
42827
|
+
if (properties)
|
|
42828
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
42829
|
+
if (properties[keys[i]] != null)
|
|
42830
|
+
this[keys[i]] = properties[keys[i]];
|
|
42831
|
+
}
|
|
42832
|
+
|
|
42833
|
+
/**
|
|
42834
|
+
* GetDomainsResponse domains.
|
|
42835
|
+
* @member {Array.<flyteidl.admin.IDomain>} domains
|
|
42836
|
+
* @memberof flyteidl.admin.GetDomainsResponse
|
|
42837
|
+
* @instance
|
|
42838
|
+
*/
|
|
42839
|
+
GetDomainsResponse.prototype.domains = $util.emptyArray;
|
|
42840
|
+
|
|
42841
|
+
/**
|
|
42842
|
+
* Creates a new GetDomainsResponse instance using the specified properties.
|
|
42843
|
+
* @function create
|
|
42844
|
+
* @memberof flyteidl.admin.GetDomainsResponse
|
|
42845
|
+
* @static
|
|
42846
|
+
* @param {flyteidl.admin.IGetDomainsResponse=} [properties] Properties to set
|
|
42847
|
+
* @returns {flyteidl.admin.GetDomainsResponse} GetDomainsResponse instance
|
|
42848
|
+
*/
|
|
42849
|
+
GetDomainsResponse.create = function create(properties) {
|
|
42850
|
+
return new GetDomainsResponse(properties);
|
|
42851
|
+
};
|
|
42852
|
+
|
|
42853
|
+
/**
|
|
42854
|
+
* Encodes the specified GetDomainsResponse message. Does not implicitly {@link flyteidl.admin.GetDomainsResponse.verify|verify} messages.
|
|
42855
|
+
* @function encode
|
|
42856
|
+
* @memberof flyteidl.admin.GetDomainsResponse
|
|
42857
|
+
* @static
|
|
42858
|
+
* @param {flyteidl.admin.IGetDomainsResponse} message GetDomainsResponse message or plain object to encode
|
|
42859
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
42860
|
+
* @returns {$protobuf.Writer} Writer
|
|
42861
|
+
*/
|
|
42862
|
+
GetDomainsResponse.encode = function encode(message, writer) {
|
|
42863
|
+
if (!writer)
|
|
42864
|
+
writer = $Writer.create();
|
|
42865
|
+
if (message.domains != null && message.domains.length)
|
|
42866
|
+
for (var i = 0; i < message.domains.length; ++i)
|
|
42867
|
+
$root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
42868
|
+
return writer;
|
|
42869
|
+
};
|
|
42870
|
+
|
|
42871
|
+
/**
|
|
42872
|
+
* Decodes a GetDomainsResponse message from the specified reader or buffer.
|
|
42873
|
+
* @function decode
|
|
42874
|
+
* @memberof flyteidl.admin.GetDomainsResponse
|
|
42875
|
+
* @static
|
|
42876
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
42877
|
+
* @param {number} [length] Message length if known beforehand
|
|
42878
|
+
* @returns {flyteidl.admin.GetDomainsResponse} GetDomainsResponse
|
|
42879
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
42880
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
42881
|
+
*/
|
|
42882
|
+
GetDomainsResponse.decode = function decode(reader, length) {
|
|
42883
|
+
if (!(reader instanceof $Reader))
|
|
42884
|
+
reader = $Reader.create(reader);
|
|
42885
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetDomainsResponse();
|
|
42886
|
+
while (reader.pos < end) {
|
|
42887
|
+
var tag = reader.uint32();
|
|
42888
|
+
switch (tag >>> 3) {
|
|
42889
|
+
case 1:
|
|
42890
|
+
if (!(message.domains && message.domains.length))
|
|
42891
|
+
message.domains = [];
|
|
42892
|
+
message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32()));
|
|
42893
|
+
break;
|
|
42894
|
+
default:
|
|
42895
|
+
reader.skipType(tag & 7);
|
|
42896
|
+
break;
|
|
42897
|
+
}
|
|
42898
|
+
}
|
|
42899
|
+
return message;
|
|
42900
|
+
};
|
|
42901
|
+
|
|
42902
|
+
/**
|
|
42903
|
+
* Verifies a GetDomainsResponse message.
|
|
42904
|
+
* @function verify
|
|
42905
|
+
* @memberof flyteidl.admin.GetDomainsResponse
|
|
42906
|
+
* @static
|
|
42907
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
42908
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
42909
|
+
*/
|
|
42910
|
+
GetDomainsResponse.verify = function verify(message) {
|
|
42911
|
+
if (typeof message !== "object" || message === null)
|
|
42912
|
+
return "object expected";
|
|
42913
|
+
if (message.domains != null && message.hasOwnProperty("domains")) {
|
|
42914
|
+
if (!Array.isArray(message.domains))
|
|
42915
|
+
return "domains: array expected";
|
|
42916
|
+
for (var i = 0; i < message.domains.length; ++i) {
|
|
42917
|
+
var error = $root.flyteidl.admin.Domain.verify(message.domains[i]);
|
|
42918
|
+
if (error)
|
|
42919
|
+
return "domains." + error;
|
|
42920
|
+
}
|
|
42921
|
+
}
|
|
42922
|
+
return null;
|
|
42923
|
+
};
|
|
42924
|
+
|
|
42925
|
+
return GetDomainsResponse;
|
|
42926
|
+
})();
|
|
42927
|
+
|
|
42628
42928
|
admin.Project = (function() {
|
|
42629
42929
|
|
|
42630
42930
|
/**
|
|
@@ -52031,6 +52331,39 @@
|
|
|
52031
52331
|
* @variation 2
|
|
52032
52332
|
*/
|
|
52033
52333
|
|
|
52334
|
+
/**
|
|
52335
|
+
* Callback as used by {@link flyteidl.service.AdminService#getDomains}.
|
|
52336
|
+
* @memberof flyteidl.service.AdminService
|
|
52337
|
+
* @typedef GetDomainsCallback
|
|
52338
|
+
* @type {function}
|
|
52339
|
+
* @param {Error|null} error Error, if any
|
|
52340
|
+
* @param {flyteidl.admin.GetDomainsResponse} [response] GetDomainsResponse
|
|
52341
|
+
*/
|
|
52342
|
+
|
|
52343
|
+
/**
|
|
52344
|
+
* Calls GetDomains.
|
|
52345
|
+
* @function getDomains
|
|
52346
|
+
* @memberof flyteidl.service.AdminService
|
|
52347
|
+
* @instance
|
|
52348
|
+
* @param {flyteidl.admin.IGetDomainRequest} request GetDomainRequest message or plain object
|
|
52349
|
+
* @param {flyteidl.service.AdminService.GetDomainsCallback} callback Node-style callback called with the error, if any, and GetDomainsResponse
|
|
52350
|
+
* @returns {undefined}
|
|
52351
|
+
* @variation 1
|
|
52352
|
+
*/
|
|
52353
|
+
Object.defineProperty(AdminService.prototype.getDomains = function getDomains(request, callback) {
|
|
52354
|
+
return this.rpcCall(getDomains, $root.flyteidl.admin.GetDomainRequest, $root.flyteidl.admin.GetDomainsResponse, request, callback);
|
|
52355
|
+
}, "name", { value: "GetDomains" });
|
|
52356
|
+
|
|
52357
|
+
/**
|
|
52358
|
+
* Calls GetDomains.
|
|
52359
|
+
* @function getDomains
|
|
52360
|
+
* @memberof flyteidl.service.AdminService
|
|
52361
|
+
* @instance
|
|
52362
|
+
* @param {flyteidl.admin.IGetDomainRequest} request GetDomainRequest message or plain object
|
|
52363
|
+
* @returns {Promise<flyteidl.admin.GetDomainsResponse>} Promise
|
|
52364
|
+
* @variation 2
|
|
52365
|
+
*/
|
|
52366
|
+
|
|
52034
52367
|
/**
|
|
52035
52368
|
* Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}.
|
|
52036
52369
|
* @memberof flyteidl.service.AdminService
|
package/package.json
CHANGED
|
@@ -331,7 +331,7 @@ message ExecutionSpec {
|
|
|
331
331
|
Envs envs = 23;
|
|
332
332
|
|
|
333
333
|
// Tags to be set for the execution.
|
|
334
|
-
repeated string tags = 24;
|
|
334
|
+
repeated string tags = 24 [deprecated = true];
|
|
335
335
|
|
|
336
336
|
// Execution cluster label to be set for the execution.
|
|
337
337
|
ExecutionClusterLabel execution_cluster_label = 25;
|
|
@@ -6,6 +6,9 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin
|
|
|
6
6
|
|
|
7
7
|
import "flyteidl/admin/common.proto";
|
|
8
8
|
|
|
9
|
+
// Empty request for GetDomain
|
|
10
|
+
message GetDomainRequest {}
|
|
11
|
+
|
|
9
12
|
// Namespace within a project commonly used to differentiate between different service instances.
|
|
10
13
|
// e.g. "production", "development", etc.
|
|
11
14
|
message Domain {
|
|
@@ -16,6 +19,10 @@ message Domain {
|
|
|
16
19
|
string name = 2;
|
|
17
20
|
}
|
|
18
21
|
|
|
22
|
+
// Represents a list of domains.
|
|
23
|
+
message GetDomainsResponse {
|
|
24
|
+
repeated Domain domains = 1;
|
|
25
|
+
}
|
|
19
26
|
|
|
20
27
|
// Top-level namespace used to classify different entities like workflows and executions.
|
|
21
28
|
message Project {
|
|
@@ -22,8 +22,9 @@ message ExecutionEnvAssignment {
|
|
|
22
22
|
|
|
23
23
|
// ExecutionEnv is a message that is used to specify the execution environment.
|
|
24
24
|
message ExecutionEnv {
|
|
25
|
-
//
|
|
26
|
-
|
|
25
|
+
// name is a human-readable identifier for the execution environment. This is combined with the
|
|
26
|
+
// project, domain, and version to uniquely identify an execution environment.
|
|
27
|
+
string name = 1;
|
|
27
28
|
|
|
28
29
|
// type is the type of the execution environment.
|
|
29
30
|
string type = 2;
|
|
@@ -36,4 +37,9 @@ message ExecutionEnv {
|
|
|
36
37
|
// spec is a specification of the environment.
|
|
37
38
|
google.protobuf.Struct spec = 4;
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
// version is the version of the execution environment. This may be used differently by each
|
|
42
|
+
// individual environment type (ex. auto-generated or manually provided), but is intended to
|
|
43
|
+
// allow variance in environment specifications with the same ID.
|
|
44
|
+
string version = 5;
|
|
39
45
|
}
|
|
@@ -114,6 +114,19 @@ message NodeExecutionEvent {
|
|
|
114
114
|
|
|
115
115
|
// Indicates if this node is an ArrayNode.
|
|
116
116
|
bool is_array = 22;
|
|
117
|
+
|
|
118
|
+
// So that Admin doesn't have to rebuild the node execution graph to find the target entity, propeller will fill this
|
|
119
|
+
// in optionally - currently this is only filled in for subworkflows. This is the ID of the subworkflow corresponding
|
|
120
|
+
// to this node execution. It is difficult to find because Admin only sees one node at a time. A subworkflow could be
|
|
121
|
+
// nested multiple layers deep, and you'd need to access the correct workflow template to know the target subworkflow.
|
|
122
|
+
core.Identifier target_entity = 23;
|
|
123
|
+
|
|
124
|
+
// Tasks and subworkflows (but not launch plans) that are run within a dynamic task are effectively independent of
|
|
125
|
+
// the tasks that are registered in Admin's db. Confusingly, they are often identical, but sometimes they are not
|
|
126
|
+
// even registered at all. Similar to the target_entity field, at the time Admin receives this event, it has no idea
|
|
127
|
+
// if the relevant execution entity is was registered, or dynamic. This field indicates that the target_entity ID,
|
|
128
|
+
// as well as task IDs in any corresponding Task Executions, should not be used to looked up the task in Admin's db.
|
|
129
|
+
bool is_in_dynamic_chain = 24;
|
|
117
130
|
}
|
|
118
131
|
|
|
119
132
|
// For Workflow Nodes we need to send information about the workflow that's launched
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package flyteidl.plugins;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
6
|
+
|
|
7
|
+
import "flyteidl/core/tasks.proto";
|
|
8
|
+
|
|
9
|
+
enum RestartPolicy {
|
|
10
|
+
RESTART_POLICY_NEVER = 0;
|
|
11
|
+
RESTART_POLICY_ON_FAILURE = 1;
|
|
12
|
+
RESTART_POLICY_ALWAYS = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message CommonReplicaSpec {
|
|
16
|
+
// Number of replicas
|
|
17
|
+
int32 replicas = 1;
|
|
18
|
+
|
|
19
|
+
// Image used for the replica group
|
|
20
|
+
string image = 2;
|
|
21
|
+
|
|
22
|
+
// Resources required for the replica group
|
|
23
|
+
core.Resources resources = 3;
|
|
24
|
+
|
|
25
|
+
// RestartPolicy determines whether pods will be restarted when they exit
|
|
26
|
+
RestartPolicy restart_policy = 4;
|
|
27
|
+
}
|
|
@@ -2,14 +2,9 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package flyteidl.plugins.kubeflow;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
5
|
+
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
enum RestartPolicy {
|
|
9
|
-
RESTART_POLICY_NEVER = 0;
|
|
10
|
-
RESTART_POLICY_ON_FAILURE = 1;
|
|
11
|
-
RESTART_POLICY_ALWAYS = 2;
|
|
12
|
-
}
|
|
7
|
+
import public "flyteidl/plugins/common.proto";
|
|
13
8
|
|
|
14
9
|
enum CleanPodPolicy {
|
|
15
10
|
CLEANPOD_POLICY_NONE = 0;
|
|
@@ -30,4 +25,4 @@ message RunPolicy {
|
|
|
30
25
|
|
|
31
26
|
// Number of retries before marking this job failed.
|
|
32
27
|
int32 backoff_limit = 4;
|
|
33
|
-
}
|
|
28
|
+
}
|
|
@@ -2,7 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package flyteidl.plugins.kubeflow;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
5
|
+
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow";
|
|
6
6
|
|
|
7
7
|
import "flyteidl/core/tasks.proto";
|
|
8
8
|
import "flyteidl/plugins/kubeflow/common.proto";
|
|
@@ -26,18 +26,22 @@ message DistributedMPITrainingTask {
|
|
|
26
26
|
|
|
27
27
|
// Replica specification for distributed MPI training
|
|
28
28
|
message DistributedMPITrainingReplicaSpec {
|
|
29
|
+
// 1~4 deprecated. Use common instead.
|
|
29
30
|
// Number of replicas
|
|
30
|
-
int32 replicas = 1;
|
|
31
|
+
int32 replicas = 1 [deprecated = true];
|
|
31
32
|
|
|
32
33
|
// Image used for the replica group
|
|
33
|
-
string image = 2;
|
|
34
|
+
string image = 2 [deprecated = true];
|
|
34
35
|
|
|
35
36
|
// Resources required for the replica group
|
|
36
|
-
core.Resources resources = 3;
|
|
37
|
-
|
|
37
|
+
core.Resources resources = 3 [deprecated = true];
|
|
38
|
+
|
|
38
39
|
// Restart policy determines whether pods will be restarted when they exit
|
|
39
|
-
RestartPolicy restart_policy = 4;
|
|
40
|
+
RestartPolicy restart_policy = 4 [deprecated = true];
|
|
40
41
|
|
|
41
42
|
// MPI sometimes requires different command set for different replica groups
|
|
42
43
|
repeated string command = 5;
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
// The common replica spec
|
|
46
|
+
CommonReplicaSpec common = 6;
|
|
47
|
+
}
|
|
@@ -2,7 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package flyteidl.plugins.kubeflow;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
5
|
+
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow";
|
|
6
6
|
|
|
7
7
|
import "flyteidl/core/tasks.proto";
|
|
8
8
|
import "flyteidl/plugins/kubeflow/common.proto";
|
|
@@ -35,15 +35,19 @@ message DistributedPyTorchTrainingTask {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
message DistributedPyTorchTrainingReplicaSpec {
|
|
38
|
+
// 1~4 deprecated. Use common instead.
|
|
38
39
|
// Number of replicas
|
|
39
|
-
int32 replicas = 1;
|
|
40
|
+
int32 replicas = 1 [deprecated = true];
|
|
40
41
|
|
|
41
42
|
// Image used for the replica group
|
|
42
|
-
string image = 2;
|
|
43
|
+
string image = 2 [deprecated = true];
|
|
43
44
|
|
|
44
45
|
// Resources required for the replica group
|
|
45
|
-
core.Resources resources = 3;
|
|
46
|
-
|
|
47
|
-
//
|
|
48
|
-
RestartPolicy restart_policy = 4;
|
|
46
|
+
core.Resources resources = 3 [deprecated = true];
|
|
47
|
+
|
|
48
|
+
// Restart policy determines whether pods will be restarted when they exit
|
|
49
|
+
RestartPolicy restart_policy = 4 [deprecated = true];
|
|
50
|
+
|
|
51
|
+
// The common replica spec
|
|
52
|
+
CommonReplicaSpec common = 5;
|
|
49
53
|
}
|
|
@@ -2,7 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package flyteidl.plugins.kubeflow;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
5
|
+
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow";
|
|
6
6
|
|
|
7
7
|
import "flyteidl/core/tasks.proto";
|
|
8
8
|
import "flyteidl/plugins/kubeflow/common.proto";
|
|
@@ -28,15 +28,19 @@ message DistributedTensorflowTrainingTask {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message DistributedTensorflowTrainingReplicaSpec {
|
|
31
|
+
// 1~4 deprecated. Use common instead.
|
|
31
32
|
// Number of replicas
|
|
32
|
-
int32 replicas = 1;
|
|
33
|
+
int32 replicas = 1 [deprecated = true];
|
|
33
34
|
|
|
34
35
|
// Image used for the replica group
|
|
35
|
-
string image = 2;
|
|
36
|
+
string image = 2 [deprecated = true];
|
|
36
37
|
|
|
37
38
|
// Resources required for the replica group
|
|
38
|
-
core.Resources resources = 3;
|
|
39
|
+
core.Resources resources = 3 [deprecated = true];
|
|
39
40
|
|
|
40
|
-
//
|
|
41
|
-
RestartPolicy restart_policy = 4;
|
|
41
|
+
// Restart policy determines whether pods will be restarted when they exit
|
|
42
|
+
RestartPolicy restart_policy = 4 [deprecated = true];
|
|
43
|
+
|
|
44
|
+
// The common replica spec
|
|
45
|
+
CommonReplicaSpec common = 5;
|
|
42
46
|
}
|
|
@@ -415,6 +415,15 @@ service AdminService {
|
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
+
rpc GetDomains (flyteidl.admin.GetDomainRequest) returns (flyteidl.admin.GetDomainsResponse) {
|
|
419
|
+
option (google.api.http) = {
|
|
420
|
+
get: "/api/v1/domains"
|
|
421
|
+
};
|
|
422
|
+
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
|
423
|
+
// description: "Fetch registered domains."
|
|
424
|
+
// };
|
|
425
|
+
}
|
|
426
|
+
|
|
418
427
|
// Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.
|
|
419
428
|
rpc CreateWorkflowEvent (flyteidl.admin.WorkflowExecutionEventRequest) returns (flyteidl.admin.WorkflowExecutionEventResponse) {
|
|
420
429
|
option (google.api.http) = {
|