-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcontrolclient.proto
186 lines (146 loc) · 4.13 KB
/
controlclient.proto
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
syntax = "proto3";
option go_package = "github.com/momentohq/client-sdk-go;client_sdk_go";
option java_multiple_files = true;
option java_package = "grpc.control_client";
option csharp_namespace = "Momento.Protos.ControlClient";
package control_client;
service ScsControl {
rpc CreateCache (_CreateCacheRequest) returns (_CreateCacheResponse) {}
rpc DeleteCache (_DeleteCacheRequest) returns (_DeleteCacheResponse) {}
rpc ListCaches (_ListCachesRequest) returns (_ListCachesResponse) {}
rpc FlushCache (_FlushCacheRequest) returns (_FlushCacheResponse) {}
rpc CreateSigningKey (_CreateSigningKeyRequest) returns (_CreateSigningKeyResponse) {}
rpc RevokeSigningKey (_RevokeSigningKeyRequest) returns (_RevokeSigningKeyResponse) {}
rpc ListSigningKeys (_ListSigningKeysRequest) returns (_ListSigningKeysResponse) {}
rpc CreateIndex (_CreateIndexRequest) returns (_CreateIndexResponse) {}
rpc DeleteIndex(_DeleteIndexRequest) returns (_DeleteIndexResponse) {}
rpc ListIndexes(_ListIndexesRequest) returns (_ListIndexesResponse) {}
rpc CreateStore (_CreateStoreRequest) returns (_CreateStoreResponse) {}
rpc DeleteStore (_DeleteStoreRequest) returns (_DeleteStoreResponse) {}
rpc ListStores (_ListStoresRequest) returns (_ListStoresResponse) {}
}
message _CreateStoreRequest {
string store_name = 1;
}
message _CreateStoreResponse {
}
message _DeleteStoreRequest {
string store_name = 1;
}
message _DeleteStoreResponse {
}
message _ListStoresRequest {
string next_token = 1;
}
message _ListStoresResponse {
repeated _Store store = 1;
string next_token = 2;
}
message _Store {
string store_name = 1;
}
message _SimilarityMetric {
message _EuclideanSimilarity {
}
message _InnerProduct {
}
message _CosineSimilarity {
}
oneof similarity_metric {
_EuclideanSimilarity euclidean_similarity = 1;
_InnerProduct inner_product = 2;
_CosineSimilarity cosine_similarity = 3;
}
}
message _CreateIndexRequest {
string index_name = 1;
uint64 num_dimensions = 2;
_SimilarityMetric similarity_metric = 3;
}
message _CreateIndexResponse {
}
message _DeleteIndexRequest {
string index_name = 1;
}
message _DeleteIndexResponse {
}
message _ListIndexesRequest {
}
message _ListIndexesResponse {
message _Index {
string index_name = 1;
uint64 num_dimensions = 2;
_SimilarityMetric similarity_metric = 3;
}
repeated _Index indexes = 1;
}
message _DeleteCacheRequest {
string cache_name = 1;
}
message _DeleteCacheResponse {
}
message _CreateCacheRequest {
string cache_name = 1;
}
message _CreateCacheResponse {
}
message _ListCachesRequest {
string next_token = 1;
}
message _CacheLimits {
// The amount of transactions per second that can be exercised
uint32 max_traffic_rate = 1;
// The amount of traffic per second that can be exercised in KiB
uint32 max_throughput_kbps = 2;
// The maximum size of a single item in KiB
uint32 max_item_size_kb = 3;
// The maximum TTL allowed for a single item, in seconds
uint64 max_ttl_seconds = 4;
}
message _TopicLimits {
// The amount of messages that can be published per second
uint32 max_publish_rate = 1;
// The maximum amount of active subscriptions per cache
uint32 max_subscription_count = 2;
// The maximum size of a single publish message, in KiB
uint32 max_publish_message_size_kb = 3;
}
message _Cache {
string cache_name = 1;
_CacheLimits cache_limits = 2;
_TopicLimits topic_limits = 3;
}
message _ListCachesResponse {
repeated _Cache cache = 1;
string next_token = 2;
}
message _CreateSigningKeyRequest {
uint32 ttl_minutes = 1;
}
message _CreateSigningKeyResponse {
string key = 1;
uint64 expires_at = 2;
}
message _RevokeSigningKeyRequest {
string key_id = 1;
}
message _RevokeSigningKeyResponse {
}
message _SigningKey {
// The id of the signing key
string key_id = 1;
// Epoch time in seconds when the signing key expires
uint64 expires_at = 2;
}
message _ListSigningKeysRequest {
string next_token = 1;
}
message _ListSigningKeysResponse {
repeated _SigningKey signing_key = 1;
string next_token = 2;
}
message _FlushCacheRequest {
string cache_name = 1;
}
message _FlushCacheResponse {
}