@flyteorg/flyteidl 1.5.18 → 1.5.20

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.
@@ -1886,9 +1886,6 @@ export namespace flyteidl {
1886
1886
 
1887
1887
  /** TaskNodeOverrides resources */
1888
1888
  resources?: (flyteidl.core.IResources|null);
1889
-
1890
- /** TaskNodeOverrides resourceMetadata */
1891
- resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
1892
1889
  }
1893
1890
 
1894
1891
  /** Represents a TaskNodeOverrides. */
@@ -1903,9 +1900,6 @@ export namespace flyteidl {
1903
1900
  /** TaskNodeOverrides resources. */
1904
1901
  public resources?: (flyteidl.core.IResources|null);
1905
1902
 
1906
- /** TaskNodeOverrides resourceMetadata. */
1907
- public resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
1908
-
1909
1903
  /**
1910
1904
  * Creates a new TaskNodeOverrides instance using the specified properties.
1911
1905
  * @param [properties] Properties to set
@@ -4094,6 +4088,9 @@ export namespace flyteidl {
4094
4088
 
4095
4089
  /** OutputReference var */
4096
4090
  "var"?: (string|null);
4091
+
4092
+ /** OutputReference attrPath */
4093
+ attrPath?: (flyteidl.core.IPromiseAttribute[]|null);
4097
4094
  }
4098
4095
 
4099
4096
  /** Represents an OutputReference. */
