@flyteorg/flyteidl 1.3.1 → 1.3.3

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.
@@ -19160,6 +19160,9 @@ export namespace flyteidl {
19160
19160
 
19161
19161
  /** UserInfoResponse picture */
19162
19162
  picture?: (string|null);
19163
+
19164
+ /** UserInfoResponse additionalClaims */
19165
+ additionalClaims?: (google.protobuf.IStruct|null);
19163
19166
  }
19164
19167
 
19165
19168
  /** Represents a UserInfoResponse. */
@@ -19192,6 +19195,9 @@ export namespace flyteidl {
19192
19195
  /** UserInfoResponse picture. */
19193
19196
  public picture: string;
19194
19197
 
19198
+ /** UserInfoResponse additionalClaims. */
19199
+ public additionalClaims?: (google.protobuf.IStruct|null);
19200
+
19195
19201
  /**
19196
19202
  * Creates a new UserInfoResponse instance using the specified properties.
19197
19203
  * @param [properties] Properties to set
@@ -44528,6 +44528,7 @@
44528
44528
  * @property {string|null} [familyName] UserInfoResponse familyName
44529
44529
  * @property {string|null} [email] UserInfoResponse email
44530
44530
  * @property {string|null} [picture] UserInfoResponse picture
44531
+ * @property {google.protobuf.IStruct|null} [additionalClaims] UserInfoResponse additionalClaims
44531
44532
  */
44532
44533
 
44533
44534
  /**
@@ -44601,6 +44602,14 @@
44601
44602
  */
44602
44603
  UserInfoResponse.prototype.picture = "";
44603
44604
 
44605
+ /**
44606
+ * UserInfoResponse additionalClaims.
44607
+ * @member {google.protobuf.IStruct|null|undefined} additionalClaims
44608
+ * @memberof flyteidl.service.UserInfoResponse
44609
+ * @instance
44610
+ */
44611
+ UserInfoResponse.prototype.additionalClaims = null;
44612
+
44604
44613
  /**
44605
44614
  * Creates a new UserInfoResponse instance using the specified properties.
44606
44615
  * @function create
@@ -44639,6 +44648,8 @@
44639
44648
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.email);
44640
44649
  if (message.picture != null && message.hasOwnProperty("picture"))
44641
44650
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.picture);
44651
+ if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims"))
44652
+ $root.google.protobuf.Struct.encode(message.additionalClaims, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
44642
44653
  return writer;
44643
44654
  };
44644
44655
 
@@ -44681,6 +44692,9 @@
44681
44692
  case 7:
44682
44693
  message.picture = reader.string();
44683
44694
  break;
44695
+ case 8:
44696
+ message.additionalClaims = $root.google.protobuf.Struct.decode(reader, reader.uint32());
44697
+ break;
44684
44698
  default:
44685
44699
  reader.skipType(tag & 7);
44686
44700
  break;
@@ -44721,6 +44735,11 @@
44721
44735
  if (message.picture != null && message.hasOwnProperty("picture"))
44722
44736
  if (!$util.isString(message.picture))
44723
44737
  return "picture: string expected";
44738
+ if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) {
44739
+ var error = $root.google.protobuf.Struct.verify(message.additionalClaims);
44740
+ if (error)
44741
+ return "additionalClaims." + error;
44742
+ }
44724
44743
  return null;
44725
44744
  };
44726
44745
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,6 +38,100 @@ will be executed concurrently.
38
38
 
39
39
 
40
40
 
41
+ ..
42
+ end messages
43
+
44
+
45
+ ..
46
+ end enums
47
+
48
+
49
+ ..
50
+ end HasExtensions
51
+
52
+
53
+ ..
54
+ end services
55
+
56
+
57
+
58
+
59
+ .. _ref_flyteidl/plugins/dask.proto:
60
+
61
+ flyteidl/plugins/dask.proto
62
+ ==================================================================
63
+
64
+
65
+
66
+
67
+
68
+ .. _ref_flyteidl.plugins.DaskCluster:
69
+
70
+ DaskCluster
71
+ ------------------------------------------------------------------
72
+
73
+
74
+
75
+
76
+
77
+ .. csv-table:: DaskCluster type fields
78
+ :header: "Field", "Type", "Label", "Description"
79
+ :widths: auto
80
+
81
+ "image", ":ref:`ref_string`", "", "Optional image to use for the scheduler as well as the default worker group. If unset, will use the default image."
82
+ "nWorkers", ":ref:`ref_int32`", "", "Number of workers in the default worker group"
83
+ "resources", ":ref:`ref_flyteidl.core.Resources`", "", "Resources assigned to the scheduler as well as all pods of the default worker group. As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices it is advised to only set limits. If requests are not explicitly set, the plugin will make sure to set requests==limits. The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit."
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ .. _ref_flyteidl.plugins.DaskJob:
92
+
93
+ DaskJob
94
+ ------------------------------------------------------------------
95
+
96
+ Custom Proto for Dask Plugin
97
+
98
+
99
+
100
+ .. csv-table:: DaskJob type fields
101
+ :header: "Field", "Type", "Label", "Description"
102
+ :widths: auto
103
+
104
+ "namespace", ":ref:`ref_string`", "", "Optional namespace to use for the dask pods. If none is given, the namespace of the Flyte task is used"
105
+ "jobPodSpec", ":ref:`ref_flyteidl.plugins.JobPodSpec`", "", "Spec for the job pod"
106
+ "cluster", ":ref:`ref_flyteidl.plugins.DaskCluster`", "", "Cluster"
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ .. _ref_flyteidl.plugins.JobPodSpec:
115
+
116
+ JobPodSpec
117
+ ------------------------------------------------------------------
118
+
119
+ Specification for the job pod
120
+
121
+
122
+
123
+ .. csv-table:: JobPodSpec type fields
124
+ :header: "Field", "Type", "Label", "Description"
125
+ :widths: auto
126
+
127
+ "image", ":ref:`ref_string`", "", "Optional image to use. If unset, will use the default image."
128
+ "resources", ":ref:`ref_flyteidl.core.Resources`", "", "Resources assigned to the job pod."
129
+
130
+
131
+
132
+
133
+
134
+
41
135
  ..
42
136
  end messages
43
137
 
@@ -203,34 +203,55 @@ message UpdateArtifactResponse {
203
203
  * ReservationID message that is composed of several string fields.
204
204
  */
205
205
  message ReservationID {
206
+ // The unique ID for the reserved dataset
206
207
  DatasetID dataset_id = 1;
208
+
209
+ // The specific artifact tag for the reservation
207
210
  string tag_name = 2;
208
211
  }
209
212
 
210
213
  // Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance.
211
214
  message GetOrExtendReservationRequest {
215
+ // The unique ID for the reservation
212
216
  ReservationID reservation_id = 1;
217
+
218
+ // The unique ID of the owner for the reservation
213
219
  string owner_id = 2;
214
- google.protobuf.Duration heartbeat_interval = 3; // Requested reservation extension heartbeat interval
220
+
221
+ // Requested reservation extension heartbeat interval
222
+ google.protobuf.Duration heartbeat_interval = 3;
215
223
  }
216
224
 
217
225
  // A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
218
226
  message Reservation {
227
+ // The unique ID for the reservation
219
228
  ReservationID reservation_id = 1;
229
+
230
+ // The unique ID of the owner for the reservation
220
231
  string owner_id = 2;
221
- google.protobuf.Duration heartbeat_interval = 3; // Recommended heartbeat interval to extend reservation
222
- google.protobuf.Timestamp expires_at = 4; // Expiration timestamp of this reservation
232
+
233
+ // Recommended heartbeat interval to extend reservation
234
+ google.protobuf.Duration heartbeat_interval = 3;
235
+
236
+ // Expiration timestamp of this reservation
237
+ google.protobuf.Timestamp expires_at = 4;
238
+
239
+ // Free-form metadata associated with the artifact
223
240
  Metadata metadata = 6;
224
241
  }
225
242
 
226
243
  // Response including either a newly minted reservation or the existing reservation
227
244
  message GetOrExtendReservationResponse {
245
+ // The reservation to be acquired or extended
228
246
  Reservation reservation = 1;
229
247
  }
230
248
 
231
249
  // Request to release reservation
232
250
  message ReleaseReservationRequest {
251
+ // The unique ID for the reservation
233
252
  ReservationID reservation_id = 1;
253
+
254
+ // The unique ID of the owner for the reservation
234
255
  string owner_id = 2;
235
256
  }
236
257
 
@@ -0,0 +1,41 @@
1
+ syntax = "proto3";
2
+
3
+ import "flyteidl/core/tasks.proto";
4
+
5
+ package flyteidl.plugins;
6
+
7
+ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins";
8
+
9
+
10
+ // Custom Proto for Dask Plugin.
11
+ message DaskJob {
12
+ // Spec for the scheduler pod.
13
+ DaskScheduler scheduler = 1;
14
+
15
+ // Spec of the default worker group.
16
+ DaskWorkerGroup workers = 2;
17
+ }
18
+
19
+ // Specification for the scheduler pod.
20
+ message DaskScheduler {
21
+ // Optional image to use. If unset, will use the default image.
22
+ string image = 1;
23
+
24
+ // Resources assigned to the scheduler pod.
25
+ core.Resources resources = 2;
26
+ }
27
+
28
+ message DaskWorkerGroup {
29
+ // Number of workers in the group.
30
+ uint32 number_of_workers = 1;
31
+
32
+ // Optional image to use for the pods of the worker group. If unset, will use the default image.
33
+ string image = 2;
34
+
35
+ // Resources assigned to the all pods of the worker group.
36
+ // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices
37
+ // it is advised to only set limits. If requests are not explicitly set, the plugin will make
38
+ // sure to set requests==limits.
39
+ // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
40
+ core.Resources resources = 3;
41
+ }
@@ -4,6 +4,7 @@ package flyteidl.service;
4
4
  option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service";
5
5
 
6
6
  import "google/api/annotations.proto";
7
+ import "google/protobuf/struct.proto";
7
8
  // import "protoc-gen-swagger/options/annotations.proto";
8
9
 
9
10
  message UserInfoRequest {}
@@ -31,6 +32,9 @@ message UserInfoResponse {
31
32
 
32
33
  // Profile picture URL
33
34
  string picture = 7;
35
+
36
+ // Additional claims
37
+ google.protobuf.Struct additional_claims = 8;
34
38
  }
35
39
 
36
40
  // IdentityService defines an RPC Service that interacts with user/app identities.