aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/clickhouse/v1/versions_service.proto
blob: c3552cef09356ebfb0a11b6630cb7ce0e3d5283d (plain) (blame)
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
syntax = "proto3";

package yandex.cloud.mdb.clickhouse.v1;

import "google/api/annotations.proto";
import "yandex/cloud/validation.proto";
import "yandex/cloud/mdb/clickhouse/v1/version.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/clickhouse/v1;clickhouse";
option java_package = "yandex.cloud.api.mdb.clickhouse.v1";

// A set of methods for managing ClickHouse versions.
service VersionsService {
  // Returns list of available ClickHouse versions.
  rpc List (ListVersionsRequest) returns (ListVersionsResponse) {
    option (google.api.http) = { get: "/managed-clickhouse/v1/versions" };
  }
}

message ListVersionsRequest {
  // 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 [ListVersionsResponse.next_page_token] that can be used
  // to get the next page of results in subsequent ListVersions requests.
  // Default value: 100.
  int64 page_size = 1 [(value) = "0-1000"];

  // Page token. Set [page_token] to the [ListVersionsResponse.next_page_token] returned by a previous ListVersions
  // request to get the next page of results.
  string page_token = 2 [(length) = "<=100"];
}

message ListVersionsResponse {
  // Requested list of available versions.
  repeated Version version = 1;

  // This token allows you to get the next page of results for ListVersions requests,
  // if the number of results is larger than [ListVersionsRequest.page_size] specified in the request.
  // To get the next page, specify the value of [next_page_token] as a value for
  // the [ListVersionsRequest.page_token] parameter in the next ListVerions request. Subsequent ListVersions
  // requests will have their own [next_page_token] to continue paging through the results.
  string next_page_token = 2;
}