@@ -4111,6 +4108,9 @@ export namespace flyteidl {
4111
4108
  /** OutputReference var. */
4112
4109
  public var: string;
4113
4110
 
4111
+ /** OutputReference attrPath. */
4112
+ public attrPath: flyteidl.core.IPromiseAttribute[];
4113
+
4114
4114
  /**
4115
4115
  * Creates a new OutputReference instance using the specified properties.
4116
4116
  * @param [properties] Properties to set
@@ -4144,6 +4144,67 @@ export namespace flyteidl {
4144
4144
  public static verify(message: { [k: string]: any }): (string|null);
4145
4145
  }
4146
4146
 
4147
+ /** Properties of a PromiseAttribute. */
4148
+ interface IPromiseAttribute {
4149
+
4150
+ /** PromiseAttribute stringValue */
4151
+ stringValue?: (string|null);
4152
+
4153
+ /** PromiseAttribute intValue */
4154
+ intValue?: (number|null);
4155
+ }
4156
+
4157
+ /** Represents a PromiseAttribute. */
4158
+ class PromiseAttribute implements IPromiseAttribute {
4159
+
4160
+ /**
4161
+ * Constructs a new PromiseAttribute.
4162
+ * @param [properties] Properties to set
4163
+ */
4164
+ constructor(properties?: flyteidl.core.IPromiseAttribute);
4165
+
4166
+ /** PromiseAttribute stringValue. */
4167
+ public stringValue: string;
4168
+
4169
+ /** PromiseAttribute intValue. */
4170
+ public intValue: number;
4171
+
4172
+ /** PromiseAttribute value. */
4173
+ public value?: ("stringValue"|"intValue");
4174
+
4175
+ /**
4176
+ * Creates a new PromiseAttribute instance using the specified properties.
4177
+ * @param [properties] Properties to set
4178
+ * @returns PromiseAttribute instance
4179
+ */
4180
+ public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute;
4181
+
4182
+ /**
4183
+ * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages.
4184
+ * @param message PromiseAttribute message or plain object to encode
4185
+ * @param [writer] Writer to encode to
4186
+ * @returns Writer
4187
+ */
4188
+ public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
4189
+
4190
+ /**
4191
+ * Decodes a PromiseAttribute message from the specified reader or buffer.
4192
+ * @param reader Reader or buffer to decode from
4193
+ * @param [length] Message length if known beforehand
4194
+ * @returns PromiseAttribute
4195
+ * @throws {Error} If the payload is not a reader or valid buffer
4196
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4197
+ */
4198
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.PromiseAttribute;
4199
+
4200
+ /**
4201
+ * Verifies a PromiseAttribute message.
4202
+ * @param message Plain object to verify
4203
+ * @returns `null` if valid, otherwise the reason why it is not
4204
+ */
4205
+ public static verify(message: { [k: string]: any }): (string|null);
4206
+ }
4207
+
4147
4208
  /** Properties of an Error. */
4148
4209
  interface IError {
4149
4210
 
@@ -5163,128 +5224,6 @@ export namespace flyteidl {
5163
5224
  }
5164
5225
  }
5165
5226
 
5166
- /** Properties of a GPUAccelerator. */
5167
- interface IGPUAccelerator {
5168
-
5169
- /** GPUAccelerator device */
5170
- device?: (string|null);
5171
-
5172
- /** GPUAccelerator unpartitioned */
5173
- unpartitioned?: (boolean|null);
5174
-
5175
- /** GPUAccelerator partitionSize */
5176
- partitionSize?: (string|null);
5177
- }
5178
-
5179
- /** Represents a GPUAccelerator. */
5180
- class GPUAccelerator implements IGPUAccelerator {
5181
-
5182
- /**
5183
- * Constructs a new GPUAccelerator.
5184
- * @param [properties] Properties to set
5185
- */
5186
- constructor(properties?: flyteidl.core.IGPUAccelerator);
5187
-
5188
- /** GPUAccelerator device. */
5189
- public device: string;
5190
-
5191
- /** GPUAccelerator unpartitioned. */
5192
- public unpartitioned: boolean;
5193
-
5194
- /** GPUAccelerator partitionSize. */
5195
- public partitionSize: string;
5196
-
5197
- /** GPUAccelerator partitionSizeValue. */
5198
- public partitionSizeValue?: ("unpartitioned"|"partitionSize");
5199
-
5200
- /**
5201
- * Creates a new GPUAccelerator instance using the specified properties.
5202
- * @param [properties] Properties to set
5203
- * @returns GPUAccelerator instance
5204
- */
5205
- public static create(properties?: flyteidl.core.IGPUAccelerator): flyteidl.core.GPUAccelerator;
5206
-
5207
- /**
5208
- * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages.
5209
- * @param message GPUAccelerator message or plain object to encode
5210
- * @param [writer] Writer to encode to
5211
- * @returns Writer
5212
- */
5213
- public static encode(message: flyteidl.core.IGPUAccelerator, writer?: $protobuf.Writer): $protobuf.Writer;
5214
-
5215
- /**
5216
- * Decodes a GPUAccelerator message from the specified reader or buffer.
5217
- * @param reader Reader or buffer to decode from
5218
- * @param [length] Message length if known beforehand
5219
- * @returns GPUAccelerator
5220
- * @throws {Error} If the payload is not a reader or valid buffer
5221
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5222
- */
5223
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GPUAccelerator;
5224
-
5225
- /**
5226
- * Verifies a GPUAccelerator message.
5227
- * @param message Plain object to verify
5228
- * @returns `null` if valid, otherwise the reason why it is not
5229
- */
5230
- public static verify(message: { [k: string]: any }): (string|null);
5231
- }
5232
-
5233
- /** Properties of a ResourceMetadata. */
5234
- interface IResourceMetadata {
5235
-
5236
- /** ResourceMetadata gpuAccelerator */
5237
- gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
5238
- }
5239
-
5240
- /** Represents a ResourceMetadata. */
5241
- class ResourceMetadata implements IResourceMetadata {
5242
-
5243
- /**
5244
- * Constructs a new ResourceMetadata.
5245
- * @param [properties] Properties to set
5246
- */
5247
- constructor(properties?: flyteidl.core.IResourceMetadata);
5248
-
5249
- /** ResourceMetadata gpuAccelerator. */
5250
- public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
5251
-
5252
- /** ResourceMetadata acceleratorValue. */
5253
- public acceleratorValue?: "gpuAccelerator";
5254
-
5255
- /**
5256
- * Creates a new ResourceMetadata instance using the specified properties.
5257
- * @param [properties] Properties to set
5258
- * @returns ResourceMetadata instance
5259
- */
5260
- public static create(properties?: flyteidl.core.IResourceMetadata): flyteidl.core.ResourceMetadata;
5261
-
5262
- /**
5263
- * Encodes the specified ResourceMetadata message. Does not implicitly {@link flyteidl.core.ResourceMetadata.verify|verify} messages.
5264
- * @param message ResourceMetadata message or plain object to encode
5265
- * @param [writer] Writer to encode to
5266
- * @returns Writer
5267
- */
5268
- public static encode(message: flyteidl.core.IResourceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5269
-
5270
- /**
5271
- * Decodes a ResourceMetadata message from the specified reader or buffer.
5272
- * @param reader Reader or buffer to decode from
5273
- * @param [length] Message length if known beforehand
5274
- * @returns ResourceMetadata
5275
- * @throws {Error} If the payload is not a reader or valid buffer
5276
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
5277
- */
5278
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ResourceMetadata;
5279
-
5280
- /**
5281
- * Verifies a ResourceMetadata message.
5282
- * @param message Plain object to verify
5283
- * @returns `null` if valid, otherwise the reason why it is not
5284
- */
5285
- public static verify(message: { [k: string]: any }): (string|null);
5286
- }
5287
-
5288
5227
  /** Properties of a TaskMetadata. */
5289
5228
  interface ITaskMetadata {
5290
5229
 
@@ -5320,9 +5259,6 @@ export namespace flyteidl {
5320
5259
 
5321
5260
  /** TaskMetadata podTemplateName */
5322
5261
  podTemplateName?: (string|null);
5323
-
5324
- /** TaskMetadata resourceMetadata */
5325
- resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
5326
5262
  }
5327
5263
 
5328
5264
  /** Represents a TaskMetadata. */
@@ -5367,9 +5303,6 @@ export namespace flyteidl {
5367
5303
  /** TaskMetadata podTemplateName. */
5368
5304
  public podTemplateName: string;
5369
5305
 
5370
- /** TaskMetadata resourceMetadata. */
5371
- public resourceMetadata?: (flyteidl.core.IResourceMetadata|null);
5372
-
5373
5306
  /** TaskMetadata interruptibleValue. */
5374
5307
  public interruptibleValue?: "interruptible";
5375
5308
 
@@ -4570,7 +4570,6 @@
4570
4570
  * @memberof flyteidl.core
4571
4571
  * @interface ITaskNodeOverrides
4572
4572
  * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources
4573
- * @property {flyteidl.core.IResourceMetadata|null} [resourceMetadata] TaskNodeOverrides resourceMetadata
4574
4573
  */
4575
4574
 
4576
4575
  /**
@@ -4596,14 +4595,6 @@
4596
4595
  */
4597
4596
  TaskNodeOverrides.prototype.resources = null;
4598
4597
 
4599
- /**
4600
- * TaskNodeOverrides resourceMetadata.
4601
- * @member {flyteidl.core.IResourceMetadata|null|undefined} resourceMetadata
4602
- * @memberof flyteidl.core.TaskNodeOverrides
4603
- * @instance
4604
- */
4605
- TaskNodeOverrides.prototype.resourceMetadata = null;
4606
-
4607
4598
  /**
4608
4599
  * Creates a new TaskNodeOverrides instance using the specified properties.
4609
4600
  * @function create
@@ -4630,8 +4621,6 @@
4630
4621
  writer = $Writer.create();
4631
4622
  if (message.resources != null && message.hasOwnProperty("resources"))
4632
4623
  $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
4633
- if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata"))
4634
- $root.flyteidl.core.ResourceMetadata.encode(message.resourceMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
4635
4624
  return writer;
4636
4625
  };
4637
4626
 
@@ -4656,9 +4645,6 @@
4656
4645
  case 1:
4657
4646
  message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32());
4658
4647
  break;
4659
- case 2:
4660
- message.resourceMetadata = $root.flyteidl.core.ResourceMetadata.decode(reader, reader.uint32());
4661
- break;
4662
4648
  default:
4663
4649
  reader.skipType(tag & 7);
4664
4650
  break;
@@ -4683,11 +4669,6 @@
4683
4669
  if (error)
4684
4670
  return "resources." + error;
4685
4671
  }
4686
- if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata")) {
4687
- var error = $root.flyteidl.core.ResourceMetadata.verify(message.resourceMetadata);
4688
- if (error)
4689
- return "resourceMetadata." + error;
4690
- }
4691
4672
  return null;
4692
4673
  };
4693
4674
 
@@ -9864,6 +9845,7 @@
9864
9845
  * @interface IOutputReference
9865
9846
  * @property {string|null} [nodeId] OutputReference nodeId
9866
9847
  * @property {string|null} ["var"] OutputReference var
9848
+ * @property {Array.<flyteidl.core.IPromiseAttribute>|null} [attrPath] OutputReference attrPath
9867
9849
  */
9868
9850
 
9869
9851
  /**
@@ -9875,6 +9857,7 @@
9875
9857
  * @param {flyteidl.core.IOutputReference=} [properties] Properties to set
9876
9858
  */
9877
9859
  function OutputReference(properties) {
9860
+ this.attrPath = [];
9878
9861
  if (properties)
9879
9862
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9880
9863
  if (properties[keys[i]] != null)
@@ -9897,6 +9880,14 @@
9897
9880
  */
9898
9881
  OutputReference.prototype["var"] = "";
9899
9882
 
9883
+ /**
9884
+ * OutputReference attrPath.
9885
+ * @member {Array.<flyteidl.core.IPromiseAttribute>} attrPath
9886
+ * @memberof flyteidl.core.OutputReference
9887
+ * @instance
9888
+ */
9889
+ OutputReference.prototype.attrPath = $util.emptyArray;
9890
+
9900
9891
  /**
9901
9892
  * Creates a new OutputReference instance using the specified properties.
9902
9893
  * @function create
@@ -9925,6 +9916,9 @@
9925
9916
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId);
9926
9917
  if (message["var"] != null && message.hasOwnProperty("var"))
9927
9918
  writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]);
9919
+ if (message.attrPath != null && message.attrPath.length)
9920
+ for (var i = 0; i < message.attrPath.length; ++i)
9921
+ $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
9928
9922
  return writer;
9929
9923
  };
9930
9924
 
@@ -9952,6 +9946,11 @@
9952
9946
  case 2:
9953
9947
  message["var"] = reader.string();
9954
9948
  break;
9949
+ case 3:
9950
+ if (!(message.attrPath && message.attrPath.length))
9951
+ message.attrPath = [];
9952
+ message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32()));
9953
+ break;
9955
9954
  default:
9956
9955
  reader.skipType(tag & 7);
9957
9956
  break;
@@ -9977,12 +9976,169 @@
9977
9976
  if (message["var"] != null && message.hasOwnProperty("var"))
9978
9977
  if (!$util.isString(message["var"]))
9979
9978
  return "var: string expected";
9979
+ if (message.attrPath != null && message.hasOwnProperty("attrPath")) {
9980
+ if (!Array.isArray(message.attrPath))
9981
+ return "attrPath: array expected";
9982
+ for (var i = 0; i < message.attrPath.length; ++i) {
9983
+ var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]);
9984
+ if (error)
9985
+ return "attrPath." + error;
9986
+ }
9987
+ }
9980
9988
  return null;
9981
9989
  };
9982
9990
 
9983
9991
  return OutputReference;
9984
9992
  })();
9985
9993
 
9994
+ core.PromiseAttribute = (function() {
9995
+
9996
+ /**
9997
+ * Properties of a PromiseAttribute.
9998
+ * @memberof flyteidl.core
9999
+ * @interface IPromiseAttribute
10000
+ * @property {string|null} [stringValue] PromiseAttribute stringValue
10001
+ * @property {number|null} [intValue] PromiseAttribute intValue
10002
+ */
10003
+
10004
+ /**
10005
+ * Constructs a new PromiseAttribute.
10006
+ * @memberof flyteidl.core
10007
+ * @classdesc Represents a PromiseAttribute.
10008
+ * @implements IPromiseAttribute
10009
+ * @constructor
10010
+ * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set
10011
+ */
10012
+ function PromiseAttribute(properties) {
10013
+ if (properties)
10014
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10015
+ if (properties[keys[i]] != null)
10016
+ this[keys[i]] = properties[keys[i]];
10017
+ }
10018
+
10019
+ /**
10020
+ * PromiseAttribute stringValue.
10021
+ * @member {string} stringValue
10022
+ * @memberof flyteidl.core.PromiseAttribute
10023
+ * @instance
10024
+ */
10025
+ PromiseAttribute.prototype.stringValue = "";
10026
+
10027
+ /**
10028
+ * PromiseAttribute intValue.
10029
+ * @member {number} intValue
10030
+ * @memberof flyteidl.core.PromiseAttribute
10031
+ * @instance
10032
+ */
10033
+ PromiseAttribute.prototype.intValue = 0;
10034
+
10035
+ // OneOf field names bound to virtual getters and setters
10036
+ var $oneOfFields;
10037
+
10038
+ /**
10039
+ * PromiseAttribute value.
10040
+ * @member {"stringValue"|"intValue"|undefined} value
10041
+ * @memberof flyteidl.core.PromiseAttribute
10042
+ * @instance
10043
+ */
10044
+ Object.defineProperty(PromiseAttribute.prototype, "value", {
10045
+ get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]),
10046
+ set: $util.oneOfSetter($oneOfFields)
10047
+ });
10048
+
10049
+ /**
10050
+ * Creates a new PromiseAttribute instance using the specified properties.
10051
+ * @function create
10052
+ * @memberof flyteidl.core.PromiseAttribute
10053
+ * @static
10054
+ * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set
10055
+ * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance
10056
+ */
10057
+ PromiseAttribute.create = function create(properties) {
10058
+ return new PromiseAttribute(properties);
10059
+ };
10060
+
10061
+ /**
10062
+ * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages.
10063
+ * @function encode
10064
+ * @memberof flyteidl.core.PromiseAttribute
10065
+ * @static
10066
+ * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode
10067
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10068
+ * @returns {$protobuf.Writer} Writer
10069
+ */
10070
+ PromiseAttribute.encode = function encode(message, writer) {
10071
+ if (!writer)
10072
+ writer = $Writer.create();
10073
+ if (message.stringValue != null && message.hasOwnProperty("stringValue"))
10074
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue);
10075
+ if (message.intValue != null && message.hasOwnProperty("intValue"))
10076
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue);
10077
+ return writer;
10078
+ };
10079
+
10080
+ /**
10081
+ * Decodes a PromiseAttribute message from the specified reader or buffer.
10082
+ * @function decode
10083
+ * @memberof flyteidl.core.PromiseAttribute
10084
+ * @static
10085
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10086
+ * @param {number} [length] Message length if known beforehand
10087
+ * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute
10088
+ * @throws {Error} If the payload is not a reader or valid buffer
10089
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10090
+ */
10091
+ PromiseAttribute.decode = function decode(reader, length) {
10092
+ if (!(reader instanceof $Reader))
10093
+ reader = $Reader.create(reader);
10094
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute();
10095
+ while (reader.pos < end) {
10096
+ var tag = reader.uint32();
10097
+ switch (tag >>> 3) {
10098
+ case 1:
10099
+ message.stringValue = reader.string();
10100
+ break;
10101
+ case 2:
10102
+ message.intValue = reader.int32();
10103
+ break;
10104
+ default:
10105
+ reader.skipType(tag & 7);
10106
+ break;
10107
+ }
10108
+ }
10109
+ return message;
10110
+ };
10111
+
10112
+ /**
10113
+ * Verifies a PromiseAttribute message.
10114
+ * @function verify
10115
+ * @memberof flyteidl.core.PromiseAttribute
10116
+ * @static
10117
+ * @param {Object.<string,*>} message Plain object to verify
10118
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10119
+ */
10120
+ PromiseAttribute.verify = function verify(message) {
10121
+ if (typeof message !== "object" || message === null)
10122
+ return "object expected";
10123
+ var properties = {};
10124
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
10125
+ properties.value = 1;
10126
+ if (!$util.isString(message.stringValue))
10127
+ return "stringValue: string expected";
10128
+ }
10129
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
10130
+ if (properties.value === 1)
10131
+ return "value: multiple values";
10132
+ properties.value = 1;
10133
+ if (!$util.isInteger(message.intValue))
10134
+ return "intValue: integer expected";
10135
+ }
10136
+ return null;
10137
+ };
10138
+
10139
+ return PromiseAttribute;
10140
+ })();
10141
+
9986
10142
  core.Error = (function() {
9987
10143
 
9988
10144
  /**
@@ -12283,301 +12439,6 @@
12283
12439
  return RuntimeMetadata;
12284
12440
  })();
12285
12441
 
12286
- core.GPUAccelerator = (function() {
12287
-
12288
- /**
12289
- * Properties of a GPUAccelerator.
12290
- * @memberof flyteidl.core
12291
- * @interface IGPUAccelerator
12292
- * @property {string|null} [device] GPUAccelerator device
12293
- * @property {boolean|null} [unpartitioned] GPUAccelerator unpartitioned
12294
- * @property {string|null} [partitionSize] GPUAccelerator partitionSize
12295
- */
12296
-
12297
- /**
12298
- * Constructs a new GPUAccelerator.
12299
- * @memberof flyteidl.core
12300
- * @classdesc Represents a GPUAccelerator.
12301
- * @implements IGPUAccelerator
12302
- * @constructor
12303
- * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set
12304
- */
12305
- function GPUAccelerator(properties) {
12306
- if (properties)
12307
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12308
- if (properties[keys[i]] != null)
12309
- this[keys[i]] = properties[keys[i]];
12310
- }
12311
-
12312
- /**
12313
- * GPUAccelerator device.
12314
- * @member {string} device
12315
- * @memberof flyteidl.core.GPUAccelerator
12316
- * @instance
12317
- */
12318
- GPUAccelerator.prototype.device = "";
12319
-
12320
- /**
12321
- * GPUAccelerator unpartitioned.
12322
- * @member {boolean} unpartitioned
12323
- * @memberof flyteidl.core.GPUAccelerator
12324
- * @instance
12325
- */
12326
- GPUAccelerator.prototype.unpartitioned = false;
12327
-
12328
- /**
12329
- * GPUAccelerator partitionSize.
12330
- * @member {string} partitionSize
12331
- * @memberof flyteidl.core.GPUAccelerator
12332
- * @instance
12333
- */
12334
- GPUAccelerator.prototype.partitionSize = "";
12335
-
12336
- // OneOf field names bound to virtual getters and setters
12337
- var $oneOfFields;
12338
-
12339
- /**
12340
- * GPUAccelerator partitionSizeValue.
12341
- * @member {"unpartitioned"|"partitionSize"|undefined} partitionSizeValue
12342
- * @memberof flyteidl.core.GPUAccelerator
12343
- * @instance
12344
- */
12345
- Object.defineProperty(GPUAccelerator.prototype, "partitionSizeValue", {
12346
- get: $util.oneOfGetter($oneOfFields = ["unpartitioned", "partitionSize"]),
12347
- set: $util.oneOfSetter($oneOfFields)
12348
- });
12349
-
12350
- /**
12351
- * Creates a new GPUAccelerator instance using the specified properties.
12352
- * @function create
12353
- * @memberof flyteidl.core.GPUAccelerator
12354
- * @static
12355
- * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set
12356
- * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator instance
12357
- */
12358
- GPUAccelerator.create = function create(properties) {
12359
- return new GPUAccelerator(properties);
12360
- };
12361
-
12362
- /**
12363
- * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages.
12364
- * @function encode
12365
- * @memberof flyteidl.core.GPUAccelerator
12366
- * @static
12367
- * @param {flyteidl.core.IGPUAccelerator} message GPUAccelerator message or plain object to encode
12368
- * @param {$protobuf.Writer} [writer] Writer to encode to
12369
- * @returns {$protobuf.Writer} Writer
12370
- */
12371
- GPUAccelerator.encode = function encode(message, writer) {
12372
- if (!writer)
12373
- writer = $Writer.create();
12374
- if (message.device != null && message.hasOwnProperty("device"))
12375
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.device);
12376
- if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned"))
12377
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unpartitioned);
12378
- if (message.partitionSize != null && message.hasOwnProperty("partitionSize"))
12379
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.partitionSize);
12380
- return writer;
12381
- };
12382
-
12383
- /**
12384
- * Decodes a GPUAccelerator message from the specified reader or buffer.
12385
- * @function decode
12386
- * @memberof flyteidl.core.GPUAccelerator
12387
- * @static
12388
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12389
- * @param {number} [length] Message length if known beforehand
12390
- * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator
12391
- * @throws {Error} If the payload is not a reader or valid buffer
12392
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12393
- */
12394
- GPUAccelerator.decode = function decode(reader, length) {
12395
- if (!(reader instanceof $Reader))
12396
- reader = $Reader.create(reader);
12397
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GPUAccelerator();
12398
- while (reader.pos < end) {
12399
- var tag = reader.uint32();
12400
- switch (tag >>> 3) {
12401
- case 1:
12402
- message.device = reader.string();
12403
- break;
12404
- case 2:
12405
- message.unpartitioned = reader.bool();
12406
- break;
12407
- case 3:
12408
- message.partitionSize = reader.string();
12409
- break;
12410
- default:
12411
- reader.skipType(tag & 7);
12412
- break;
12413
- }
12414
- }
12415
- return message;
12416
- };
12417
-
12418
- /**
12419
- * Verifies a GPUAccelerator message.
12420
- * @function verify
12421
- * @memberof flyteidl.core.GPUAccelerator
12422
- * @static
12423
- * @param {Object.<string,*>} message Plain object to verify
12424
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
12425
- */
12426
- GPUAccelerator.verify = function verify(message) {
12427
- if (typeof message !== "object" || message === null)
12428
- return "object expected";
12429
- var properties = {};
12430
- if (message.device != null && message.hasOwnProperty("device"))
12431
- if (!$util.isString(message.device))
12432
- return "device: string expected";
12433
- if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) {
12434
- properties.partitionSizeValue = 1;
12435
- if (typeof message.unpartitioned !== "boolean")
12436
- return "unpartitioned: boolean expected";
12437
- }
12438
- if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) {
12439
- if (properties.partitionSizeValue === 1)
12440
- return "partitionSizeValue: multiple values";
12441
- properties.partitionSizeValue = 1;
12442
- if (!$util.isString(message.partitionSize))
12443
- return "partitionSize: string expected";
12444
- }
12445
- return null;
12446
- };
12447
-
12448
- return GPUAccelerator;
12449
- })();
12450
-
12451
- core.ResourceMetadata = (function() {
12452
-
12453
- /**
12454
- * Properties of a ResourceMetadata.
12455
- * @memberof flyteidl.core
12456
- * @interface IResourceMetadata
12457
- * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ResourceMetadata gpuAccelerator
12458
- */
12459
-
12460
- /**
12461
- * Constructs a new ResourceMetadata.
12462
- * @memberof flyteidl.core
12463
- * @classdesc Represents a ResourceMetadata.
12464
- * @implements IResourceMetadata
12465
- * @constructor
12466
- * @param {flyteidl.core.IResourceMetadata=} [properties] Properties to set
12467
- */
12468
- function ResourceMetadata(properties) {
12469
- if (properties)
12470
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12471
- if (properties[keys[i]] != null)
12472
- this[keys[i]] = properties[keys[i]];
12473
- }
12474
-
12475
- /**
12476
- * ResourceMetadata gpuAccelerator.
12477
- * @member {flyteidl.core.IGPUAccelerator|null|undefined} gpuAccelerator
12478
- * @memberof flyteidl.core.ResourceMetadata
12479
- * @instance
12480
- */
12481
- ResourceMetadata.prototype.gpuAccelerator = null;
12482
-
12483
- // OneOf field names bound to virtual getters and setters
12484
- var $oneOfFields;
12485
-
12486
- /**
12487
- * ResourceMetadata acceleratorValue.
12488
- * @member {"gpuAccelerator"|undefined} acceleratorValue
12489
- * @memberof flyteidl.core.ResourceMetadata
12490
- * @instance
12491
- */
12492
- Object.defineProperty(ResourceMetadata.prototype, "acceleratorValue", {
12493
- get: $util.oneOfGetter($oneOfFields = ["gpuAccelerator"]),
12494
- set: $util.oneOfSetter($oneOfFields)
12495
- });
12496
-
12497
- /**
12498
- * Creates a new ResourceMetadata instance using the specified properties.
12499
- * @function create
12500
- * @memberof flyteidl.core.ResourceMetadata
12501
- * @static
12502
- * @param {flyteidl.core.IResourceMetadata=} [properties] Properties to set
12503
- * @returns {flyteidl.core.ResourceMetadata} ResourceMetadata instance
12504
- */
12505
- ResourceMetadata.create = function create(properties) {
12506
- return new ResourceMetadata(properties);
12507
- };
12508
-
12509
- /**
12510
- * Encodes the specified ResourceMetadata message. Does not implicitly {@link flyteidl.core.ResourceMetadata.verify|verify} messages.
12511
- * @function encode
12512
- * @memberof flyteidl.core.ResourceMetadata
12513
- * @static
12514
- * @param {flyteidl.core.IResourceMetadata} message ResourceMetadata message or plain object to encode
12515
- * @param {$protobuf.Writer} [writer] Writer to encode to
12516
- * @returns {$protobuf.Writer} Writer
12517
- */
12518
- ResourceMetadata.encode = function encode(message, writer) {
12519
- if (!writer)
12520
- writer = $Writer.create();
12521
- if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator"))
12522
- $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
12523
- return writer;
12524
- };
12525
-
12526
- /**
12527
- * Decodes a ResourceMetadata message from the specified reader or buffer.
12528
- * @function decode
12529
- * @memberof flyteidl.core.ResourceMetadata
12530
- * @static
12531
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12532
- * @param {number} [length] Message length if known beforehand
12533
- * @returns {flyteidl.core.ResourceMetadata} ResourceMetadata
12534
- * @throws {Error} If the payload is not a reader or valid buffer
12535
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12536
- */
12537
- ResourceMetadata.decode = function decode(reader, length) {
12538
- if (!(reader instanceof $Reader))
12539
- reader = $Reader.create(reader);
12540
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ResourceMetadata();
12541
- while (reader.pos < end) {
12542
- var tag = reader.uint32();
12543
- switch (tag >>> 3) {
12544
- case 1:
12545
- message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32());
12546
- break;
12547
- default:
12548
- reader.skipType(tag & 7);
12549
- break;
12550
- }
12551
- }
12552
- return message;
12553
- };
12554
-
12555
- /**
12556
- * Verifies a ResourceMetadata message.
12557
- * @function verify
12558
- * @memberof flyteidl.core.ResourceMetadata
12559
- * @static
12560
- * @param {Object.<string,*>} message Plain object to verify
12561
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
12562
- */
12563
- ResourceMetadata.verify = function verify(message) {
12564
- if (typeof message !== "object" || message === null)
12565
- return "object expected";
12566
- var properties = {};
12567
- if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) {
12568
- properties.acceleratorValue = 1;
12569
- {
12570
- var error = $root.flyteidl.core.GPUAccelerator.verify(message.gpuAccelerator);
12571
- if (error)
12572
- return "gpuAccelerator." + error;
12573
- }
12574
- }
12575
- return null;
12576
- };
12577
-
12578
- return ResourceMetadata;
12579
- })();
12580
-
12581
12442
  core.TaskMetadata = (function() {
12582
12443
 
12583
12444
  /**
@@ -12595,7 +12456,6 @@
12595
12456
  * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck
12596
12457
  * @property {Object.<string,string>|null} [tags] TaskMetadata tags
12597
12458
  * @property {string|null} [podTemplateName] TaskMetadata podTemplateName
12598
- * @property {flyteidl.core.IResourceMetadata|null} [resourceMetadata] TaskMetadata resourceMetadata
12599
12459
  */
12600
12460
 
12601
12461
  /**
@@ -12702,14 +12562,6 @@
12702
12562
  */
12703
12563
  TaskMetadata.prototype.podTemplateName = "";
12704
12564
 
12705
- /**
12706
- * TaskMetadata resourceMetadata.
12707
- * @member {flyteidl.core.IResourceMetadata|null|undefined} resourceMetadata
12708
- * @memberof flyteidl.core.TaskMetadata
12709
- * @instance
12710
- */
12711
- TaskMetadata.prototype.resourceMetadata = null;
12712
-
12713
12565
  // OneOf field names bound to virtual getters and setters
12714
12566
  var $oneOfFields;
12715
12567
 
@@ -12771,8 +12623,6 @@
12771
12623
  writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim();
12772
12624
  if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName"))
12773
12625
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName);
12774
- if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata"))
12775
- $root.flyteidl.core.ResourceMetadata.encode(message.resourceMetadata, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
12776
12626
  return writer;
12777
12627
  };
12778
12628
 
@@ -12832,9 +12682,6 @@
12832
12682
  case 12:
12833
12683
  message.podTemplateName = reader.string();
12834
12684
  break;
12835
- case 13:
12836
- message.resourceMetadata = $root.flyteidl.core.ResourceMetadata.decode(reader, reader.uint32());
12837
- break;
12838
12685
  default:
12839
12686
  reader.skipType(tag & 7);
12840
12687
  break;
@@ -12901,11 +12748,6 @@
12901
12748
  if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName"))
12902
12749
  if (!$util.isString(message.podTemplateName))
12903
12750
  return "podTemplateName: string expected";
12904
- if (message.resourceMetadata != null && message.hasOwnProperty("resourceMetadata")) {
12905
- var error = $root.flyteidl.core.ResourceMetadata.verify(message.resourceMetadata);
12906
- if (error)
12907
- return "resourceMetadata." + error;
12908
- }
12909
12751
  return null;
12910
12752
  };
