blob: 5f56464a506cc1349e24b11bf9d4007b7c6add0e (
plain) (
blame)
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
|
syntax = "proto3";
package yandex.cloud.serverless.triggers.v1;
import "yandex/cloud/validation.proto";
option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/triggers/v1;triggers";
option java_package = "yandex.cloud.api.serverless.triggers.v1";
message Predicate {
reserved 3;
oneof predicate {
option (exactly_one) = true;
AndPredicate and_predicate = 2;
FieldValuePredicate field_value_predicate = 4;
}
}
message AndPredicate {
repeated Predicate predicate = 1;
}
message FieldValuePredicate {
reserved 4 to 7;
reserved 2;
string field_path = 1 [(required) = true];
oneof value {
option (exactly_one) = true;
string exact = 3; // string representation of the value matches exactly to the given string
string prefix = 8; // value has given prefix
string suffix = 9; // value has given suffix
}
}
|