github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v3/recovery_store_sharding_info_service.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v3; 4 5 import "edgelq-sdk/monitoring/proto/v3/recovery_store_sharding_info.proto"; 6 import "edgelq-sdk/monitoring/proto/v3/recovery_store_sharding_info_change.proto"; 7 import "google/api/annotations.proto"; 8 import "google/api/client.proto"; 9 import "google/protobuf/empty.proto"; 10 import "google/protobuf/field_mask.proto"; 11 import "google/protobuf/timestamp.proto"; 12 import "goten-sdk/types/view.proto"; 13 import "goten-sdk/types/watch_type.proto"; 14 15 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/client/v3/recovery_store_sharding_info;recovery_store_sharding_info_client"; 16 option java_multiple_files = false; 17 option java_outer_classname = "RecoveryStoreShardingInfoServiceProto"; 18 option java_package = "com.ntt.monitoring.pb.v3"; 19 20 // A request message of the GetRecoveryStoreShardingInfo method. 21 message GetRecoveryStoreShardingInfoRequest { 22 // Name of ntt.monitoring.v3.RecoveryStoreShardingInfo 23 string name = 1; 24 25 // A list of extra fields to be obtained for each response item on top of 26 // fields defined by request field view 27 google.protobuf.FieldMask field_mask = 3; 28 29 // View defines list of standard response fields present in response items. 30 // Additional fields can be amended by request field field_mask 31 goten.types.View view = 4; 32 } 33 34 // A request message of the BatchGetRecoveryStoreShardingInfos method. 35 message BatchGetRecoveryStoreShardingInfosRequest { 36 // Names of RecoveryStoreShardingInfos 37 repeated string names = 2; 38 39 // A list of extra fields to be obtained for each response item on top of 40 // fields defined by request field view 41 google.protobuf.FieldMask field_mask = 3; 42 43 // View defines list of standard response fields present in response items. 44 // Additional fields can be amended by request field field_mask 45 goten.types.View view = 4; 46 47 reserved 1; 48 } 49 50 // A response message of the BatchGetRecoveryStoreShardingInfos method. 51 message BatchGetRecoveryStoreShardingInfosResponse { 52 // found RecoveryStoreShardingInfos 53 repeated RecoveryStoreShardingInfo recovery_store_sharding_infos = 1; 54 55 // list of not found RecoveryStoreShardingInfos 56 repeated string missing = 2; 57 } 58 59 // A request message of the ListRecoveryStoreShardingInfos method. 60 message ListRecoveryStoreShardingInfosRequest { 61 // Parent name of ntt.monitoring.v3.RecoveryStoreShardingInfo 62 string parent = 1; 63 64 // Requested page size. Server may return fewer RecoveryStoreShardingInfos 65 // than requested. If unspecified, server will pick an appropriate default. 66 int32 page_size = 2; 67 68 // A token identifying a page of results the server should return. 69 // Typically, this is the value of 70 // ListRecoveryStoreShardingInfosResponse.next_page_token. 71 string page_token = 3; 72 73 // Order By - 74 // https://cloud.google.com/apis/design/design_patterns#list_pagination list 75 // of field path with order directive, either 'asc' or 'desc'. If direction is 76 // not provided, 'asc' is assumed. e.g. "state.nested_field asc, 77 // state.something.else desc, theme" 78 string order_by = 4; 79 80 // Filter - filter results by field criteria. Simplified SQL-like syntax with 81 // following operators: 82 // <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS 83 // [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels 84 // CONTAINS "severity:important" OR (state.last_error_time > 85 // "2018-11-15T10:00:00Z" AND state.status = "ERROR")' 86 string filter = 5; 87 88 // A list of extra fields to be obtained for each response item on top of 89 // fields defined by request field view 90 google.protobuf.FieldMask field_mask = 6; 91 92 // View defines list of standard response fields present in response items. 93 // Additional fields can be amended by request field field_mask 94 goten.types.View view = 7; 95 96 // Indicates if list response should contain total count and offset (fields 97 // current_offset and total_results_count). 98 bool include_paging_info = 8; 99 } 100 101 // A response message of the ListRecoveryStoreShardingInfos method. 102 message ListRecoveryStoreShardingInfosResponse { 103 // The list of RecoveryStoreShardingInfos 104 repeated RecoveryStoreShardingInfo recovery_store_sharding_infos = 1; 105 106 // A token to retrieve previous page of results. 107 // 108 // Pass this value in the ListRecoveryStoreShardingInfosRequest.page_token. 109 string prev_page_token = 3; 110 111 // A token to retrieve next page of results. 112 // 113 // Pass this value in the ListRecoveryStoreShardingInfosRequest.page_token. 114 string next_page_token = 4; 115 116 // Current offset from the first page or 0 if no page tokens were given, 117 // paging info was not requested or there was an error while trying to get 118 // it). Page index can be computed from offset and limit provided in a 119 // request. 120 int32 current_offset = 5; 121 122 // Number of total RecoveryStoreShardingInfos across all pages or 0, if there 123 // are no items, paging info was not requested or there was an error while 124 // trying to get it. 125 int32 total_results_count = 6; 126 } 127 128 // A request message of the WatchRecoveryStoreShardingInfo method. 129 message WatchRecoveryStoreShardingInfoRequest { 130 // Name of ntt.monitoring.v3.RecoveryStoreShardingInfo 131 string name = 1; 132 133 // A list of extra fields to be obtained for each response item on top of 134 // fields defined by request field view 135 google.protobuf.FieldMask field_mask = 2; 136 137 // View defines list of standard response fields present in response items. 138 // Additional fields can be amended by request field field_mask 139 goten.types.View view = 4; 140 } 141 142 // A response message of the WatchRecoveryStoreShardingInfo method. 143 message WatchRecoveryStoreShardingInfoResponse { 144 RecoveryStoreShardingInfoChange change = 1; 145 } 146 147 // A request message of the WatchRecoveryStoreShardingInfos method. 148 message WatchRecoveryStoreShardingInfosRequest { 149 // Type of a watch. Identifies how server stream data to a client, which 150 // fields in a request are allowed and which fields in response are relevant. 151 goten.types.WatchType type = 9; 152 153 // Parent name of ntt.monitoring.v3.RecoveryStoreShardingInfo 154 string parent = 1; 155 156 // Requested page size. Server may return fewer RecoveryStoreShardingInfos 157 // than requested. If unspecified, server will pick an appropriate default. 158 // Can be populated only for stateful watch type. 159 int32 page_size = 2; 160 161 // A token identifying a page of results the server should return. 162 // Can be populated only for stateful watch type. 163 string page_token = 3; 164 165 // Order By - 166 // https://cloud.google.com/apis/design/design_patterns#list_pagination Can be 167 // populated only for stateful watch type. 168 string order_by = 4; 169 170 // A token identifying watch resume point from previous session. 171 // Can be populated only for stateless watch type. 172 string resume_token = 10; 173 174 // Point in the time from which we want to start getting updates. This field 175 // can be populated only for stateless watch type and if resume token is not 176 // known yet. If specified, initial snapshot will NOT be provided. It is 177 // assumed client can obtain it using separate means. Watch responses will 178 // contain resume tokens which should be used to resume broken connection. 179 google.protobuf.Timestamp starting_time = 12; 180 181 // Filter - filter results by field criteria. Simplified SQL-like syntax with 182 // following operators: 183 // <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS 184 // [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels 185 // CONTAINS "severity:important" OR (state.last_error_time > 186 // "2018-11-15T10:00:00Z" AND state.status = "ERROR")' 187 string filter = 5; 188 189 // A list of extra fields to be obtained for each response item on top of 190 // fields defined by request field view Changes to RecoveryStoreShardingInfo 191 // that don't affect any of masked fields won't be sent back. 192 google.protobuf.FieldMask field_mask = 6; 193 194 // View defines list of standard response fields present in response items. 195 // Additional fields can be amended by request field field_mask Changes to 196 // RecoveryStoreShardingInfo that don't affect any of masked fields won't be 197 // sent back. 198 goten.types.View view = 8; 199 200 // Maximum amount of changes in each response message. Query result response 201 // is divided on the server side into chunks with size of a specified amount 202 // to limit memory footprint of each message. Responses will hold information 203 // whether more elements will continue for the actual change. If unspecified, 204 // server will pick an appropriate default. 205 int32 max_chunk_size = 11; 206 } 207 208 // A response message of the WatchRecoveryStoreShardingInfos method. 209 message WatchRecoveryStoreShardingInfosResponse { 210 // Changes of RecoveryStoreShardingInfos 211 repeated RecoveryStoreShardingInfoChange 212 recovery_store_sharding_info_changes = 2; 213 214 // If request specified max_chunk_size (or this limit was enforced if 215 // stateless watch has been chosen), then responses with "full changeset" will 216 // be divided into chunks. Client should keep receiving messages and, once 217 // is_current has value true, combine this recent message with all previous 218 // ones where is_current is false. If this is the first is_current in a whole 219 // watch stream, then it means that client should have, at this moment, 220 // contain snapshot of the current situation (or more accurately, snapshot of 221 // situation at the moment of request). All RecoveryStoreShardingInfos will be 222 // of type Added/Current (depending on watch_type specified in the request). 223 // Further responses will be incremental - however messages may still be 224 // chunked and is_current logic still applies. is_current is always true for 225 // stateful watch if max_chunk_size was left to 0. 226 bool is_current = 4; 227 228 // When present, PageTokens used for page navigation should be updated. 229 // Present only if is_current is true (last chunk). 230 PageTokenChange page_token_change = 3; 231 232 // Token that can be used if current connection drops and client needs to 233 // reconnect. Populated only for stateless watch type. Present only if 234 // is_current is true (last chunk). 235 string resume_token = 5; 236 237 // Server may occasionally send information how many resources should client 238 // have in its state so far (response message without any changes, but with 239 // snapshot_size field specified). If client has different value than the one 240 // sent by the server, then it should be treated by a client as an error and 241 // should reconnect. If value is smaller then 0, then client should ignore 242 // this field as unpopulated. This field should be checked only for stateless 243 // watch. In stateful those kind of errors are handled by the server side. 244 // Will be never sent together with is_current, is_soft_reset and 245 // is_hard_reset flags. 246 int64 snapshot_size = 6; 247 248 // In case of internal issue server may send response message with this flag. 249 // It indicates that client should drop all changes from recent responses 250 // where is_current is false only! If last message had is_current set to true, 251 // client should do nothing and process normally. Resume token received before 252 // is still valid. This field should be checked only for stateless watch. In 253 // stateful those kind of errors are handled by the server side. Will never be 254 // sent along with is_current, is_hard_reset or snapshot_size. 255 bool is_soft_reset = 7; 256 257 // In case of internal issue server may send response message with this flag. 258 // After receiving, client should clear whole state (drop all changes received 259 // so far) as server will send new snapshot (RecoveryStoreShardingInfos will 260 // contains changes of type Current only). Any resume tokens should be 261 // discarded as well. This field should be checked only for stateless watch. 262 // In stateful those kind of errors are handled by the server side. Will never 263 // be sent along with is_current, is_soft_reset or snapshot_size. 264 bool is_hard_reset = 8; 265 266 message PageTokenChange { 267 // New token to retrieve previous page of results. 268 string prev_page_token = 1; 269 270 // New token to retrieve next page of results. 271 string next_page_token = 2; 272 } 273 } 274 275 // A request message of the CreateRecoveryStoreShardingInfo method. 276 message CreateRecoveryStoreShardingInfoRequest { 277 // Parent name of ntt.monitoring.v3.RecoveryStoreShardingInfo 278 string parent = 1; 279 280 // RecoveryStoreShardingInfo resource body 281 RecoveryStoreShardingInfo recovery_store_sharding_info = 2; 282 283 // Optional masking applied to response object to reduce message response 284 // size. 285 ResponseMask response_mask = 3; 286 287 // ResponseMask allows client to reduce response message size. 288 message ResponseMask { 289 oneof masking { 290 // If this flag has value true, then response will contain just empty 291 // resource without any fields populated. 292 bool skip_entire_response_body = 1; 293 294 // If this field is populated, then resource in response will contain only 295 // specific fields. 296 google.protobuf.FieldMask body_mask = 2; 297 } 298 } 299 } 300 301 // A request message of the UpdateRecoveryStoreShardingInfo method. 302 message UpdateRecoveryStoreShardingInfoRequest { 303 // RecoveryStoreShardingInfo resource body 304 RecoveryStoreShardingInfo recovery_store_sharding_info = 2; 305 306 // FieldMask applied to request - change will be applied only for fields in 307 // the mask 308 google.protobuf.FieldMask update_mask = 3; 309 310 // Conditional update applied to request if update should be executed only for 311 // specific resource state. If this field is populated, then server will fetch 312 // existing resource, compare with the one stored in the cas field (after 313 // applying field mask) and proceed with update only and only if they match. 314 // Otherwise RPC error Aborted will be returned. 315 CAS cas = 4; 316 317 // If set to true, and the resource is not found, 318 // a new resource will be created. In this situation, 319 // 'field_mask' is ignored. 320 // 321 // https://google.aip.dev/134#create-or-update 322 bool allow_missing = 5; // Optional masking applied to response object to 323 324 // reduce message response size. 325 ResponseMask response_mask = 6; 326 327 // CAS - Compare and Swap. This object is used if user wants to make update 328 // conditional based upon previous resource version. 329 message CAS { 330 // Conditional desired state of a resource before update. 331 RecoveryStoreShardingInfo conditional_state = 1; 332 333 // Field paths from conditional state of resource server should check and 334 // compare. 335 google.protobuf.FieldMask field_mask = 2; 336 } 337 338 // ResponseMask allows client to reduce response message size. 339 message ResponseMask { 340 oneof masking { 341 // If this flag has value true, then response will contain just empty 342 // resource without any fields populated. Field body_mask is ignored if 343 // set. 344 bool skip_entire_response_body = 1; 345 346 // Include all fields that were actually updated during processing. Note 347 // this may be larger than update mask if some fields were computed 348 // additionally. Name is added as well. 349 bool updated_fields_only = 2; 350 351 // If this field is populated, then resource in response will contain only 352 // specific fields. If skip_entire_response_body is true, this field is 353 // ignored. 354 google.protobuf.FieldMask body_mask = 3; 355 } 356 } 357 } 358 359 // A request message of the DeleteRecoveryStoreShardingInfo method. 360 message DeleteRecoveryStoreShardingInfoRequest { 361 // Name of ntt.monitoring.v3.RecoveryStoreShardingInfo 362 string name = 1; 363 364 // If set to true, and the resource is not found, method will be successful 365 // and will not return NotFound error. 366 bool allow_missing = 2; 367 } 368 369 // RecoveryStoreShardingInfo service API for Monitoring 370 service RecoveryStoreShardingInfoService { 371 option (google.api.default_host) = "monitoring.edgelq.com"; 372 option (google.api.oauth_scopes) = "https://apis.edgelq.com"; 373 374 // GetRecoveryStoreShardingInfo 375 rpc GetRecoveryStoreShardingInfo(GetRecoveryStoreShardingInfoRequest) 376 returns (RecoveryStoreShardingInfo) { 377 option (google.api.http) = { 378 get : "/v3/{name=regions/*/recoveryStoreShardingInfos/*}" 379 }; 380 } 381 382 // BatchGetRecoveryStoreShardingInfos 383 rpc BatchGetRecoveryStoreShardingInfos( 384 BatchGetRecoveryStoreShardingInfosRequest) 385 returns (BatchGetRecoveryStoreShardingInfosResponse) { 386 option (google.api.http) = { 387 get : "/v3/recoveryStoreShardingInfos:batchGet" 388 }; 389 } 390 391 // ListRecoveryStoreShardingInfos 392 rpc ListRecoveryStoreShardingInfos(ListRecoveryStoreShardingInfosRequest) 393 returns (ListRecoveryStoreShardingInfosResponse) { 394 option (google.api.http) = { 395 get : "/v3/{parent=regions/*}/recoveryStoreShardingInfos" 396 }; 397 } 398 399 // WatchRecoveryStoreShardingInfo 400 rpc WatchRecoveryStoreShardingInfo(WatchRecoveryStoreShardingInfoRequest) 401 returns (stream WatchRecoveryStoreShardingInfoResponse) { 402 option (google.api.http) = { 403 post : "/v3/{name=regions/*/recoveryStoreShardingInfos/*}:watch" 404 }; 405 } 406 407 // WatchRecoveryStoreShardingInfos 408 rpc WatchRecoveryStoreShardingInfos(WatchRecoveryStoreShardingInfosRequest) 409 returns (stream WatchRecoveryStoreShardingInfosResponse) { 410 option (google.api.http) = { 411 post : "/v3/{parent=regions/*}/recoveryStoreShardingInfos:watch" 412 }; 413 } 414 415 // CreateRecoveryStoreShardingInfo 416 rpc CreateRecoveryStoreShardingInfo(CreateRecoveryStoreShardingInfoRequest) 417 returns (RecoveryStoreShardingInfo) { 418 option (google.api.http) = { 419 post : "/v3/{parent=regions/*}/recoveryStoreShardingInfos" 420 body : "recovery_store_sharding_info" 421 }; 422 } 423 424 // UpdateRecoveryStoreShardingInfo 425 rpc UpdateRecoveryStoreShardingInfo(UpdateRecoveryStoreShardingInfoRequest) 426 returns (RecoveryStoreShardingInfo) { 427 option (google.api.http) = { 428 put : "/v3/{recovery_store_sharding_info.name=regions/*/" 429 "recoveryStoreShardingInfos/*}" 430 body : "recovery_store_sharding_info" 431 }; 432 } 433 434 // DeleteRecoveryStoreShardingInfo 435 rpc DeleteRecoveryStoreShardingInfo(DeleteRecoveryStoreShardingInfoRequest) 436 returns (google.protobuf.Empty) { 437 option (google.api.http) = { 438 delete : "/v3/{name=regions/*/recoveryStoreShardingInfos/*}" 439 }; 440 } 441 }