@flyteorg/flyteidl 1.15.1 → 1.15.2
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
|
@@ -10066,6 +10066,9 @@ export namespace flyteidl {
|
|
|
10066
10066
|
|
|
10067
10067
|
/** GetTaskRequest taskCategory */
|
|
10068
10068
|
taskCategory?: (flyteidl.admin.ITaskCategory|null);
|
|
10069
|
+
|
|
10070
|
+
/** GetTaskRequest outputPrefix */
|
|
10071
|
+
outputPrefix?: (string|null);
|
|
10069
10072
|
}
|
|
10070
10073
|
|
|
10071
10074
|
/** Represents a GetTaskRequest. */
|
|
@@ -10086,6 +10089,9 @@ export namespace flyteidl {
|
|
|
10086
10089
|
/** GetTaskRequest taskCategory. */
|
|
10087
10090
|
public taskCategory?: (flyteidl.admin.ITaskCategory|null);
|
|
10088
10091
|
|
|
10092
|
+
/** GetTaskRequest outputPrefix. */
|
|
10093
|
+
public outputPrefix: string;
|
|
10094
|
+
|
|
10089
10095
|
/**
|
|
10090
10096
|
* Creates a new GetTaskRequest instance using the specified properties.
|
|
10091
10097
|
* @param [properties] Properties to set
|
|
@@ -10967,11 +10973,85 @@ export namespace flyteidl {
|
|
|
10967
10973
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
10968
10974
|
}
|
|
10969
10975
|
|
|
10976
|
+
/** LogLineOriginator enum. */
|
|
10977
|
+
enum LogLineOriginator {
|
|
10978
|
+
UNKNOWN = 0,
|
|
10979
|
+
USER = 1,
|
|
10980
|
+
SYSTEM = 2
|
|
10981
|
+
}
|
|
10982
|
+
|
|
10983
|
+
/** Properties of a LogLine. */
|
|
10984
|
+
interface ILogLine {
|
|
10985
|
+
|
|
10986
|
+
/** LogLine timestamp */
|
|
10987
|
+
timestamp?: (google.protobuf.ITimestamp|null);
|
|
10988
|
+
|
|
10989
|
+
/** LogLine message */
|
|
10990
|
+
message?: (string|null);
|
|
10991
|
+
|
|
10992
|
+
/** LogLine originator */
|
|
10993
|
+
originator?: (flyteidl.admin.LogLineOriginator|null);
|
|
10994
|
+
}
|
|
10995
|
+
|
|
10996
|
+
/** Represents a LogLine. */
|
|
10997
|
+
class LogLine implements ILogLine {
|
|
10998
|
+
|
|
10999
|
+
/**
|
|
11000
|
+
* Constructs a new LogLine.
|
|
11001
|
+
* @param [properties] Properties to set
|
|
11002
|
+
*/
|
|
11003
|
+
constructor(properties?: flyteidl.admin.ILogLine);
|
|
11004
|
+
|
|
11005
|
+
/** LogLine timestamp. */
|
|
11006
|
+
public timestamp?: (google.protobuf.ITimestamp|null);
|
|
11007
|
+
|
|
11008
|
+
/** LogLine message. */
|
|
11009
|
+
public message: string;
|
|
11010
|
+
|
|
11011
|
+
/** LogLine originator. */
|
|
11012
|
+
public originator: flyteidl.admin.LogLineOriginator;
|
|
11013
|
+
|
|
11014
|
+
/**
|
|
11015
|
+
* Creates a new LogLine instance using the specified properties.
|
|
11016
|
+
* @param [properties] Properties to set
|
|
11017
|
+
* @returns LogLine instance
|
|
11018
|
+
*/
|
|
11019
|
+
public static create(properties?: flyteidl.admin.ILogLine): flyteidl.admin.LogLine;
|
|
11020
|
+
|
|
11021
|
+
/**
|
|
11022
|
+
* Encodes the specified LogLine message. Does not implicitly {@link flyteidl.admin.LogLine.verify|verify} messages.
|
|
11023
|
+
* @param message LogLine message or plain object to encode
|
|
11024
|
+
* @param [writer] Writer to encode to
|
|
11025
|
+
* @returns Writer
|
|
11026
|
+
*/
|
|
11027
|
+
public static encode(message: flyteidl.admin.ILogLine, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
11028
|
+
|
|
11029
|
+
/**
|
|
11030
|
+
* Decodes a LogLine message from the specified reader or buffer.
|
|
11031
|
+
* @param reader Reader or buffer to decode from
|
|
11032
|
+
* @param [length] Message length if known beforehand
|
|
11033
|
+
* @returns LogLine
|
|
11034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11036
|
+
*/
|
|
11037
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LogLine;
|
|
11038
|
+
|
|
11039
|
+
/**
|
|
11040
|
+
* Verifies a LogLine message.
|
|
11041
|
+
* @param message Plain object to verify
|
|
11042
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
11043
|
+
*/
|
|
11044
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
11045
|
+
}
|
|
11046
|
+
|
|
10970
11047
|
/** Properties of a GetTaskLogsResponseBody. */
|
|
10971
11048
|
interface IGetTaskLogsResponseBody {
|
|
10972
11049
|
|
|
10973
11050
|
/** GetTaskLogsResponseBody results */
|
|
10974
11051
|
results?: (string[]|null);
|
|
11052
|
+
|
|
11053
|
+
/** GetTaskLogsResponseBody structuredLines */
|
|
11054
|
+
structuredLines?: (flyteidl.admin.ILogLine[]|null);
|
|
10975
11055
|
}
|
|
10976
11056
|
|
|
10977
11057
|
/** Represents a GetTaskLogsResponseBody. */
|
|
@@ -10986,6 +11066,9 @@ export namespace flyteidl {
|
|
|
10986
11066
|
/** GetTaskLogsResponseBody results. */
|
|
10987
11067
|
public results: string[];
|
|
10988
11068
|
|
|
11069
|
+
/** GetTaskLogsResponseBody structuredLines. */
|
|
11070
|
+
public structuredLines: flyteidl.admin.ILogLine[];
|
|
11071
|
+
|
|
10989
11072
|
/**
|
|
10990
11073
|
* Creates a new GetTaskLogsResponseBody instance using the specified properties.
|
|
10991
11074
|
* @param [properties] Properties to set
|
|
@@ -12070,6 +12153,9 @@ export namespace flyteidl {
|
|
|
12070
12153
|
|
|
12071
12154
|
/** EmailNotification recipientsEmail */
|
|
12072
12155
|
recipientsEmail?: (string[]|null);
|
|
12156
|
+
|
|
12157
|
+
/** EmailNotification template */
|
|
12158
|
+
template?: (string|null);
|
|
12073
12159
|
}
|
|
12074
12160
|
|
|
12075
12161
|
/** Represents an EmailNotification. */
|
|
@@ -12084,6 +12170,9 @@ export namespace flyteidl {
|
|
|
12084
12170
|
/** EmailNotification recipientsEmail. */
|
|
12085
12171
|
public recipientsEmail: string[];
|
|
12086
12172
|
|
|
12173
|
+
/** EmailNotification template. */
|
|
12174
|
+
public template: string;
|
|
12175
|
+
|
|
12087
12176
|
/**
|
|
12088
12177
|
* Creates a new EmailNotification instance using the specified properties.
|
|
12089
12178
|
* @param [properties] Properties to set
|
|
@@ -12122,6 +12211,9 @@ export namespace flyteidl {
|
|
|
12122
12211
|
|
|
12123
12212
|
/** PagerDutyNotification recipientsEmail */
|
|
12124
12213
|
recipientsEmail?: (string[]|null);
|
|
12214
|
+
|
|
12215
|
+
/** PagerDutyNotification template */
|
|
12216
|
+
template?: (string|null);
|
|
12125
12217
|
}
|
|
12126
12218
|
|
|
12127
12219
|
/** Represents a PagerDutyNotification. */
|
|
@@ -12136,6 +12228,9 @@ export namespace flyteidl {
|
|
|
12136
12228
|
/** PagerDutyNotification recipientsEmail. */
|
|
12137
12229
|
public recipientsEmail: string[];
|
|
12138
12230
|
|
|
12231
|
+
/** PagerDutyNotification template. */
|
|
12232
|
+
public template: string;
|
|
12233
|
+
|
|
12139
12234
|
/**
|
|
12140
12235
|
* Creates a new PagerDutyNotification instance using the specified properties.
|
|
12141
12236
|
* @param [properties] Properties to set
|
|
@@ -12174,6 +12269,9 @@ export namespace flyteidl {
|
|
|
12174
12269
|
|
|
12175
12270
|
/** SlackNotification recipientsEmail */
|
|
12176
12271
|
recipientsEmail?: (string[]|null);
|
|
12272
|
+
|
|
12273
|
+
/** SlackNotification template */
|
|
12274
|
+
template?: (string|null);
|
|
12177
12275
|
}
|
|
12178
12276
|
|
|
12179
12277
|
/** Represents a SlackNotification. */
|
|
@@ -12188,6 +12286,9 @@ export namespace flyteidl {
|
|
|
12188
12286
|
/** SlackNotification recipientsEmail. */
|
|
12189
12287
|
public recipientsEmail: string[];
|
|
12190
12288
|
|
|
12289
|
+
/** SlackNotification template. */
|
|
12290
|
+
public template: string;
|
|
12291
|
+
|
|
12191
12292
|
/**
|
|
12192
12293
|
* Creates a new SlackNotification instance using the specified properties.
|
|
12193
12294
|
* @param [properties] Properties to set
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -24829,6 +24829,7 @@
|
|
|
24829
24829
|
* @property {string|null} [taskType] GetTaskRequest taskType
|
|
24830
24830
|
* @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta
|
|
24831
24831
|
* @property {flyteidl.admin.ITaskCategory|null} [taskCategory] GetTaskRequest taskCategory
|
|
24832
|
+
* @property {string|null} [outputPrefix] GetTaskRequest outputPrefix
|
|
24832
24833
|
*/
|
|
24833
24834
|
|
|
24834
24835
|
/**
|
|
@@ -24870,6 +24871,14 @@
|
|
|
24870
24871
|
*/
|
|
24871
24872
|
GetTaskRequest.prototype.taskCategory = null;
|
|
24872
24873
|
|
|
24874
|
+
/**
|
|
24875
|
+
* GetTaskRequest outputPrefix.
|
|
24876
|
+
* @member {string} outputPrefix
|
|
24877
|
+
* @memberof flyteidl.admin.GetTaskRequest
|
|
24878
|
+
* @instance
|
|
24879
|
+
*/
|
|
24880
|
+
GetTaskRequest.prototype.outputPrefix = "";
|
|
24881
|
+
|
|
24873
24882
|
/**
|
|
24874
24883
|
* Creates a new GetTaskRequest instance using the specified properties.
|
|
24875
24884
|
* @function create
|
|
@@ -24900,6 +24909,8 @@
|
|
|
24900
24909
|
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta);
|
|
24901
24910
|
if (message.taskCategory != null && message.hasOwnProperty("taskCategory"))
|
|
24902
24911
|
$root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
24912
|
+
if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
|
|
24913
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputPrefix);
|
|
24903
24914
|
return writer;
|
|
24904
24915
|
};
|
|
24905
24916
|
|
|
@@ -24930,6 +24941,9 @@
|
|
|
24930
24941
|
case 3:
|
|
24931
24942
|
message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32());
|
|
24932
24943
|
break;
|
|
24944
|
+
case 4:
|
|
24945
|
+
message.outputPrefix = reader.string();
|
|
24946
|
+
break;
|
|
24933
24947
|
default:
|
|
24934
24948
|
reader.skipType(tag & 7);
|
|
24935
24949
|
break;
|
|
@@ -24960,6 +24974,9 @@
|
|
|
24960
24974
|
if (error)
|
|
24961
24975
|
return "taskCategory." + error;
|
|
24962
24976
|
}
|
|
24977
|
+
if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
|
|
24978
|
+
if (!$util.isString(message.outputPrefix))
|
|
24979
|
+
return "outputPrefix: string expected";
|
|
24963
24980
|
return null;
|
|
24964
24981
|
};
|
|
24965
24982
|
|
|
@@ -26943,6 +26960,174 @@
|
|
|
26943
26960
|
return GetTaskLogsResponseHeader;
|
|
26944
26961
|
})();
|
|
26945
26962
|
|
|
26963
|
+
/**
|
|
26964
|
+
* LogLineOriginator enum.
|
|
26965
|
+
* @name flyteidl.admin.LogLineOriginator
|
|
26966
|
+
* @enum {string}
|
|
26967
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
26968
|
+
* @property {number} USER=1 USER value
|
|
26969
|
+
* @property {number} SYSTEM=2 SYSTEM value
|
|
26970
|
+
*/
|
|
26971
|
+
admin.LogLineOriginator = (function() {
|
|
26972
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
26973
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
26974
|
+
values[valuesById[1] = "USER"] = 1;
|
|
26975
|
+
values[valuesById[2] = "SYSTEM"] = 2;
|
|
26976
|
+
return values;
|
|
26977
|
+
})();
|
|
26978
|
+
|
|
26979
|
+
admin.LogLine = (function() {
|
|
26980
|
+
|
|
26981
|
+
/**
|
|
26982
|
+
* Properties of a LogLine.
|
|
26983
|
+
* @memberof flyteidl.admin
|
|
26984
|
+
* @interface ILogLine
|
|
26985
|
+
* @property {google.protobuf.ITimestamp|null} [timestamp] LogLine timestamp
|
|
26986
|
+
* @property {string|null} [message] LogLine message
|
|
26987
|
+
* @property {flyteidl.admin.LogLineOriginator|null} [originator] LogLine originator
|
|
26988
|
+
*/
|
|
26989
|
+
|
|
26990
|
+
/**
|
|
26991
|
+
* Constructs a new LogLine.
|
|
26992
|
+
* @memberof flyteidl.admin
|
|
26993
|
+
* @classdesc Represents a LogLine.
|
|
26994
|
+
* @implements ILogLine
|
|
26995
|
+
* @constructor
|
|
26996
|
+
* @param {flyteidl.admin.ILogLine=} [properties] Properties to set
|
|
26997
|
+
*/
|
|
26998
|
+
function LogLine(properties) {
|
|
26999
|
+
if (properties)
|
|
27000
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27001
|
+
if (properties[keys[i]] != null)
|
|
27002
|
+
this[keys[i]] = properties[keys[i]];
|
|
27003
|
+
}
|
|
27004
|
+
|
|
27005
|
+
/**
|
|
27006
|
+
* LogLine timestamp.
|
|
27007
|
+
* @member {google.protobuf.ITimestamp|null|undefined} timestamp
|
|
27008
|
+
* @memberof flyteidl.admin.LogLine
|
|
27009
|
+
* @instance
|
|
27010
|
+
*/
|
|
27011
|
+
LogLine.prototype.timestamp = null;
|
|
27012
|
+
|
|
27013
|
+
/**
|
|
27014
|
+
* LogLine message.
|
|
27015
|
+
* @member {string} message
|
|
27016
|
+
* @memberof flyteidl.admin.LogLine
|
|
27017
|
+
* @instance
|
|
27018
|
+
*/
|
|
27019
|
+
LogLine.prototype.message = "";
|
|
27020
|
+
|
|
27021
|
+
/**
|
|
27022
|
+
* LogLine originator.
|
|
27023
|
+
* @member {flyteidl.admin.LogLineOriginator} originator
|
|
27024
|
+
* @memberof flyteidl.admin.LogLine
|
|
27025
|
+
* @instance
|
|
27026
|
+
*/
|
|
27027
|
+
LogLine.prototype.originator = 0;
|
|
27028
|
+
|
|
27029
|
+
/**
|
|
27030
|
+
* Creates a new LogLine instance using the specified properties.
|
|
27031
|
+
* @function create
|
|
27032
|
+
* @memberof flyteidl.admin.LogLine
|
|
27033
|
+
* @static
|
|
27034
|
+
* @param {flyteidl.admin.ILogLine=} [properties] Properties to set
|
|
27035
|
+
* @returns {flyteidl.admin.LogLine} LogLine instance
|
|
27036
|
+
*/
|
|
27037
|
+
LogLine.create = function create(properties) {
|
|
27038
|
+
return new LogLine(properties);
|
|
27039
|
+
};
|
|
27040
|
+
|
|
27041
|
+
/**
|
|
27042
|
+
* Encodes the specified LogLine message. Does not implicitly {@link flyteidl.admin.LogLine.verify|verify} messages.
|
|
27043
|
+
* @function encode
|
|
27044
|
+
* @memberof flyteidl.admin.LogLine
|
|
27045
|
+
* @static
|
|
27046
|
+
* @param {flyteidl.admin.ILogLine} message LogLine message or plain object to encode
|
|
27047
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27048
|
+
* @returns {$protobuf.Writer} Writer
|
|
27049
|
+
*/
|
|
27050
|
+
LogLine.encode = function encode(message, writer) {
|
|
27051
|
+
if (!writer)
|
|
27052
|
+
writer = $Writer.create();
|
|
27053
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
27054
|
+
$root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27055
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
27056
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
27057
|
+
if (message.originator != null && message.hasOwnProperty("originator"))
|
|
27058
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.originator);
|
|
27059
|
+
return writer;
|
|
27060
|
+
};
|
|
27061
|
+
|
|
27062
|
+
/**
|
|
27063
|
+
* Decodes a LogLine message from the specified reader or buffer.
|
|
27064
|
+
* @function decode
|
|
27065
|
+
* @memberof flyteidl.admin.LogLine
|
|
27066
|
+
* @static
|
|
27067
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27068
|
+
* @param {number} [length] Message length if known beforehand
|
|
27069
|
+
* @returns {flyteidl.admin.LogLine} LogLine
|
|
27070
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27071
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27072
|
+
*/
|
|
27073
|
+
LogLine.decode = function decode(reader, length) {
|
|
27074
|
+
if (!(reader instanceof $Reader))
|
|
27075
|
+
reader = $Reader.create(reader);
|
|
27076
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LogLine();
|
|
27077
|
+
while (reader.pos < end) {
|
|
27078
|
+
var tag = reader.uint32();
|
|
27079
|
+
switch (tag >>> 3) {
|
|
27080
|
+
case 1:
|
|
27081
|
+
message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
27082
|
+
break;
|
|
27083
|
+
case 2:
|
|
27084
|
+
message.message = reader.string();
|
|
27085
|
+
break;
|
|
27086
|
+
case 3:
|
|
27087
|
+
message.originator = reader.int32();
|
|
27088
|
+
break;
|
|
27089
|
+
default:
|
|
27090
|
+
reader.skipType(tag & 7);
|
|
27091
|
+
break;
|
|
27092
|
+
}
|
|
27093
|
+
}
|
|
27094
|
+
return message;
|
|
27095
|
+
};
|
|
27096
|
+
|
|
27097
|
+
/**
|
|
27098
|
+
* Verifies a LogLine message.
|
|
27099
|
+
* @function verify
|
|
27100
|
+
* @memberof flyteidl.admin.LogLine
|
|
27101
|
+
* @static
|
|
27102
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27103
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27104
|
+
*/
|
|
27105
|
+
LogLine.verify = function verify(message) {
|
|
27106
|
+
if (typeof message !== "object" || message === null)
|
|
27107
|
+
return "object expected";
|
|
27108
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
|
|
27109
|
+
var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
|
|
27110
|
+
if (error)
|
|
27111
|
+
return "timestamp." + error;
|
|
27112
|
+
}
|
|
27113
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
27114
|
+
if (!$util.isString(message.message))
|
|
27115
|
+
return "message: string expected";
|
|
27116
|
+
if (message.originator != null && message.hasOwnProperty("originator"))
|
|
27117
|
+
switch (message.originator) {
|
|
27118
|
+
default:
|
|
27119
|
+
return "originator: enum value expected";
|
|
27120
|
+
case 0:
|
|
27121
|
+
case 1:
|
|
27122
|
+
case 2:
|
|
27123
|
+
break;
|
|
27124
|
+
}
|
|
27125
|
+
return null;
|
|
27126
|
+
};
|
|
27127
|
+
|
|
27128
|
+
return LogLine;
|
|
27129
|
+
})();
|
|
27130
|
+
|
|
26946
27131
|
admin.GetTaskLogsResponseBody = (function() {
|
|
26947
27132
|
|
|
26948
27133
|
/**
|
|
@@ -26950,6 +27135,7 @@
|
|
|
26950
27135
|
* @memberof flyteidl.admin
|
|
26951
27136
|
* @interface IGetTaskLogsResponseBody
|
|
26952
27137
|
* @property {Array.<string>|null} [results] GetTaskLogsResponseBody results
|
|
27138
|
+
* @property {Array.<flyteidl.admin.ILogLine>|null} [structuredLines] GetTaskLogsResponseBody structuredLines
|
|
26953
27139
|
*/
|
|
26954
27140
|
|
|
26955
27141
|
/**
|
|
@@ -26962,6 +27148,7 @@
|
|
|
26962
27148
|
*/
|
|
26963
27149
|
function GetTaskLogsResponseBody(properties) {
|
|
26964
27150
|
this.results = [];
|
|
27151
|
+
this.structuredLines = [];
|
|
26965
27152
|
if (properties)
|
|
26966
27153
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26967
27154
|
if (properties[keys[i]] != null)
|
|
@@ -26976,6 +27163,14 @@
|
|
|
26976
27163
|
*/
|
|
26977
27164
|
GetTaskLogsResponseBody.prototype.results = $util.emptyArray;
|
|
26978
27165
|
|
|
27166
|
+
/**
|
|
27167
|
+
* GetTaskLogsResponseBody structuredLines.
|
|
27168
|
+
* @member {Array.<flyteidl.admin.ILogLine>} structuredLines
|
|
27169
|
+
* @memberof flyteidl.admin.GetTaskLogsResponseBody
|
|
27170
|
+
* @instance
|
|
27171
|
+
*/
|
|
27172
|
+
GetTaskLogsResponseBody.prototype.structuredLines = $util.emptyArray;
|
|
27173
|
+
|
|
26979
27174
|
/**
|
|
26980
27175
|
* Creates a new GetTaskLogsResponseBody instance using the specified properties.
|
|
26981
27176
|
* @function create
|
|
@@ -27003,6 +27198,9 @@
|
|
|
27003
27198
|
if (message.results != null && message.results.length)
|
|
27004
27199
|
for (var i = 0; i < message.results.length; ++i)
|
|
27005
27200
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]);
|
|
27201
|
+
if (message.structuredLines != null && message.structuredLines.length)
|
|
27202
|
+
for (var i = 0; i < message.structuredLines.length; ++i)
|
|
27203
|
+
$root.flyteidl.admin.LogLine.encode(message.structuredLines[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
27006
27204
|
return writer;
|
|
27007
27205
|
};
|
|
27008
27206
|
|
|
@@ -27029,6 +27227,11 @@
|
|
|
27029
27227
|
message.results = [];
|
|
27030
27228
|
message.results.push(reader.string());
|
|
27031
27229
|
break;
|
|
27230
|
+
case 2:
|
|
27231
|
+
if (!(message.structuredLines && message.structuredLines.length))
|
|
27232
|
+
message.structuredLines = [];
|
|
27233
|
+
message.structuredLines.push($root.flyteidl.admin.LogLine.decode(reader, reader.uint32()));
|
|
27234
|
+
break;
|
|
27032
27235
|
default:
|
|
27033
27236
|
reader.skipType(tag & 7);
|
|
27034
27237
|
break;
|
|
@@ -27055,6 +27258,15 @@
|
|
|
27055
27258
|
if (!$util.isString(message.results[i]))
|
|
27056
27259
|
return "results: string[] expected";
|
|
27057
27260
|
}
|
|
27261
|
+
if (message.structuredLines != null && message.hasOwnProperty("structuredLines")) {
|
|
27262
|
+
if (!Array.isArray(message.structuredLines))
|
|
27263
|
+
return "structuredLines: array expected";
|
|
27264
|
+
for (var i = 0; i < message.structuredLines.length; ++i) {
|
|
27265
|
+
var error = $root.flyteidl.admin.LogLine.verify(message.structuredLines[i]);
|
|
27266
|
+
if (error)
|
|
27267
|
+
return "structuredLines." + error;
|
|
27268
|
+
}
|
|
27269
|
+
}
|
|
27058
27270
|
return null;
|
|
27059
27271
|
};
|
|
27060
27272
|
|
|
@@ -29520,6 +29732,7 @@
|
|
|
29520
29732
|
* @memberof flyteidl.admin
|
|
29521
29733
|
* @interface IEmailNotification
|
|
29522
29734
|
* @property {Array.<string>|null} [recipientsEmail] EmailNotification recipientsEmail
|
|
29735
|
+
* @property {string|null} [template] EmailNotification template
|
|
29523
29736
|
*/
|
|
29524
29737
|
|
|
29525
29738
|
/**
|
|
@@ -29546,6 +29759,14 @@
|
|
|
29546
29759
|
*/
|
|
29547
29760
|
EmailNotification.prototype.recipientsEmail = $util.emptyArray;
|
|
29548
29761
|
|
|
29762
|
+
/**
|
|
29763
|
+
* EmailNotification template.
|
|
29764
|
+
* @member {string} template
|
|
29765
|
+
* @memberof flyteidl.admin.EmailNotification
|
|
29766
|
+
* @instance
|
|
29767
|
+
*/
|
|
29768
|
+
EmailNotification.prototype.template = "";
|
|
29769
|
+
|
|
29549
29770
|
/**
|
|
29550
29771
|
* Creates a new EmailNotification instance using the specified properties.
|
|
29551
29772
|
* @function create
|
|
@@ -29573,6 +29794,8 @@
|
|
|
29573
29794
|
if (message.recipientsEmail != null && message.recipientsEmail.length)
|
|
29574
29795
|
for (var i = 0; i < message.recipientsEmail.length; ++i)
|
|
29575
29796
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
|
|
29797
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
29798
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
|
|
29576
29799
|
return writer;
|
|
29577
29800
|
};
|
|
29578
29801
|
|
|
@@ -29599,6 +29822,9 @@
|
|
|
29599
29822
|
message.recipientsEmail = [];
|
|
29600
29823
|
message.recipientsEmail.push(reader.string());
|
|
29601
29824
|
break;
|
|
29825
|
+
case 2:
|
|
29826
|
+
message.template = reader.string();
|
|
29827
|
+
break;
|
|
29602
29828
|
default:
|
|
29603
29829
|
reader.skipType(tag & 7);
|
|
29604
29830
|
break;
|
|
@@ -29625,6 +29851,9 @@
|
|
|
29625
29851
|
if (!$util.isString(message.recipientsEmail[i]))
|
|
29626
29852
|
return "recipientsEmail: string[] expected";
|
|
29627
29853
|
}
|
|
29854
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
29855
|
+
if (!$util.isString(message.template))
|
|
29856
|
+
return "template: string expected";
|
|
29628
29857
|
return null;
|
|
29629
29858
|
};
|
|
29630
29859
|
|
|
@@ -29638,6 +29867,7 @@
|
|
|
29638
29867
|
* @memberof flyteidl.admin
|
|
29639
29868
|
* @interface IPagerDutyNotification
|
|
29640
29869
|
* @property {Array.<string>|null} [recipientsEmail] PagerDutyNotification recipientsEmail
|
|
29870
|
+
* @property {string|null} [template] PagerDutyNotification template
|
|
29641
29871
|
*/
|
|
29642
29872
|
|
|
29643
29873
|
/**
|
|
@@ -29664,6 +29894,14 @@
|
|
|
29664
29894
|
*/
|
|
29665
29895
|
PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray;
|
|
29666
29896
|
|
|
29897
|
+
/**
|
|
29898
|
+
* PagerDutyNotification template.
|
|
29899
|
+
* @member {string} template
|
|
29900
|
+
* @memberof flyteidl.admin.PagerDutyNotification
|
|
29901
|
+
* @instance
|
|
29902
|
+
*/
|
|
29903
|
+
PagerDutyNotification.prototype.template = "";
|
|
29904
|
+
|
|
29667
29905
|
/**
|
|
29668
29906
|
* Creates a new PagerDutyNotification instance using the specified properties.
|
|
29669
29907
|
* @function create
|
|
@@ -29691,6 +29929,8 @@
|
|
|
29691
29929
|
if (message.recipientsEmail != null && message.recipientsEmail.length)
|
|
29692
29930
|
for (var i = 0; i < message.recipientsEmail.length; ++i)
|
|
29693
29931
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
|
|
29932
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
29933
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
|
|
29694
29934
|
return writer;
|
|
29695
29935
|
};
|
|
29696
29936
|
|
|
@@ -29717,6 +29957,9 @@
|
|
|
29717
29957
|
message.recipientsEmail = [];
|
|
29718
29958
|
message.recipientsEmail.push(reader.string());
|
|
29719
29959
|
break;
|
|
29960
|
+
case 2:
|
|
29961
|
+
message.template = reader.string();
|
|
29962
|
+
break;
|
|
29720
29963
|
default:
|
|
29721
29964
|
reader.skipType(tag & 7);
|
|
29722
29965
|
break;
|
|
@@ -29743,6 +29986,9 @@
|
|
|
29743
29986
|
if (!$util.isString(message.recipientsEmail[i]))
|
|
29744
29987
|
return "recipientsEmail: string[] expected";
|
|
29745
29988
|
}
|
|
29989
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
29990
|
+
if (!$util.isString(message.template))
|
|
29991
|
+
return "template: string expected";
|
|
29746
29992
|
return null;
|
|
29747
29993
|
};
|
|
29748
29994
|
|
|
@@ -29756,6 +30002,7 @@
|
|
|
29756
30002
|
* @memberof flyteidl.admin
|
|
29757
30003
|
* @interface ISlackNotification
|
|
29758
30004
|
* @property {Array.<string>|null} [recipientsEmail] SlackNotification recipientsEmail
|
|
30005
|
+
* @property {string|null} [template] SlackNotification template
|
|
29759
30006
|
*/
|
|
29760
30007
|
|
|
29761
30008
|
/**
|
|
@@ -29782,6 +30029,14 @@
|
|
|
29782
30029
|
*/
|
|
29783
30030
|
SlackNotification.prototype.recipientsEmail = $util.emptyArray;
|
|
29784
30031
|
|
|
30032
|
+
/**
|
|
30033
|
+
* SlackNotification template.
|
|
30034
|
+
* @member {string} template
|
|
30035
|
+
* @memberof flyteidl.admin.SlackNotification
|
|
30036
|
+
* @instance
|
|
30037
|
+
*/
|
|
30038
|
+
SlackNotification.prototype.template = "";
|
|
30039
|
+
|
|
29785
30040
|
/**
|
|
29786
30041
|
* Creates a new SlackNotification instance using the specified properties.
|
|
29787
30042
|
* @function create
|
|
@@ -29809,6 +30064,8 @@
|
|
|
29809
30064
|
if (message.recipientsEmail != null && message.recipientsEmail.length)
|
|
29810
30065
|
for (var i = 0; i < message.recipientsEmail.length; ++i)
|
|
29811
30066
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
|
|
30067
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
30068
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
|
|
29812
30069
|
return writer;
|
|
29813
30070
|
};
|
|
29814
30071
|
|
|
@@ -29835,6 +30092,9 @@
|
|
|
29835
30092
|
message.recipientsEmail = [];
|
|
29836
30093
|
message.recipientsEmail.push(reader.string());
|
|
29837
30094
|
break;
|
|
30095
|
+
case 2:
|
|
30096
|
+
message.template = reader.string();
|
|
30097
|
+
break;
|
|
29838
30098
|
default:
|
|
29839
30099
|
reader.skipType(tag & 7);
|
|
29840
30100
|
break;
|
|
@@ -29861,6 +30121,9 @@
|
|
|
29861
30121
|
if (!$util.isString(message.recipientsEmail[i]))
|
|
29862
30122
|
return "recipientsEmail: string[] expected";
|
|
29863
30123
|
}
|
|
30124
|
+
if (message.template != null && message.hasOwnProperty("template"))
|
|
30125
|
+
if (!$util.isString(message.template))
|
|
30126
|
+
return "template: string expected";
|
|
29864
30127
|
return null;
|
|
29865
30128
|
};
|
|
29866
30129
|
|
package/package.json
CHANGED
|
@@ -110,12 +110,15 @@ message ExecuteTaskSyncResponse {
|
|
|
110
110
|
|
|
111
111
|
// A message used to fetch a job resource from flyte agent server.
|
|
112
112
|
message GetTaskRequest {
|
|
113
|
+
reserved 5;
|
|
113
114
|
// A predefined yet extensible Task type identifier.
|
|
114
115
|
string task_type = 1 [deprecated = true];
|
|
115
116
|
// Metadata about the resource to be pass to the agent.
|
|
116
117
|
bytes resource_meta = 2;
|
|
117
118
|
// A predefined yet extensible Task type identifier.
|
|
118
119
|
TaskCategory task_category = 3;
|
|
120
|
+
// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
|
|
121
|
+
string output_prefix = 4;
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
// Response to get an individual task resource.
|
|
@@ -246,9 +249,36 @@ message GetTaskLogsResponseHeader {
|
|
|
246
249
|
string token = 1;
|
|
247
250
|
}
|
|
248
251
|
|
|
252
|
+
enum LogLineOriginator {
|
|
253
|
+
// The originator of the log line is unknown.
|
|
254
|
+
UNKNOWN = 0;
|
|
255
|
+
|
|
256
|
+
// The originator of the log line is the user application.
|
|
257
|
+
USER = 1;
|
|
258
|
+
|
|
259
|
+
// The originator of the log line is the system.
|
|
260
|
+
SYSTEM = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message LogLine {
|
|
264
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
265
|
+
|
|
266
|
+
// Each line is separated by either CRLF, CR or LF, which are included
|
|
267
|
+
// at the ends of the lines. This lets clients know whether log emitter
|
|
268
|
+
// wanted to overwrite the previous line (LF) or append a new line (CRLF).
|
|
269
|
+
string message = 2;
|
|
270
|
+
|
|
271
|
+
LogLineOriginator originator = 3;
|
|
272
|
+
}
|
|
273
|
+
|
|
249
274
|
message GetTaskLogsResponseBody {
|
|
250
275
|
// The execution log results.
|
|
251
|
-
repeated string results = 1;
|
|
276
|
+
repeated string results = 1 [deprecated = true];
|
|
277
|
+
|
|
278
|
+
// Each line is separated by either CRLF, CR or LF, which are included
|
|
279
|
+
// at the ends of the lines. This lets clients know whether log emitter
|
|
280
|
+
// wanted to overwrite the previous line (LF) or append a new line (CRLF).
|
|
281
|
+
repeated LogLine structured_lines = 2;
|
|
252
282
|
}
|
|
253
283
|
|
|
254
284
|
// A response containing the logs for a task execution.
|
|
@@ -229,6 +229,9 @@ message EmailNotification {
|
|
|
229
229
|
// The list of email addresses recipients for this notification.
|
|
230
230
|
// +required
|
|
231
231
|
repeated string recipients_email = 1;
|
|
232
|
+
// The template to use for this notification.
|
|
233
|
+
// +optional
|
|
234
|
+
string template = 2;
|
|
232
235
|
}
|
|
233
236
|
|
|
234
237
|
// Defines a pager duty notification specification.
|
|
@@ -236,6 +239,9 @@ message PagerDutyNotification {
|
|
|
236
239
|
// Currently, PagerDuty notifications leverage email to trigger a notification.
|
|
237
240
|
// +required
|
|
238
241
|
repeated string recipients_email = 1;
|
|
242
|
+
// The template to use for this notification.
|
|
243
|
+
// +optional
|
|
244
|
+
string template = 2;
|
|
239
245
|
}
|
|
240
246
|
|
|
241
247
|
// Defines a slack notification specification.
|
|
@@ -243,6 +249,9 @@ message SlackNotification {
|
|
|
243
249
|
// Currently, Slack notifications leverage email to trigger a notification.
|
|
244
250
|
// +required
|
|
245
251
|
repeated string recipients_email = 1;
|
|
252
|
+
// The template to use for this notification.
|
|
253
|
+
// +optional
|
|
254
|
+
string template = 2;
|
|
246
255
|
}
|
|
247
256
|
|
|
248
257
|
// Represents a structure for notifications based on execution status.
|
|
@@ -189,6 +189,8 @@ message ExecutionClosure {
|
|
|
189
189
|
|
|
190
190
|
// Provides the details of the last stage change
|
|
191
191
|
ExecutionStateChangeDetails state_change_details = 14;
|
|
192
|
+
|
|
193
|
+
reserved 15;
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
// Represents system, rather than user-facing, metadata about an execution.
|
|
@@ -342,6 +344,8 @@ message ExecutionSpec {
|
|
|
342
344
|
|
|
343
345
|
// Execution environment assignments to be set for the execution.
|
|
344
346
|
repeated core.ExecutionEnvAssignment execution_env_assignments = 26;
|
|
347
|
+
|
|
348
|
+
reserved 27;
|
|
345
349
|
}
|
|
346
350
|
|
|
347
351
|
// Request to terminate an in-progress execution. This action is irreversible.
|