@flyteorg/flyteidl 0.24.2 → 0.24.3

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.
@@ -16904,6 +16904,185 @@ export namespace flyteidl {
16904
16904
  type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void;
16905
16905
  }
16906
16906
 
16907
+ /** Properties of a CreateUploadLocationResponse. */
16908
+ interface ICreateUploadLocationResponse {
16909
+
16910
+ /** CreateUploadLocationResponse signedUrl */
16911
+ signedUrl?: (string|null);
16912
+
16913
+ /** CreateUploadLocationResponse nativeUrl */
16914
+ nativeUrl?: (string|null);
16915
+
16916
+ /** CreateUploadLocationResponse expiresAt */
16917
+ expiresAt?: (google.protobuf.ITimestamp|null);
16918
+ }
16919
+
16920
+ /** Represents a CreateUploadLocationResponse. */
16921
+ class CreateUploadLocationResponse implements ICreateUploadLocationResponse {
16922
+
16923
+ /**
16924
+ * Constructs a new CreateUploadLocationResponse.
16925
+ * @param [properties] Properties to set
16926
+ */
16927
+ constructor(properties?: flyteidl.service.ICreateUploadLocationResponse);
16928
+
16929
+ /** CreateUploadLocationResponse signedUrl. */
16930
+ public signedUrl: string;
16931
+
16932
+ /** CreateUploadLocationResponse nativeUrl. */
16933
+ public nativeUrl: string;
16934
+
16935
+ /** CreateUploadLocationResponse expiresAt. */
16936
+ public expiresAt?: (google.protobuf.ITimestamp|null);
16937
+
16938
+ /**
16939
+ * Creates a new CreateUploadLocationResponse instance using the specified properties.
16940
+ * @param [properties] Properties to set
16941
+ * @returns CreateUploadLocationResponse instance
16942
+ */
16943
+ public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse;
16944
+
16945
+ /**
16946
+ * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages.
16947
+ * @param message CreateUploadLocationResponse message or plain object to encode
16948
+ * @param [writer] Writer to encode to
16949
+ * @returns Writer
16950
+ */
16951
+ public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
16952
+
16953
+ /**
16954
+ * Decodes a CreateUploadLocationResponse message from the specified reader or buffer.
16955
+ * @param reader Reader or buffer to decode from
16956
+ * @param [length] Message length if known beforehand
16957
+ * @returns CreateUploadLocationResponse
16958
+ * @throws {Error} If the payload is not a reader or valid buffer
16959
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16960
+ */
16961
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse;
16962
+
16963
+ /**
16964
+ * Verifies a CreateUploadLocationResponse message.
16965
+ * @param message Plain object to verify
16966
+ * @returns `null` if valid, otherwise the reason why it is not
16967
+ */
16968
+ public static verify(message: { [k: string]: any }): (string|null);
16969
+ }
16970
+
16971
+ /** Properties of a CreateUploadLocationRequest. */
16972
+ interface ICreateUploadLocationRequest {
16973
+
16974
+ /** CreateUploadLocationRequest project */
16975
+ project?: (string|null);
16976
+
16977
+ /** CreateUploadLocationRequest domain */
16978
+ domain?: (string|null);
16979
+
16980
+ /** CreateUploadLocationRequest suffix */
16981
+ suffix?: (string|null);
16982
+
16983
+ /** CreateUploadLocationRequest expiresIn */
16984
+ expiresIn?: (google.protobuf.IDuration|null);
16985
+ }
16986
+
16987
+ /** Represents a CreateUploadLocationRequest. */
16988
+ class CreateUploadLocationRequest implements ICreateUploadLocationRequest {
16989
+
16990
+ /**
16991
+ * Constructs a new CreateUploadLocationRequest.
16992
+ * @param [properties] Properties to set
16993
+ */
16994
+ constructor(properties?: flyteidl.service.ICreateUploadLocationRequest);
16995
+
16996
+ /** CreateUploadLocationRequest project. */
16997
+ public project: string;
16998
+
16999
+ /** CreateUploadLocationRequest domain. */
17000
+ public domain: string;
17001
+
17002
+ /** CreateUploadLocationRequest suffix. */
17003
+ public suffix: string;
17004
+
17005
+ /** CreateUploadLocationRequest expiresIn. */
17006
+ public expiresIn?: (google.protobuf.IDuration|null);
17007
+
17008
+ /**
17009
+ * Creates a new CreateUploadLocationRequest instance using the specified properties.
17010
+ * @param [properties] Properties to set
17011
+ * @returns CreateUploadLocationRequest instance
17012
+ */
17013
+ public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest;
17014
+
17015
+ /**
17016
+ * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages.
17017
+ * @param message CreateUploadLocationRequest message or plain object to encode
17018
+ * @param [writer] Writer to encode to
17019
+ * @returns Writer
17020
+ */
17021
+ public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
17022
+
17023
+ /**
17024
+ * Decodes a CreateUploadLocationRequest message from the specified reader or buffer.
17025
+ * @param reader Reader or buffer to decode from
17026
+ * @param [length] Message length if known beforehand
17027
+ * @returns CreateUploadLocationRequest
17028
+ * @throws {Error} If the payload is not a reader or valid buffer
17029
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17030
+ */
17031
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest;
17032
+
17033
+ /**
17034
+ * Verifies a CreateUploadLocationRequest message.
17035
+ * @param message Plain object to verify
17036
+ * @returns `null` if valid, otherwise the reason why it is not
17037
+ */
17038
+ public static verify(message: { [k: string]: any }): (string|null);
17039
+ }
17040
+
17041
+ /** Represents a DataProxy */
17042
+ class DataProxy extends $protobuf.rpc.Service {
17043
+
17044
+ /**
17045
+ * Constructs a new DataProxy service.
17046
+ * @param rpcImpl RPC implementation
17047
+ * @param [requestDelimited=false] Whether requests are length-delimited
17048
+ * @param [responseDelimited=false] Whether responses are length-delimited
17049
+ */
17050
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
17051
+
17052
+ /**
17053
+ * Creates new DataProxy service using the specified rpc implementation.
17054
+ * @param rpcImpl RPC implementation
17055
+ * @param [requestDelimited=false] Whether requests are length-delimited
17056
+ * @param [responseDelimited=false] Whether responses are length-delimited
17057
+ * @returns RPC service. Useful where requests and/or responses are streamed.
17058
+ */
17059
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxy;
17060
+
17061
+ /**
17062
+ * Calls CreateUploadLocation.
17063
+ * @param request CreateUploadLocationRequest message or plain object
17064
+ * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse
17065
+ */
17066
+ public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxy.CreateUploadLocationCallback): void;
17067
+
17068
+ /**
17069
+ * Calls CreateUploadLocation.
17070
+ * @param request CreateUploadLocationRequest message or plain object
17071
+ * @returns Promise
17072
+ */
17073
+ public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise<flyteidl.service.CreateUploadLocationResponse>;
17074
+ }
17075
+
17076
+ namespace DataProxy {
17077
+
17078
+ /**
17079
+ * Callback as used by {@link flyteidl.service.DataProxy#createUploadLocation}.
17080
+ * @param error Error, if any
17081
+ * @param [response] CreateUploadLocationResponse
17082
+ */
17083
+ type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void;
17084
+ }
17085
+
16907
17086
  /** Properties of a UserInfoRequest. */
