@@ -2,7 +2,6 @@ syntax = "proto3";
22
33package sift.runs.v2 ;
44
5- import "buf/validate/validate.proto" ;
65import "google/api/annotations.proto" ;
76import "google/api/field_behavior.proto" ;
87import "google/protobuf/duration.proto" ;
@@ -144,10 +143,7 @@ message Run {
144143// The request for a call to `RunService_GetRun` to retrieve run.
145144message GetRunRequest {
146145 // The ID of the run to retrieve.
147- string run_id = 1 [
148- (google.api.field_behavior ) = REQUIRED ,
149- (buf.validate.field ) .string.uuid = true
150- ];
146+ string run_id = 1 [(google.api.field_behavior ) = REQUIRED ];
151147}
152148
153149// The response of a call to `RunService_GetRun` containing the requested run.
@@ -218,14 +214,7 @@ message CreateRunRequest {
218214 string organization_id = 7 [(google.api.field_behavior ) = OPTIONAL ];
219215
220216 // An arbitrary user-chosen key that uniquely identifies this run. Optional, though it is recommended to provide.
221- optional string client_key = 8 [
222- (google.api.field_behavior ) = OPTIONAL ,
223- (buf.validate.field ).cel = {
224- id : "invalid_client_key"
225- message : "client key must be 3-128 characters, start and end with an alphanumeric, and contain only [a-zA-Z0-9_~.-]."
226- expression : "this.matches('^[a-zA-Z0-9][a-zA-Z0-9_~.-]{0,126}[a-zA-Z0-9]$')"
227- }
228- ];
217+ optional string client_key = 8 [(google.api.field_behavior ) = OPTIONAL ];
229218
230219 // The metadata values associated with this run.
231220 repeated sift.metadata.v1.MetadataValue metadata = 9 [(google.api.field_behavior ) = OPTIONAL ];
@@ -242,34 +231,21 @@ message CreateRunResponse {
242231// The request for a call to `RunService_CreateAdhocRun` to create an adhoc run.
243232message CreateAdhocRunRequest {
244233 // The name that will be assigned to the new run.
245- string name = 1 [
246- (google.api.field_behavior ) = REQUIRED ,
247- (buf.validate.field ) .string.min_len = 1
248- ];
234+ string name = 1 [(google.api.field_behavior ) = REQUIRED ];
249235 // A description about the new run.
250236 string description = 2 [(google.api.field_behavior ) = REQUIRED ];
251237 // The time at which data ingestion began for this new run. It must be before the `stop_time`
252238 google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior ) = REQUIRED ];
253239 // The time at which data ingestion concluded for this new run.
254240 google.protobuf.Timestamp stop_time = 4 [(google.api.field_behavior ) = REQUIRED ];
255241 // A list of asset IDs to associate with the new run.
256- repeated string asset_ids = 5 [
257- (google.api.field_behavior ) = REQUIRED ,
258- (buf.validate.field ) .repeated.min_items = 1
259- ];
242+ repeated string asset_ids = 5 [(google.api.field_behavior ) = REQUIRED ];
260243 // Tags to associate with the new run.
261244 repeated string tags = 6 [(google.api.field_behavior ) = OPTIONAL ];
262245 // The metadata values associated with this run.
263246 repeated sift.metadata.v1.MetadataValue metadata = 7 [(google.api.field_behavior ) = OPTIONAL ];
264247 // An arbitrary user-chosen key that uniquely identifies this run. Optional, though it is recommended to provide.
265- optional string client_key = 8 [
266- (google.api.field_behavior ) = OPTIONAL ,
267- (buf.validate.field ).cel = {
268- id : "invalid_client_key"
269- message : "client key must be 3-128 characters, start and end with an alphanumeric, and contain only [a-zA-Z0-9_~.-]."
270- expression : "this.matches('^[a-zA-Z0-9][a-zA-Z0-9_~.-]{0,126}[a-zA-Z0-9]$')"
271- }
272- ];
248+ optional string client_key = 8 [(google.api.field_behavior ) = OPTIONAL ];
273249}
274250
275251// The response of a call to `RunService_CreateAdhocRun` containing the newly created adhoc run.
@@ -289,14 +265,7 @@ message UpdateRunRequest {
289265 // commences for this run, the `start_time` will be automatically overwritten and set to the timestamp
290266 // corresponding to the beginning of the latest run. Additionally, `client_key` can only be set once either in run creation or in update.
291267 // Any subsequent attempt to update `client_key` will result in an error.
292- google.protobuf.FieldMask update_mask = 2 [
293- (google.api.field_behavior ) = REQUIRED ,
294- (buf.validate.field ).cel = {
295- id : "invalid_field_mask_path"
296- message : "field mask path must be in ['name', 'description', 'start_time', 'startTime', 'stop_time', 'stopTime', 'is_pinned', 'isPinned', 'client_key', 'clientKey', 'tags', 'metadata', 'archived_date', 'is_archived', 'isArchived']"
297- expression : "this.paths.all(path, path in ['name', 'description', 'start_time', 'startTime', 'stop_time', 'stopTime', 'is_pinned', 'isPinned', 'client_key', 'clientKey', 'tags', 'metadata', 'archived_date', 'is_archived', 'isArchived'])"
298- }
299- ];
268+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = REQUIRED ];
300269}
301270
302271// The response of a call to `RunService_UpdateRun` containing the updated run.
@@ -306,10 +275,7 @@ message UpdateRunResponse {
306275
307276message CreateAutomaticRunAssociationForAssetsRequest {
308277 // The ID of the run to associate the asset with.
309- string run_id = 1 [
310- (google.api.field_behavior ) = REQUIRED ,
311- (buf.validate.field ) .string.uuid = true
312- ];
278+ string run_id = 1 [(google.api.field_behavior ) = REQUIRED ];
313279
314280 // A list of asset names to automatically associate with the run.
315281 // Any data that is received for these assets will automatically added to the run.
@@ -325,21 +291,15 @@ message CreateAutomaticRunAssociationForAssetsResponse {}
325291
326292// The request for a call to `RunService_DeleteRun`.
327293message DeleteRunRequest {
328- string run_id = 1 [
329- (google.api.field_behavior ) = REQUIRED ,
330- (buf.validate.field ) .string.uuid = true
331- ];
294+ string run_id = 1 [(google.api.field_behavior ) = REQUIRED ];
332295}
333296
334297// The response of a call to `RunService_DeleteRun`.
335298message DeleteRunResponse {}
336299
337300// The request for a call to `RunService_StopRun` to stop a run.
338301message StopRunRequest {
339- string run_id = 1 [
340- (google.api.field_behavior ) = REQUIRED ,
341- (buf.validate.field ) .string.uuid = true
342- ];
302+ string run_id = 1 [(google.api.field_behavior ) = REQUIRED ];
343303}
344304
345305// The response of a call to `RunService_StopRun` to stop a run.
0 commit comments