aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/dataproc/v1/resource_preset_service.proto
blob: 457553ce59410aed2b71aba1d1253eb1f1b9e8e9 (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
43
44
45
46
47
48
49
50
51
52
53
syntax = "proto3";

package yandex.cloud.dataproc.v1;

import "google/api/annotations.proto";
import "yandex/cloud/dataproc/v1/resource_preset.proto";
import "yandex/cloud/validation.proto";

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

// A set of methods for managing ResourcePreset resources.
service ResourcePresetService {
  // Returns the specified ResourcePreset resource.
  //
  // To get the list of available ResourcePreset resources, make a [List] request.
  rpc Get (GetResourcePresetRequest) returns (ResourcePreset) {
    option (google.api.http) = { get: "/dataproc/v1/resourcePresets/{resource_preset_id}" };
  }

  // Retrieves the list of available ResourcePreset resources.
  rpc List (ListResourcePresetsRequest) returns (ListResourcePresetsResponse) {
    option (google.api.http) = { get: "/dataproc/v1/resourcePresets" };
  }
}

message GetResourcePresetRequest {
  // Required. ID of the resource preset to return.
  // To get the resource preset ID, use a [ResourcePresetService.List] request.
  string resource_preset_id = 1 [(required) = true];
}

message ListResourcePresetsRequest {
  // The maximum number of results per page to return. If the number of available
  // results is larger than [page_size], the service returns a [ListResourcePresetsResponse.next_page_token]
  // that can be used to get the next page of results in subsequent list requests.
  int64 page_size = 1 [(value) = "<=1000"];

  // Page token. To get the next page of results, set [page_token] to the [ListResourcePresetsResponse.next_page_token]
  // returned by a previous list request.
  string page_token = 2 [(length) = "<=100"];
}

message ListResourcePresetsResponse {
  // List of ResourcePreset resources.
  repeated ResourcePreset resource_presets = 1;

  // This token allows you to get the next page of results for list requests. If the number of results
  // is larger than [ListResourcePresetsRequest.page_size], use the [next_page_token] as the value
  // for the [ListResourcePresetsRequest.page_token] parameter in the next list request. Each subsequent
  // list request will have its own [next_page_token] to continue paging through the results.
  string next_page_token = 2 [(length) = "<=100"];
}