12911
12753
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.18",
3
+ "version": "1.5.20",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,22 +61,6 @@ message RuntimeMetadata {
61
61
  string flavor = 3;
62
62
  }
63
63
 
64
- // Metadata associated with the GPU accelerator to allocate to a task
65
- message GPUAccelerator {
66
- string device = 1;
67
- oneof partition_size_value {
68
- bool unpartitioned = 2;
69
- string partition_size = 3;
70
- }
71
- }
72
-
73
- // Additional metadata associated with resources to allocate to a task
74
- message ResourceMetadata {
75
- oneof accelerator_value {
76
- GPUAccelerator gpu_accelerator = 1;
77
- }
78
- }
79
-
80
64
  // Task Metadata
81
65
  message TaskMetadata {
82
66
  // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
@@ -122,9 +106,6 @@ message TaskMetadata {
122
106
  // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
123
107
  // identically as, the default PodTemplate configured in FlytePropeller.
124
108
  string pod_template_name = 12;
125
-
126
- // Additional metadata associated with resources to allocate to this task
127
- ResourceMetadata resource_metadata = 13;
128
109
  }
129
110
 
130
111
  // A Task structure that uniquely identifies a task in the system
@@ -170,6 +170,26 @@ message OutputReference {
170
170
 
171
171
  // Variable name must refer to an output variable for the node.
172
172
  string var = 2;
173
+
174
+ repeated PromiseAttribute attr_path = 3;
175
+ }
176
+
177
+ // PromiseAttribute stores the attribute path of a promise, which will be resolved at runtime.
178
+ // The attribute path is a list of strings and integers.
179
+ // In the following example,
180
+ // ```
181
+ // @workflow
182
+ // def wf():
183
+ // o = t1()
184
+ // t2(o.a["b"][0])
185
+ // ```
186
+ // the output reference t2 binds to has a list of PromiseAttribute ["a", "b", 0]
187
+
188
+ message PromiseAttribute {
189
+ oneof value {
190
+ string string_value = 1;
191
+ int32 int_value = 2;
192
+ }
173
193
  }
174
194
 
175
195
  // Represents an error thrown from a node.
@@ -279,7 +279,4 @@ message WorkflowTemplate {
279
279
  message TaskNodeOverrides {
280
280
  // A customizable interface to convey resources requested for a task container.
281
281
  Resources resources = 1;
282
-
283
- // Additional metadata associated with resources to allocate to this task
284
- core.ResourceMetadata resource_metadata = 2;
285
282
  }