@@ -4,52 +4,14 @@ package confidence.flags.admin.v1;
44
55import "google/protobuf/timestamp.proto" ;
66import "google/api/resource.proto" ;
7- import "google/api/annotations.proto" ;
87import "confidence/iam/iam.proto" ;
9- import "google/api/field_behavior.proto" ;
108
119import "confidence/flags/admin/v1/types.proto" ;
1210
1311option java_package = "com.spotify.confidence.shaded.flags.admin.v1" ;
1412option java_multiple_files = true ;
1513option java_outer_classname = "ResolverProto" ;
1614
17- // Service for fetching the state for resolving flags
18- service ResolverStateService {
19- // Gets the full state for running a resolver
20- rpc FullResolverState (ResolverStateRequest ) returns (stream ResolverState ) {
21- option (google.api.http ) = {
22- get : "/v1/resolverState:full"
23- };
24- }
25-
26- // Gets a signed uri that can be used to download the current resolver state
27- rpc ResolverStateUri (ResolverStateUriRequest ) returns (ResolverStateUriResponse ){
28- option (google.api.http ) = {
29- get : "/v1/resolverState:resolverStateUri"
30- };
31- }
32- }
33-
34- // Request to fetch resolver state uri
35- message ResolverStateUriRequest {
36-
37- }
38-
39- // Response of fetching resolver state uri
40- message ResolverStateUriResponse {
41- // The signed uri that can be used to fetch state
42- string signed_uri = 1 ;
43- // At what time the state uri expires
44- google.protobuf.Timestamp expire_time = 2 ;
45- string account = 3 ;
46-
47- }
48-
49- // Request to get the resolver state for the whole account
50- message ResolverStateRequest {
51- }
52-
5315// The full state for operating a flags resolver
5416message ResolverState {
5517 // All active flags
0 commit comments