16908
17087
  interface IUserInfoRequest {
16909
17088
  }
@@ -39331,6 +39331,383 @@ export const flyteidl = $root.flyteidl = (() => {
39331
39331
  return AuthMetadataService;
39332
39332
  })();
39333
39333
 
39334
+ service.CreateUploadLocationResponse = (function() {
39335
+
39336
+ /**
39337
+ * Properties of a CreateUploadLocationResponse.
39338
+ * @memberof flyteidl.service
39339
+ * @interface ICreateUploadLocationResponse
39340
+ * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl
39341
+ * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl
39342
+ * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt
39343
+ */
39344
+
39345
+ /**
39346
+ * Constructs a new CreateUploadLocationResponse.
39347
+ * @memberof flyteidl.service
39348
+ * @classdesc Represents a CreateUploadLocationResponse.
39349
+ * @implements ICreateUploadLocationResponse
39350
+ * @constructor
39351
+ * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set
39352
+ */
39353
+ function CreateUploadLocationResponse(properties) {
39354
+ if (properties)
39355
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39356
+ if (properties[keys[i]] != null)
39357
+ this[keys[i]] = properties[keys[i]];
39358
+ }
39359
+
39360
+ /**
39361
+ * CreateUploadLocationResponse signedUrl.
39362
+ * @member {string} signedUrl
39363
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39364
+ * @instance
39365
+ */
39366
+ CreateUploadLocationResponse.prototype.signedUrl = "";
39367
+
39368
+ /**
39369
+ * CreateUploadLocationResponse nativeUrl.
39370
+ * @member {string} nativeUrl
39371
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39372
+ * @instance
39373
+ */
39374
+ CreateUploadLocationResponse.prototype.nativeUrl = "";
39375
+
39376
+ /**
39377
+ * CreateUploadLocationResponse expiresAt.
39378
+ * @member {google.protobuf.ITimestamp|null|undefined} expiresAt
39379
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39380
+ * @instance
39381
+ */
39382
+ CreateUploadLocationResponse.prototype.expiresAt = null;
39383
+
39384
+ /**
39385
+ * Creates a new CreateUploadLocationResponse instance using the specified properties.
39386
+ * @function create
39387
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39388
+ * @static
39389
+ * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set
39390
+ * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance
39391
+ */
39392
+ CreateUploadLocationResponse.create = function create(properties) {
39393
+ return new CreateUploadLocationResponse(properties);
39394
+ };
39395
+
39396
+ /**
39397
+ * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages.
39398
+ * @function encode
39399
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39400
+ * @static
39401
+ * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode
39402
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39403
+ * @returns {$protobuf.Writer} Writer
39404
+ */
39405
+ CreateUploadLocationResponse.encode = function encode(message, writer) {
39406
+ if (!writer)
39407
+ writer = $Writer.create();
39408
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
39409
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl);
39410
+ if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl"))
39411
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl);
39412
+ if (message.expiresAt != null && message.hasOwnProperty("expiresAt"))
39413
+ $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
39414
+ return writer;
39415
+ };
39416
+
39417
+ /**
39418
+ * Decodes a CreateUploadLocationResponse message from the specified reader or buffer.
39419
+ * @function decode
39420
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39421
+ * @static
39422
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39423
+ * @param {number} [length] Message length if known beforehand
39424
+ * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse
39425
+ * @throws {Error} If the payload is not a reader or valid buffer
39426
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39427
+ */
39428
+ CreateUploadLocationResponse.decode = function decode(reader, length) {
39429
+ if (!(reader instanceof $Reader))
39430
+ reader = $Reader.create(reader);
39431
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse();
39432
+ while (reader.pos < end) {
39433
+ let tag = reader.uint32();
39434
+ switch (tag >>> 3) {
39435
+ case 1:
39436
+ message.signedUrl = reader.string();
39437
+ break;
39438
+ case 2:
39439
+ message.nativeUrl = reader.string();
39440
+ break;
39441
+ case 3:
39442
+ message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
39443
+ break;
39444
+ default:
39445
+ reader.skipType(tag & 7);
39446
+ break;
39447
+ }
39448
+ }
39449
+ return message;
39450
+ };
39451
+
39452
+ /**
39453
+ * Verifies a CreateUploadLocationResponse message.
39454
+ * @function verify
39455
+ * @memberof flyteidl.service.CreateUploadLocationResponse
39456
+ * @static
39457
+ * @param {Object.<string,*>} message Plain object to verify
39458
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39459
+ */
39460
+ CreateUploadLocationResponse.verify = function verify(message) {
39461
+ if (typeof message !== "object" || message === null)
39462
+ return "object expected";
39463
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
39464
+ if (!$util.isString(message.signedUrl))
39465
+ return "signedUrl: string expected";
39466
+ if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl"))
39467
+ if (!$util.isString(message.nativeUrl))
39468
+ return "nativeUrl: string expected";
39469
+ if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) {
39470
+ let error = $root.google.protobuf.Timestamp.verify(message.expiresAt);
39471
+ if (error)
39472
+ return "expiresAt." + error;
39473
+ }
39474
+ return null;
39475
+ };
39476
+
39477
+ return CreateUploadLocationResponse;
39478
+ })();
39479
+
39480
+ service.CreateUploadLocationRequest = (function() {
39481
+
39482
+ /**
39483
+ * Properties of a CreateUploadLocationRequest.
39484
+ * @memberof flyteidl.service
39485
+ * @interface ICreateUploadLocationRequest
39486
+ * @property {string|null} [project] CreateUploadLocationRequest project
39487
+ * @property {string|null} [domain] CreateUploadLocationRequest domain
39488
+ * @property {string|null} [suffix] CreateUploadLocationRequest suffix
39489
+ * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn
39490
+ */
39491
+
39492
+ /**
39493
+ * Constructs a new CreateUploadLocationRequest.
39494
+ * @memberof flyteidl.service
39495
+ * @classdesc Represents a CreateUploadLocationRequest.
39496
+ * @implements ICreateUploadLocationRequest
39497
+ * @constructor
39498
+ * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set
39499
+ */
39500
+ function CreateUploadLocationRequest(properties) {
39501
+ if (properties)
39502
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39503
+ if (properties[keys[i]] != null)
39504
+ this[keys[i]] = properties[keys[i]];
39505
+ }
39506
+
39507
+ /**
39508
+ * CreateUploadLocationRequest project.
39509
+ * @member {string} project
39510
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39511
+ * @instance
39512
+ */
39513
+ CreateUploadLocationRequest.prototype.project = "";
39514
+
39515
+ /**
39516
+ * CreateUploadLocationRequest domain.
39517
+ * @member {string} domain
39518
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39519
+ * @instance
39520
+ */
39521
+ CreateUploadLocationRequest.prototype.domain = "";
39522
+
39523
+ /**
39524
+ * CreateUploadLocationRequest suffix.
39525
+ * @member {string} suffix
39526
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39527
+ * @instance
39528
+ */
39529
+ CreateUploadLocationRequest.prototype.suffix = "";
39530
+
39531
+ /**
39532
+ * CreateUploadLocationRequest expiresIn.
39533
+ * @member {google.protobuf.IDuration|null|undefined} expiresIn
39534
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39535
+ * @instance
39536
+ */
39537
+ CreateUploadLocationRequest.prototype.expiresIn = null;
39538
+
39539
+ /**
39540
+ * Creates a new CreateUploadLocationRequest instance using the specified properties.
39541
+ * @function create
39542
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39543
+ * @static
39544
+ * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set
39545
+ * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance
39546
+ */
39547
+ CreateUploadLocationRequest.create = function create(properties) {
39548
+ return new CreateUploadLocationRequest(properties);
39549
+ };
39550
+
39551
+ /**
39552
+ * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages.
39553
+ * @function encode
39554
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39555
+ * @static
39556
+ * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode
39557
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39558
+ * @returns {$protobuf.Writer} Writer
39559
+ */
39560
+ CreateUploadLocationRequest.encode = function encode(message, writer) {
39561
+ if (!writer)
39562
+ writer = $Writer.create();
39563
+ if (message.project != null && message.hasOwnProperty("project"))
39564
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.project);
39565
+ if (message.domain != null && message.hasOwnProperty("domain"))
39566
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain);
39567
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
39568
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
39569
+ if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
39570
+ $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
39571
+ return writer;
39572
+ };
39573
+
39574
+ /**
39575
+ * Decodes a CreateUploadLocationRequest message from the specified reader or buffer.
39576
+ * @function decode
39577
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39578
+ * @static
39579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39580
+ * @param {number} [length] Message length if known beforehand
39581
+ * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest
39582
+ * @throws {Error} If the payload is not a reader or valid buffer
39583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39584
+ */
39585
+ CreateUploadLocationRequest.decode = function decode(reader, length) {
39586
+ if (!(reader instanceof $Reader))
39587
+ reader = $Reader.create(reader);
39588
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest();
39589
+ while (reader.pos < end) {
39590
+ let tag = reader.uint32();
39591
+ switch (tag >>> 3) {
39592
+ case 1:
39593
+ message.project = reader.string();
39594
+ break;
39595
+ case 2:
39596
+ message.domain = reader.string();
39597
+ break;
39598
+ case 3:
39599
+ message.suffix = reader.string();
39600
+ break;
39601
+ case 4:
39602
+ message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32());
39603
+ break;
39604
+ default:
39605
+ reader.skipType(tag & 7);
39606
+ break;
39607
+ }
39608
+ }
39609
+ return message;
39610
+ };
39611
+
39612
+ /**
39613
+ * Verifies a CreateUploadLocationRequest message.
39614
+ * @function verify
39615
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39616
+ * @static
39617
+ * @param {Object.<string,*>} message Plain object to verify
39618
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39619
+ */
39620
+ CreateUploadLocationRequest.verify = function verify(message) {
39621
+ if (typeof message !== "object" || message === null)
39622
+ return "object expected";
39623
+ if (message.project != null && message.hasOwnProperty("project"))
39624
+ if (!$util.isString(message.project))
39625
+ return "project: string expected";
39626
+ if (message.domain != null && message.hasOwnProperty("domain"))
39627
+ if (!$util.isString(message.domain))
39628
+ return "domain: string expected";
39629
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
39630
+ if (!$util.isString(message.suffix))
39631
+ return "suffix: string expected";
39632
+ if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) {
39633
+ let error = $root.google.protobuf.Duration.verify(message.expiresIn);
39634
+ if (error)
39635
+ return "expiresIn." + error;
39636
+ }
39637
+ return null;
39638
+ };
39639
+
39640
+ return CreateUploadLocationRequest;
39641
+ })();
39642
+
39643
+ service.DataProxy = (function() {
39644
+
39645
+ /**
39646
+ * Constructs a new DataProxy service.
39647
+ * @memberof flyteidl.service
39648
+ * @classdesc Represents a DataProxy
39649
+ * @extends $protobuf.rpc.Service
39650
+ * @constructor
39651
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
39652
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
39653
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
39654
+ */
39655
+ function DataProxy(rpcImpl, requestDelimited, responseDelimited) {
39656
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
39657
+ }
39658
+
39659
+ (DataProxy.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxy;
39660
+
39661
+ /**
39662
+ * Creates new DataProxy service using the specified rpc implementation.
39663
+ * @function create
39664
+ * @memberof flyteidl.service.DataProxy
39665
+ * @static
39666
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
39667
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
39668
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
39669
+ * @returns {DataProxy} RPC service. Useful where requests and/or responses are streamed.
39670
+ */
39671
+ DataProxy.create = function create(rpcImpl, requestDelimited, responseDelimited) {
39672
+ return new this(rpcImpl, requestDelimited, responseDelimited);
39673
+ };
39674
+
39675
+ /**
39676
+ * Callback as used by {@link flyteidl.service.DataProxy#createUploadLocation}.
39677
+ * @memberof flyteidl.service.DataProxy
39678
+ * @typedef CreateUploadLocationCallback
39679
+ * @type {function}
39680
+ * @param {Error|null} error Error, if any
39681
+ * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse
39682
+ */
39683
+
39684
+ /**
39685
+ * Calls CreateUploadLocation.
39686
+ * @function createUploadLocation
39687
+ * @memberof flyteidl.service.DataProxy
39688
+ * @instance
39689
+ * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object
39690
+ * @param {flyteidl.service.DataProxy.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse
39691
+ * @returns {undefined}
39692
+ * @variation 1
39693
+ */
39694
+ Object.defineProperty(DataProxy.prototype.createUploadLocation = function createUploadLocation(request, callback) {
39695
+ return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback);
39696
+ }, "name", { value: "CreateUploadLocation" });
39697
+
39698
+ /**
39699
+ * Calls CreateUploadLocation.
39700
+ * @function createUploadLocation
39701
+ * @memberof flyteidl.service.DataProxy
39702
+ * @instance
39703
+ * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object
39704
+ * @returns {Promise<flyteidl.service.CreateUploadLocationResponse>} Promise
39705
+ * @variation 2
39706
+ */
39707
+
39708
+ return DataProxy;
39709
+ })();
39710
+
39334
39711
  service.UserInfoRequest = (function() {
39335
39712
 
39336
39713
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+ package flyteidl.service;
3
+
4
+ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service";
5
+
6
+ import "google/api/annotations.proto";
7
+ import "protoc-gen-swagger/options/annotations.proto";
8
+ import "google/protobuf/duration.proto";
9
+ import "google/protobuf/timestamp.proto";
10
+
11
+ message CreateUploadLocationResponse {
12
+ // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
13
+ string signed_url = 1;
14
+
15
+ // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
16
+ string native_url = 2;
17
+
18
+ // ExpiresAt defines when will the signed URL expires.
19
+ google.protobuf.Timestamp expires_at = 3;
20
+ }
21
+
22
+ // CreateUploadLocationRequest specified request for the CreateUploadLocation API.
23
+ message CreateUploadLocationRequest {
24
+ // Project to create the upload location for
25
+ // +required
26
+ string project = 1;
27
+
28
+ // Domain to create the upload location for.
29
+ // +required
30
+ string domain = 2;
31
+
32
+ // Suffix specifies a desired suffix for the generated location. E.g. `/file.py` or `pre/fix/file.zip`.
33
+ // +optional. By default, the service will generate a random file name.
34
+ string suffix = 3;
35
+
36
+ // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
37
+ // exceeds the platform allowed max.
38
+ // +optional. The default value comes from a global config.
39
+ google.protobuf.Duration expires_in = 4;
40
+ }
41
+
42
+ // DataProxy defines an RPC Service that allows access to user-data in a controlled manner.
43
+ service DataProxy {
44
+ // Retrieves user information about the currently logged in user.
45
+ rpc CreateUploadLocation (CreateUploadLocationRequest) returns (CreateUploadLocationResponse) {
46
+ option (google.api.http) = {
47
+ post: "/api/v1/dataproxy/artifact_urn"
48
+ body: "*"
49
+ };
50
+ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
51
+ description: "Creates a write-only http location that is accessible for tasks at runtime."
52
+ };
53
+ }
54
+ }