-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathaction.proto
More file actions
87 lines (66 loc) · 2.27 KB
/
Copy pathaction.proto
File metadata and controls
87 lines (66 loc) · 2.27 KB
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
syntax = "proto3";
package api.v1;
import "proto/api/v1/file.proto";
// Request passed into GetAction
message GetActionRequest {
// The selector defining which action(s) to retrieve.
ActionSelector selector = 1;
// The next_page_token value returned from a previous request, if any.
string page_token = 2;
}
// Response from calling GetAction
message GetActionResponse {
// Actions matching the request, possibly capped a server limit.
repeated Action action = 1;
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
string next_page_token = 2;
}
// An action that happened as part of a configured target. This action could be
// a build, a test, or another type of action.
message Action {
// The resource ID components that identify the Action.
message Id {
// The Invocation ID.
string invocation_id = 1;
// The Target ID.
string target_id = 2;
// The Configuration ID.
string configuration_id = 3;
// The Action ID.
string action_id = 4;
}
// The resource ID components that identify the Action.
Id id = 1;
// A list of file references for action level files.
repeated File file = 2;
// The label of the target that generated this action.
string target_label = 3;
// The test shard this action represents.
// Only populated for test actions.
int64 shard = 4;
// The test run this action represents.
// Only populated for test actions.
int64 run = 5;
// The test attempt this action represents.
// Only populated for test actions.
int64 attempt = 6;
}
// The selector used to specify which actions to return.
message ActionSelector {
// Required: The Invocation ID.
// All actions returned will be scoped to this invocation.
string invocation_id = 1;
// Optional: The Target ID.
// If set, all actions returned will be scoped to this target.
string target_id = 2;
// Optional: The Configuration ID.
// If set, all actions returned will be scoped to this configuration.
string configuration_id = 3;
// Optional: The Action ID.
// If set, only the action with this action id will be returned.
string action_id = 4;
// Optional: The Target label.
// If set, only the action with this target label will be returned.
string target_label = 5;
}