dapr-client 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7513c69fe9529ced9c6a0d4aa98ef4ccd34e9bea66da811d0fca7a4d2c56538c
4
- data.tar.gz: ccaab0c3d0b5d2ae34a4f81ad1004f849b7177082e2637426763a059120a9461
3
+ metadata.gz: b4f7a6b575f444a0a71b6626a2e009da5ab7a6ff4d1903cd46e9a4c449b44844
4
+ data.tar.gz: 4bd57398f41e635f4e6513da33831d6205abbea1659dc9752a965b104406eae2
5
5
  SHA512:
6
- metadata.gz: 81e1af0ad18be5cfd140f76eeb75fa13043e79b1685fa4c4e9681ab2015717fd39558e6b8ad30009e731b1606f47edead29a1142fbf5a91b4c5eb2c90f84290c
7
- data.tar.gz: 6956a7e04d8ac0a820037791e479b386d5c6ecaffa8fd84c2690c17a8e83039cbf3a703e37d755ec3ba065080904df500f8c6750643ac2c0234f80f650d20fc7
6
+ metadata.gz: 67c1455b8b832040d2632799fcedccd661856fca59b32f432cff407594b52228324c7e8afb4e00243407aa32959f49d62e0f3dbe25cec211bc3c384db4c1bd31
7
+ data.tar.gz: 208d82a67e94475513485bf877e92ab592921b599fd497df0d08f085eba5b54be5cf491bd1dde148b54140f9706df45ed4f3ffaa761715a2e3b03672ad4bd9ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # dapr-client
2
2
 
3
+ ## v0.4.0
4
+ - Auto-generated client based on Dapr v1.1.1.
5
+
3
6
  ## v0.3.0
4
7
  - Auto-generated client based on Dapr v1.0.0.
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dapr-client (0.2.0)
4
+ dapr-client (0.4.0)
5
5
  google-protobuf
6
6
 
7
7
  GEM
