@flyteorg/flyteidl 1.3.14 → 1.3.16

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.
@@ -19437,6 +19437,438 @@ export namespace flyteidl {
19437
19437
  type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void;
19438
19438
  }
19439
19439
 
19440
+ /** Represents an ExternalPluginService */
19441
+ class ExternalPluginService extends $protobuf.rpc.Service {
19442
+
19443
+ /**
19444
+ * Constructs a new ExternalPluginService service.
19445
+ * @param rpcImpl RPC implementation
19446
+ * @param [requestDelimited=false] Whether requests are length-delimited
19447
+ * @param [responseDelimited=false] Whether responses are length-delimited
19448
+ */
19449
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
19450
+
19451
+ /**
19452
+ * Creates new ExternalPluginService service using the specified rpc implementation.
19453
+ * @param rpcImpl RPC implementation
19454
+ * @param [requestDelimited=false] Whether requests are length-delimited
19455
+ * @param [responseDelimited=false] Whether responses are length-delimited
19456
+ * @returns RPC service. Useful where requests and/or responses are streamed.
19457
+ */
19458
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService;
19459
+
19460
+ /**
19461
+ * Calls CreateTask.
19462
+ * @param request TaskCreateRequest message or plain object
19463
+ * @param callback Node-style callback called with the error, if any, and TaskCreateResponse
19464
+ */
19465
+ public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void;
19466
+
19467
+ /**
19468
+ * Calls CreateTask.
19469
+ * @param request TaskCreateRequest message or plain object
19470
+ * @returns Promise
19471
+ */
19472
+ public createTask(request: flyteidl.service.ITaskCreateRequest): Promise<flyteidl.service.TaskCreateResponse>;
19473
+
19474
+ /**
19475
+ * Calls GetTask.
19476
+ * @param request TaskGetRequest message or plain object
19477
+ * @param callback Node-style callback called with the error, if any, and TaskGetResponse
19478
+ */
19479
+ public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.ExternalPluginService.GetTaskCallback): void;
19480
+
19481
+ /**
19482
+ * Calls GetTask.
19483
+ * @param request TaskGetRequest message or plain object
19484
+ * @returns Promise
19485
+ */
19486
+ public getTask(request: flyteidl.service.ITaskGetRequest): Promise<flyteidl.service.TaskGetResponse>;
19487
+
19488
+ /**
19489
+ * Calls DeleteTask.
19490
+ * @param request TaskDeleteRequest message or plain object
19491
+ * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse
19492
+ */
19493
+ public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.ExternalPluginService.DeleteTaskCallback): void;
19494
+
19495
+ /**
19496
+ * Calls DeleteTask.
19497
+ * @param request TaskDeleteRequest message or plain object
19498
+ * @returns Promise
19499
+ */
19500
+ public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise<flyteidl.service.TaskDeleteResponse>;
19501
+ }
19502
+
19503
+ namespace ExternalPluginService {
19504
+
19505
+ /**
19506
+ * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}.
19507
+ * @param error Error, if any
19508
+ * @param [response] TaskCreateResponse
19509
+ */
19510
+ type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void;
19511
+
19512
+ /**
19513
+ * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}.
19514
+ * @param error Error, if any
19515
+ * @param [response] TaskGetResponse
19516
+ */
19517
+ type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void;
19518
+
19519
+ /**
19520
+ * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}.
19521
+ * @param error Error, if any
19522
+ * @param [response] TaskDeleteResponse
19523
+ */
19524
+ type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void;
19525
+ }
19526
+
19527
+ /** State enum. */
19528
+ enum State {
19529
+ RETRYABLE_FAILURE = 0,
19530
+ PERMANENT_FAILURE = 1,
19531
+ PENDING = 2,
19532
+ RUNNING = 3,
19533
+ SUCCEEDED = 4
19534
+ }
19535
+
19536
+ /** Properties of a TaskCreateRequest. */
19537
+ interface ITaskCreateRequest {
19538
+
19539
+ /** TaskCreateRequest inputs */
19540
+ inputs?: (flyteidl.core.ILiteralMap|null);
19541
+
19542
+ /** TaskCreateRequest template */
19543
+ template?: (flyteidl.core.ITaskTemplate|null);
19544
+
19545
+ /** TaskCreateRequest outputPrefix */
19546
+ outputPrefix?: (string|null);
19547
+ }
19548
+
19549
+ /** Represents a TaskCreateRequest. */
19550
+ class TaskCreateRequest implements ITaskCreateRequest {
19551
+
19552
+ /**
19553
+ * Constructs a new TaskCreateRequest.
19554
+ * @param [properties] Properties to set
19555
+ */
19556
+ constructor(properties?: flyteidl.service.ITaskCreateRequest);
19557
+
19558
+ /** TaskCreateRequest inputs. */
19559
+ public inputs?: (flyteidl.core.ILiteralMap|null);
19560
+
19561
+ /** TaskCreateRequest template. */
19562
+ public template?: (flyteidl.core.ITaskTemplate|null);
19563
+
19564
+ /** TaskCreateRequest outputPrefix. */
19565
+ public outputPrefix: string;
19566
+
19567
+ /**
19568
+ * Creates a new TaskCreateRequest instance using the specified properties.
19569
+ * @param [properties] Properties to set
19570
+ * @returns TaskCreateRequest instance
19571
+ */
19572
+ public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest;
19573
+
19574
+ /**
19575
+ * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages.
19576
+ * @param message TaskCreateRequest message or plain object to encode
19577
+ * @param [writer] Writer to encode to
19578
+ * @returns Writer
19579
+ */
19580
+ public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19581
+
19582
+ /**
19583
+ * Decodes a TaskCreateRequest message from the specified reader or buffer.
19584
+ * @param reader Reader or buffer to decode from
19585
+ * @param [length] Message length if known beforehand
19586
+ * @returns TaskCreateRequest
19587
+ * @throws {Error} If the payload is not a reader or valid buffer
19588
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19589
+ */
19590
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest;
19591
+
19592
+ /**
19593
+ * Verifies a TaskCreateRequest message.
19594
+ * @param message Plain object to verify
19595
+ * @returns `null` if valid, otherwise the reason why it is not
19596
+ */
19597
+ public static verify(message: { [k: string]: any }): (string|null);
19598
+ }
19599
+
19600
+ /** Properties of a TaskCreateResponse. */
19601
+ interface ITaskCreateResponse {
19602
+
19603
+ /** TaskCreateResponse jobId */
19604
+ jobId?: (string|null);
19605
+ }
19606
+
19607
+ /** Represents a TaskCreateResponse. */
19608
+ class TaskCreateResponse implements ITaskCreateResponse {
19609
+
19610
+ /**
19611
+ * Constructs a new TaskCreateResponse.
19612
+ * @param [properties] Properties to set
19613
+ */
19614
+ constructor(properties?: flyteidl.service.ITaskCreateResponse);
19615
+
19616
+ /** TaskCreateResponse jobId. */
19617
+ public jobId: string;
19618
+
19619
+ /**
19620
+ * Creates a new TaskCreateResponse instance using the specified properties.
19621
+ * @param [properties] Properties to set
19622
+ * @returns TaskCreateResponse instance
19623
+ */
19624
+ public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse;
19625
+
19626
+ /**
19627
+ * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages.
19628
+ * @param message TaskCreateResponse message or plain object to encode
19629
+ * @param [writer] Writer to encode to
19630
+ * @returns Writer
19631
+ */
19632
+ public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19633
+
19634
+ /**
19635
+ * Decodes a TaskCreateResponse message from the specified reader or buffer.
19636
+ * @param reader Reader or buffer to decode from
19637
+ * @param [length] Message length if known beforehand
19638
+ * @returns TaskCreateResponse
19639
+ * @throws {Error} If the payload is not a reader or valid buffer
19640
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19641
+ */
19642
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse;
19643
+
19644
+ /**
19645
+ * Verifies a TaskCreateResponse message.
19646
+ * @param message Plain object to verify
19647
+ * @returns `null` if valid, otherwise the reason why it is not
19648
+ */
19649
+ public static verify(message: { [k: string]: any }): (string|null);
19650
+ }
19651
+
19652
+ /** Properties of a TaskGetRequest. */
19653
+ interface ITaskGetRequest {
19654
+
19655
+ /** TaskGetRequest taskType */
19656
+ taskType?: (string|null);
19657
+
19658
+ /** TaskGetRequest jobId */
19659
+ jobId?: (string|null);
19660
+ }
19661
+
19662
+ /** Represents a TaskGetRequest. */
19663
+ class TaskGetRequest implements ITaskGetRequest {
19664
+
19665
+ /**
19666
+ * Constructs a new TaskGetRequest.
19667
+ * @param [properties] Properties to set
19668
+ */
19669
+ constructor(properties?: flyteidl.service.ITaskGetRequest);
19670
+
19671
+ /** TaskGetRequest taskType. */
19672
+ public taskType: string;
19673
+
19674
+ /** TaskGetRequest jobId. */
19675
+ public jobId: string;
19676
+
19677
+ /**
19678
+ * Creates a new TaskGetRequest instance using the specified properties.
19679
+ * @param [properties] Properties to set
19680
+ * @returns TaskGetRequest instance
19681
+ */
19682
+ public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest;
19683
+
19684
+ /**
19685
+ * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages.
19686
+ * @param message TaskGetRequest message or plain object to encode
19687
+ * @param [writer] Writer to encode to
19688
+ * @returns Writer
19689
+ */
19690
+ public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19691
+
19692
+ /**
19693
+ * Decodes a TaskGetRequest message from the specified reader or buffer.
19694
+ * @param reader Reader or buffer to decode from
19695
+ * @param [length] Message length if known beforehand
19696
+ * @returns TaskGetRequest
19697
+ * @throws {Error} If the payload is not a reader or valid buffer
19698
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19699
+ */
19700
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest;
19701
+
19702
+ /**
19703
+ * Verifies a TaskGetRequest message.
19704
+ * @param message Plain object to verify
19705
+ * @returns `null` if valid, otherwise the reason why it is not
19706
+ */
19707
+ public static verify(message: { [k: string]: any }): (string|null);
19708
+ }
19709
+
19710
+ /** Properties of a TaskGetResponse. */
19711
+ interface ITaskGetResponse {
19712
+
19713
+ /** TaskGetResponse state */
19714
+ state?: (flyteidl.service.State|null);
19715
+
19716
+ /** TaskGetResponse outputs */
19717
+ outputs?: (flyteidl.core.ILiteralMap|null);
19718
+ }
19719
+
19720
+ /** Represents a TaskGetResponse. */
19721
+ class TaskGetResponse implements ITaskGetResponse {
19722
+
19723
+ /**
19724
+ * Constructs a new TaskGetResponse.
19725
+ * @param [properties] Properties to set
19726
+ */
19727
+ constructor(properties?: flyteidl.service.ITaskGetResponse);
19728
+
19729
+ /** TaskGetResponse state. */
19730
+ public state: flyteidl.service.State;
19731
+
19732
+ /** TaskGetResponse outputs. */
19733
+ public outputs?: (flyteidl.core.ILiteralMap|null);
19734
+
19735
+ /**
19736
+ * Creates a new TaskGetResponse instance using the specified properties.
19737
+ * @param [properties] Properties to set
19738
+ * @returns TaskGetResponse instance
19739
+ */
19740
+ public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse;
19741
+
19742
+ /**
19743
+ * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages.
19744
+ * @param message TaskGetResponse message or plain object to encode
19745
+ * @param [writer] Writer to encode to
19746
+ * @returns Writer
19747
+ */
19748
+ public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19749
+
19750
+ /**
19751
+ * Decodes a TaskGetResponse message from the specified reader or buffer.
19752
+ * @param reader Reader or buffer to decode from
19753
+ * @param [length] Message length if known beforehand
19754
+ * @returns TaskGetResponse
19755
+ * @throws {Error} If the payload is not a reader or valid buffer
19756
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19757
+ */
19758
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse;
19759
+
19760
+ /**
19761
+ * Verifies a TaskGetResponse message.
19762
+ * @param message Plain object to verify
19763
+ * @returns `null` if valid, otherwise the reason why it is not
19764
+ */
19765
+ public static verify(message: { [k: string]: any }): (string|null);
19766
+ }
19767
+
19768
+ /** Properties of a TaskDeleteRequest. */
19769
+ interface ITaskDeleteRequest {
19770
+
19771
+ /** TaskDeleteRequest taskType */
19772
+ taskType?: (string|null);
19773
+
19774
+ /** TaskDeleteRequest jobId */
19775
+ jobId?: (string|null);
19776
+ }
19777
+
19778
+ /** Represents a TaskDeleteRequest. */
19779
+ class TaskDeleteRequest implements ITaskDeleteRequest {
19780
+
19781
+ /**
19782
+ * Constructs a new TaskDeleteRequest.
19783
+ * @param [properties] Properties to set
19784
+ */
19785
+ constructor(properties?: flyteidl.service.ITaskDeleteRequest);
19786
+
19787
+ /** TaskDeleteRequest taskType. */
19788
+ public taskType: string;
19789
+
19790
+ /** TaskDeleteRequest jobId. */
19791
+ public jobId: string;
19792
+
19793
+ /**
19794
+ * Creates a new TaskDeleteRequest instance using the specified properties.
19795
+ * @param [properties] Properties to set
19796
+ * @returns TaskDeleteRequest instance
19797
+ */
19798
+ public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest;
19799
+
19800
+ /**
19801
+ * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages.
19802
+ * @param message TaskDeleteRequest message or plain object to encode
19803
+ * @param [writer] Writer to encode to
19804
+ * @returns Writer
19805
+ */
19806
+ public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19807
+
19808
+ /**
19809
+ * Decodes a TaskDeleteRequest message from the specified reader or buffer.
19810
+ * @param reader Reader or buffer to decode from
19811
+ * @param [length] Message length if known beforehand
19812
+ * @returns TaskDeleteRequest
19813
+ * @throws {Error} If the payload is not a reader or valid buffer
19814
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19815
+ */
19816
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest;
19817
+
19818
+ /**
19819
+ * Verifies a TaskDeleteRequest message.
19820
+ * @param message Plain object to verify
19821
+ * @returns `null` if valid, otherwise the reason why it is not
19822
+ */
19823
+ public static verify(message: { [k: string]: any }): (string|null);
19824
+ }
19825
+
19826
+ /** Properties of a TaskDeleteResponse. */
19827
+ interface ITaskDeleteResponse {
19828
+ }
19829
+
19830
+ /** Represents a TaskDeleteResponse. */
19831
+ class TaskDeleteResponse implements ITaskDeleteResponse {
19832
+
19833
+ /**
19834
+ * Constructs a new TaskDeleteResponse.
19835
+ * @param [properties] Properties to set
19836
+ */
19837
+ constructor(properties?: flyteidl.service.ITaskDeleteResponse);
19838
+
19839
+ /**
19840
+ * Creates a new TaskDeleteResponse instance using the specified properties.
19841
+ * @param [properties] Properties to set
19842
+ * @returns TaskDeleteResponse instance
19843
+ */
19844
+ public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse;
19845
+
19846
+ /**
19847
+ * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages.
19848
+ * @param message TaskDeleteResponse message or plain object to encode
19849
+ * @param [writer] Writer to encode to
19850
+ * @returns Writer
19851
+ */
19852
+ public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19853
+
19854
+ /**
19855
+ * Decodes a TaskDeleteResponse message from the specified reader or buffer.
19856
+ * @param reader Reader or buffer to decode from
19857
+ * @param [length] Message length if known beforehand
19858
+ * @returns TaskDeleteResponse
19859
+ * @throws {Error} If the payload is not a reader or valid buffer
19860
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19861
+ */
19862
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse;
19863
+
19864
+ /**
19865
+ * Verifies a TaskDeleteResponse message.
19866
+ * @param message Plain object to verify
19867
+ * @returns `null` if valid, otherwise the reason why it is not
19868
+ */
19869
+ public static verify(message: { [k: string]: any }): (string|null);
19870
+ }
19871
+
19440
19872
  /** Properties of a UserInfoRequest. */
19441
19873
  interface IUserInfoRequest {
19442
19874
  }