-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoperation.proto
81 lines (65 loc) · 2.83 KB
/
operation.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
syntax = "proto3";
package protos;
import "google/rpc/status.proto";
import "google/protobuf/any.proto";
// https://protobuf.dev/reference/go/faq/#namespace-conflict
// Although this won't really fix the conflict issue, we can
// hope to minimize breakage when they are placed in different
// Go package definitions.
option go_package = "github.com/alphauslabs/tobereplaced";
option java_package = "cloud.alphaus.protos";
option java_outer_classname = "OperationProto";
// This resource represents a long-running operation that is the result of a
// network API call.
message Operation {
// The server-assigned name.
string name = 1;
// Service-specific metadata associated with the operation. It typically
// contains progress information and common metadata such as create time.
// Some services might not provide such metadata. Any method that returns a
// long-running operation should document the metadata type, if any.
google.protobuf.Any metadata = 2;
// If the value is `false`, it means the operation is still in progress.
// If `true`, the operation is completed, and either `error` or `response` is
// available.
bool done = 3;
// The operation result, which can be either an `error` or a valid `response`.
// If `done` == `false`, neither `error` nor `response` is set.
// If `done` == `true`, exactly one of `error` or `response` is set.
oneof result {
// The error result of the operation in case of failure or cancellation.
google.rpc.Status error = 4;
// The normal response of the operation in case of success. If the original method returns
// no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
// original method is standard `Get`/`Create`/`Update`, the response should be the
// resource. For other methods, the response should have the type `XxxResponse`, where
// `Xxx` is the original method name. For example, if the original method name is
// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
google.protobuf.Any response = 5;
}
}
message OperationImportCurMetadataV1 {
string month = 1;
repeated string accounts = 2;
string created = 3;
string updated = 4;
}
message OperationAwsCalculateCostsMetadataV1 {
// Organization id.
string orgId = 1;
// The month being calculated.
string month = 2;
// If the request is for a specific group(s) (billing groups at the moment),
// their equivalent ids are listed here. Otherwise, empty.
repeated string groupIds = 3;
// Latest status information.
string status = 4;
// Timestamp when operation was created/started in RFC3339 format.
string created = 5;
// Timestamp of the operation's last update in RFC3339 format.
string updated = 6;
}
message OperationAwsDiscoverAssetsMetadataV1 {
repeated string accounts = 1;
repeated string services = 2;
}