@flyteorg/flyteidl 1.1.18 → 1.1.19

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.
@@ -7037,11 +7037,8 @@ export namespace flyteidl {
7037
7037
  /** Properties of a ClusterAssignment. */
7038
7038
  interface IClusterAssignment {
7039
7039
 
7040
- /** ClusterAssignment affinity */
7041
- affinity?: (flyteidl.admin.IAffinity|null);
7042
-
7043
- /** ClusterAssignment toleration */
7044
- toleration?: (flyteidl.admin.IToleration|null);
7040
+ /** ClusterAssignment clusterPoolName */
7041
+ clusterPoolName?: (string|null);
7045
7042
  }
7046
7043
 
7047
7044
  /** Represents a ClusterAssignment. */
@@ -7053,11 +7050,8 @@ export namespace flyteidl {
7053
7050
  */
7054
7051
  constructor(properties?: flyteidl.admin.IClusterAssignment);
7055
7052
 
7056
- /** ClusterAssignment affinity. */
7057
- public affinity?: (flyteidl.admin.IAffinity|null);
7058
-
7059
- /** ClusterAssignment toleration. */
7060
- public toleration?: (flyteidl.admin.IToleration|null);
7053
+ /** ClusterAssignment clusterPoolName. */
7054
+ public clusterPoolName: string;
7061
7055
 
7062
7056
  /**
7063
7057
  * Creates a new ClusterAssignment instance using the specified properties.
@@ -7092,186 +7086,6 @@ export namespace flyteidl {
7092
7086
  public static verify(message: { [k: string]: any }): (string|null);
7093
7087
  }
7094
7088
 
7095
- /** Properties of an Affinity. */
7096
- interface IAffinity {
7097
-
7098
- /** Affinity selectors */
7099
- selectors?: (flyteidl.admin.ISelector[]|null);
7100
- }
7101
-
7102
- /** Represents an Affinity. */
7103
- class Affinity implements IAffinity {
7104
-
7105
- /**
7106
- * Constructs a new Affinity.
7107
- * @param [properties] Properties to set
7108
- */
7109
- constructor(properties?: flyteidl.admin.IAffinity);
7110
-
7111
- /** Affinity selectors. */
7112
- public selectors: flyteidl.admin.ISelector[];
7113
-
7114
- /**
7115
- * Creates a new Affinity instance using the specified properties.
7116
- * @param [properties] Properties to set
7117
- * @returns Affinity instance
7118
- */
7119
- public static create(properties?: flyteidl.admin.IAffinity): flyteidl.admin.Affinity;
7120
-
7121
- /**
7122
- * Encodes the specified Affinity message. Does not implicitly {@link flyteidl.admin.Affinity.verify|verify} messages.
7123
- * @param message Affinity message or plain object to encode
7124
- * @param [writer] Writer to encode to
7125
- * @returns Writer
7126
- */
7127
- public static encode(message: flyteidl.admin.IAffinity, writer?: $protobuf.Writer): $protobuf.Writer;
7128
-
7129
- /**
7130
- * Decodes an Affinity message from the specified reader or buffer.
7131
- * @param reader Reader or buffer to decode from
7132
- * @param [length] Message length if known beforehand
7133
- * @returns Affinity
7134
- * @throws {Error} If the payload is not a reader or valid buffer
7135
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7136
- */
7137
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Affinity;
7138
-
7139
- /**
7140
- * Verifies an Affinity message.
7141
- * @param message Plain object to verify
7142
- * @returns `null` if valid, otherwise the reason why it is not
7143
- */
7144
- public static verify(message: { [k: string]: any }): (string|null);
7145
- }
7146
-
7147
- /** Properties of a Toleration. */
7148
- interface IToleration {
7149
-
7150
- /** Toleration selectors */
7151
- selectors?: (flyteidl.admin.ISelector[]|null);
7152
- }
7153
-
7154
- /** Represents a Toleration. */
7155
- class Toleration implements IToleration {
7156
-
7157
- /**
7158
- * Constructs a new Toleration.
7159
- * @param [properties] Properties to set
7160
- */
7161
- constructor(properties?: flyteidl.admin.IToleration);
7162
-
7163
- /** Toleration selectors. */
7164
- public selectors: flyteidl.admin.ISelector[];
7165
-
7166
- /**
7167
- * Creates a new Toleration instance using the specified properties.
7168
- * @param [properties] Properties to set
7169
- * @returns Toleration instance
7170
- */
7171
- public static create(properties?: flyteidl.admin.IToleration): flyteidl.admin.Toleration;
7172
-
7173
- /**
7174
- * Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
7175
- * @param message Toleration message or plain object to encode
7176
- * @param [writer] Writer to encode to
7177
- * @returns Writer
7178
- */
7179
- public static encode(message: flyteidl.admin.IToleration, writer?: $protobuf.Writer): $protobuf.Writer;
7180
-
7181
- /**
7182
- * Decodes a Toleration message from the specified reader or buffer.
7183
- * @param reader Reader or buffer to decode from
7184
- * @param [length] Message length if known beforehand
7185
- * @returns Toleration
7186
- * @throws {Error} If the payload is not a reader or valid buffer
7187
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7188
- */
7189
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Toleration;
7190
-
7191
- /**
7192
- * Verifies a Toleration message.
7193
- * @param message Plain object to verify
7194
- * @returns `null` if valid, otherwise the reason why it is not
7195
- */
7196
- public static verify(message: { [k: string]: any }): (string|null);
7197
- }
7198
-
7199
- /** Properties of a Selector. */
7200
- interface ISelector {
7201
-
7202
- /** Selector key */
7203
- key?: (string|null);
7204
-
7205
- /** Selector value */
7206
- value?: (string[]|null);
7207
-
7208
- /** Selector operator */
7209
- operator?: (flyteidl.admin.Selector.Operator|null);
7210
- }
7211
-
7212
- /** Represents a Selector. */
7213
- class Selector implements ISelector {
7214
-
7215
- /**
7216
- * Constructs a new Selector.
7217
- * @param [properties] Properties to set
7218
- */
7219
- constructor(properties?: flyteidl.admin.ISelector);
7220
-
7221
- /** Selector key. */
7222
- public key: string;
7223
-
7224
- /** Selector value. */
7225
- public value: string[];
7226
-
7227
- /** Selector operator. */
7228
- public operator: flyteidl.admin.Selector.Operator;
7229
-
7230
- /**
7231
- * Creates a new Selector instance using the specified properties.
7232
- * @param [properties] Properties to set
7233
- * @returns Selector instance
7234
- */
7235
- public static create(properties?: flyteidl.admin.ISelector): flyteidl.admin.Selector;
7236
-
7237
- /**
7238
- * Encodes the specified Selector message. Does not implicitly {@link flyteidl.admin.Selector.verify|verify} messages.
7239
- * @param message Selector message or plain object to encode
7240
- * @param [writer] Writer to encode to
7241
- * @returns Writer
7242
- */
7243
- public static encode(message: flyteidl.admin.ISelector, writer?: $protobuf.Writer): $protobuf.Writer;
7244
-
7245
- /**
7246
- * Decodes a Selector message from the specified reader or buffer.
7247
- * @param reader Reader or buffer to decode from
7248
- * @param [length] Message length if known beforehand
7249
- * @returns Selector
7250
- * @throws {Error} If the payload is not a reader or valid buffer
7251
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7252
- */
7253
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Selector;
7254
-
7255
- /**
7256
- * Verifies a Selector message.
7257
- * @param message Plain object to verify
7258
- * @returns `null` if valid, otherwise the reason why it is not
7259
- */
7260
- public static verify(message: { [k: string]: any }): (string|null);
7261
- }
7262
-
7263
- namespace Selector {
7264
-
7265
- /** Operator enum. */
7266
- enum Operator {
7267
- EQUALS = 0,
7268
- NOT_EQUALS = 1,
7269
- IN = 2,
7270
- NOT_IN = 3,
7271
- EXISTS = 4
7272
- }
7273
- }
7274
-
7275
7089
  /** Properties of a NamedEntityIdentifier. */
7276
7090
  interface INamedEntityIdentifier {
7277
7091
 
@@ -17056,8 +17056,7 @@ export const flyteidl = $root.flyteidl = (() => {
17056
17056
  * Properties of a ClusterAssignment.
17057
17057
  * @memberof flyteidl.admin
17058
17058
  * @interface IClusterAssignment
17059
- * @property {flyteidl.admin.IAffinity|null} [affinity] ClusterAssignment affinity
17060
- * @property {flyteidl.admin.IToleration|null} [toleration] ClusterAssignment toleration
17059
+ * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName
17061
17060
  */
17062
17061
 
17063
17062
  /**
@@ -17076,20 +17075,12 @@ export const flyteidl = $root.flyteidl = (() => {
17076
17075
  }
17077
17076
 
17078
17077
  /**
17079
- * ClusterAssignment affinity.
17080
- * @member {flyteidl.admin.IAffinity|null|undefined} affinity
17078
+ * ClusterAssignment clusterPoolName.
17079
+ * @member {string} clusterPoolName
17081
17080
  * @memberof flyteidl.admin.ClusterAssignment
17082
17081
  * @instance
17083
17082
  */
17084
- ClusterAssignment.prototype.affinity = null;
17085
-
17086
- /**
17087
- * ClusterAssignment toleration.
17088
- * @member {flyteidl.admin.IToleration|null|undefined} toleration
17089
- * @memberof flyteidl.admin.ClusterAssignment
17090
- * @instance
17091
- */
17092
- ClusterAssignment.prototype.toleration = null;
17083
+ ClusterAssignment.prototype.clusterPoolName = "";
17093
17084
 
17094
17085
  /**
17095
17086
  * Creates a new ClusterAssignment instance using the specified properties.
@@ -17115,10 +17106,8 @@ export const flyteidl = $root.flyteidl = (() => {
17115
17106
  ClusterAssignment.encode = function encode(message, writer) {
17116
17107
  if (!writer)
17117
17108
  writer = $Writer.create();
17118
- if (message.affinity != null && message.hasOwnProperty("affinity"))
17119
- $root.flyteidl.admin.Affinity.encode(message.affinity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17120
- if (message.toleration != null && message.hasOwnProperty("toleration"))
17121
- $root.flyteidl.admin.Toleration.encode(message.toleration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17109
+ if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName"))
17110
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName);
17122
17111
  return writer;
17123
17112
  };
17124
17113
 
@@ -17140,11 +17129,8 @@ export const flyteidl = $root.flyteidl = (() => {
17140
17129
  while (reader.pos < end) {
17141
17130
  let tag = reader.uint32();
17142
17131
  switch (tag >>> 3) {
17143
- case 1:
17144
- message.affinity = $root.flyteidl.admin.Affinity.decode(reader, reader.uint32());
17145
- break;
17146
- case 2:
17147
- message.toleration = $root.flyteidl.admin.Toleration.decode(reader, reader.uint32());
17132
+ case 3:
17133
+ message.clusterPoolName = reader.string();
17148
17134
  break;
17149
17135
  default:
17150
17136
  reader.skipType(tag & 7);
@@ -17165,442 +17151,15 @@ export const flyteidl = $root.flyteidl = (() => {
17165
17151
  ClusterAssignment.verify = function verify(message) {
17166
17152
  if (typeof message !== "object" || message === null)
17167
17153
  return "object expected";
17168
- if (message.affinity != null && message.hasOwnProperty("affinity")) {
17169
- let error = $root.flyteidl.admin.Affinity.verify(message.affinity);
17170
- if (error)
17171
- return "affinity." + error;
17172
- }
17173
- if (message.toleration != null && message.hasOwnProperty("toleration")) {
17174
- let error = $root.flyteidl.admin.Toleration.verify(message.toleration);
17175
- if (error)
17176
- return "toleration." + error;
17177
- }
17154
+ if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName"))
17155
+ if (!$util.isString(message.clusterPoolName))
17156
+ return "clusterPoolName: string expected";
17178
17157
  return null;
17179
17158
  };
17180
17159
 
17181
17160
  return ClusterAssignment;
17182
17161
  })();
17183
17162
 
17184
- admin.Affinity = (function() {
17185
-
17186
- /**
17187
- * Properties of an Affinity.
17188
- * @memberof flyteidl.admin
17189
- * @interface IAffinity
17190
- * @property {Array.<flyteidl.admin.ISelector>|null} [selectors] Affinity selectors
17191
- */
17192
-
17193
- /**
17194
- * Constructs a new Affinity.
17195
- * @memberof flyteidl.admin
17196
- * @classdesc Represents an Affinity.
17197
- * @implements IAffinity
17198
- * @constructor
17199
- * @param {flyteidl.admin.IAffinity=} [properties] Properties to set
17200
- */
17201
- function Affinity(properties) {
17202
- this.selectors = [];
17203
- if (properties)
17204
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17205
- if (properties[keys[i]] != null)
17206
- this[keys[i]] = properties[keys[i]];
17207
- }
17208
-
17209
- /**
17210
- * Affinity selectors.
17211
- * @member {Array.<flyteidl.admin.ISelector>} selectors
17212
- * @memberof flyteidl.admin.Affinity
17213
- * @instance
17214
- */
17215
- Affinity.prototype.selectors = $util.emptyArray;
17216
-
17217
- /**
17218
- * Creates a new Affinity instance using the specified properties.
17219
- * @function create
17220
- * @memberof flyteidl.admin.Affinity
17221
- * @static
17222
- * @param {flyteidl.admin.IAffinity=} [properties] Properties to set
17223
- * @returns {flyteidl.admin.Affinity} Affinity instance
17224
- */
17225
- Affinity.create = function create(properties) {
17226
- return new Affinity(properties);
17227
- };
17228
-
17229
- /**
17230
- * Encodes the specified Affinity message. Does not implicitly {@link flyteidl.admin.Affinity.verify|verify} messages.
17231
- * @function encode
17232
- * @memberof flyteidl.admin.Affinity
17233
- * @static
17234
- * @param {flyteidl.admin.IAffinity} message Affinity message or plain object to encode
17235
- * @param {$protobuf.Writer} [writer] Writer to encode to
17236
- * @returns {$protobuf.Writer} Writer
17237
- */
17238
- Affinity.encode = function encode(message, writer) {
17239
- if (!writer)
17240
- writer = $Writer.create();
17241
- if (message.selectors != null && message.selectors.length)
17242
- for (let i = 0; i < message.selectors.length; ++i)
17243
- $root.flyteidl.admin.Selector.encode(message.selectors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17244
- return writer;
17245
- };
17246
-
17247
- /**
17248
- * Decodes an Affinity message from the specified reader or buffer.
17249
- * @function decode
17250
- * @memberof flyteidl.admin.Affinity
17251
- * @static
17252
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17253
- * @param {number} [length] Message length if known beforehand
17254
- * @returns {flyteidl.admin.Affinity} Affinity
17255
- * @throws {Error} If the payload is not a reader or valid buffer
17256
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
17257
- */
17258
- Affinity.decode = function decode(reader, length) {
17259
- if (!(reader instanceof $Reader))
17260
- reader = $Reader.create(reader);
17261
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Affinity();
17262
- while (reader.pos < end) {
17263
- let tag = reader.uint32();
17264
- switch (tag >>> 3) {
17265
- case 1:
17266
- if (!(message.selectors && message.selectors.length))
17267
- message.selectors = [];
17268
- message.selectors.push($root.flyteidl.admin.Selector.decode(reader, reader.uint32()));
17269
- break;
17270
- default:
17271
- reader.skipType(tag & 7);
17272
- break;
17273
- }
17274
- }
17275
- return message;
17276
- };
17277
-
17278
- /**
17279
- * Verifies an Affinity message.
17280
- * @function verify
17281
- * @memberof flyteidl.admin.Affinity
17282
- * @static
17283
- * @param {Object.<string,*>} message Plain object to verify
17284
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
17285
- */
17286
- Affinity.verify = function verify(message) {
17287
- if (typeof message !== "object" || message === null)
17288
- return "object expected";
17289
- if (message.selectors != null && message.hasOwnProperty("selectors")) {
17290
- if (!Array.isArray(message.selectors))
17291
- return "selectors: array expected";
17292
- for (let i = 0; i < message.selectors.length; ++i) {
17293
- let error = $root.flyteidl.admin.Selector.verify(message.selectors[i]);
17294
- if (error)
17295
- return "selectors." + error;
17296
- }
17297
- }
17298
- return null;
17299
- };
17300
-
17301
- return Affinity;
17302
- })();
17303
-
17304
- admin.Toleration = (function() {
17305
-
17306
- /**
17307
- * Properties of a Toleration.
17308
- * @memberof flyteidl.admin
17309
- * @interface IToleration
17310
- * @property {Array.<flyteidl.admin.ISelector>|null} [selectors] Toleration selectors
17311
- */
17312
-
17313
- /**
17314
- * Constructs a new Toleration.
17315
- * @memberof flyteidl.admin
17316
- * @classdesc Represents a Toleration.
17317
- * @implements IToleration
17318
- * @constructor
17319
- * @param {flyteidl.admin.IToleration=} [properties] Properties to set
17320
- */
17321
- function Toleration(properties) {
17322
- this.selectors = [];
17323
- if (properties)
17324
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17325
- if (properties[keys[i]] != null)
17326
- this[keys[i]] = properties[keys[i]];
17327
- }
17328
-
17329
- /**
17330
- * Toleration selectors.
17331
- * @member {Array.<flyteidl.admin.ISelector>} selectors
17332
- * @memberof flyteidl.admin.Toleration
17333
- * @instance
17334
- */
17335
- Toleration.prototype.selectors = $util.emptyArray;
17336
-
17337
- /**
17338
- * Creates a new Toleration instance using the specified properties.
17339
- * @function create
17340
- * @memberof flyteidl.admin.Toleration
17341
- * @static
17342
- * @param {flyteidl.admin.IToleration=} [properties] Properties to set
17343
- * @returns {flyteidl.admin.Toleration} Toleration instance
17344
- */
17345
- Toleration.create = function create(properties) {
17346
- return new Toleration(properties);
17347
- };
17348
-
17349
- /**
17350
- * Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
17351
- * @function encode
17352
- * @memberof flyteidl.admin.Toleration
17353
- * @static
17354
- * @param {flyteidl.admin.IToleration} message Toleration message or plain object to encode
17355
- * @param {$protobuf.Writer} [writer] Writer to encode to
17356
- * @returns {$protobuf.Writer} Writer
17357
- */
17358
- Toleration.encode = function encode(message, writer) {
17359
- if (!writer)
17360
- writer = $Writer.create();
17361
- if (message.selectors != null && message.selectors.length)
17362
- for (let i = 0; i < message.selectors.length; ++i)
17363
- $root.flyteidl.admin.Selector.encode(message.selectors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
17364
- return writer;
17365
- };
17366
-
17367
- /**
17368
- * Decodes a Toleration message from the specified reader or buffer.
17369
- * @function decode
17370
- * @memberof flyteidl.admin.Toleration
17371
- * @static
17372
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17373
- * @param {number} [length] Message length if known beforehand
17374
- * @returns {flyteidl.admin.Toleration} Toleration
17375
- * @throws {Error} If the payload is not a reader or valid buffer
17376
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
17377
- */
17378
- Toleration.decode = function decode(reader, length) {
17379
- if (!(reader instanceof $Reader))
17380
- reader = $Reader.create(reader);
17381
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Toleration();
17382
- while (reader.pos < end) {
17383
- let tag = reader.uint32();
17384
- switch (tag >>> 3) {
17385
- case 1:
17386
- if (!(message.selectors && message.selectors.length))
17387
- message.selectors = [];
17388
- message.selectors.push($root.flyteidl.admin.Selector.decode(reader, reader.uint32()));
17389
- break;
17390
- default:
17391
- reader.skipType(tag & 7);
17392
- break;
17393
- }
17394
- }
17395
- return message;
17396
- };
17397
-
17398
- /**
17399
- * Verifies a Toleration message.
17400
- * @function verify
17401
- * @memberof flyteidl.admin.Toleration
17402
- * @static
17403
- * @param {Object.<string,*>} message Plain object to verify
17404
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
17405
- */
17406
- Toleration.verify = function verify(message) {
17407
- if (typeof message !== "object" || message === null)
17408
- return "object expected";
17409
- if (message.selectors != null && message.hasOwnProperty("selectors")) {
17410
- if (!Array.isArray(message.selectors))
17411
- return "selectors: array expected";
17412
- for (let i = 0; i < message.selectors.length; ++i) {
17413
- let error = $root.flyteidl.admin.Selector.verify(message.selectors[i]);
17414
- if (error)
17415
- return "selectors." + error;
17416
- }
17417
- }
17418
- return null;
17419
- };
17420
-
17421
- return Toleration;
17422
- })();
17423
-
17424
- admin.Selector = (function() {
17425
-
17426
- /**
17427
- * Properties of a Selector.
17428
- * @memberof flyteidl.admin
17429
- * @interface ISelector
17430
- * @property {string|null} [key] Selector key
17431
- * @property {Array.<string>|null} [value] Selector value
17432
- * @property {flyteidl.admin.Selector.Operator|null} [operator] Selector operator
17433
- */
17434
-
17435
- /**
17436
- * Constructs a new Selector.
17437
- * @memberof flyteidl.admin
17438
- * @classdesc Represents a Selector.
17439
- * @implements ISelector
17440
- * @constructor
17441
- * @param {flyteidl.admin.ISelector=} [properties] Properties to set
17442
- */
17443
- function Selector(properties) {
17444
- this.value = [];
17445
- if (properties)
17446
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17447
- if (properties[keys[i]] != null)
17448
- this[keys[i]] = properties[keys[i]];
17449
- }
17450
-
17451
- /**
17452
- * Selector key.
17453
- * @member {string} key
17454
- * @memberof flyteidl.admin.Selector
17455
- * @instance
17456
- */
17457
- Selector.prototype.key = "";
17458
-
17459
- /**
17460
- * Selector value.
17461
- * @member {Array.<string>} value
17462
- * @memberof flyteidl.admin.Selector
17463
- * @instance
17464
- */
17465
- Selector.prototype.value = $util.emptyArray;
17466
-
17467
- /**
17468
- * Selector operator.
17469
- * @member {flyteidl.admin.Selector.Operator} operator
17470
- * @memberof flyteidl.admin.Selector
17471
- * @instance
17472
- */
17473
- Selector.prototype.operator = 0;
17474
-
17475
- /**
17476
- * Creates a new Selector instance using the specified properties.
17477
- * @function create
17478
- * @memberof flyteidl.admin.Selector
17479
- * @static
17480
- * @param {flyteidl.admin.ISelector=} [properties] Properties to set
17481
- * @returns {flyteidl.admin.Selector} Selector instance
17482
- */
17483
- Selector.create = function create(properties) {
17484
- return new Selector(properties);
17485
- };
17486
-
17487
- /**
17488
- * Encodes the specified Selector message. Does not implicitly {@link flyteidl.admin.Selector.verify|verify} messages.
17489
- * @function encode
17490
- * @memberof flyteidl.admin.Selector
17491
- * @static
17492
- * @param {flyteidl.admin.ISelector} message Selector message or plain object to encode
17493
- * @param {$protobuf.Writer} [writer] Writer to encode to
17494
- * @returns {$protobuf.Writer} Writer
17495
- */
17496
- Selector.encode = function encode(message, writer) {
17497
- if (!writer)
17498
- writer = $Writer.create();
17499
- if (message.key != null && message.hasOwnProperty("key"))
17500
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
17501
- if (message.value != null && message.value.length)
17502
- for (let i = 0; i < message.value.length; ++i)
17503
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.value[i]);
17504
- if (message.operator != null && message.hasOwnProperty("operator"))
17505
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operator);
17506
- return writer;
17507
- };
17508
-
17509
- /**
17510
- * Decodes a Selector message from the specified reader or buffer.
17511
- * @function decode
17512
- * @memberof flyteidl.admin.Selector
17513
- * @static
17514
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17515
- * @param {number} [length] Message length if known beforehand
17516
- * @returns {flyteidl.admin.Selector} Selector
17517
- * @throws {Error} If the payload is not a reader or valid buffer
17518
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
17519
- */
17520
- Selector.decode = function decode(reader, length) {
17521
- if (!(reader instanceof $Reader))
17522
- reader = $Reader.create(reader);
17523
- let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Selector();
17524
- while (reader.pos < end) {
17525
- let tag = reader.uint32();
17526
- switch (tag >>> 3) {
17527
- case 1:
17528
- message.key = reader.string();
17529
- break;
17530
- case 2:
17531
- if (!(message.value && message.value.length))
17532
- message.value = [];
17533
- message.value.push(reader.string());
17534
- break;
17535
- case 3:
17536
- message.operator = reader.int32();
17537
- break;
17538
- default:
17539
- reader.skipType(tag & 7);
17540
- break;
17541
- }
17542
- }
17543
- return message;
17544
- };
17545
-
17546
- /**
17547
- * Verifies a Selector message.
17548
- * @function verify
17549
- * @memberof flyteidl.admin.Selector
17550
- * @static
17551
- * @param {Object.<string,*>} message Plain object to verify
17552
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
17553
- */
17554
- Selector.verify = function verify(message) {
17555
- if (typeof message !== "object" || message === null)
17556
- return "object expected";
17557
- if (message.key != null && message.hasOwnProperty("key"))
17558
- if (!$util.isString(message.key))
17559
- return "key: string expected";
17560
- if (message.value != null && message.hasOwnProperty("value")) {
17561
- if (!Array.isArray(message.value))
17562
- return "value: array expected";
17563
- for (let i = 0; i < message.value.length; ++i)
17564
- if (!$util.isString(message.value[i]))
17565
- return "value: string[] expected";
17566
- }
17567
- if (message.operator != null && message.hasOwnProperty("operator"))
17568
- switch (message.operator) {
17569
- default:
17570
- return "operator: enum value expected";
17571
- case 0:
17572
- case 1:
17573
- case 2:
17574
- case 3:
17575
- case 4:
17576
- break;
17577
- }
17578
- return null;
17579
- };
17580
-
17581
- /**
17582
- * Operator enum.
17583
- * @name flyteidl.admin.Selector.Operator
17584
- * @enum {string}
17585
- * @property {number} EQUALS=0 EQUALS value
17586
- * @property {number} NOT_EQUALS=1 NOT_EQUALS value
17587
- * @property {number} IN=2 IN value
17588
- * @property {number} NOT_IN=3 NOT_IN value
17589
- * @property {number} EXISTS=4 EXISTS value
17590
- */
17591
- Selector.Operator = (function() {
17592
- const valuesById = {}, values = Object.create(valuesById);
17593
- values[valuesById[0] = "EQUALS"] = 0;
17594
- values[valuesById[1] = "NOT_EQUALS"] = 1;
17595
- values[valuesById[2] = "IN"] = 2;
17596
- values[valuesById[3] = "NOT_IN"] = 3;
17597
- values[valuesById[4] = "EXISTS"] = 4;
17598
- return values;
17599
- })();
17600
-
17601
- return Selector;
17602
- })();
17603
-
17604
17163
  admin.NamedEntityIdentifier = (function() {
17605
17164
 
17606
17165
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,27 +14,6 @@ flyteidl/admin/cluster_assignment.proto
14
14
 
15
15
 
16
16
 
17
- .. _ref_flyteidl.admin.Affinity:
18
-
19
- Affinity
20
- ------------------------------------------------------------------
21
-
22
- Defines a set of constraints used to select eligible objects based on labels they possess.
23
-
24
-
25
-
26
- .. csv-table:: Affinity type fields
27
- :header: "Field", "Type", "Label", "Description"
28
- :widths: auto
29
-
30
- "selectors", ":ref:`ref_flyteidl.admin.Selector`", "repeated", "Multiples selectors are 'and'-ed together to produce the list of matching, eligible objects."
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
17
  .. _ref_flyteidl.admin.ClusterAssignment:
39
18
 
40
19
  ClusterAssignment
@@ -48,52 +27,7 @@ Encapsulates specifications for routing an execution onto a specific cluster.
48
27
  :header: "Field", "Type", "Label", "Description"
49
28
  :widths: auto
50
29
 
51
- "affinity", ":ref:`ref_flyteidl.admin.Affinity`", "", ""
52
- "toleration", ":ref:`ref_flyteidl.admin.Toleration`", "", ""
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
- .. _ref_flyteidl.admin.Selector:
61
-
62
- Selector
63
- ------------------------------------------------------------------
64
-
65
- A Selector is a specification for identifying a set of objects with corresponding labels.
66
-
67
-
68
-
69
- .. csv-table:: Selector type fields
70
- :header: "Field", "Type", "Label", "Description"
71
- :widths: auto
72
-
73
- "key", ":ref:`ref_string`", "", "The label key."
74
- "value", ":ref:`ref_string`", "repeated", "One or more values used to match labels. For equality (or inequality) requirements, values must contain a single element. For set-based requirements, values may contain one or more elements."
75
- "operator", ":ref:`ref_flyteidl.admin.Selector.Operator`", "", ""
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
- .. _ref_flyteidl.admin.Toleration:
84
-
85
- Toleration
86
- ------------------------------------------------------------------
87
-
88
- Defines a set of specific label selectors that the execution can tolerate on a cluster.
89
-
90
-
91
-
92
- .. csv-table:: Toleration type fields
93
- :header: "Field", "Type", "Label", "Description"
94
- :widths: auto
95
-
96
- "selectors", ":ref:`ref_flyteidl.admin.Selector`", "repeated", "A toleration selector is similar to that of an affinity but the only valid operators are EQUALS AND EXISTS."
30
+ "cluster_pool_name", ":ref:`ref_string`", "", ""
97
31
 
98
32
 
99
33
 
@@ -104,25 +38,6 @@ Defines a set of specific label selectors that the execution can tolerate on a c
104
38
  end messages
105
39
 
106
40
 
107
-
108
- .. _ref_flyteidl.admin.Selector.Operator:
109
-
110
- Selector.Operator
111
- ------------------------------------------------------------------
112
-
113
- Defines how a label with a corresponding key and value is selected or excluded.
114
-
115
- .. csv-table:: Enum Selector.Operator values
116
- :header: "Name", "Number", "Description"
117
- :widths: auto
118
-
119
- "EQUALS", "0", ""
120
- "NOT_EQUALS", "1", ""
121
- "IN", "2", ""
122
- "NOT_IN", "3", ""
123
- "EXISTS", "4", "A label key with any value"
124
-
125
-
126
41
  ..
127
42
  end enums
128
43
 
@@ -6,45 +6,6 @@ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
6
6
 
7
7
  // Encapsulates specifications for routing an execution onto a specific cluster.
8
8
  message ClusterAssignment {
9
- Affinity affinity = 1;
10
-
11
- Toleration toleration = 2;
12
- }
13
-
14
- // Defines a set of constraints used to select eligible objects based on labels they possess.
15
- message Affinity {
16
- // Multiples selectors are 'and'-ed together to produce the list of matching, eligible objects.
17
- repeated Selector selectors = 1;
18
- }
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;
9
+ reserved 1, 2;
10
+ string cluster_pool_name = 3;
25
11
  }
26
-
27
- // A Selector is a specification for identifying a set of objects with corresponding labels.
28
- message Selector {
29
-
30
- // The label key.
31
- string key = 1;
32
-
33
- // One or more values used to match labels.
34
- // For equality (or inequality) requirements, values must contain a single element.
35
- // For set-based requirements, values may contain one or more elements.
36
- repeated string value = 2;
37
-
38
- // Defines how a label with a corresponding key and value is selected or excluded.
39
- enum Operator {
40
- EQUALS = 0;
41
- NOT_EQUALS = 1;
42
- IN = 2;
43
- NOT_IN = 3;
44
- EXISTS = 4; // A label key with any value
45
-
46
- // K8s supports more operators, we can consider adding them if necessary
47
- }
48
- Operator operator = 3;
49
- }
50
-