@flyteorg/flyteidl 0.24.12 → 0.24.15

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.
@@ -7021,6 +7021,9 @@ export namespace flyteidl {
7021
7021
 
7022
7022
  /** ClusterAssignment affinity */
7023
7023
  affinity?: (flyteidl.admin.IAffinity|null);
7024
+
7025
+ /** ClusterAssignment toleration */
7026
+ toleration?: (flyteidl.admin.IToleration|null);
7024
7027
  }
7025
7028
 
7026
7029
  /** Represents a ClusterAssignment. */
@@ -7035,6 +7038,9 @@ export namespace flyteidl {
7035
7038
  /** ClusterAssignment affinity. */
7036
7039
  public affinity?: (flyteidl.admin.IAffinity|null);
7037
7040
 
7041
+ /** ClusterAssignment toleration. */
7042
+ public toleration?: (flyteidl.admin.IToleration|null);
7043
+
7038
7044
  /**
7039
7045
  * Creates a new ClusterAssignment instance using the specified properties.
7040
7046
  * @param [properties] Properties to set
@@ -7120,6 +7126,58 @@ export namespace flyteidl {
7120
7126
  public static verify(message: { [k: string]: any }): (string|null);
7121
7127
  }
7122
7128
 
7129
+ /** Properties of a Toleration. */
7130
+ interface IToleration {
7131
+
7132
+ /** Toleration selectors */
7133
+ selectors?: (flyteidl.admin.ISelector[]|null);
7134
+ }
7135
+
7136
+ /** Represents a Toleration. */
7137
+ class Toleration implements IToleration {
7138
+
7139
+ /**
7140
+ * Constructs a new Toleration.
7141
+ * @param [properties] Properties to set
7142
+ */
7143
+ constructor(properties?: flyteidl.admin.IToleration);
7144
+
7145
+ /** Toleration selectors. */
7146
+ public selectors: flyteidl.admin.ISelector[];
7147
+
7148
+ /**
7149
+ * Creates a new Toleration instance using the specified properties.
7150
+ * @param [properties] Properties to set
7151
+ * @returns Toleration instance
7152
+ */
7153
+ public static create(properties?: flyteidl.admin.IToleration): flyteidl.admin.Toleration;
7154
+
7155
+ /**
7156
+ * Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
7157
+ * @param message Toleration message or plain object to encode
7158
+ * @param [writer] Writer to encode to
7159
+ * @returns Writer
7160
+ */
7161
+ public static encode(message: flyteidl.admin.IToleration, writer?: $protobuf.Writer): $protobuf.Writer;
7162
+
7163
+ /**
7164
+ * Decodes a Toleration message from the specified reader or buffer.
7165
+ * @param reader Reader or buffer to decode from
7166
+ * @param [length] Message length if known beforehand
7167
+ * @returns Toleration
7168
+ * @throws {Error} If the payload is not a reader or valid buffer
7169
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7170
+ */
7171
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Toleration;
7172
+
7173
+ /**
7174
+ * Verifies a Toleration message.
7175
+ * @param message Plain object to verify
7176
+ * @returns `null` if valid, otherwise the reason why it is not
7177
+ */
7178
+ public static verify(message: { [k: string]: any }): (string|null);
7179
+ }
7180
+
7123
7181
  /** Properties of a Selector. */
7124
7182
  interface ISelector {
7125
7183
 
@@ -17031,11 +17089,14 @@ export namespace flyteidl {
17031
17089
  /** CreateUploadLocationRequest domain */
17032
17090
  domain?: (string|null);
17033
17091
 
17034
- /** CreateUploadLocationRequest suffix */
17035
- suffix?: (string|null);
17092
+ /** CreateUploadLocationRequest filename */
17093
+ filename?: (string|null);
17036
17094
 
17037
17095
  /** CreateUploadLocationRequest expiresIn */
17038
17096
  expiresIn?: (google.protobuf.IDuration|null);
17097
+
17098
+ /** CreateUploadLocationRequest contentMd5 */
17099
+ contentMd5?: (Uint8Array|null);
17039
17100
  }
17040
17101
 
17041
17102
  /** Represents a CreateUploadLocationRequest. */
@@ -17053,12 +17114,15 @@ export namespace flyteidl {
17053
17114
  /** CreateUploadLocationRequest domain. */
17054
17115
  public domain: string;
17055
17116
 
17056
- /** CreateUploadLocationRequest suffix. */
17057
- public suffix: string;
17117
+ /** CreateUploadLocationRequest filename. */
17118
+ public filename: string;
17058
17119
 
17059
17120
  /** CreateUploadLocationRequest expiresIn. */
17060
17121
  public expiresIn?: (google.protobuf.IDuration|null);
17061
17122
 
17123
+ /** CreateUploadLocationRequest contentMd5. */
17124
+ public contentMd5: Uint8Array;
17125
+
17062
17126
  /**
17063
17127
  * Creates a new CreateUploadLocationRequest instance using the specified properties.
17064
17128
  * @param [properties] Properties to set
@@ -17006,6 +17006,7 @@ export const flyteidl = $root.flyteidl = (() => {
17006
17006
  * @memberof flyteidl.admin
17007
17007
  * @interface IClusterAssignment
17008
17008
  * @property {flyteidl.admin.IAffinity|null} [affinity] ClusterAssignment affinity
17009
+ * @property {flyteidl.admin.IToleration|null} [toleration] ClusterAssignment toleration
17009
17010
  */
17010
17011
 
17011
17012
  /**
@@ -17031,6 +17032,14 @@ export const flyteidl = $root.flyteidl = (() => {
17031
17032
  */
17032
17033
  ClusterAssignment.prototype.affinity = null;
17033
17034
 
17035
+ /**
17036
+ * ClusterAssignment toleration.
17037
+ * @member {flyteidl.admin.IToleration|null|undefined} toleration
17038
+ * @memberof flyteidl.admin.ClusterAssignment
17039
+ * @instance
17040
+ */
17041
+ ClusterAssignment.prototype.toleration = null;
17042
+
17034
17043
  /**
17035
17044
  * Creates a new ClusterAssignment instance using the specified properties.
17036
17045
  * @function create
@@ -17057,6 +17066,8 @@ export const flyteidl = $root.flyteidl = (() => {
17057
17066
  writer = $Writer.create();
17058
17067
  if (message.affinity != null && message.hasOwnProperty("affinity"))
17059
17068
  $root.flyteidl.admin.Affinity.encode(message.affinity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17069
+ if (message.toleration != null && message.hasOwnProperty("toleration"))
17070
+ $root.flyteidl.admin.Toleration.encode(message.toleration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17060
17071
  return writer;
17061
17072
  };
17062
17073
 
@@ -17081,6 +17092,9 @@ export const flyteidl = $root.flyteidl = (() => {
17081
17092
  case 1:
17082
17093
  message.affinity = $root.flyteidl.admin.Affinity.decode(reader, reader.uint32());
17083
17094
  break;
17095
+ case 2:
17096
+ message.toleration = $root.flyteidl.admin.Toleration.decode(reader, reader.uint32());
17097
+ break;
17084
17098
  default:
17085
17099
  reader.skipType(tag & 7);
17086
17100
  break;
@@ -17105,6 +17119,11 @@ export const flyteidl = $root.flyteidl = (() => {
17105
17119
  if (error)
17106
17120
  return "affinity." + error;
17107
17121
  }
17122
+ if (message.toleration != null && message.hasOwnProperty("toleration")) {
17123
+ let error = $root.flyteidl.admin.Toleration.verify(message.toleration);
17124
+ if (error)
17125
+ return "toleration." + error;
17126
+ }
17108
17127
  return null;
17109
17128
  };
17110
17129
 
@@ -17231,6 +17250,126 @@ export const flyteidl = $root.flyteidl = (() => {
17231
17250
  return Affinity;
17232
17251
  })();
17233
17252
 
17253
+ admin.Toleration = (function() {
17254
+
17255
+ /**
17256
+ * Properties of a Toleration.
17257
+ * @memberof flyteidl.admin
17258
+ * @interface IToleration
17259
+ * @property {Array.<flyteidl.admin.ISelector>|null} [selectors] Toleration selectors
17260
+ */
17261
+
17262
+ /**
17263
+ * Constructs a new Toleration.
17264
+ * @memberof flyteidl.admin
17265
+ * @classdesc Represents a Toleration.
17266
+ * @implements IToleration
17267
+ * @constructor
17268
+ * @param {flyteidl.admin.IToleration=} [properties] Properties to set
17269
+ */
17270
+ function Toleration(properties) {
17271
+ this.selectors = [];
17272
+ if (properties)
17273
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17274
+ if (properties[keys[i]] != null)
17275
+ this[keys[i]] = properties[keys[i]];
17276
+ }
17277
+
17278
+ /**
17279
+ * Toleration selectors.
17280
+ * @member {Array.<flyteidl.admin.ISelector>} selectors
17281
+ * @memberof flyteidl.admin.Toleration
17282
+ * @instance
17283
+ */
17284
+ Toleration.prototype.selectors = $util.emptyArray;
17285
+
17286
+ /**
17287
+ * Creates a new Toleration instance using the specified properties.
17288
+ * @function create
17289
+ * @memberof flyteidl.admin.Toleration
17290
+ * @static
17291
+ * @param {flyteidl.admin.IToleration=} [properties] Properties to set
17292
+ * @returns {flyteidl.admin.Toleration} Toleration instance
17293
+ */
17294
+ Toleration.create = function create(properties) {
17295
+ return new Toleration(properties);
17296
+ };
17297
+
17298
+ /**
17299
+ * Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
17300
+ * @function encode
17301
+ * @memberof flyteidl.admin.Toleration
17302
+ * @static
17303
+ * @param {flyteidl.admin.IToleration} message Toleration message or plain object to encode
17304
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17305
+ * @returns {$protobuf.Writer} Writer
17306
+ */
17307
+ Toleration.encode = function encode(message, writer) {
17308
+ if (!writer)
17309
+ writer = $Writer.create();
17310
+ if (message.selectors != null && message.selectors.length)
17311
+ for (let i = 0; i < message.selectors.length; ++i)
17312
+ $root.flyteidl.admin.Selector.encode(message.selectors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17313
+ return writer;
17314
+ };
17315
+
17316
+ /**
17317
+ * Decodes a Toleration message from the specified reader or buffer.
17318
+ * @function decode
17319
+ * @memberof flyteidl.admin.Toleration
17320
+ * @static
17321
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17322
+ * @param {number} [length] Message length if known beforehand
17323
+ * @returns {flyteidl.admin.Toleration} Toleration
17324
+ * @throws {Error} If the payload is not a reader or valid buffer
17325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17326
+ */
17327
+ Toleration.decode = function decode(reader, length) {
17328
+ if (!(reader instanceof $Reader))
17329
+ reader = $Reader.create(reader);
17330
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Toleration();
17331
+ while (reader.pos < end) {
17332
+ let tag = reader.uint32();
17333
+ switch (tag >>> 3) {
17334
+ case 1:
17335
+ if (!(message.selectors && message.selectors.length))
17336
+ message.selectors = [];
17337
+ message.selectors.push($root.flyteidl.admin.Selector.decode(reader, reader.uint32()));
17338
+ break;
17339
+ default:
17340
+ reader.skipType(tag & 7);
17341
+ break;
17342
+ }
17343
+ }
17344
+ return message;
17345
+ };
17346
+
17347
+ /**
17348
+ * Verifies a Toleration message.
17349
+ * @function verify
17350
+ * @memberof flyteidl.admin.Toleration
17351
+ * @static
17352
+ * @param {Object.<string,*>} message Plain object to verify
17353
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17354
+ */
17355
+ Toleration.verify = function verify(message) {
17356
+ if (typeof message !== "object" || message === null)
17357
+ return "object expected";
17358
+ if (message.selectors != null && message.hasOwnProperty("selectors")) {
17359
+ if (!Array.isArray(message.selectors))
17360
+ return "selectors: array expected";
17361
+ for (let i = 0; i < message.selectors.length; ++i) {
17362
+ let error = $root.flyteidl.admin.Selector.verify(message.selectors[i]);
17363
+ if (error)
17364
+ return "selectors." + error;
17365
+ }
17366
+ }
17367
+ return null;
17368
+ };
17369
+
17370
+ return Toleration;
17371
+ })();
17372
+
17234
17373
  admin.Selector = (function() {
17235
17374
 
17236
17375
  /**
@@ -39665,8 +39804,9 @@ export const flyteidl = $root.flyteidl = (() => {
39665
39804
  * @interface ICreateUploadLocationRequest
39666
39805
  * @property {string|null} [project] CreateUploadLocationRequest project
39667
39806
  * @property {string|null} [domain] CreateUploadLocationRequest domain
39668
- * @property {string|null} [suffix] CreateUploadLocationRequest suffix
39807
+ * @property {string|null} [filename] CreateUploadLocationRequest filename
39669
39808
  * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn
39809
+ * @property {Uint8Array|null} [contentMd5] CreateUploadLocationRequest contentMd5
39670
39810
  */
39671
39811
 
39672
39812
  /**
@@ -39701,12 +39841,12 @@ export const flyteidl = $root.flyteidl = (() => {
39701
39841
  CreateUploadLocationRequest.prototype.domain = "";
39702
39842
 
39703
39843
  /**
39704
- * CreateUploadLocationRequest suffix.
39705
- * @member {string} suffix
39844
+ * CreateUploadLocationRequest filename.
39845
+ * @member {string} filename
39706
39846
  * @memberof flyteidl.service.CreateUploadLocationRequest
39707
39847
  * @instance
39708
39848
  */
39709
- CreateUploadLocationRequest.prototype.suffix = "";
39849
+ CreateUploadLocationRequest.prototype.filename = "";
39710
39850
 
39711
39851
  /**
39712
39852
  * CreateUploadLocationRequest expiresIn.
@@ -39716,6 +39856,14 @@ export const flyteidl = $root.flyteidl = (() => {
39716
39856
  */
39717
39857
  CreateUploadLocationRequest.prototype.expiresIn = null;
39718
39858
 
39859
+ /**
39860
+ * CreateUploadLocationRequest contentMd5.
39861
+ * @member {Uint8Array} contentMd5
39862
+ * @memberof flyteidl.service.CreateUploadLocationRequest
39863
+ * @instance
39864
+ */
39865
+ CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]);
39866
+
39719
39867
  /**
39720
39868
  * Creates a new CreateUploadLocationRequest instance using the specified properties.
39721
39869
  * @function create
@@ -39744,10 +39892,12 @@ export const flyteidl = $root.flyteidl = (() => {
39744
39892
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.project);
39745
39893
  if (message.domain != null && message.hasOwnProperty("domain"))
39746
39894
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain);
39747
- if (message.suffix != null && message.hasOwnProperty("suffix"))
39748
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
39895
+ if (message.filename != null && message.hasOwnProperty("filename"))
39896
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename);
39749
39897
  if (message.expiresIn != null && message.hasOwnProperty("expiresIn"))
39750
39898
  $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
39899
+ if (message.contentMd5 != null && message.hasOwnProperty("contentMd5"))
39900
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5);
39751
39901
  return writer;
39752
39902
  };
39753
39903
 
@@ -39776,11 +39926,14 @@ export const flyteidl = $root.flyteidl = (() => {
39776
39926
  message.domain = reader.string();
39777
39927
  break;
39778
39928
  case 3:
39779
- message.suffix = reader.string();
39929
+ message.filename = reader.string();
39780
39930
  break;
39781
39931
  case 4:
39782
39932
  message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32());
39783
39933
  break;
39934
+ case 5:
39935
+ message.contentMd5 = reader.bytes();
39936
+ break;
39784
39937
  default:
39785
39938
  reader.skipType(tag & 7);
39786
39939
  break;
@@ -39806,14 +39959,17 @@ export const flyteidl = $root.flyteidl = (() => {
39806
39959
  if (message.domain != null && message.hasOwnProperty("domain"))
39807
39960
  if (!$util.isString(message.domain))
39808
39961
  return "domain: string expected";
39809
- if (message.suffix != null && message.hasOwnProperty("suffix"))
39810
- if (!$util.isString(message.suffix))
39811
- return "suffix: string expected";
39962
+ if (message.filename != null && message.hasOwnProperty("filename"))
39963
+ if (!$util.isString(message.filename))
39964
+ return "filename: string expected";
39812
39965
  if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) {
39813
39966
  let error = $root.google.protobuf.Duration.verify(message.expiresIn);
39814
39967
  if (error)
39815
39968
  return "expiresIn." + error;
39816
39969
  }
39970
+ if (message.contentMd5 != null && message.hasOwnProperty("contentMd5"))
39971
+ if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5)))
39972
+ return "contentMd5: buffer expected";
39817
39973
  return null;
39818
39974
  };
39819
39975
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "0.24.12",
3
+ "version": "0.24.15",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,6 +7,8 @@ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
7
7
  // Encapsulates specifications for routing an execution onto a specific cluster.
8
8
  message ClusterAssignment {
9
9
  Affinity affinity = 1;
10
+
11
+ Toleration toleration = 2;
10
12
  }
11
13
 
12
14
  // Defines a set of constraints used to select eligible objects based on labels they possess.
@@ -15,6 +17,13 @@ message Affinity {
15
17
  repeated Selector selectors = 1;
16
18
  }
17
19
 
20
+ // Defines a set of specific label selectors that the execution can tolerate on a cluster.
21
+ message Toleration {
22
+
23
+ // A toleration selector is similar to that of an affinity but the only valid operators are EQUALS AND EXISTS.
24
+ repeated Selector selectors = 1;
25
+ }
26
+
18
27
  // A Selector is a specification for identifying a set of objects with corresponding labels.
19
28
  message Selector {
20
29
 
@@ -29,14 +29,19 @@ message CreateUploadLocationRequest {
29
29
  // +required
30
30
  string domain = 2;
31
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;
32
+ // Filename 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 consistent name based on the provided parameters.
34
+ string filename = 3;
35
35
 
36
36
  // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
37
37
  // exceeds the platform allowed max.
38
38
  // +optional. The default value comes from a global config.
39
39
  google.protobuf.Duration expires_in = 4;
40
+
41
+ // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
42
+ // generated path.
43
+ // +required
44
+ bytes content_md5 = 5;
40
45
  }
41
46
 
42
47
  // DataProxyService defines an RPC Service that allows access to user-data in a controlled manner.