@flyteorg/flyteidl 0.24.2 → 0.24.5
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
CHANGED
|
@@ -11802,6 +11802,18 @@ export namespace flyteidl {
|
|
|
11802
11802
|
|
|
11803
11803
|
/** WorkflowExecutionConfig maxParallelism */
|
|
11804
11804
|
maxParallelism?: (number|null);
|
|
11805
|
+
|
|
11806
|
+
/** WorkflowExecutionConfig securityContext */
|
|
11807
|
+
securityContext?: (flyteidl.core.ISecurityContext|null);
|
|
11808
|
+
|
|
11809
|
+
/** WorkflowExecutionConfig rawOutputDataConfig */
|
|
11810
|
+
rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null);
|
|
11811
|
+
|
|
11812
|
+
/** WorkflowExecutionConfig labels */
|
|
11813
|
+
labels?: (flyteidl.admin.ILabels|null);
|
|
11814
|
+
|
|
11815
|
+
/** WorkflowExecutionConfig annotations */
|
|
11816
|
+
annotations?: (flyteidl.admin.IAnnotations|null);
|
|
11805
11817
|
}
|
|
11806
11818
|
|
|
11807
11819
|
/** Represents a WorkflowExecutionConfig. */
|
|
@@ -11816,6 +11828,18 @@ export namespace flyteidl {
|
|
|
11816
11828
|
/** WorkflowExecutionConfig maxParallelism. */
|
|
11817
11829
|
public maxParallelism: number;
|
|
11818
11830
|
|
|
11831
|
+
/** WorkflowExecutionConfig securityContext. */
|
|
11832
|
+
public securityContext?: (flyteidl.core.ISecurityContext|null);
|
|
11833
|
+
|
|
11834
|
+
/** WorkflowExecutionConfig rawOutputDataConfig. */
|
|
11835
|
+
public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null);
|
|
11836
|
+
|
|
11837
|
+
/** WorkflowExecutionConfig labels. */
|
|
11838
|
+
public labels?: (flyteidl.admin.ILabels|null);
|
|
11839
|
+
|
|
11840
|
+
/** WorkflowExecutionConfig annotations. */
|
|
11841
|
+
public annotations?: (flyteidl.admin.IAnnotations|null);
|
|
11842
|
+
|
|
11819
11843
|
/**
|
|
11820
11844
|
* Creates a new WorkflowExecutionConfig instance using the specified properties.
|
|
11821
11845
|
* @param [properties] Properties to set
|
|
@@ -16904,6 +16928,185 @@ export namespace flyteidl {
|
|
|
16904
16928
|
type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void;
|
|
16905
16929
|
}
|
|
16906
16930
|
|
|
16931
|
+
/** Properties of a CreateUploadLocationResponse. */
|
|
16932
|
+
interface ICreateUploadLocationResponse {
|
|
16933
|
+
|
|
16934
|
+
/** CreateUploadLocationResponse signedUrl */
|
|
16935
|
+
signedUrl?: (string|null);
|
|
16936
|
+
|
|
16937
|
+
/** CreateUploadLocationResponse nativeUrl */
|
|
16938
|
+
nativeUrl?: (string|null);
|
|
16939
|
+
|
|
16940
|
+
/** CreateUploadLocationResponse expiresAt */
|
|
16941
|
+
expiresAt?: (google.protobuf.ITimestamp|null);
|
|
16942
|
+
}
|
|
16943
|
+
|
|
16944
|
+
/** Represents a CreateUploadLocationResponse. */
|
|
16945
|
+
class CreateUploadLocationResponse implements ICreateUploadLocationResponse {
|
|
16946
|
+
|
|
16947
|
+
/**
|
|
16948
|
+
* Constructs a new CreateUploadLocationResponse.
|
|
16949
|
+
* @param [properties] Properties to set
|
|
16950
|
+
*/
|
|
16951
|
+
constructor(properties?: flyteidl.service.ICreateUploadLocationResponse);
|
|
16952
|
+
|
|
16953
|
+
/** CreateUploadLocationResponse signedUrl. */
|
|
16954
|
+
public signedUrl: string;
|
|
16955
|
+
|
|
16956
|
+
/** CreateUploadLocationResponse nativeUrl. */
|
|
16957
|
+
public nativeUrl: string;
|
|
16958
|
+
|
|
16959
|
+
/** CreateUploadLocationResponse expiresAt. */
|
|
16960
|
+
public expiresAt?: (google.protobuf.ITimestamp|null);
|
|
16961
|
+
|
|
16962
|
+
/**
|
|
16963
|
+
* Creates a new CreateUploadLocationResponse instance using the specified properties.
|
|
16964
|
+
* @param [properties] Properties to set
|
|
16965
|
+
* @returns CreateUploadLocationResponse instance
|
|
16966
|
+
*/
|
|
16967
|
+
public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse;
|
|
16968
|
+
|
|
16969
|
+
/**
|
|
16970
|
+
* Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages.
|
|
16971
|
+
* @param message CreateUploadLocationResponse message or plain object to encode
|
|
16972
|
+
* @param [writer] Writer to encode to
|
|
16973
|
+
* @returns Writer
|
|
16974
|
+
*/
|
|
16975
|
+
public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16976
|
+
|
|
16977
|
+
/**
|
|
16978
|
+
* Decodes a CreateUploadLocationResponse message from the specified reader or buffer.
|
|
16979
|
+
* @param reader Reader or buffer to decode from
|
|
16980
|
+
* @param [length] Message length if known beforehand
|
|
16981
|
+
* @returns CreateUploadLocationResponse
|
|
16982
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16983
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16984
|
+
*/
|
|
16985
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse;
|
|
16986
|
+
|
|
16987
|
+
/**
|
|
16988
|
+
* Verifies a CreateUploadLocationResponse message.
|
|
16989
|
+
* @param message Plain object to verify
|
|
16990
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
16991
|
+
*/
|
|
16992
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
16993
|
+
}
|
|
16994
|
+
|
|
16995
|
+
/** Properties of a CreateUploadLocationRequest. */
|
|
16996
|
+
interface ICreateUploadLocationRequest {
|
|
16997
|
+
|
|
16998
|
+
/** CreateUploadLocationRequest project */
|
|
16999
|
+
project?: (string|null);
|
|
17000
|
+
|
|
17001
|
+
/** CreateUploadLocationRequest domain */
|
|
17002
|
+
domain?: (string|null);
|
|
17003
|
+
|
|
17004
|
+
/** CreateUploadLocationRequest suffix */
|
|
17005
|
+
suffix?: (string|null);
|
|
17006
|
+
|
|
17007
|
+
/** CreateUploadLocationRequest expiresIn */
|
|
17008
|
+
expiresIn?: (google.protobuf.IDuration|null);
|
|
17009
|
+
}
|
|
17010
|
+
|
|
17011
|
+
/** Represents a CreateUploadLocationRequest. */
|
|
17012
|
+
class CreateUploadLocationRequest implements ICreateUploadLocationRequest {
|
|
17013
|
+
|
|
17014
|
+
/**
|
|
17015
|
+
* Constructs a new CreateUploadLocationRequest.
|
|
17016
|
+
* @param [properties] Properties to set
|
|
17017
|
+
*/
|
|
17018
|
+
constructor(properties?: flyteidl.service.ICreateUploadLocationRequest);
|
|
17019
|
+
|
|
17020
|
+
/** CreateUploadLocationRequest project. */
|
|
17021
|
+
public project: string;
|
|
17022
|
+
|
|
17023
|
+
/** CreateUploadLocationRequest domain. */
|
|
17024
|
+
public domain: string;
|
|
17025
|
+
|
|
17026
|
+
/** CreateUploadLocationRequest suffix. */
|
|
17027
|
+
public suffix: string;
|
|
17028
|
+
|
|
17029
|
+
/** CreateUploadLocationRequest expiresIn. */
|
|
17030
|
+
public expiresIn?: (google.protobuf.IDuration|null);
|
|
17031
|
+
|
|
17032
|
+
/**
|
|
17033
|
+
* Creates a new CreateUploadLocationRequest instance using the specified properties.
|
|
17034
|
+
* @param [properties] Properties to set
|
|
17035
|
+
* @returns CreateUploadLocationRequest instance
|
|
17036
|
+
*/
|
|
17037
|
+
public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest;
|
|
17038
|
+
|
|
17039
|
+
/**
|
|
17040
|
+
* Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages.
|
|
17041
|
+
* @param message CreateUploadLocationRequest message or plain object to encode
|
|
17042
|
+
* @param [writer] Writer to encode to
|
|
17043
|
+
* @returns Writer
|
|
17044
|
+
*/
|
|
17045
|
+
public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
17046
|
+
|
|
17047
|
+
/**
|
|
17048
|
+
* Decodes a CreateUploadLocationRequest message from the specified reader or buffer.
|
|
17049
|
+
* @param reader Reader or buffer to decode from
|
|
17050
|
+
* @param [length] Message length if known beforehand
|
|
17051
|
+
* @returns CreateUploadLocationRequest
|
|
17052
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17053
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17054
|
+
*/
|
|
17055
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest;
|
|
17056
|
+
|
|
17057
|
+
/**
|
|
17058
|
+
* Verifies a CreateUploadLocationRequest message.
|
|
17059
|
+
* @param message Plain object to verify
|
|
17060
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
17061
|
+
*/
|
|
17062
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
17063
|
+
}
|
|
17064
|
+
|
|
17065
|
+
/** Represents a DataProxy */
|
|
17066
|
+
class DataProxy extends $protobuf.rpc.Service {
|
|
17067
|
+
|
|
17068
|
+
/**
|
|
17069
|
+
* Constructs a new DataProxy service.
|
|
17070
|
+
* @param rpcImpl RPC implementation
|
|
17071
|
+
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
17072
|
+
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
17073
|
+
*/
|
|
17074
|
+
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
|
17075
|
+
|
|
17076
|
+
/**
|
|
17077
|
+
* Creates new DataProxy service using the specified rpc implementation.
|
|
17078
|
+
* @param rpcImpl RPC implementation
|
|
17079
|
+
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
17080
|
+
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
17081
|
+
* @returns RPC service. Useful where requests and/or responses are streamed.
|
|
17082
|
+
*/
|
|
17083
|
+
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxy;
|
|
17084
|
+
|
|
17085
|
+
/**
|
|
17086
|
+
* Calls CreateUploadLocation.
|
|
17087
|
+
* @param request CreateUploadLocationRequest message or plain object
|
|
17088
|
+
* @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse
|
|
17089
|
+
*/
|
|
17090
|
+
public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxy.CreateUploadLocationCallback): void;
|
|
17091
|
+
|
|
17092
|
+
/**
|
|
17093
|
+
* Calls CreateUploadLocation.
|
|
17094
|
+
* @param request CreateUploadLocationRequest message or plain object
|
|
17095
|
+
* @returns Promise
|
|
17096
|
+
*/
|
|
17097
|
+
public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise<flyteidl.service.CreateUploadLocationResponse>;
|
|
17098
|
+
}
|
|
17099
|
+
|
|
17100
|
+
namespace DataProxy {
|
|
17101
|
+
|
|
17102
|
+
/**
|
|
17103
|
+
* Callback as used by {@link flyteidl.service.DataProxy#createUploadLocation}.
|
|
17104
|
+
* @param error Error, if any
|
|
17105
|
+
* @param [response] CreateUploadLocationResponse
|
|
17106
|
+
*/
|
|
17107
|
+
type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void;
|
|
17108
|
+
}
|
|
17109
|
+
|
|
16907
17110
|
/** Properties of a UserInfoRequest. */
|
|
16908
17111
|
interface IUserInfoRequest {
|
|
16909
17112
|
}
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -28184,6 +28184,10 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
28184
28184
|
* @memberof flyteidl.admin
|
|
28185
28185
|
* @interface IWorkflowExecutionConfig
|
|
28186
28186
|
* @property {number|null} [maxParallelism] WorkflowExecutionConfig maxParallelism
|
|
28187
|
+
* @property {flyteidl.core.ISecurityContext|null} [securityContext] WorkflowExecutionConfig securityContext
|
|
28188
|
+
* @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] WorkflowExecutionConfig rawOutputDataConfig
|
|
28189
|
+
* @property {flyteidl.admin.ILabels|null} [labels] WorkflowExecutionConfig labels
|
|
28190
|
+
* @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations
|
|
28187
28191
|
*/
|
|
28188
28192
|
|
|
28189
28193
|
/**
|
|
@@ -28209,6 +28213,38 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
28209
28213
|
*/
|
|
28210
28214
|
WorkflowExecutionConfig.prototype.maxParallelism = 0;
|
|
28211
28215
|
|
|
28216
|
+
/**
|
|
28217
|
+
* WorkflowExecutionConfig securityContext.
|
|
28218
|
+
* @member {flyteidl.core.ISecurityContext|null|undefined} securityContext
|
|
28219
|
+
* @memberof flyteidl.admin.WorkflowExecutionConfig
|
|
28220
|
+
* @instance
|
|
28221
|
+
*/
|
|
28222
|
+
WorkflowExecutionConfig.prototype.securityContext = null;
|
|
28223
|
+
|
|
28224
|
+
/**
|
|
28225
|
+
* WorkflowExecutionConfig rawOutputDataConfig.
|
|
28226
|
+
* @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig
|
|
28227
|
+
* @memberof flyteidl.admin.WorkflowExecutionConfig
|
|
28228
|
+
* @instance
|
|
28229
|
+
*/
|
|
28230
|
+
WorkflowExecutionConfig.prototype.rawOutputDataConfig = null;
|
|
28231
|
+
|
|
28232
|
+
/**
|
|
28233
|
+
* WorkflowExecutionConfig labels.
|
|
28234
|
+
* @member {flyteidl.admin.ILabels|null|undefined} labels
|
|
28235
|
+
* @memberof flyteidl.admin.WorkflowExecutionConfig
|
|
28236
|
+
* @instance
|
|
28237
|
+
*/
|
|
28238
|
+
WorkflowExecutionConfig.prototype.labels = null;
|
|
28239
|
+
|
|
28240
|
+
/**
|
|
28241
|
+
* WorkflowExecutionConfig annotations.
|
|
28242
|
+
* @member {flyteidl.admin.IAnnotations|null|undefined} annotations
|
|
28243
|
+
* @memberof flyteidl.admin.WorkflowExecutionConfig
|
|
28244
|
+
* @instance
|
|
28245
|
+
*/
|
|
28246
|
+
WorkflowExecutionConfig.prototype.annotations = null;
|
|
28247
|
+
|
|
28212
28248
|
/**
|
|
28213
28249
|
* Creates a new WorkflowExecutionConfig instance using the specified properties.
|
|
28214
28250
|
* @function create
|
|
@@ -28235,6 +28271,14 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
28235
28271
|
writer = $Writer.create();
|
|
28236
28272
|
if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
|
|
28237
28273
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxParallelism);
|
|
28274
|
+
if (message.securityContext != null && message.hasOwnProperty("securityContext"))
|
|
28275
|
+
$root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
28276
|
+
if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig"))
|
|
28277
|
+
$root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
28278
|
+
if (message.labels != null && message.hasOwnProperty("labels"))
|
|
28279
|
+
$root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
28280
|
+
if (message.annotations != null && message.hasOwnProperty("annotations"))
|
|
28281
|
+
$root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
28238
28282
|
return writer;
|
|
28239
28283
|
};
|
|
28240
28284
|
|
|
@@ -28259,6 +28303,18 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
28259
28303
|
case 1:
|
|
28260
28304
|
message.maxParallelism = reader.int32();
|
|
28261
28305
|
break;
|
|
28306
|
+
case 2:
|
|
28307
|
+
message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32());
|
|
28308
|
+
break;
|
|
28309
|
+
case 3:
|
|
28310
|
+
message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32());
|
|
28311
|
+
break;
|
|
28312
|
+
case 4:
|
|
28313
|
+
message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32());
|
|
28314
|
+
break;
|
|
28315
|
+
case 5:
|
|
28316
|
+
message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32());
|
|
28317
|
+
break;
|
|
28262
28318
|
default:
|
|
28263
28319
|
reader.skipType(tag & 7);
|
|
28264
28320
|
break;
|
|
@@ -28281,6 +28337,26 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
28281
28337
|
if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
|
|
28282
28338
|
if (!$util.isInteger(message.maxParallelism))
|
|
28283
28339
|
return "maxParallelism: integer expected";
|
|
28340
|
+
if (message.securityContext != null && message.hasOwnProperty("securityContext")) {
|
|
28341
|
+
let error = $root.flyteidl.core.SecurityContext.verify(message.securityContext);
|
|
28342
|
+
if (error)
|
|
28343
|
+
return "securityContext." + error;
|
|
28344
|
+
}
|
|
28345
|
+
if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) {
|
|
28346
|
+
let error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig);
|
|
28347
|
+
if (error)
|
|
28348
|
+
return "rawOutputDataConfig." + error;
|
|
28349
|
+
}
|
|
28350
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
28351
|
+
let error = $root.flyteidl.admin.Labels.verify(message.labels);
|
|
28352
|
+
if (error)
|
|
28353
|
+
return "labels." + error;
|
|
28354
|
+
}
|
|
28355
|
+
if (message.annotations != null && message.hasOwnProperty("annotations")) {
|
|
28356
|
+
let error = $root.flyteidl.admin.Annotations.verify(message.annotations);
|
|
28357
|
+
if (error)
|
|
28358
|
+
return "annotations." + error;
|
|
28359
|
+
}
|
|
28284
28360
|
return null;
|
|
28285
28361
|
};
|
|
28286
28362
|
|
|
@@ -39331,6 +39407,383 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
39331
39407
|
return AuthMetadataService;
|
|
39332
39408
|
})();
|
|
39333
39409
|
|
|
39410
|
+
service.CreateUploadLocationResponse = (function() {
|
|
39411
|
+
|
|
39412
|
+
/**
|
|
39413
|
+
* Properties of a CreateUploadLocationResponse.
|
|
39414
|
+
* @memberof flyteidl.service
|
|
39415
|
+
* @interface ICreateUploadLocationResponse
|
|
39416
|
+
* @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl
|
|
39417
|
+
* @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl
|
|
39418
|
+
* @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt
|
|
39419
|
+
*/
|
|
39420
|
+
|
|
39421
|
+
/**
|
|
39422
|
+
* Constructs a new CreateUploadLocationResponse.
|
|
39423
|
+
* @memberof flyteidl.service
|
|
39424
|
+
* @classdesc Represents a CreateUploadLocationResponse.
|
|
39425
|
+
* @implements ICreateUploadLocationResponse
|
|
39426
|
+
* @constructor
|
|
39427
|
+
* @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set
|
|
39428
|
+
*/
|
|
39429
|
+
function CreateUploadLocationResponse(properties) {
|
|
39430
|
+
if (properties)
|
|
39431
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39432
|
+
if (properties[keys[i]] != null)
|
|
39433
|
+
this[keys[i]] = properties[keys[i]];
|
|
39434
|
+
}
|
|
39435
|
+
|
|
39436
|
+
/**
|
|
39437
|
+
* CreateUploadLocationResponse signedUrl.
|
|
39438
|
+
* @member {string} signedUrl
|
|
39439
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39440
|
+
* @instance
|
|
39441
|
+
*/
|
|
39442
|
+
CreateUploadLocationResponse.prototype.signedUrl = "";
|
|
39443
|
+
|
|
39444
|
+
/**
|
|
39445
|
+
* CreateUploadLocationResponse nativeUrl.
|
|
39446
|
+
* @member {string} nativeUrl
|
|
39447
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39448
|
+
* @instance
|
|
39449
|
+
*/
|
|
39450
|
+
CreateUploadLocationResponse.prototype.nativeUrl = "";
|
|
39451
|
+
|
|
39452
|
+
/**
|
|
39453
|
+
* CreateUploadLocationResponse expiresAt.
|
|
39454
|
+
* @member {google.protobuf.ITimestamp|null|undefined} expiresAt
|
|
39455
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39456
|
+
* @instance
|
|
39457
|
+
*/
|
|
39458
|
+
CreateUploadLocationResponse.prototype.expiresAt = null;
|
|
39459
|
+
|
|
39460
|
+
/**
|
|
39461
|
+
* Creates a new CreateUploadLocationResponse instance using the specified properties.
|
|
39462
|
+
* @function create
|
|
39463
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39464
|
+
* @static
|
|
39465
|
+
* @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set
|
|
39466
|
+
* @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance
|
|
39467
|
+
*/
|
|
39468
|
+
CreateUploadLocationResponse.create = function create(properties) {
|
|
39469
|
+
return new CreateUploadLocationResponse(properties);
|
|
39470
|
+
};
|
|
39471
|
+
|
|
39472
|
+
/**
|
|
39473
|
+
* Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages.
|
|
39474
|
+
* @function encode
|
|
39475
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39476
|
+
* @static
|
|
39477
|
+
* @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode
|
|
39478
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39479
|
+
* @returns {$protobuf.Writer} Writer
|
|
39480
|
+
*/
|
|
39481
|
+
CreateUploadLocationResponse.encode = function encode(message, writer) {
|
|
39482
|
+
if (!writer)
|
|
39483
|
+
writer = $Writer.create();
|
|
39484
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
39485
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl);
|
|
39486
|
+
if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl"))
|
|
39487
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl);
|
|
39488
|
+
if (message.expiresAt != null && message.hasOwnProperty("expiresAt"))
|
|
39489
|
+
$root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
39490
|
+
return writer;
|
|
39491
|
+
};
|
|
39492
|
+
|
|
39493
|
+
/**
|
|
39494
|
+
* Decodes a CreateUploadLocationResponse message from the specified reader or buffer.
|
|
39495
|
+
* @function decode
|
|
39496
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39497
|
+
* @static
|
|
39498
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39499
|
+
* @param {number} [length] Message length if known beforehand
|
|
39500
|
+
* @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse
|
|
39501
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39502
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39503
|
+
*/
|
|
39504
|
+
CreateUploadLocationResponse.decode = function decode(reader, length) {
|
|
39505
|
+
if (!(reader instanceof $Reader))
|
|
39506
|
+
reader = $Reader.create(reader);
|
|
39507
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse();
|
|
39508
|
+
while (reader.pos < end) {
|
|
39509
|
+
let tag = reader.uint32();
|
|
39510
|
+
switch (tag >>> 3) {
|
|
39511
|
+
case 1:
|
|
39512
|
+
message.signedUrl = reader.string();
|
|
39513
|
+
break;
|
|
39514
|
+
case 2:
|
|
39515
|
+
message.nativeUrl = reader.string();
|
|
39516
|
+
break;
|
|
39517
|
+
case 3:
|
|
39518
|
+
message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
39519
|
+
break;
|
|
39520
|
+
default:
|
|
39521
|
+
reader.skipType(tag & 7);
|
|
39522
|
+
break;
|
|
39523
|
+
}
|
|
39524
|
+
}
|
|
39525
|
+
return message;
|
|
39526
|
+
};
|
|
39527
|
+
|
|
39528
|
+
/**
|
|
39529
|
+
* Verifies a CreateUploadLocationResponse message.
|
|
39530
|
+
* @function verify
|
|
39531
|
+
* @memberof flyteidl.service.CreateUploadLocationResponse
|
|
39532
|
+
* @static
|
|
39533
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39534
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39535
|
+
*/
|
|
39536
|
+
CreateUploadLocationResponse.verify = function verify(message) {
|
|
39537
|
+
if (typeof message !== "object" || message === null)
|
|
39538
|
+
return "object expected";
|
|
39539
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
39540
|
+
if (!$util.isString(message.signedUrl))
|
|
39541
|
+
return "signedUrl: string expected";
|
|
39542
|
+
if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl"))
|
|
39543
|
+
if (!$util.isString(message.nativeUrl))
|
|
39544
|
+
return "nativeUrl: string expected";
|
|
39545
|
+
if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) {
|
|
39546
|
+
let error = $root.google.protobuf.Timestamp.verify(message.expiresAt);
|
|
39547
|
+
if (error)
|
|
39548
|
+
return "expiresAt." + error;
|
|
39549
|
+
}
|
|
39550
|
+
return null;
|
|
39551
|
+
};
|
|
39552
|
+
|
|
39553
|
+
return CreateUploadLocationResponse;
|
|
39554
|
+
})();
|
|
39555
|
+
|
|
39556
|
+
service.CreateUploadLocationRequest = (function() {
|
|
39557
|
+
|
|
39558
|
+
/**
|
|
39559
|
+
* Properties of a CreateUploadLocationRequest.
|
|
39560
|
+
* @memberof flyteidl.service
|
|
39561
|
+
* @interface ICreateUploadLocationRequest
|
|
39562
|
+
* @property {string|null} [project] CreateUploadLocationRequest project
|
|
39563
|
+
* @property {string|null} [domain] CreateUploadLocationRequest domain
|
|
39564
|
+
* @property {string|null} [suffix] CreateUploadLocationRequest suffix
|
|
39565
|
+
* @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn
|
|
39566
|
+
*/
|
|
39567
|
+
|
|
39568
|
+
/**
|
|
39569
|
+
* Constructs a new CreateUploadLocationRequest.
|
|
39570
|
+
* @memberof flyteidl.service
|
|
39571
|
+
* @classdesc Represents a CreateUploadLocationRequest.
|
|
39572
|
+
* @implements ICreateUploadLocationRequest
|
|
39573
|
+
* @constructor
|
|
39574
|
+
* @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set
|
|
39575
|
+
*/
|
|
39576
|
+
function CreateUploadLocationRequest(properties) {
|
|
39577
|
+
if (properties)
|
|
39578
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39579
|
+
if (properties[keys[i]] != null)
|
|
39580
|
+
this[keys[i]] = properties[keys[i]];
|
|
39581
|
+
}
|
|
39582
|
+
|
|
39583
|
+
/**
|
|
39584
|
+
* CreateUploadLocationRequest project.
|
|
39585
|
+
* @member {string} project
|
|
39586
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39587
|
+
* @instance
|
|
39588
|
+
*/
|
|
39589
|
+
CreateUploadLocationRequest.prototype.project = "";
|
|
39590
|
+
|
|
39591
|
+
/**
|
|
39592
|
+
* CreateUploadLocationRequest domain.
|
|
39593
|
+
* @member {string} domain
|
|
39594
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39595
|
+
* @instance
|
|
39596
|
+
*/
|
|
39597
|
+
CreateUploadLocationRequest.prototype.domain = "";
|
|
39598
|
+
|
|
39599
|
+
/**
|
|
39600
|
+
* CreateUploadLocationRequest suffix.
|
|
39601
|
+
* @member {string} suffix
|
|
39602
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39603
|
+
* @instance
|
|
39604
|
+
*/
|
|
39605
|
+
CreateUploadLocationRequest.prototype.suffix = "";
|
|
39606
|
+
|
|
39607
|
+
/**
|
|
39608
|
+
* CreateUploadLocationRequest expiresIn.
|
|
39609
|
+
* @member {google.protobuf.IDuration|null|undefined} expiresIn
|
|
39610
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39611
|
+
* @instance
|
|
39612
|
+
*/
|
|
39613
|
+
CreateUploadLocationRequest.prototype.expiresIn = null;
|
|
39614
|
+
|
|
39615
|
+
/**
|
|
39616
|
+
* Creates a new CreateUploadLocationRequest instance using the specified properties.
|
|
39617
|
+
* @function create
|
|
39618
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39619
|
+
* @static
|
|
39620
|
+
* @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set
|
|
39621
|
+
* @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance
|
|
39622
|
+
*/
|
|
39623
|
+
CreateUploadLocationRequest.create = function create(properties) {
|
|
39624
|
+
return new CreateUploadLocationRequest(properties);
|
|
39625
|
+
};
|
|
39626
|
+
|
|
39627
|
+
/**
|
|
39628
|
+
* Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages.
|
|
39629
|
+
* @function encode
|
|
39630
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39631
|
+
* @static
|
|
39632
|
+
* @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode
|
|
39633
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39634
|
+
* @returns {$protobuf.Writer} Writer
|
|
39635
|
+
*/
|
|
39636
|
+
CreateUploadLocationRequest.encode = function encode(message, writer) {
|
|
39637
|
+
if (!writer)
|
|
39638
|
+
writer = $Writer.create();
|
|
39639
|
+
if (message.project != null && message.hasOwnProperty("project"))
|
|
39640
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.project);
|
|
39641
|
+
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
39642
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain);
|
|
39643
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
39644
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
|
|
39645
|
+
if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
|
|
39646
|
+
$root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
39647
|
+
return writer;
|
|
39648
|
+
};
|
|
39649
|
+
|
|
39650
|
+
/**
|
|
39651
|
+
* Decodes a CreateUploadLocationRequest message from the specified reader or buffer.
|
|
39652
|
+
* @function decode
|
|
39653
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39654
|
+
* @static
|
|
39655
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39656
|
+
* @param {number} [length] Message length if known beforehand
|
|
39657
|
+
* @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest
|
|
39658
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39659
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39660
|
+
*/
|
|
39661
|
+
CreateUploadLocationRequest.decode = function decode(reader, length) {
|
|
39662
|
+
if (!(reader instanceof $Reader))
|
|
39663
|
+
reader = $Reader.create(reader);
|
|
39664
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest();
|
|
39665
|
+
while (reader.pos < end) {
|
|
39666
|
+
let tag = reader.uint32();
|
|
39667
|
+
switch (tag >>> 3) {
|
|
39668
|
+
case 1:
|
|
39669
|
+
message.project = reader.string();
|
|
39670
|
+
break;
|
|
39671
|
+
case 2:
|
|
39672
|
+
message.domain = reader.string();
|
|
39673
|
+
break;
|
|
39674
|
+
case 3:
|
|
39675
|
+
message.suffix = reader.string();
|
|
39676
|
+
break;
|
|
39677
|
+
case 4:
|
|
39678
|
+
message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
39679
|
+
break;
|
|
39680
|
+
default:
|
|
39681
|
+
reader.skipType(tag & 7);
|
|
39682
|
+
break;
|
|
39683
|
+
}
|
|
39684
|
+
}
|
|
39685
|
+
return message;
|
|
39686
|
+
};
|
|
39687
|
+
|
|
39688
|
+
/**
|
|
39689
|
+
* Verifies a CreateUploadLocationRequest message.
|
|
39690
|
+
* @function verify
|
|
39691
|
+
* @memberof flyteidl.service.CreateUploadLocationRequest
|
|
39692
|
+
* @static
|
|
39693
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39694
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39695
|
+
*/
|
|
39696
|
+
CreateUploadLocationRequest.verify = function verify(message) {
|
|
39697
|
+
if (typeof message !== "object" || message === null)
|
|
39698
|
+
return "object expected";
|
|
39699
|
+
if (message.project != null && message.hasOwnProperty("project"))
|
|
39700
|
+
if (!$util.isString(message.project))
|
|
39701
|
+
return "project: string expected";
|
|
39702
|
+
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
39703
|
+
if (!$util.isString(message.domain))
|
|
39704
|
+
return "domain: string expected";
|
|
39705
|
+
if (message.suffix != null && message.hasOwnProperty("suffix"))
|
|
39706
|
+
if (!$util.isString(message.suffix))
|
|
39707
|
+
return "suffix: string expected";
|
|
39708
|
+
if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) {
|
|
39709
|
+
let error = $root.google.protobuf.Duration.verify(message.expiresIn);
|
|
39710
|
+
if (error)
|
|
39711
|
+
return "expiresIn." + error;
|
|
39712
|
+
}
|
|
39713
|
+
return null;
|
|
39714
|
+
};
|
|
39715
|
+
|
|
39716
|
+
return CreateUploadLocationRequest;
|
|
39717
|
+
})();
|
|
39718
|
+
|
|
39719
|
+
service.DataProxy = (function() {
|
|
39720
|
+
|
|
39721
|
+
/**
|
|
39722
|
+
* Constructs a new DataProxy service.
|
|
39723
|
+
* @memberof flyteidl.service
|
|
39724
|
+
* @classdesc Represents a DataProxy
|
|
39725
|
+
* @extends $protobuf.rpc.Service
|
|
39726
|
+
* @constructor
|
|
39727
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
39728
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
39729
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
39730
|
+
*/
|
|
39731
|
+
function DataProxy(rpcImpl, requestDelimited, responseDelimited) {
|
|
39732
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
39733
|
+
}
|
|
39734
|
+
|
|
39735
|
+
(DataProxy.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxy;
|
|
39736
|
+
|
|
39737
|
+
/**
|
|
39738
|
+
* Creates new DataProxy service using the specified rpc implementation.
|
|
39739
|
+
* @function create
|
|
39740
|
+
* @memberof flyteidl.service.DataProxy
|
|
39741
|
+
* @static
|
|
39742
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
39743
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
39744
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
39745
|
+
* @returns {DataProxy} RPC service. Useful where requests and/or responses are streamed.
|
|
39746
|
+
*/
|
|
39747
|
+
DataProxy.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
39748
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
39749
|
+
};
|
|
39750
|
+
|
|
39751
|
+
/**
|
|
39752
|
+
* Callback as used by {@link flyteidl.service.DataProxy#createUploadLocation}.
|
|
39753
|
+
* @memberof flyteidl.service.DataProxy
|
|
39754
|
+
* @typedef CreateUploadLocationCallback
|
|
39755
|
+
* @type {function}
|
|
39756
|
+
* @param {Error|null} error Error, if any
|
|
39757
|
+
* @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse
|
|
39758
|
+
*/
|
|
39759
|
+
|
|
39760
|
+
/**
|
|
39761
|
+
* Calls CreateUploadLocation.
|
|
39762
|
+
* @function createUploadLocation
|
|
39763
|
+
* @memberof flyteidl.service.DataProxy
|
|
39764
|
+
* @instance
|
|
39765
|
+
* @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object
|
|
39766
|
+
* @param {flyteidl.service.DataProxy.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse
|
|
39767
|
+
* @returns {undefined}
|
|
39768
|
+
* @variation 1
|
|
39769
|
+
*/
|
|
39770
|
+
Object.defineProperty(DataProxy.prototype.createUploadLocation = function createUploadLocation(request, callback) {
|
|
39771
|
+
return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback);
|
|
39772
|
+
}, "name", { value: "CreateUploadLocation" });
|
|
39773
|
+
|
|
39774
|
+
/**
|
|
39775
|
+
* Calls CreateUploadLocation.
|
|
39776
|
+
* @function createUploadLocation
|
|
39777
|
+
* @memberof flyteidl.service.DataProxy
|
|
39778
|
+
* @instance
|
|
39779
|
+
* @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object
|
|
39780
|
+
* @returns {Promise<flyteidl.service.CreateUploadLocationResponse>} Promise
|
|
39781
|
+
* @variation 2
|
|
39782
|
+
*/
|
|
39783
|
+
|
|
39784
|
+
return DataProxy;
|
|
39785
|
+
})();
|
|
39786
|
+
|
|
39334
39787
|
service.UserInfoRequest = (function() {
|
|
39335
39788
|
|
|
39336
39789
|
/**
|
package/package.json
CHANGED
|
@@ -201,6 +201,85 @@ RPCs defined in this service must be anonymously accessible.
|
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
|
|
204
|
+
.. _ref_flyteidl/service/dataproxy.proto:
|
|
205
|
+
|
|
206
|
+
flyteidl/service/dataproxy.proto
|
|
207
|
+
==================================================================
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
.. _ref_flyteidl.service.CreateUploadLocationRequest:
|
|
214
|
+
|
|
215
|
+
CreateUploadLocationRequest
|
|
216
|
+
------------------------------------------------------------------
|
|
217
|
+
|
|
218
|
+
CreateUploadLocationRequest specified request for the CreateUploadLocation API.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
.. csv-table:: CreateUploadLocationRequest type fields
|
|
223
|
+
:header: "Field", "Type", "Label", "Description"
|
|
224
|
+
:widths: auto
|
|
225
|
+
|
|
226
|
+
"project", ":ref:`ref_string`", "", "Project to create the upload location for +required"
|
|
227
|
+
"domain", ":ref:`ref_string`", "", "Domain to create the upload location for. +required"
|
|
228
|
+
"suffix", ":ref:`ref_string`", "", "Suffix specifies a desired suffix for the generated location. E.g. `/file.py` or `pre/fix/file.zip`. +optional. By default, the service will generate a random file name."
|
|
229
|
+
"expires_in", ":ref:`ref_google.protobuf.Duration`", "", "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this exceeds the platform allowed max. +optional. The default value comes from a global config."
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
.. _ref_flyteidl.service.CreateUploadLocationResponse:
|
|
238
|
+
|
|
239
|
+
CreateUploadLocationResponse
|
|
240
|
+
------------------------------------------------------------------
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
.. csv-table:: CreateUploadLocationResponse type fields
|
|
247
|
+
:header: "Field", "Type", "Label", "Description"
|
|
248
|
+
:widths: auto
|
|
249
|
+
|
|
250
|
+
"signed_url", ":ref:`ref_string`", "", "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)"
|
|
251
|
+
"native_url", ":ref:`ref_string`", "", "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)"
|
|
252
|
+
"expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "ExpiresAt defines when will the signed URL expires."
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
<!-- end messages -->
|
|
259
|
+
|
|
260
|
+
<!-- end enums -->
|
|
261
|
+
|
|
262
|
+
<!-- end HasExtensions -->
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
.. _ref_flyteidl.service.DataProxy:
|
|
267
|
+
|
|
268
|
+
DataProxy
|
|
269
|
+
------------------------------------------------------------------
|
|
270
|
+
|
|
271
|
+
DataProxy defines an RPC Service that allows access to user-data in a controlled manner.
|
|
272
|
+
|
|
273
|
+
.. csv-table:: DataProxy service methods
|
|
274
|
+
:header: "Method Name", "Request Type", "Response Type", "Description"
|
|
275
|
+
:widths: auto
|
|
276
|
+
|
|
277
|
+
"CreateUploadLocation", ":ref:`ref_flyteidl.service.CreateUploadLocationRequest`", ":ref:`ref_flyteidl.service.CreateUploadLocationResponse`", "Retrieves user information about the currently logged in user."
|
|
278
|
+
<!-- end services -->
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
204
283
|
.. _ref_flyteidl/service/identity.proto:
|
|
205
284
|
|
|
206
285
|
flyteidl/service/identity.proto
|
|
@@ -3,8 +3,10 @@ syntax = "proto3";
|
|
|
3
3
|
package flyteidl.admin;
|
|
4
4
|
option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
|
|
5
5
|
|
|
6
|
+
import "flyteidl/admin/common.proto";
|
|
6
7
|
import "flyteidl/admin/cluster_assignment.proto";
|
|
7
8
|
import "flyteidl/core/execution.proto";
|
|
9
|
+
import "flyteidl/core/security.proto";
|
|
8
10
|
|
|
9
11
|
// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
|
|
10
12
|
// based on matching tags.
|
|
@@ -102,6 +104,18 @@ message PluginOverrides {
|
|
|
102
104
|
message WorkflowExecutionConfig {
|
|
103
105
|
// Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
|
|
104
106
|
int32 max_parallelism = 1;
|
|
107
|
+
|
|
108
|
+
// Indicates security context permissions for executions triggered with this matchable attribute.
|
|
109
|
+
core.SecurityContext security_context = 2;
|
|
110
|
+
|
|
111
|
+
// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
|
|
112
|
+
RawOutputDataConfig raw_output_data_config = 3;
|
|
113
|
+
|
|
114
|
+
// Custom labels to be applied to a triggered execution resource.
|
|
115
|
+
Labels labels = 4;
|
|
116
|
+
|
|
117
|
+
// Custom annotations to be applied to a triggered execution resource.
|
|
118
|
+
Annotations annotations = 5;
|
|
105
119
|
}
|
|
106
120
|
|
|
107
121
|
// Generic container for encapsulating all types of the above attributes messages.
|
|
@@ -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
|
+
}
|