@flyteorg/flyteidl 0.24.10 → 0.24.13
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/README.md +18 -17
- package/gen/pb-js/flyteidl.d.ts +58 -0
- package/gen/pb-js/flyteidl.js +139 -0
- package/package.json +1 -1
- package/protos/docs/admin/admin.rst +3764 -0
- package/protos/docs/admin/index.rst +2 -3
- package/protos/docs/core/core.rst +3656 -0
- package/protos/docs/core/index.rst +3 -3
- package/protos/docs/datacatalog/datacatalog.rst +1237 -0
- package/protos/docs/datacatalog/index.rst +5 -5
- package/protos/docs/event/event.rst +693 -0
- package/protos/docs/event/index.rst +3 -4
- package/protos/docs/plugins/plugins.rst +549 -0
- package/protos/docs/service/service.rst +353 -0
- package/protos/flyteidl/admin/cluster_assignment.proto +9 -0
package/README.md
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Flyteidl
|
|
2
|
+
|
|
3
|
+
This is one of the core repositories of Flyte. It contains the Specification of the Flyte Language using protobuf messages, the Backend API specification in gRPC, and Swagger REST. The repo contains the generated clients and protocol message structures in multiple languages. Along with the generated code, the repository also contains the Golang clients for Flyte's backend APIs (the services grouped under FlyteAdmin).
|
|
2
4
|
|
|
3
|
-
This is one of the core repositories of Flyte and contains the Specification of the Flyte Lanugage using protobuf messages, the Backend API specification in gRPC and Swagger REST. The repo contains generated clients and protocol message structures in multiple languages. Along-with the generated code, the repository also contains the Golang clients for Flyte's backend API's (the services grouped under Flyteadmin).
|
|
4
5
|
|
|
5
6
|
[](https://slack.flyte.org)
|
|
6
7
|
|
|
7
8
|
* [flyte.org](https://flyte.org)
|
|
8
9
|
* [Flyte Docs](http://docs.flyte.org)
|
|
9
|
-
* [
|
|
10
|
+
* [Flyteidl API reference documentation](https://docs.flyte.org/projects/flyteidl/en/stable/index.html)
|
|
10
11
|
|
|
11
|
-
## Contributing to
|
|
12
|
+
## Contributing to Flyteidl
|
|
12
13
|
|
|
13
|
-
## Tooling for
|
|
14
|
+
## Tooling for Flyteidl
|
|
14
15
|
|
|
15
|
-
1. Run ``make download_tooling`` to install generator dependencies
|
|
16
|
+
1. Run ``make download_tooling`` to install generator dependencies.
|
|
16
17
|
|
|
17
18
|
```bash
|
|
18
19
|
make download_tooling
|
|
19
20
|
```
|
|
20
21
|
|
|
21
|
-
2.
|
|
22
|
-
3.
|
|
22
|
+
2. Ensure Docker is installed locally.
|
|
23
|
+
3. Run ``make generate`` to generate all the code, mock client, and docs for FlyteAdmin Service.
|
|
23
24
|
|
|
24
25
|
```bash
|
|
25
26
|
make generate
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
4. To add new dependencies for documentation generation, modify ``doc-requirements.in`` and
|
|
29
|
+
4. To add new dependencies for documentation generation, modify ``doc-requirements.in`` and run
|
|
29
30
|
|
|
30
31
|
```bash
|
|
31
32
|
make doc-requirements.txt
|
|
@@ -33,8 +34,8 @@ This is one of the core repositories of Flyte and contains the Specification of
|
|
|
33
34
|
|
|
34
35
|
## Docs structure
|
|
35
36
|
|
|
36
|
-
The index.rst files for protos are
|
|
37
|
-
All the proto definitions are within protos/flyteidl and
|
|
37
|
+
The index.rst files for protos are arranged in parallel under the ``docs`` folder.
|
|
38
|
+
All the proto definitions are within ``protos/flyteidl`` and their corresponding docs are in ``protos/docs``.
|
|
38
39
|
|
|
39
40
|
```
|
|
40
41
|
docs
|
|
@@ -58,13 +59,13 @@ docs
|
|
|
58
59
|
│ └── service.rst
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
Each module in protos has
|
|
62
|
-
|
|
62
|
+
Each module in protos has a module in docs with the same name.
|
|
63
|
+
For example: ``protos/flyteidl/core`` has a module ``protos/docs/core`` under the ``docs`` folder which has the corresponding index and documentation files.
|
|
63
64
|
|
|
64
65
|
|
|
65
|
-
##
|
|
66
|
+
## Generating Documentation
|
|
66
67
|
|
|
67
|
-
* If
|
|
68
|
+
* If a new module is to be introduced, follow the structure for core files in `generate_protos.sh` file which helps generate the core documentation from its proto files.
|
|
68
69
|
```
|
|
69
70
|
core_proto_files=`ls protos/flyteidl/core/*.proto |xargs`
|
|
70
71
|
# Remove any currently generated file
|
|
@@ -72,7 +73,7 @@ eg : protos/flyteidl/core has same named doc structure placing it index and othe
|
|
|
72
73
|
protoc --doc_out=protos/docs/core --doc_opt=restructuredtext,core.rst -I=protos `echo $core_proto_files`
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
* ``make generate``
|
|
76
|
+
* ``make generate`` generates the modified rst files.
|
|
76
77
|
|
|
77
|
-
* ``make html``
|
|
78
|
+
* ``make html`` generates the Sphinx documentation from the docs folder that uses the modified rst files.
|
|
78
79
|
|
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -7021,6 +7021,9 @@ export namespace flyteidl {
|
|
|
7021
7021
|
|
|
7022
7022
|
/** ClusterAssignment affinity */
|
|
7023
7023
|
affinity?: (flyteidl.admin.IAffinity|null);
|
|
7024
|
+
|
|
7025
|
+
/** ClusterAssignment toleration */
|
|
7026
|
+
toleration?: (flyteidl.admin.IToleration|null);
|
|
7024
7027
|
}
|
|
7025
7028
|
|
|
7026
7029
|
/** Represents a ClusterAssignment. */
|
|
@@ -7035,6 +7038,9 @@ export namespace flyteidl {
|
|
|
7035
7038
|
/** ClusterAssignment affinity. */
|
|
7036
7039
|
public affinity?: (flyteidl.admin.IAffinity|null);
|
|
7037
7040
|
|
|
7041
|
+
/** ClusterAssignment toleration. */
|
|
7042
|
+
public toleration?: (flyteidl.admin.IToleration|null);
|
|
7043
|
+
|
|
7038
7044
|
/**
|
|
7039
7045
|
* Creates a new ClusterAssignment instance using the specified properties.
|
|
7040
7046
|
* @param [properties] Properties to set
|
|
@@ -7120,6 +7126,58 @@ export namespace flyteidl {
|
|
|
7120
7126
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
7121
7127
|
}
|
|
7122
7128
|
|
|
7129
|
+
/** Properties of a Toleration. */
|
|
7130
|
+
interface IToleration {
|
|
7131
|
+
|
|
7132
|
+
/** Toleration selectors */
|
|
7133
|
+
selectors?: (flyteidl.admin.ISelector[]|null);
|
|
7134
|
+
}
|
|
7135
|
+
|
|
7136
|
+
/** Represents a Toleration. */
|
|
7137
|
+
class Toleration implements IToleration {
|
|
7138
|
+
|
|
7139
|
+
/**
|
|
7140
|
+
* Constructs a new Toleration.
|
|
7141
|
+
* @param [properties] Properties to set
|
|
7142
|
+
*/
|
|
7143
|
+
constructor(properties?: flyteidl.admin.IToleration);
|
|
7144
|
+
|
|
7145
|
+
/** Toleration selectors. */
|
|
7146
|
+
public selectors: flyteidl.admin.ISelector[];
|
|
7147
|
+
|
|
7148
|
+
/**
|
|
7149
|
+
* Creates a new Toleration instance using the specified properties.
|
|
7150
|
+
* @param [properties] Properties to set
|
|
7151
|
+
* @returns Toleration instance
|
|
7152
|
+
*/
|
|
7153
|
+
public static create(properties?: flyteidl.admin.IToleration): flyteidl.admin.Toleration;
|
|
7154
|
+
|
|
7155
|
+
/**
|
|
7156
|
+
* Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
|
|
7157
|
+
* @param message Toleration message or plain object to encode
|
|
7158
|
+
* @param [writer] Writer to encode to
|
|
7159
|
+
* @returns Writer
|
|
7160
|
+
*/
|
|
7161
|
+
public static encode(message: flyteidl.admin.IToleration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* Decodes a Toleration message from the specified reader or buffer.
|
|
7165
|
+
* @param reader Reader or buffer to decode from
|
|
7166
|
+
* @param [length] Message length if known beforehand
|
|
7167
|
+
* @returns Toleration
|
|
7168
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7169
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7170
|
+
*/
|
|
7171
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Toleration;
|
|
7172
|
+
|
|
7173
|
+
/**
|
|
7174
|
+
* Verifies a Toleration message.
|
|
7175
|
+
* @param message Plain object to verify
|
|
7176
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7177
|
+
*/
|
|
7178
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7123
7181
|
/** Properties of a Selector. */
|
|
7124
7182
|
interface ISelector {
|
|
7125
7183
|
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -17006,6 +17006,7 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17006
17006
|
* @memberof flyteidl.admin
|
|
17007
17007
|
* @interface IClusterAssignment
|
|
17008
17008
|
* @property {flyteidl.admin.IAffinity|null} [affinity] ClusterAssignment affinity
|
|
17009
|
+
* @property {flyteidl.admin.IToleration|null} [toleration] ClusterAssignment toleration
|
|
17009
17010
|
*/
|
|
17010
17011
|
|
|
17011
17012
|
/**
|
|
@@ -17031,6 +17032,14 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17031
17032
|
*/
|
|
17032
17033
|
ClusterAssignment.prototype.affinity = null;
|
|
17033
17034
|
|
|
17035
|
+
/**
|
|
17036
|
+
* ClusterAssignment toleration.
|
|
17037
|
+
* @member {flyteidl.admin.IToleration|null|undefined} toleration
|
|
17038
|
+
* @memberof flyteidl.admin.ClusterAssignment
|
|
17039
|
+
* @instance
|
|
17040
|
+
*/
|
|
17041
|
+
ClusterAssignment.prototype.toleration = null;
|
|
17042
|
+
|
|
17034
17043
|
/**
|
|
17035
17044
|
* Creates a new ClusterAssignment instance using the specified properties.
|
|
17036
17045
|
* @function create
|
|
@@ -17057,6 +17066,8 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17057
17066
|
writer = $Writer.create();
|
|
17058
17067
|
if (message.affinity != null && message.hasOwnProperty("affinity"))
|
|
17059
17068
|
$root.flyteidl.admin.Affinity.encode(message.affinity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17069
|
+
if (message.toleration != null && message.hasOwnProperty("toleration"))
|
|
17070
|
+
$root.flyteidl.admin.Toleration.encode(message.toleration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17060
17071
|
return writer;
|
|
17061
17072
|
};
|
|
17062
17073
|
|
|
@@ -17081,6 +17092,9 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17081
17092
|
case 1:
|
|
17082
17093
|
message.affinity = $root.flyteidl.admin.Affinity.decode(reader, reader.uint32());
|
|
17083
17094
|
break;
|
|
17095
|
+
case 2:
|
|
17096
|
+
message.toleration = $root.flyteidl.admin.Toleration.decode(reader, reader.uint32());
|
|
17097
|
+
break;
|
|
17084
17098
|
default:
|
|
17085
17099
|
reader.skipType(tag & 7);
|
|
17086
17100
|
break;
|
|
@@ -17105,6 +17119,11 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17105
17119
|
if (error)
|
|
17106
17120
|
return "affinity." + error;
|
|
17107
17121
|
}
|
|
17122
|
+
if (message.toleration != null && message.hasOwnProperty("toleration")) {
|
|
17123
|
+
let error = $root.flyteidl.admin.Toleration.verify(message.toleration);
|
|
17124
|
+
if (error)
|
|
17125
|
+
return "toleration." + error;
|
|
17126
|
+
}
|
|
17108
17127
|
return null;
|
|
17109
17128
|
};
|
|
17110
17129
|
|
|
@@ -17231,6 +17250,126 @@ export const flyteidl = $root.flyteidl = (() => {
|
|
|
17231
17250
|
return Affinity;
|
|
17232
17251
|
})();
|
|
17233
17252
|
|
|
17253
|
+
admin.Toleration = (function() {
|
|
17254
|
+
|
|
17255
|
+
/**
|
|
17256
|
+
* Properties of a Toleration.
|
|
17257
|
+
* @memberof flyteidl.admin
|
|
17258
|
+
* @interface IToleration
|
|
17259
|
+
* @property {Array.<flyteidl.admin.ISelector>|null} [selectors] Toleration selectors
|
|
17260
|
+
*/
|
|
17261
|
+
|
|
17262
|
+
/**
|
|
17263
|
+
* Constructs a new Toleration.
|
|
17264
|
+
* @memberof flyteidl.admin
|
|
17265
|
+
* @classdesc Represents a Toleration.
|
|
17266
|
+
* @implements IToleration
|
|
17267
|
+
* @constructor
|
|
17268
|
+
* @param {flyteidl.admin.IToleration=} [properties] Properties to set
|
|
17269
|
+
*/
|
|
17270
|
+
function Toleration(properties) {
|
|
17271
|
+
this.selectors = [];
|
|
17272
|
+
if (properties)
|
|
17273
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17274
|
+
if (properties[keys[i]] != null)
|
|
17275
|
+
this[keys[i]] = properties[keys[i]];
|
|
17276
|
+
}
|
|
17277
|
+
|
|
17278
|
+
/**
|
|
17279
|
+
* Toleration selectors.
|
|
17280
|
+
* @member {Array.<flyteidl.admin.ISelector>} selectors
|
|
17281
|
+
* @memberof flyteidl.admin.Toleration
|
|
17282
|
+
* @instance
|
|
17283
|
+
*/
|
|
17284
|
+
Toleration.prototype.selectors = $util.emptyArray;
|
|
17285
|
+
|
|
17286
|
+
/**
|
|
17287
|
+
* Creates a new Toleration instance using the specified properties.
|
|
17288
|
+
* @function create
|
|
17289
|
+
* @memberof flyteidl.admin.Toleration
|
|
17290
|
+
* @static
|
|
17291
|
+
* @param {flyteidl.admin.IToleration=} [properties] Properties to set
|
|
17292
|
+
* @returns {flyteidl.admin.Toleration} Toleration instance
|
|
17293
|
+
*/
|
|
17294
|
+
Toleration.create = function create(properties) {
|
|
17295
|
+
return new Toleration(properties);
|
|
17296
|
+
};
|
|
17297
|
+
|
|
17298
|
+
/**
|
|
17299
|
+
* Encodes the specified Toleration message. Does not implicitly {@link flyteidl.admin.Toleration.verify|verify} messages.
|
|
17300
|
+
* @function encode
|
|
17301
|
+
* @memberof flyteidl.admin.Toleration
|
|
17302
|
+
* @static
|
|
17303
|
+
* @param {flyteidl.admin.IToleration} message Toleration message or plain object to encode
|
|
17304
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17305
|
+
* @returns {$protobuf.Writer} Writer
|
|
17306
|
+
*/
|
|
17307
|
+
Toleration.encode = function encode(message, writer) {
|
|
17308
|
+
if (!writer)
|
|
17309
|
+
writer = $Writer.create();
|
|
17310
|
+
if (message.selectors != null && message.selectors.length)
|
|
17311
|
+
for (let i = 0; i < message.selectors.length; ++i)
|
|
17312
|
+
$root.flyteidl.admin.Selector.encode(message.selectors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17313
|
+
return writer;
|
|
17314
|
+
};
|
|
17315
|
+
|
|
17316
|
+
/**
|
|
17317
|
+
* Decodes a Toleration message from the specified reader or buffer.
|
|
17318
|
+
* @function decode
|
|
17319
|
+
* @memberof flyteidl.admin.Toleration
|
|
17320
|
+
* @static
|
|
17321
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17322
|
+
* @param {number} [length] Message length if known beforehand
|
|
17323
|
+
* @returns {flyteidl.admin.Toleration} Toleration
|
|
17324
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17325
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17326
|
+
*/
|
|
17327
|
+
Toleration.decode = function decode(reader, length) {
|
|
17328
|
+
if (!(reader instanceof $Reader))
|
|
17329
|
+
reader = $Reader.create(reader);
|
|
17330
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Toleration();
|
|
17331
|
+
while (reader.pos < end) {
|
|
17332
|
+
let tag = reader.uint32();
|
|
17333
|
+
switch (tag >>> 3) {
|
|
17334
|
+
case 1:
|
|
17335
|
+
if (!(message.selectors && message.selectors.length))
|
|
17336
|
+
message.selectors = [];
|
|
17337
|
+
message.selectors.push($root.flyteidl.admin.Selector.decode(reader, reader.uint32()));
|
|
17338
|
+
break;
|
|
17339
|
+
default:
|
|
17340
|
+
reader.skipType(tag & 7);
|
|
17341
|
+
break;
|
|
17342
|
+
}
|
|
17343
|
+
}
|
|
17344
|
+
return message;
|
|
17345
|
+
};
|
|
17346
|
+
|
|
17347
|
+
/**
|
|
17348
|
+
* Verifies a Toleration message.
|
|
17349
|
+
* @function verify
|
|
17350
|
+
* @memberof flyteidl.admin.Toleration
|
|
17351
|
+
* @static
|
|
17352
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17353
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17354
|
+
*/
|
|
17355
|
+
Toleration.verify = function verify(message) {
|
|
17356
|
+
if (typeof message !== "object" || message === null)
|
|
17357
|
+
return "object expected";
|
|
17358
|
+
if (message.selectors != null && message.hasOwnProperty("selectors")) {
|
|
17359
|
+
if (!Array.isArray(message.selectors))
|
|
17360
|
+
return "selectors: array expected";
|
|
17361
|
+
for (let i = 0; i < message.selectors.length; ++i) {
|
|
17362
|
+
let error = $root.flyteidl.admin.Selector.verify(message.selectors[i]);
|
|
17363
|
+
if (error)
|
|
17364
|
+
return "selectors." + error;
|
|
17365
|
+
}
|
|
17366
|
+
}
|
|
17367
|
+
return null;
|
|
17368
|
+
};
|
|
17369
|
+
|
|
17370
|
+
return Toleration;
|
|
17371
|
+
})();
|
|
17372
|
+
|
|
17234
17373
|
admin.Selector = (function() {
|
|
17235
17374
|
|
|
17236
17375
|
/**
|