blob: b246fac5475c87a9909c64962955f61b52c36900 (
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
54
|
syntax = "proto3";
package yandex.cloud.cdn.v1;
import "google/api/annotations.proto";
import "yandex/cloud/api/operation.proto";
import "yandex/cloud/operation/operation.proto";
import "yandex/cloud/validation.proto";
option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/cdn/v1;cdn";
option java_package = "yandex.cloud.api.cdn.v1";
// A set of methods for managing Provider Service resources.
service ProviderService {
// Activate provider for specified client.
rpc Activate(ActivateProviderRequest) returns (operation.Operation) {
option (google.api.http) = { post: "/cdn/v1/providers:activate" body: "*" };
option (yandex.cloud.api.operation) = {
metadata: "ActivateProviderMetadata"
response: "google.protobuf.Empty"
};
}
// List activated providers for specified client.
rpc ListActivated(ListActivatedProvidersRequest) returns (ListActivatedProvidersResponse) {
option (google.api.http) = { get: "/cdn/v1/providers"};
}
}
message ActivateProviderRequest {
// ID of the folder that the activate provider belongs to.
string folder_id = 1 [(required) = true, (length) = "<=50"];
// Specify provider brand/type.
//
// Possible values: `gcore`.
string provider_type = 2 [(required) = true, (length) = "<=50"];
}
message ActivateProviderMetadata {
// ID of the folder that the activate provider belongs to.
string folder_id = 1 [(required) = true, (length) = "<=50"];
}
message ListActivatedProvidersRequest {
// ID of the folder that the activate provider belongs to.
string folder_id = 1 [(required) = true, (length) = "<=50"];
}
message ListActivatedProvidersResponse {
// Creates a list of providers.
repeated string providers = 1;
}
|