aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.com>2024-06-11 10:12:13 +0300
committeriddqd <iddqd@yandex-team.com>2024-06-11 10:22:43 +0300
commit07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch)
treea4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto
parent6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff)
downloadydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto')
-rw-r--r--contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto54
1 files changed, 54 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto
new file mode 100644
index 0000000000..fa1f83efa3
--- /dev/null
+++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/elasticsearch/v1/backup_service.proto
@@ -0,0 +1,54 @@
+syntax = "proto3";
+
+package yandex.cloud.mdb.elasticsearch.v1;
+
+import "google/api/annotations.proto";
+import "yandex/cloud/validation.proto";
+import "yandex/cloud/mdb/elasticsearch/v1/backup.proto";
+
+option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/elasticsearch/v1;elasticsearch";
+option java_package = "yandex.cloud.api.mdb.elasticsearch.v1";
+
+service BackupService {
+ // Returns the specified backup of Elasticsearch cluster.
+ rpc Get (GetBackupRequest) returns (Backup) {
+ option (google.api.http) = { get: "/managed-elasticsearch/v1/backups/{backup_id}" };
+ }
+
+ // Returns the list of available backups for the specified Elasticsearch cluster.
+ rpc List (ListBackupsRequest) returns (ListBackupsResponse) {
+ option (google.api.http) = { get: "/managed-elasticsearch/v1/backups" };
+ }
+}
+
+message GetBackupRequest {
+ // Required. ID of the backup to return.
+ string backup_id = 1 [(required) = true];
+}
+
+message ListBackupsRequest {
+ // Required. ID of the folder to list backups in.
+ string folder_id = 1 [(required) = true, (length) = "<=50"];
+
+ // The maximum number of results per page that should be returned. If the number of available
+ // results is larger than `page_size`, the service returns a `next_page_token` that can be used
+ // to get the next page of results in subsequent ListBackups requests.
+ // Acceptable values are 0 to 1000, inclusive. Default value: 100.
+ int64 page_size = 2 [(value) = "0-1000"];
+
+ // Page token. Set `page_token` to the `next_page_token` returned by a previous ListBackups
+ // request to get the next page of results.
+ string page_token = 3 [(length) = "<=100"];
+}
+
+message ListBackupsResponse {
+ // Requested list of backups.
+ repeated Backup backups = 1;
+
+ // This token allows you to get the next page of results for ListBackups requests,
+ // if the number of results is larger than `page_size` specified in the request.
+ // To get the next page, specify the value of `next_page_token` as a value for
+ // the `page_token` parameter in the next ListBackups request. Subsequent ListBackups
+ // requests will have their own `next_page_token` to continue paging through the results.
+ string next_page_token = 2;
+}