dapr-client 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/dapr/proto/runtime/v1/dapr.proto +408 -405
- data/lib/dapr/proto/runtime/v1/dapr_services_pb.rb +27 -25
- data/lib/dapr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f7a6b575f444a0a71b6626a2e009da5ab7a6ff4d1903cd46e9a4c449b44844
|
4
|
+
data.tar.gz: 4bd57398f41e635f4e6513da33831d6205abbea1659dc9752a965b104406eae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c1455b8b832040d2632799fcedccd661856fca59b32f432cff407594b52228324c7e8afb4e00243407aa32959f49d62e0f3dbe25cec211bc3c384db4c1bd31
|
7
|
+
data.tar.gz: 208d82a67e94475513485bf877e92ab592921b599fd497df0d08f085eba5b54be5cf491bd1dde148b54140f9706df45ed4f3ffaa761715a2e3b03672ad4bd9ba
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,406 +1,409 @@
|
|
1
|
-
// ------------------------------------------------------------
|
2
|
-
// Copyright (c) Microsoft Corporation and Dapr Contributors.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
// ------------------------------------------------------------
|
5
|
-
|
6
|
-
syntax = "proto3";
|
7
|
-
|
8
|
-
package dapr.proto.runtime.v1;
|
9
|
-
|
10
|
-
import "google/protobuf/any.proto";
|
11
|
-
import "google/protobuf/empty.proto";
|
12
|
-
import "dapr/proto/common/v1/common.proto";
|
13
|
-
|
14
|
-
option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1";
|
15
|
-
option java_outer_classname = "DaprProtos";
|
16
|
-
option java_package = "io.dapr.v1";
|
17
|
-
option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime";
|
18
|
-
|
19
|
-
// Dapr service provides APIs to user application to access Dapr building blocks.
|
20
|
-
service Dapr {
|
21
|
-
// Invokes a method on a remote Dapr app.
|
22
|
-
rpc InvokeService(InvokeServiceRequest) returns (common.v1.InvokeResponse) {}
|
23
|
-
|
24
|
-
// Gets the state for a specific key.
|
25
|
-
rpc GetState(GetStateRequest) returns (GetStateResponse) {}
|
26
|
-
|
27
|
-
// Gets a bulk of state items for a list of keys
|
28
|
-
rpc GetBulkState(GetBulkStateRequest) returns (GetBulkStateResponse) {}
|
29
|
-
|
30
|
-
// Saves the state for a specific key.
|
31
|
-
rpc SaveState(SaveStateRequest) returns (google.protobuf.Empty) {}
|
32
|
-
|
33
|
-
// Deletes the state for a specific key.
|
34
|
-
rpc DeleteState(DeleteStateRequest) returns (google.protobuf.Empty) {}
|
35
|
-
|
36
|
-
// Deletes a bulk of state items for a list of keys
|
37
|
-
rpc DeleteBulkState(DeleteBulkStateRequest) returns (google.protobuf.Empty) {}
|
38
|
-
|
39
|
-
// Executes transactions for a specified store
|
40
|
-
rpc ExecuteStateTransaction(ExecuteStateTransactionRequest) returns (google.protobuf.Empty) {}
|
41
|
-
|
42
|
-
// Publishes events to the specific topic.
|
43
|
-
rpc PublishEvent(PublishEventRequest) returns (google.protobuf.Empty) {}
|
44
|
-
|
45
|
-
// Invokes binding data to specific output bindings
|
46
|
-
rpc InvokeBinding(InvokeBindingRequest) returns (InvokeBindingResponse) {}
|
47
|
-
|
48
|
-
// Gets secrets from secret stores.
|
49
|
-
rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {}
|
50
|
-
|
51
|
-
// Gets a bulk of secrets
|
52
|
-
rpc GetBulkSecret(GetBulkSecretRequest) returns (GetBulkSecretResponse) {}
|
53
|
-
|
54
|
-
// Register an actor timer.
|
55
|
-
rpc RegisterActorTimer(RegisterActorTimerRequest) returns (google.protobuf.Empty) {}
|
56
|
-
|
57
|
-
// Unregister an actor timer.
|
58
|
-
rpc UnregisterActorTimer(UnregisterActorTimerRequest) returns (google.protobuf.Empty) {}
|
59
|
-
|
60
|
-
// Register an actor reminder.
|
61
|
-
rpc RegisterActorReminder(RegisterActorReminderRequest) returns (google.protobuf.Empty) {}
|
62
|
-
|
63
|
-
// Unregister an actor reminder.
|
64
|
-
rpc UnregisterActorReminder(UnregisterActorReminderRequest) returns (google.protobuf.Empty) {}
|
65
|
-
|
66
|
-
// Gets the state for a specific actor.
|
67
|
-
rpc GetActorState(GetActorStateRequest) returns (GetActorStateResponse) {}
|
68
|
-
|
69
|
-
// Executes state transactions for a specified actor
|
70
|
-
rpc ExecuteActorStateTransaction(ExecuteActorStateTransactionRequest) returns (google.protobuf.Empty) {}
|
71
|
-
|
72
|
-
// InvokeActor calls a method on an actor.
|
73
|
-
rpc InvokeActor (InvokeActorRequest) returns (InvokeActorResponse) {}
|
74
|
-
|
75
|
-
// Gets metadata of the sidecar
|
76
|
-
rpc GetMetadata (google.protobuf.Empty) returns (GetMetadataResponse) {}
|
77
|
-
|
78
|
-
// Sets value in extended metadata of the sidecar
|
79
|
-
rpc SetMetadata (SetMetadataRequest) returns (google.protobuf.Empty) {}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
// Required.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
// The
|
97
|
-
string
|
98
|
-
|
99
|
-
// The
|
100
|
-
|
101
|
-
|
102
|
-
// The
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
// The
|
112
|
-
|
113
|
-
|
114
|
-
// The
|
115
|
-
|
116
|
-
|
117
|
-
// The
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
//
|
134
|
-
|
135
|
-
|
136
|
-
// The
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
//
|
141
|
-
string
|
142
|
-
|
143
|
-
// The
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
// The
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
//
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
// The
|
166
|
-
string
|
167
|
-
|
168
|
-
// The
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
//
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
//
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
// The
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
// The
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
// The pubsub
|
204
|
-
string
|
205
|
-
|
206
|
-
// The
|
207
|
-
|
208
|
-
|
209
|
-
// The
|
210
|
-
|
211
|
-
|
212
|
-
// The
|
213
|
-
|
214
|
-
|
215
|
-
//
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
// The
|
225
|
-
|
226
|
-
|
227
|
-
// The
|
228
|
-
|
229
|
-
|
230
|
-
//
|
231
|
-
//
|
232
|
-
//
|
233
|
-
// in the
|
234
|
-
|
235
|
-
|
236
|
-
//
|
237
|
-
string
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
// The
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
// The name of secret
|
255
|
-
string
|
256
|
-
|
257
|
-
// The
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
// The
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
//
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
// Required.
|
304
|
-
|
305
|
-
|
306
|
-
//
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
string
|
316
|
-
string
|
317
|
-
string
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
string
|
334
|
-
string
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
1
|
+
// ------------------------------------------------------------
|
2
|
+
// Copyright (c) Microsoft Corporation and Dapr Contributors.
|
3
|
+
// Licensed under the MIT License.
|
4
|
+
// ------------------------------------------------------------
|
5
|
+
|
6
|
+
syntax = "proto3";
|
7
|
+
|
8
|
+
package dapr.proto.runtime.v1;
|
9
|
+
|
10
|
+
import "google/protobuf/any.proto";
|
11
|
+
import "google/protobuf/empty.proto";
|
12
|
+
import "dapr/proto/common/v1/common.proto";
|
13
|
+
|
14
|
+
option csharp_namespace = "Dapr.Client.Autogen.Grpc.v1";
|
15
|
+
option java_outer_classname = "DaprProtos";
|
16
|
+
option java_package = "io.dapr.v1";
|
17
|
+
option go_package = "github.com/dapr/dapr/pkg/proto/runtime/v1;runtime";
|
18
|
+
|
19
|
+
// Dapr service provides APIs to user application to access Dapr building blocks.
|
20
|
+
service Dapr {
|
21
|
+
// Invokes a method on a remote Dapr app.
|
22
|
+
rpc InvokeService(InvokeServiceRequest) returns (common.v1.InvokeResponse) {}
|
23
|
+
|
24
|
+
// Gets the state for a specific key.
|
25
|
+
rpc GetState(GetStateRequest) returns (GetStateResponse) {}
|
26
|
+
|
27
|
+
// Gets a bulk of state items for a list of keys
|
28
|
+
rpc GetBulkState(GetBulkStateRequest) returns (GetBulkStateResponse) {}
|
29
|
+
|
30
|
+
// Saves the state for a specific key.
|
31
|
+
rpc SaveState(SaveStateRequest) returns (google.protobuf.Empty) {}
|
32
|
+
|
33
|
+
// Deletes the state for a specific key.
|
34
|
+
rpc DeleteState(DeleteStateRequest) returns (google.protobuf.Empty) {}
|
35
|
+
|
36
|
+
// Deletes a bulk of state items for a list of keys
|
37
|
+
rpc DeleteBulkState(DeleteBulkStateRequest) returns (google.protobuf.Empty) {}
|
38
|
+
|
39
|
+
// Executes transactions for a specified store
|
40
|
+
rpc ExecuteStateTransaction(ExecuteStateTransactionRequest) returns (google.protobuf.Empty) {}
|
41
|
+
|
42
|
+
// Publishes events to the specific topic.
|
43
|
+
rpc PublishEvent(PublishEventRequest) returns (google.protobuf.Empty) {}
|
44
|
+
|
45
|
+
// Invokes binding data to specific output bindings
|
46
|
+
rpc InvokeBinding(InvokeBindingRequest) returns (InvokeBindingResponse) {}
|
47
|
+
|
48
|
+
// Gets secrets from secret stores.
|
49
|
+
rpc GetSecret(GetSecretRequest) returns (GetSecretResponse) {}
|
50
|
+
|
51
|
+
// Gets a bulk of secrets
|
52
|
+
rpc GetBulkSecret(GetBulkSecretRequest) returns (GetBulkSecretResponse) {}
|
53
|
+
|
54
|
+
// Register an actor timer.
|
55
|
+
rpc RegisterActorTimer(RegisterActorTimerRequest) returns (google.protobuf.Empty) {}
|
56
|
+
|
57
|
+
// Unregister an actor timer.
|
58
|
+
rpc UnregisterActorTimer(UnregisterActorTimerRequest) returns (google.protobuf.Empty) {}
|
59
|
+
|
60
|
+
// Register an actor reminder.
|
61
|
+
rpc RegisterActorReminder(RegisterActorReminderRequest) returns (google.protobuf.Empty) {}
|
62
|
+
|
63
|
+
// Unregister an actor reminder.
|
64
|
+
rpc UnregisterActorReminder(UnregisterActorReminderRequest) returns (google.protobuf.Empty) {}
|
65
|
+
|
66
|
+
// Gets the state for a specific actor.
|
67
|
+
rpc GetActorState(GetActorStateRequest) returns (GetActorStateResponse) {}
|
68
|
+
|
69
|
+
// Executes state transactions for a specified actor
|
70
|
+
rpc ExecuteActorStateTransaction(ExecuteActorStateTransactionRequest) returns (google.protobuf.Empty) {}
|
71
|
+
|
72
|
+
// InvokeActor calls a method on an actor.
|
73
|
+
rpc InvokeActor (InvokeActorRequest) returns (InvokeActorResponse) {}
|
74
|
+
|
75
|
+
// Gets metadata of the sidecar
|
76
|
+
rpc GetMetadata (google.protobuf.Empty) returns (GetMetadataResponse) {}
|
77
|
+
|
78
|
+
// Sets value in extended metadata of the sidecar
|
79
|
+
rpc SetMetadata (SetMetadataRequest) returns (google.protobuf.Empty) {}
|
80
|
+
|
81
|
+
// Shutdown the sidecar
|
82
|
+
rpc Shutdown (google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
83
|
+
}
|
84
|
+
|
85
|
+
// InvokeServiceRequest represents the request message for Service invocation.
|
86
|
+
message InvokeServiceRequest {
|
87
|
+
// Required. Callee's app id.
|
88
|
+
string id = 1;
|
89
|
+
|
90
|
+
// Required. message which will be delivered to callee.
|
91
|
+
common.v1.InvokeRequest message = 3;
|
92
|
+
}
|
93
|
+
|
94
|
+
// GetStateRequest is the message to get key-value states from specific state store.
|
95
|
+
message GetStateRequest {
|
96
|
+
// The name of state store.
|
97
|
+
string store_name = 1;
|
98
|
+
|
99
|
+
// The key of the desired state
|
100
|
+
string key = 2;
|
101
|
+
|
102
|
+
// The read consistency of the state store.
|
103
|
+
common.v1.StateOptions.StateConsistency consistency = 3;
|
104
|
+
|
105
|
+
// The metadata which will be sent to state store components.
|
106
|
+
map<string,string> metadata = 4;
|
107
|
+
}
|
108
|
+
|
109
|
+
// GetBulkStateRequest is the message to get a list of key-value states from specific state store.
|
110
|
+
message GetBulkStateRequest {
|
111
|
+
// The name of state store.
|
112
|
+
string store_name = 1;
|
113
|
+
|
114
|
+
// The keys to get.
|
115
|
+
repeated string keys = 2;
|
116
|
+
|
117
|
+
// The number of parallel operations executed on the state store for a get operation.
|
118
|
+
int32 parallelism = 3;
|
119
|
+
|
120
|
+
// The metadata which will be sent to state store components.
|
121
|
+
map<string,string> metadata = 4;
|
122
|
+
}
|
123
|
+
|
124
|
+
// GetBulkStateResponse is the response conveying the list of state values.
|
125
|
+
message GetBulkStateResponse {
|
126
|
+
// The list of items containing the keys to get values for.
|
127
|
+
repeated BulkStateItem items = 1;
|
128
|
+
}
|
129
|
+
|
130
|
+
// BulkStateItem is the response item for a bulk get operation.
|
131
|
+
// Return values include the item key, data and etag.
|
132
|
+
message BulkStateItem {
|
133
|
+
// state item key
|
134
|
+
string key = 1;
|
135
|
+
|
136
|
+
// The byte array data
|
137
|
+
bytes data = 2;
|
138
|
+
|
139
|
+
// The entity tag which represents the specific version of data.
|
140
|
+
// ETag format is defined by the corresponding data store.
|
141
|
+
string etag = 3;
|
142
|
+
|
143
|
+
// The error that was returned from the state store in case of a failed get operation.
|
144
|
+
string error = 4;
|
145
|
+
|
146
|
+
// The metadata which will be sent to app.
|
147
|
+
map<string,string> metadata = 5;
|
148
|
+
}
|
149
|
+
|
150
|
+
// GetStateResponse is the response conveying the state value and etag.
|
151
|
+
message GetStateResponse {
|
152
|
+
// The byte array data
|
153
|
+
bytes data = 1;
|
154
|
+
|
155
|
+
// The entity tag which represents the specific version of data.
|
156
|
+
// ETag format is defined by the corresponding data store.
|
157
|
+
string etag = 2;
|
158
|
+
|
159
|
+
// The metadata which will be sent to app.
|
160
|
+
map<string,string> metadata = 3;
|
161
|
+
}
|
162
|
+
|
163
|
+
// DeleteStateRequest is the message to delete key-value states in the specific state store.
|
164
|
+
message DeleteStateRequest {
|
165
|
+
// The name of state store.
|
166
|
+
string store_name = 1;
|
167
|
+
|
168
|
+
// The key of the desired state
|
169
|
+
string key = 2;
|
170
|
+
|
171
|
+
// The entity tag which represents the specific version of data.
|
172
|
+
// The exact ETag format is defined by the corresponding data store.
|
173
|
+
common.v1.Etag etag = 3;
|
174
|
+
|
175
|
+
// State operation options which includes concurrency/
|
176
|
+
// consistency/retry_policy.
|
177
|
+
common.v1.StateOptions options = 4;
|
178
|
+
|
179
|
+
// The metadata which will be sent to state store components.
|
180
|
+
map<string,string> metadata = 5;
|
181
|
+
}
|
182
|
+
|
183
|
+
// DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.
|
184
|
+
message DeleteBulkStateRequest {
|
185
|
+
// The name of state store.
|
186
|
+
string store_name = 1;
|
187
|
+
|
188
|
+
// The array of the state key values.
|
189
|
+
repeated common.v1.StateItem states = 2;
|
190
|
+
}
|
191
|
+
|
192
|
+
// SaveStateRequest is the message to save multiple states into state store.
|
193
|
+
message SaveStateRequest {
|
194
|
+
// The name of state store.
|
195
|
+
string store_name = 1;
|
196
|
+
|
197
|
+
// The array of the state key values.
|
198
|
+
repeated common.v1.StateItem states = 2;
|
199
|
+
}
|
200
|
+
|
201
|
+
// PublishEventRequest is the message to publish event data to pubsub topic
|
202
|
+
message PublishEventRequest {
|
203
|
+
// The name of the pubsub component
|
204
|
+
string pubsub_name = 1;
|
205
|
+
|
206
|
+
// The pubsub topic
|
207
|
+
string topic = 2;
|
208
|
+
|
209
|
+
// The data which will be published to topic.
|
210
|
+
bytes data = 3;
|
211
|
+
|
212
|
+
// The content type for the data (optional).
|
213
|
+
string data_content_type = 4;
|
214
|
+
|
215
|
+
// The metadata passing to pub components
|
216
|
+
//
|
217
|
+
// metadata property:
|
218
|
+
// - key : the key of the message.
|
219
|
+
map<string,string> metadata = 5;
|
220
|
+
}
|
221
|
+
|
222
|
+
// InvokeBindingRequest is the message to send data to output bindings
|
223
|
+
message InvokeBindingRequest {
|
224
|
+
// The name of the output binding to invoke.
|
225
|
+
string name = 1;
|
226
|
+
|
227
|
+
// The data which will be sent to output binding.
|
228
|
+
bytes data = 2;
|
229
|
+
|
230
|
+
// The metadata passing to output binding components
|
231
|
+
//
|
232
|
+
// Common metadata property:
|
233
|
+
// - ttlInSeconds : the time to live in seconds for the message.
|
234
|
+
// If set in the binding definition will cause all messages to
|
235
|
+
// have a default time to live. The message ttl overrides any value
|
236
|
+
// in the binding definition.
|
237
|
+
map<string,string> metadata = 3;
|
238
|
+
|
239
|
+
// The name of the operation type for the binding to invoke
|
240
|
+
string operation = 4;
|
241
|
+
}
|
242
|
+
|
243
|
+
// InvokeBindingResponse is the message returned from an output binding invocation
|
244
|
+
message InvokeBindingResponse {
|
245
|
+
// The data which will be sent to output binding.
|
246
|
+
bytes data = 1;
|
247
|
+
|
248
|
+
// The metadata returned from an external system
|
249
|
+
map<string,string> metadata = 2;
|
250
|
+
}
|
251
|
+
|
252
|
+
// GetSecretRequest is the message to get secret from secret store.
|
253
|
+
message GetSecretRequest {
|
254
|
+
// The name of secret store.
|
255
|
+
string store_name = 1;
|
256
|
+
|
257
|
+
// The name of secret key.
|
258
|
+
string key = 2;
|
259
|
+
|
260
|
+
// The metadata which will be sent to secret store components.
|
261
|
+
map<string,string> metadata = 3;
|
262
|
+
}
|
263
|
+
|
264
|
+
// GetSecretResponse is the response message to convey the requested secret.
|
265
|
+
message GetSecretResponse {
|
266
|
+
// data is the secret value. Some secret store, such as kubernetes secret
|
267
|
+
// store, can save multiple secrets for single secret key.
|
268
|
+
map<string, string> data = 1;
|
269
|
+
}
|
270
|
+
|
271
|
+
// GetBulkSecretRequest is the message to get the secrets from secret store.
|
272
|
+
message GetBulkSecretRequest {
|
273
|
+
// The name of secret store.
|
274
|
+
string store_name = 1;
|
275
|
+
|
276
|
+
// The metadata which will be sent to secret store components.
|
277
|
+
map<string,string> metadata = 2;
|
278
|
+
}
|
279
|
+
|
280
|
+
// SecretResponse is a map of decrypted string/string values
|
281
|
+
message SecretResponse {
|
282
|
+
map<string, string> secrets = 1;
|
283
|
+
}
|
284
|
+
|
285
|
+
// GetBulkSecretResponse is the response message to convey the requested secrets.
|
286
|
+
message GetBulkSecretResponse {
|
287
|
+
// data hold the secret values. Some secret store, such as kubernetes secret
|
288
|
+
// store, can save multiple secrets for single secret key.
|
289
|
+
map<string, SecretResponse> data = 1;
|
290
|
+
}
|
291
|
+
|
292
|
+
// TransactionalStateOperation is the message to execute a specified operation with a key-value pair.
|
293
|
+
message TransactionalStateOperation {
|
294
|
+
// The type of operation to be executed
|
295
|
+
string operationType = 1;
|
296
|
+
|
297
|
+
// State values to be operated on
|
298
|
+
common.v1.StateItem request = 2;
|
299
|
+
}
|
300
|
+
|
301
|
+
// ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store.
|
302
|
+
message ExecuteStateTransactionRequest {
|
303
|
+
// Required. name of state store.
|
304
|
+
string storeName = 1;
|
305
|
+
|
306
|
+
// Required. transactional operation list.
|
307
|
+
repeated TransactionalStateOperation operations = 2;
|
308
|
+
|
309
|
+
// The metadata used for transactional operations.
|
310
|
+
map<string,string> metadata = 3;
|
311
|
+
}
|
312
|
+
|
313
|
+
// RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id.
|
314
|
+
message RegisterActorTimerRequest {
|
315
|
+
string actor_type = 1;
|
316
|
+
string actor_id = 2;
|
317
|
+
string name = 3;
|
318
|
+
string due_time = 4;
|
319
|
+
string period = 5;
|
320
|
+
string callback = 6;
|
321
|
+
bytes data = 7;
|
322
|
+
}
|
323
|
+
|
324
|
+
// UnregisterActorTimerRequest is the message to unregister an actor timer
|
325
|
+
message UnregisterActorTimerRequest {
|
326
|
+
string actor_type = 1;
|
327
|
+
string actor_id = 2;
|
328
|
+
string name = 3;
|
329
|
+
}
|
330
|
+
|
331
|
+
// RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id.
|
332
|
+
message RegisterActorReminderRequest {
|
333
|
+
string actor_type = 1;
|
334
|
+
string actor_id = 2;
|
335
|
+
string name = 3;
|
336
|
+
string due_time = 4;
|
337
|
+
string period = 5;
|
338
|
+
bytes data = 6;
|
339
|
+
}
|
340
|
+
|
341
|
+
// UnregisterActorReminderRequest is the message to unregister an actor reminder.
|
342
|
+
message UnregisterActorReminderRequest {
|
343
|
+
string actor_type = 1;
|
344
|
+
string actor_id = 2;
|
345
|
+
string name = 3;
|
346
|
+
}
|
347
|
+
|
348
|
+
// GetActorStateRequest is the message to get key-value states from specific actor.
|
349
|
+
message GetActorStateRequest {
|
350
|
+
string actor_type = 1;
|
351
|
+
string actor_id = 2;
|
352
|
+
string key = 3;
|
353
|
+
}
|
354
|
+
|
355
|
+
// GetActorStateResponse is the response conveying the actor's state value.
|
356
|
+
message GetActorStateResponse {
|
357
|
+
bytes data = 1;
|
358
|
+
}
|
359
|
+
|
360
|
+
// ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.
|
361
|
+
message ExecuteActorStateTransactionRequest {
|
362
|
+
string actor_type = 1;
|
363
|
+
string actor_id = 2;
|
364
|
+
repeated TransactionalActorStateOperation operations = 3;
|
365
|
+
}
|
366
|
+
|
367
|
+
// TransactionalAcorStateOperation is the message to execute a specified operation with a key-value pair.
|
368
|
+
message TransactionalActorStateOperation {
|
369
|
+
string operationType = 1;
|
370
|
+
string key = 2;
|
371
|
+
google.protobuf.Any value = 3;
|
372
|
+
}
|
373
|
+
|
374
|
+
// InvokeActorRequest is the message to call an actor.
|
375
|
+
message InvokeActorRequest {
|
376
|
+
string actor_type = 1;
|
377
|
+
string actor_id = 2;
|
378
|
+
string method = 3;
|
379
|
+
bytes data = 4;
|
380
|
+
}
|
381
|
+
|
382
|
+
// InvokeActorResponse is the method that returns an actor invocation response.
|
383
|
+
message InvokeActorResponse {
|
384
|
+
bytes data = 1;
|
385
|
+
}
|
386
|
+
|
387
|
+
// GetMetadataResponse is a message that is returned on GetMetadata rpc call
|
388
|
+
message GetMetadataResponse {
|
389
|
+
string id = 1;
|
390
|
+
repeated ActiveActorsCount active_actors_count = 2;
|
391
|
+
repeated RegisteredComponents registered_components = 3;
|
392
|
+
map<string,string> extended_metadata = 4;
|
393
|
+
}
|
394
|
+
|
395
|
+
message ActiveActorsCount {
|
396
|
+
string type = 1;
|
397
|
+
int32 count = 2;
|
398
|
+
}
|
399
|
+
|
400
|
+
message RegisteredComponents {
|
401
|
+
string name = 1;
|
402
|
+
string type = 2;
|
403
|
+
string version = 3;
|
404
|
+
}
|
405
|
+
|
406
|
+
message SetMetadataRequest {
|
407
|
+
string key = 1;
|
408
|
+
string value = 2;
|
406
409
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: dapr/proto/runtime/v1/dapr.proto for package 'dapr.proto.runtime.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# ------------------------------------------------------------
|
5
|
-
# Copyright (c) Microsoft Corporation and Dapr Contributors.
|
6
|
-
# Licensed under the MIT License.
|
7
|
-
# ------------------------------------------------------------
|
4
|
+
# ------------------------------------------------------------
|
5
|
+
# Copyright (c) Microsoft Corporation and Dapr Contributors.
|
6
|
+
# Licensed under the MIT License.
|
7
|
+
# ------------------------------------------------------------
|
8
8
|
#
|
9
9
|
|
10
10
|
require 'grpc'
|
@@ -15,7 +15,7 @@ module Dapr
|
|
15
15
|
module Runtime
|
16
16
|
module V1
|
17
17
|
module Dapr
|
18
|
-
# Dapr service provides APIs to user application to access Dapr building blocks.
|
18
|
+
# Dapr service provides APIs to user application to access Dapr building blocks.
|
19
19
|
class Service
|
20
20
|
|
21
21
|
include GRPC::GenericService
|
@@ -24,46 +24,48 @@ module Dapr
|
|
24
24
|
self.unmarshal_class_method = :decode
|
25
25
|
self.service_name = 'dapr.proto.runtime.v1.Dapr'
|
26
26
|
|
27
|
-
# Invokes a method on a remote Dapr app.
|
27
|
+
# Invokes a method on a remote Dapr app.
|
28
28
|
rpc :InvokeService, InvokeServiceRequest, ::Dapr::Proto::Common::V1::InvokeResponse
|
29
|
-
# Gets the state for a specific key.
|
29
|
+
# Gets the state for a specific key.
|
30
30
|
rpc :GetState, GetStateRequest, GetStateResponse
|
31
|
-
# Gets a bulk of state items for a list of keys
|
31
|
+
# Gets a bulk of state items for a list of keys
|
32
32
|
rpc :GetBulkState, GetBulkStateRequest, GetBulkStateResponse
|
33
|
-
# Saves the state for a specific key.
|
33
|
+
# Saves the state for a specific key.
|
34
34
|
rpc :SaveState, SaveStateRequest, Google::Protobuf::Empty
|
35
|
-
# Deletes the state for a specific key.
|
35
|
+
# Deletes the state for a specific key.
|
36
36
|
rpc :DeleteState, DeleteStateRequest, Google::Protobuf::Empty
|
37
|
-
# Deletes a bulk of state items for a list of keys
|
37
|
+
# Deletes a bulk of state items for a list of keys
|
38
38
|
rpc :DeleteBulkState, DeleteBulkStateRequest, Google::Protobuf::Empty
|
39
|
-
# Executes transactions for a specified store
|
39
|
+
# Executes transactions for a specified store
|
40
40
|
rpc :ExecuteStateTransaction, ExecuteStateTransactionRequest, Google::Protobuf::Empty
|
41
|
-
# Publishes events to the specific topic.
|
41
|
+
# Publishes events to the specific topic.
|
42
42
|
rpc :PublishEvent, PublishEventRequest, Google::Protobuf::Empty
|
43
|
-
# Invokes binding data to specific output bindings
|
43
|
+
# Invokes binding data to specific output bindings
|
44
44
|
rpc :InvokeBinding, InvokeBindingRequest, InvokeBindingResponse
|
45
|
-
# Gets secrets from secret stores.
|
45
|
+
# Gets secrets from secret stores.
|
46
46
|
rpc :GetSecret, GetSecretRequest, GetSecretResponse
|
47
|
-
# Gets a bulk of secrets
|
47
|
+
# Gets a bulk of secrets
|
48
48
|
rpc :GetBulkSecret, GetBulkSecretRequest, GetBulkSecretResponse
|
49
|
-
# Register an actor timer.
|
49
|
+
# Register an actor timer.
|
50
50
|
rpc :RegisterActorTimer, RegisterActorTimerRequest, Google::Protobuf::Empty
|
51
|
-
# Unregister an actor timer.
|
51
|
+
# Unregister an actor timer.
|
52
52
|
rpc :UnregisterActorTimer, UnregisterActorTimerRequest, Google::Protobuf::Empty
|
53
|
-
# Register an actor reminder.
|
53
|
+
# Register an actor reminder.
|
54
54
|
rpc :RegisterActorReminder, RegisterActorReminderRequest, Google::Protobuf::Empty
|
55
|
-
# Unregister an actor reminder.
|
55
|
+
# Unregister an actor reminder.
|
56
56
|
rpc :UnregisterActorReminder, UnregisterActorReminderRequest, Google::Protobuf::Empty
|
57
|
-
# Gets the state for a specific actor.
|
57
|
+
# Gets the state for a specific actor.
|
58
58
|
rpc :GetActorState, GetActorStateRequest, GetActorStateResponse
|
59
|
-
# Executes state transactions for a specified actor
|
59
|
+
# Executes state transactions for a specified actor
|
60
60
|
rpc :ExecuteActorStateTransaction, ExecuteActorStateTransactionRequest, Google::Protobuf::Empty
|
61
|
-
# InvokeActor calls a method on an actor.
|
61
|
+
# InvokeActor calls a method on an actor.
|
62
62
|
rpc :InvokeActor, InvokeActorRequest, InvokeActorResponse
|
63
|
-
# Gets metadata of the sidecar
|
63
|
+
# Gets metadata of the sidecar
|
64
64
|
rpc :GetMetadata, Google::Protobuf::Empty, GetMetadataResponse
|
65
|
-
# Sets value in extended metadata of the sidecar
|
65
|
+
# Sets value in extended metadata of the sidecar
|
66
66
|
rpc :SetMetadata, SetMetadataRequest, Google::Protobuf::Empty
|
67
|
+
# Shutdown the sidecar
|
68
|
+
rpc :Shutdown, Google::Protobuf::Empty, Google::Protobuf::Empty
|
67
69
|
end
|
68
70
|
|
69
71
|
Stub = Service.rpc_stub_class
|
data/lib/dapr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dapr-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tjwp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
rubygems_version: 3.
|
166
|
+
rubygems_version: 3.2.16
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Dapr SDK for Ruby
|