@@ -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
- // InvokeServiceRequest represents the request message for Service invocation.
83
- message InvokeServiceRequest {
84
- // Required. Callee's app id.
85
- string id = 1;
86
-
87
- // Required. message which will be delivered to callee.
88
- common.v1.InvokeRequest message = 3;
89
- }
90
-
91
- // GetStateRequest is the message to get key-value states from specific state store.
92
- message GetStateRequest {
93
- // The name of state store.
94
- string store_name = 1;
95
-
96
- // The key of the desired state
97
- string key = 2;
98
-
99
- // The read consistency of the state store.
100
- common.v1.StateOptions.StateConsistency consistency = 3;
101
-
102
- // The metadata which will be sent to state store components.
103
- map<string,string> metadata = 4;
104
- }
105
-
106
- // GetBulkStateRequest is the message to get a list of key-value states from specific state store.
107
- message GetBulkStateRequest {
108
- // The name of state store.
109
- string store_name = 1;
110
-
111
- // The keys to get.
112
- repeated string keys = 2;
113
-
114
- // The number of parallel operations executed on the state store for a get operation.
115
- int32 parallelism = 3;
116
-
117
- // The metadata which will be sent to state store components.
118
- map<string,string> metadata = 4;
119
- }
120
-
121
- // GetBulkStateResponse is the response conveying the list of state values.
122
- message GetBulkStateResponse {
123
- // The list of items containing the keys to get values for.
124
- repeated BulkStateItem items = 1;
125
- }
126
-
127
- // BulkStateItem is the response item for a bulk get operation.
128
- // Return values include the item key, data and etag.
129
- message BulkStateItem {
130
- // state item key
131
- string key = 1;
132
-
133
- // The byte array data
134
- bytes data = 2;
135
-
136
- // The entity tag which represents the specific version of data.
137
- // ETag format is defined by the corresponding data store.
138
- string etag = 3;
139
-
140
- // The error that was returned from the state store in case of a failed get operation.
141
- string error = 4;
142
-
143
- // The metadata which will be sent to app.
144
- map<string,string> metadata = 5;
145
- }
146
-
147
- // GetStateResponse is the response conveying the state value and etag.
148
- message GetStateResponse {
149
- // The byte array data
150
- bytes data = 1;
151
-
152
- // The entity tag which represents the specific version of data.
153
- // ETag format is defined by the corresponding data store.
154
- string etag = 2;
155
-
156
- // The metadata which will be sent to app.
157
- map<string,string> metadata = 3;
158
- }
159
-
160
- // DeleteStateRequest is the message to delete key-value states in the specific state store.
161
- message DeleteStateRequest {
162
- // The name of state store.
163
- string store_name = 1;
164
-
165
- // The key of the desired state
166
- string key = 2;
167
-
168
- // The entity tag which represents the specific version of data.
169
- // The exact ETag format is defined by the corresponding data store.
170
- common.v1.Etag etag = 3;
171
-
172
- // State operation options which includes concurrency/
173
- // consistency/retry_policy.
174
- common.v1.StateOptions options = 4;
175
-
176
- // The metadata which will be sent to state store components.
177
- map<string,string> metadata = 5;
178
- }
179
-
180
- // DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.
181
- message DeleteBulkStateRequest {
182
- // The name of state store.
183
- string store_name = 1;
184
-
185
- // The array of the state key values.
186
- repeated common.v1.StateItem states = 2;
187
- }
188
-
189
- // SaveStateRequest is the message to save multiple states into state store.
190
- message SaveStateRequest {
191
- // The name of state store.
192
- string store_name = 1;
193
-
194
- // The array of the state key values.
195
- repeated common.v1.StateItem states = 2;
196
- }
197
-
198
- // PublishEventRequest is the message to publish event data to pubsub topic
199
- message PublishEventRequest {
200
- // The name of the pubsub component
201
- string pubsub_name = 1;
202
-
203
- // The pubsub topic
204
- string topic = 2;
205
-
206
- // The data which will be published to topic.
207
- bytes data = 3;
208
-
209
- // The content type for the data (optional).
210
- string data_content_type = 4;
211
-
212
- // The metadata passing to pub components
213
- //
214
- // metadata property:
215
- // - key : the key of the message.
216
- map<string,string> metadata = 5;
217
- }
218
-
219
- // InvokeBindingRequest is the message to send data to output bindings
220
- message InvokeBindingRequest {
221
- // The name of the output binding to invoke.
222
- string name = 1;
223
-
224
- // The data which will be sent to output binding.
225
- bytes data = 2;
226
-
227
- // The metadata passing to output binding components
228
- //
229
- // Common metadata property:
230
- // - ttlInSeconds : the time to live in seconds for the message.
231
- // If set in the binding definition will cause all messages to
232
- // have a default time to live. The message ttl overrides any value
233
- // in the binding definition.
234
- map<string,string> metadata = 3;
235
-
236
- // The name of the operation type for the binding to invoke
237
- string operation = 4;
238
- }
239
-
240
- // InvokeBindingResponse is the message returned from an output binding invocation
241
- message InvokeBindingResponse {
242
- // The data which will be sent to output binding.
243
- bytes data = 1;
244
-
245
- // The metadata returned from an external system
246
- map<string,string> metadata = 2;
247
- }
248
-
249
- // GetSecretRequest is the message to get secret from secret store.
250
- message GetSecretRequest {
251
- // The name of secret store.
252
- string store_name = 1;
253
-
254
- // The name of secret key.
255
- string key = 2;
256
-
257
- // The metadata which will be sent to secret store components.
258
- map<string,string> metadata = 3;
259
- }
260
-
261
- // GetSecretResponse is the response message to convey the requested secret.
262
- message GetSecretResponse {
263
- // data is the secret value. Some secret store, such as kubernetes secret
264
- // store, can save multiple secrets for single secret key.
265
- map<string, string> data = 1;
266
- }
267
-
268
- // GetBulkSecretRequest is the message to get the secrets from secret store.
269
- message GetBulkSecretRequest {
270
- // The name of secret store.
271
- string store_name = 1;
272
-
273
- // The metadata which will be sent to secret store components.
274
- map<string,string> metadata = 2;
275
- }
276
-
277
- // SecretResponse is a map of decrypted string/string values
278
- message SecretResponse {
279
- map<string, string> secrets = 1;
280
- }
281
-
282
- // GetBulkSecretResponse is the response message to convey the requested secrets.
283
- message GetBulkSecretResponse {
284
- // data hold the secret values. Some secret store, such as kubernetes secret
285
- // store, can save multiple secrets for single secret key.
286
- map<string, SecretResponse> data = 1;
287
- }
288
-
289
- // TransactionalStateOperation is the message to execute a specified operation with a key-value pair.
290
- message TransactionalStateOperation {
291
- // The type of operation to be executed
292
- string operationType = 1;
293
-
294
- // State values to be operated on
295
- common.v1.StateItem request = 2;
296
- }
297
-
298
- // ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store.
299
- message ExecuteStateTransactionRequest {
300
- // Required. name of state store.
301
- string storeName = 1;
302
-
303
- // Required. transactional operation list.
304
- repeated TransactionalStateOperation operations = 2;
305
-
306
- // The metadata used for transactional operations.
307
- map<string,string> metadata = 3;
308
- }
309
-
310
- // RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id.
311
- message RegisterActorTimerRequest {
312
- string actor_type = 1;
313
- string actor_id = 2;
314
- string name = 3;
315
- string due_time = 4;
316
- string period = 5;
317
- string callback = 6;
318
- bytes data = 7;
319
- }
320
-
321
- // UnregisterActorTimerRequest is the message to unregister an actor timer
322
- message UnregisterActorTimerRequest {
323
- string actor_type = 1;
324
- string actor_id = 2;
325
- string name = 3;
326
- }
327
-
328
- // RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id.
329
- message RegisterActorReminderRequest {
330
- string actor_type = 1;
331
- string actor_id = 2;
332
- string name = 3;
333
- string due_time = 4;
334
- string period = 5;
335
- bytes data = 6;
336
- }
337
-
338
- // UnregisterActorReminderRequest is the message to unregister an actor reminder.
339
- message UnregisterActorReminderRequest {
340
- string actor_type = 1;
341
- string actor_id = 2;
342
- string name = 3;
343
- }
344
-
345
- // GetActorStateRequest is the message to get key-value states from specific actor.
346
- message GetActorStateRequest {
347
- string actor_type = 1;
348
- string actor_id = 2;
349
- string key = 3;
350
- }
351
-
352
- // GetActorStateResponse is the response conveying the actor's state value.
353
- message GetActorStateResponse {
354
- bytes data = 1;
355
- }
356
-
357
- // ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.
358
- message ExecuteActorStateTransactionRequest {
359
- string actor_type = 1;
360
- string actor_id = 2;
361
- repeated TransactionalActorStateOperation operations = 3;
362
- }
363
-
364
- // TransactionalAcorStateOperation is the message to execute a specified operation with a key-value pair.
365
- message TransactionalActorStateOperation {
366
- string operationType = 1;
367
- string key = 2;
368
- google.protobuf.Any value = 3;
369
- }
370
-
371
- // InvokeActorRequest is the message to call an actor.
372
- message InvokeActorRequest {
373
- string actor_type = 1;
374
- string actor_id = 2;
375
- string method = 3;
376
- bytes data = 4;
377
- }
378
-
379
- // InvokeActorResponse is the method that returns an actor invocation response.
380
- message InvokeActorResponse {
381
- bytes data = 1;
382
- }
383
-
384
- // GetMetadataResponse is a message that is returned on GetMetadata rpc call
385
- message GetMetadataResponse {
386
- string id = 1;
387
- repeated ActiveActorsCount active_actors_count = 2;
388
- repeated RegisteredComponents registered_components = 3;
389
- map<string,string> extended_metadata = 4;
390
- }
391
-
392
- message ActiveActorsCount {
393
- string type = 1;
394
- int32 count = 2;
395
- }
396
-
397
- message RegisteredComponents {
398
- string name = 1;
399
- string type = 2;
400
- string version = 3;
401
- }
402
-
403
- message SetMetadataRequest {
404
- string key = 1;
405
- string value = 2;
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
@@ -1,3 +1,3 @@
1
1
  module Dapr
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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-02-27 00:00:00.000000000 Z
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.1.4
166
+ rubygems_version: 3.2.16
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Dapr SDK for Ruby