aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/endpoint/api_endpoint_service.proto
blob: fddf5ad70e3df05a3e06472a58b0ee96a3a7cb7a (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
syntax = "proto3";

package yandex.cloud.endpoint;

import "google/api/annotations.proto";
import "yandex/cloud/endpoint/api_endpoint.proto";

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

service ApiEndpointService {
  rpc Get (GetApiEndpointRequest) returns (ApiEndpoint) {
    option (google.api.http) = { get: "/endpoints/{api_endpoint_id}" };
  }
  rpc List (ListApiEndpointsRequest) returns (ListApiEndpointsResponse) {
    option (google.api.http) = { get: "/endpoints" };
  }
}

message GetApiEndpointRequest {
  string api_endpoint_id = 1;
}

message ListApiEndpointsRequest {
  int64 page_size = 1;
  string page_token = 2;
}

message ListApiEndpointsResponse {
  repeated ApiEndpoint endpoints = 1;
  string next_page_token = 2;
}