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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationParams {
#[prost(enumeration = "operation_params::OperationMode", tag = "1")]
pub operation_mode: i32,
#[prost(message, optional, tag = "2")]
pub operation_timeout: ::core::option::Option<
super::super::google::protobuf::Duration,
>,
#[prost(message, optional, tag = "3")]
pub cancel_after: ::core::option::Option<super::super::google::protobuf::Duration>,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(enumeration = "super::feature_flag::Status", tag = "5")]
pub report_cost_info: i32,
}
pub mod operation_params {
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OperationMode {
Unspecified = 0,
Sync = 1,
Async = 2,
}
impl OperationMode {
pub fn as_str_name(&self) -> &'static str {
match self {
OperationMode::Unspecified => "OPERATION_MODE_UNSPECIFIED",
OperationMode::Sync => "SYNC",
OperationMode::Async => "ASYNC",
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOperationRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOperationResponse {
#[prost(message, optional, tag = "1")]
pub operation: ::core::option::Option<Operation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelOperationRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelOperationResponse {
#[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
pub status: i32,
#[prost(message, repeated, tag = "2")]
pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForgetOperationRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ForgetOperationResponse {
#[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
pub status: i32,
#[prost(message, repeated, tag = "2")]
pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsRequest {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
pub page_size: u64,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsResponse {
#[prost(enumeration = "super::status_ids::StatusCode", tag = "1")]
pub status: i32,
#[prost(message, repeated, tag = "2")]
pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
#[prost(message, repeated, tag = "3")]
pub operations: ::prost::alloc::vec::Vec<Operation>,
#[prost(string, tag = "4")]
pub next_page_token: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Operation {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub ready: bool,
#[prost(enumeration = "super::status_ids::StatusCode", tag = "3")]
pub status: i32,
#[prost(message, repeated, tag = "4")]
pub issues: ::prost::alloc::vec::Vec<super::issue::IssueMessage>,
#[prost(message, optional, tag = "5")]
pub result: ::core::option::Option<super::super::google::protobuf::Any>,
#[prost(message, optional, tag = "6")]
pub metadata: ::core::option::Option<super::super::google::protobuf::Any>,
#[prost(message, optional, tag = "7")]
pub cost_info: ::core::option::Option<super::CostInfo>,
}