-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
pipeline_service.proto
450 lines (409 loc) · 17.2 KB
/
pipeline_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.aiplatform.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/aiplatform/v1/operation.proto";
import "google/cloud/aiplatform/v1/pipeline_job.proto";
import "google/cloud/aiplatform/v1/training_pipeline.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
option java_multiple_files = true;
option java_outer_classname = "PipelineServiceProto";
option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";
// A service for creating and managing Vertex AI's pipelines. This includes both
// `TrainingPipeline` resources (used for AutoML and custom training) and
// `PipelineJob` resources (used for Vertex AI Pipelines).
service PipelineService {
option (google.api.default_host) = "aiplatform.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";
// Creates a TrainingPipeline. A created TrainingPipeline right away will be
// attempted to be run.
rpc CreateTrainingPipeline(CreateTrainingPipelineRequest)
returns (TrainingPipeline) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/trainingPipelines"
body: "training_pipeline"
};
option (google.api.method_signature) = "parent,training_pipeline";
}
// Gets a TrainingPipeline.
rpc GetTrainingPipeline(GetTrainingPipelineRequest)
returns (TrainingPipeline) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/trainingPipelines/*}"
};
option (google.api.method_signature) = "name";
}
// Lists TrainingPipelines in a Location.
rpc ListTrainingPipelines(ListTrainingPipelinesRequest)
returns (ListTrainingPipelinesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/trainingPipelines"
};
option (google.api.method_signature) = "parent";
}
// Deletes a TrainingPipeline.
rpc DeleteTrainingPipeline(DeleteTrainingPipelineRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/trainingPipelines/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "DeleteOperationMetadata"
};
}
// Cancels a TrainingPipeline.
// Starts asynchronous cancellation on the TrainingPipeline. The server
// makes a best effort to cancel the pipeline, but success is not
// guaranteed. Clients can use
// [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline]
// or other methods to check whether the cancellation succeeded or whether the
// pipeline completed despite cancellation. On successful cancellation,
// the TrainingPipeline is not deleted; instead it becomes a pipeline with
// a
// [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error]
// value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`, and
// [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state]
// is set to `CANCELLED`.
rpc CancelTrainingPipeline(CancelTrainingPipelineRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/trainingPipelines/*}:cancel"
body: "*"
};
option (google.api.method_signature) = "name";
}
// Creates a PipelineJob. A PipelineJob will run immediately when created.
rpc CreatePipelineJob(CreatePipelineJobRequest) returns (PipelineJob) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/pipelineJobs"
body: "pipeline_job"
};
option (google.api.method_signature) =
"parent,pipeline_job,pipeline_job_id";
}
// Gets a PipelineJob.
rpc GetPipelineJob(GetPipelineJobRequest) returns (PipelineJob) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/pipelineJobs/*}"
};
option (google.api.method_signature) = "name";
}
// Lists PipelineJobs in a Location.
rpc ListPipelineJobs(ListPipelineJobsRequest)
returns (ListPipelineJobsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/pipelineJobs"
};
option (google.api.method_signature) = "parent";
}
// Deletes a PipelineJob.
rpc DeletePipelineJob(DeletePipelineJobRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/pipelineJobs/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "DeleteOperationMetadata"
};
}
// Cancels a PipelineJob.
// Starts asynchronous cancellation on the PipelineJob. The server
// makes a best effort to cancel the pipeline, but success is not
// guaranteed. Clients can use
// [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob]
// or other methods to check whether the cancellation succeeded or whether the
// pipeline completed despite cancellation. On successful cancellation,
// the PipelineJob is not deleted; instead it becomes a pipeline with
// a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value
// with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding
// to `Code.CANCELLED`, and
// [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to
// `CANCELLED`.
rpc CancelPipelineJob(CancelPipelineJobRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/pipelineJobs/*}:cancel"
body: "*"
};
option (google.api.method_signature) = "name";
}
}
// Request message for
// [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline].
message CreateTrainingPipelineRequest {
// Required. The resource name of the Location to create the TrainingPipeline
// in. Format: `projects/{project}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
// Required. The TrainingPipeline to create.
TrainingPipeline training_pipeline = 2
[(google.api.field_behavior) = REQUIRED];
}
// Request message for
// [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline].
message GetTrainingPipelineRequest {
// Required. The name of the TrainingPipeline resource.
// Format:
// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/TrainingPipeline"
}
];
}
// Request message for
// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines].
message ListTrainingPipelinesRequest {
// Required. The resource name of the Location to list the TrainingPipelines
// from. Format: `projects/{project}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
// The standard list filter.
//
// Supported fields:
//
// * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
// * `state` supports `=`, `!=` comparisons.
// * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
// `create_time` must be in RFC 3339 format.
// * `labels` supports general map functions that is:
// `labels.key=value` - key:value equality
// `labels.key:* - key existence
//
// Some examples of using the filter are:
//
// * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
// * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
// * `NOT display_name="my_pipeline"`
// * `create_time>"2021-05-18T00:00:00Z"`
// * `training_task_definition:"*automl_text_classification*"`
string filter = 2;
// The standard list page size.
int32 page_size = 3;
// The standard list page token.
// Typically obtained via
// [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token]
// of the previous
// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines]
// call.
string page_token = 4;
// Mask specifying which fields to read.
google.protobuf.FieldMask read_mask = 5;
}
// Response message for
// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines]
message ListTrainingPipelinesResponse {
// List of TrainingPipelines in the requested page.
repeated TrainingPipeline training_pipelines = 1;
// A token to retrieve the next page of results.
// Pass to
// [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.page_token]
// to obtain that page.
string next_page_token = 2;
}
// Request message for
// [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline].
message DeleteTrainingPipelineRequest {
// Required. The name of the TrainingPipeline resource to be deleted.
// Format:
// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/TrainingPipeline"
}
];
}
// Request message for
// [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline].
message CancelTrainingPipelineRequest {
// Required. The name of the TrainingPipeline to cancel.
// Format:
// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/TrainingPipeline"
}
];
}
// Request message for
// [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob].
message CreatePipelineJobRequest {
// Required. The resource name of the Location to create the PipelineJob in.
// Format: `projects/{project}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
// Required. The PipelineJob to create.
PipelineJob pipeline_job = 2 [(google.api.field_behavior) = REQUIRED];
// The ID to use for the PipelineJob, which will become the final component of
// the PipelineJob name. If not provided, an ID will be automatically
// generated.
//
// This value should be less than 128 characters, and valid characters
// are `/[a-z][0-9]-/`.
string pipeline_job_id = 3;
}
// Request message for
// [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob].
message GetPipelineJobRequest {
// Required. The name of the PipelineJob resource.
// Format:
// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/PipelineJob"
}
];
}
// Request message for
// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs].
message ListPipelineJobsRequest {
// Required. The resource name of the Location to list the PipelineJobs from.
// Format: `projects/{project}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
// Lists the PipelineJobs that match the filter expression. The following
// fields are supported:
//
// * `pipeline_name`: Supports `=` and `!=` comparisons.
// * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard.
// * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard.
// for example, can check if pipeline's display_name contains *step* by
// doing display_name:\"*step*\"
// * `state`: Supports `=` and `!=` comparisons.
// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
// Values must be in RFC 3339 format.
// * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
// Values must be in RFC 3339 format.
// * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
// Values must be in RFC 3339 format.
// * `labels`: Supports key-value equality and key presence.
// * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard.
// * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:`
// wildcard.
//
// Filter expressions can be combined together using logical operators
// (`AND` & `OR`).
// For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
//
// The syntax to define filter expression is based on
// https://google.aip.dev/160.
//
// Examples:
//
// * `create_time>"2021-05-18T00:00:00Z" OR
// update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
// after 2020-05-18 00:00:00 UTC.
// * `labels.env = "prod"`
// PipelineJobs with label "env" set to "prod".
string filter = 2;
// The standard list page size.
int32 page_size = 3;
// The standard list page token.
// Typically obtained via
// [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token]
// of the previous
// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]
// call.
string page_token = 4;
// A comma-separated list of fields to order by. The default sort order is in
// ascending order. Use "desc" after a field name for descending. You can have
// multiple order_by fields provided e.g. "create_time desc, end_time",
// "end_time, start_time, update_time" For example, using "create_time desc,
// end_time" will order results by create time in descending order, and if
// there are multiple jobs having the same create time, order them by the end
// time in ascending order. if order_by is not specified, it will order by
// default order is create time in descending order. Supported fields:
//
// * `create_time`
// * `update_time`
// * `end_time`
// * `start_time`
string order_by = 6;
// Mask specifying which fields to read.
google.protobuf.FieldMask read_mask = 7;
}
// Response message for
// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]
message ListPipelineJobsResponse {
// List of PipelineJobs in the requested page.
repeated PipelineJob pipeline_jobs = 1;
// A token to retrieve the next page of results.
// Pass to
// [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token]
// to obtain that page.
string next_page_token = 2;
}
// Request message for
// [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob].
message DeletePipelineJobRequest {
// Required. The name of the PipelineJob resource to be deleted.
// Format:
// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/PipelineJob"
}
];
}
// Request message for
// [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob].
message CancelPipelineJobRequest {
// Required. The name of the PipelineJob to cancel.
// Format:
// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/PipelineJob"
}
];
}