dapr-ruby 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -2
- data/Rakefile +5 -3
- data/bin/console +4 -3
- data/dapr.gemspec +25 -24
- data/example.rb +7 -7
- data/examples/app-callback/app_callback_example.rb +3 -1
- data/examples/app-callback/app_callback_service.rb +16 -16
- data/examples/invoke-simple/invoke-caller.rb +10 -10
- data/examples/invoke-simple/invoke-receiver.rb +9 -9
- data/examples/pubsub-simple/publisher.rb +6 -6
- data/examples/pubsub-simple/subscriber.rb +6 -6
- data/examples/state-store/state-store.rb +15 -15
- data/lib/dapr/proto/common/v1/common_pb.rb +33 -31
- data/lib/dapr/proto/runtime/v1/appcallback_pb.rb +52 -50
- data/lib/dapr/proto/runtime/v1/appcallback_services_pb.rb +12 -7
- data/lib/dapr/proto/runtime/v1/dapr_pb.rb +259 -257
- data/lib/dapr/proto/runtime/v1/dapr_services_pb.rb +66 -33
- data/lib/dapr/version.rb +3 -1
- data/lib/dapr-client.rb +1 -1
- data/lib/dapr.rb +3 -1
- metadata +1 -1
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
4
|
# Source: dapr/proto/runtime/v1/dapr.proto for package 'dapr.proto.runtime.v1'
|
3
5
|
# Original file comments:
|
@@ -24,7 +26,6 @@ module Dapr
|
|
24
26
|
module Dapr
|
25
27
|
# Dapr service provides APIs to user application to access Dapr building blocks.
|
26
28
|
class Service
|
27
|
-
|
28
29
|
include ::GRPC::GenericService
|
29
30
|
|
30
31
|
self.marshal_class_method = :encode
|
@@ -33,99 +34,131 @@ module Dapr
|
|
33
34
|
|
34
35
|
# Invokes a method on a remote Dapr app.
|
35
36
|
# Deprecated: Use proxy mode service invocation instead.
|
36
|
-
rpc :InvokeService, ::Dapr::Proto::Runtime::V1::InvokeServiceRequest,
|
37
|
+
rpc :InvokeService, ::Dapr::Proto::Runtime::V1::InvokeServiceRequest,
|
38
|
+
::Dapr::Proto::Common::V1::InvokeResponse
|
37
39
|
# Gets the state for a specific key.
|
38
40
|
rpc :GetState, ::Dapr::Proto::Runtime::V1::GetStateRequest, ::Dapr::Proto::Runtime::V1::GetStateResponse
|
39
41
|
# Gets a bulk of state items for a list of keys
|
40
|
-
rpc :GetBulkState, ::Dapr::Proto::Runtime::V1::GetBulkStateRequest,
|
42
|
+
rpc :GetBulkState, ::Dapr::Proto::Runtime::V1::GetBulkStateRequest,
|
43
|
+
::Dapr::Proto::Runtime::V1::GetBulkStateResponse
|
41
44
|
# Saves the state for a specific key.
|
42
45
|
rpc :SaveState, ::Dapr::Proto::Runtime::V1::SaveStateRequest, ::Google::Protobuf::Empty
|
43
46
|
# Queries the state.
|
44
|
-
rpc :QueryStateAlpha1, ::Dapr::Proto::Runtime::V1::QueryStateRequest,
|
47
|
+
rpc :QueryStateAlpha1, ::Dapr::Proto::Runtime::V1::QueryStateRequest,
|
48
|
+
::Dapr::Proto::Runtime::V1::QueryStateResponse
|
45
49
|
# Deletes the state for a specific key.
|
46
50
|
rpc :DeleteState, ::Dapr::Proto::Runtime::V1::DeleteStateRequest, ::Google::Protobuf::Empty
|
47
51
|
# Deletes a bulk of state items for a list of keys
|
48
52
|
rpc :DeleteBulkState, ::Dapr::Proto::Runtime::V1::DeleteBulkStateRequest, ::Google::Protobuf::Empty
|
49
53
|
# Executes transactions for a specified store
|
50
|
-
rpc :ExecuteStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteStateTransactionRequest,
|
54
|
+
rpc :ExecuteStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteStateTransactionRequest,
|
55
|
+
::Google::Protobuf::Empty
|
51
56
|
# Publishes events to the specific topic.
|
52
57
|
rpc :PublishEvent, ::Dapr::Proto::Runtime::V1::PublishEventRequest, ::Google::Protobuf::Empty
|
53
58
|
# Bulk Publishes multiple events to the specified topic.
|
54
|
-
rpc :BulkPublishEventAlpha1, ::Dapr::Proto::Runtime::V1::BulkPublishRequest,
|
59
|
+
rpc :BulkPublishEventAlpha1, ::Dapr::Proto::Runtime::V1::BulkPublishRequest,
|
60
|
+
::Dapr::Proto::Runtime::V1::BulkPublishResponse
|
55
61
|
# Invokes binding data to specific output bindings
|
56
|
-
rpc :InvokeBinding, ::Dapr::Proto::Runtime::V1::InvokeBindingRequest,
|
62
|
+
rpc :InvokeBinding, ::Dapr::Proto::Runtime::V1::InvokeBindingRequest,
|
63
|
+
::Dapr::Proto::Runtime::V1::InvokeBindingResponse
|
57
64
|
# Gets secrets from secret stores.
|
58
65
|
rpc :GetSecret, ::Dapr::Proto::Runtime::V1::GetSecretRequest, ::Dapr::Proto::Runtime::V1::GetSecretResponse
|
59
66
|
# Gets a bulk of secrets
|
60
|
-
rpc :GetBulkSecret, ::Dapr::Proto::Runtime::V1::GetBulkSecretRequest,
|
67
|
+
rpc :GetBulkSecret, ::Dapr::Proto::Runtime::V1::GetBulkSecretRequest,
|
68
|
+
::Dapr::Proto::Runtime::V1::GetBulkSecretResponse
|
61
69
|
# Register an actor timer.
|
62
70
|
rpc :RegisterActorTimer, ::Dapr::Proto::Runtime::V1::RegisterActorTimerRequest, ::Google::Protobuf::Empty
|
63
71
|
# Unregister an actor timer.
|
64
|
-
rpc :UnregisterActorTimer, ::Dapr::Proto::Runtime::V1::UnregisterActorTimerRequest,
|
72
|
+
rpc :UnregisterActorTimer, ::Dapr::Proto::Runtime::V1::UnregisterActorTimerRequest,
|
73
|
+
::Google::Protobuf::Empty
|
65
74
|
# Register an actor reminder.
|
66
|
-
rpc :RegisterActorReminder, ::Dapr::Proto::Runtime::V1::RegisterActorReminderRequest,
|
75
|
+
rpc :RegisterActorReminder, ::Dapr::Proto::Runtime::V1::RegisterActorReminderRequest,
|
76
|
+
::Google::Protobuf::Empty
|
67
77
|
# Unregister an actor reminder.
|
68
|
-
rpc :UnregisterActorReminder, ::Dapr::Proto::Runtime::V1::UnregisterActorReminderRequest,
|
78
|
+
rpc :UnregisterActorReminder, ::Dapr::Proto::Runtime::V1::UnregisterActorReminderRequest,
|
79
|
+
::Google::Protobuf::Empty
|
69
80
|
# Rename an actor reminder.
|
70
81
|
rpc :RenameActorReminder, ::Dapr::Proto::Runtime::V1::RenameActorReminderRequest, ::Google::Protobuf::Empty
|
71
82
|
# Gets the state for a specific actor.
|
72
|
-
rpc :GetActorState, ::Dapr::Proto::Runtime::V1::GetActorStateRequest,
|
83
|
+
rpc :GetActorState, ::Dapr::Proto::Runtime::V1::GetActorStateRequest,
|
84
|
+
::Dapr::Proto::Runtime::V1::GetActorStateResponse
|
73
85
|
# Executes state transactions for a specified actor
|
74
|
-
rpc :ExecuteActorStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteActorStateTransactionRequest,
|
86
|
+
rpc :ExecuteActorStateTransaction, ::Dapr::Proto::Runtime::V1::ExecuteActorStateTransactionRequest,
|
87
|
+
::Google::Protobuf::Empty
|
75
88
|
# InvokeActor calls a method on an actor.
|
76
|
-
rpc :InvokeActor, ::Dapr::Proto::Runtime::V1::InvokeActorRequest,
|
89
|
+
rpc :InvokeActor, ::Dapr::Proto::Runtime::V1::InvokeActorRequest,
|
90
|
+
::Dapr::Proto::Runtime::V1::InvokeActorResponse
|
77
91
|
# GetConfiguration gets configuration from configuration store.
|
78
|
-
rpc :GetConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest,
|
92
|
+
rpc :GetConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest,
|
93
|
+
::Dapr::Proto::Runtime::V1::GetConfigurationResponse
|
79
94
|
# GetConfiguration gets configuration from configuration store.
|
80
|
-
rpc :GetConfiguration, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest,
|
95
|
+
rpc :GetConfiguration, ::Dapr::Proto::Runtime::V1::GetConfigurationRequest,
|
96
|
+
::Dapr::Proto::Runtime::V1::GetConfigurationResponse
|
81
97
|
# SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
|
82
|
-
rpc :SubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest,
|
98
|
+
rpc :SubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest,
|
99
|
+
stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
|
83
100
|
# SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
|
84
|
-
rpc :SubscribeConfiguration, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest,
|
101
|
+
rpc :SubscribeConfiguration, ::Dapr::Proto::Runtime::V1::SubscribeConfigurationRequest,
|
102
|
+
stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
|
85
103
|
# UnSubscribeConfiguration unsubscribe the subscription of configuration
|
86
|
-
rpc :UnsubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest,
|
104
|
+
rpc :UnsubscribeConfigurationAlpha1, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest,
|
105
|
+
::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
|
87
106
|
# UnSubscribeConfiguration unsubscribe the subscription of configuration
|
88
|
-
rpc :UnsubscribeConfiguration, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest,
|
107
|
+
rpc :UnsubscribeConfiguration, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationRequest,
|
108
|
+
::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
|
89
109
|
# TryLockAlpha1 tries to get a lock with an expiry.
|
90
110
|
rpc :TryLockAlpha1, ::Dapr::Proto::Runtime::V1::TryLockRequest, ::Dapr::Proto::Runtime::V1::TryLockResponse
|
91
111
|
# UnlockAlpha1 unlocks a lock.
|
92
112
|
rpc :UnlockAlpha1, ::Dapr::Proto::Runtime::V1::UnlockRequest, ::Dapr::Proto::Runtime::V1::UnlockResponse
|
93
113
|
# EncryptAlpha1 encrypts a message using the Dapr encryption scheme and a key stored in the vault.
|
94
|
-
rpc :EncryptAlpha1, stream(::Dapr::Proto::Runtime::V1::EncryptRequest),
|
114
|
+
rpc :EncryptAlpha1, stream(::Dapr::Proto::Runtime::V1::EncryptRequest),
|
115
|
+
stream(::Dapr::Proto::Runtime::V1::EncryptResponse)
|
95
116
|
# DecryptAlpha1 decrypts a message using the Dapr encryption scheme and a key stored in the vault.
|
96
|
-
rpc :DecryptAlpha1, stream(::Dapr::Proto::Runtime::V1::DecryptRequest),
|
117
|
+
rpc :DecryptAlpha1, stream(::Dapr::Proto::Runtime::V1::DecryptRequest),
|
118
|
+
stream(::Dapr::Proto::Runtime::V1::DecryptResponse)
|
97
119
|
# Gets metadata of the sidecar
|
98
120
|
rpc :GetMetadata, ::Google::Protobuf::Empty, ::Dapr::Proto::Runtime::V1::GetMetadataResponse
|
99
121
|
# Sets value in extended metadata of the sidecar
|
100
122
|
rpc :SetMetadata, ::Dapr::Proto::Runtime::V1::SetMetadataRequest, ::Google::Protobuf::Empty
|
101
123
|
# SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault.
|
102
|
-
rpc :SubtleGetKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleGetKeyRequest,
|
124
|
+
rpc :SubtleGetKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleGetKeyRequest,
|
125
|
+
::Dapr::Proto::Runtime::V1::SubtleGetKeyResponse
|
103
126
|
# SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault.
|
104
|
-
rpc :SubtleEncryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleEncryptRequest,
|
127
|
+
rpc :SubtleEncryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleEncryptRequest,
|
128
|
+
::Dapr::Proto::Runtime::V1::SubtleEncryptResponse
|
105
129
|
# SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault.
|
106
|
-
rpc :SubtleDecryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleDecryptRequest,
|
130
|
+
rpc :SubtleDecryptAlpha1, ::Dapr::Proto::Runtime::V1::SubtleDecryptRequest,
|
131
|
+
::Dapr::Proto::Runtime::V1::SubtleDecryptResponse
|
107
132
|
# SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault.
|
108
|
-
rpc :SubtleWrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleWrapKeyRequest,
|
133
|
+
rpc :SubtleWrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleWrapKeyRequest,
|
134
|
+
::Dapr::Proto::Runtime::V1::SubtleWrapKeyResponse
|
109
135
|
# SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault.
|
110
|
-
rpc :SubtleUnwrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyRequest,
|
136
|
+
rpc :SubtleUnwrapKeyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyRequest,
|
137
|
+
::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyResponse
|
111
138
|
# SubtleSignAlpha1 signs a message using a key stored in the vault.
|
112
|
-
rpc :SubtleSignAlpha1, ::Dapr::Proto::Runtime::V1::SubtleSignRequest,
|
139
|
+
rpc :SubtleSignAlpha1, ::Dapr::Proto::Runtime::V1::SubtleSignRequest,
|
140
|
+
::Dapr::Proto::Runtime::V1::SubtleSignResponse
|
113
141
|
# SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault.
|
114
|
-
rpc :SubtleVerifyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleVerifyRequest,
|
142
|
+
rpc :SubtleVerifyAlpha1, ::Dapr::Proto::Runtime::V1::SubtleVerifyRequest,
|
143
|
+
::Dapr::Proto::Runtime::V1::SubtleVerifyResponse
|
115
144
|
# Starts a new instance of a workflow
|
116
|
-
rpc :StartWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::StartWorkflowRequest,
|
145
|
+
rpc :StartWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::StartWorkflowRequest,
|
146
|
+
::Dapr::Proto::Runtime::V1::StartWorkflowResponse
|
117
147
|
# Gets details about a started workflow instance
|
118
|
-
rpc :GetWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::GetWorkflowRequest,
|
148
|
+
rpc :GetWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::GetWorkflowRequest,
|
149
|
+
::Dapr::Proto::Runtime::V1::GetWorkflowResponse
|
119
150
|
# Purge Workflow
|
120
151
|
rpc :PurgeWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::PurgeWorkflowRequest, ::Google::Protobuf::Empty
|
121
152
|
# Terminates a running workflow instance
|
122
|
-
rpc :TerminateWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::TerminateWorkflowRequest,
|
153
|
+
rpc :TerminateWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::TerminateWorkflowRequest,
|
154
|
+
::Google::Protobuf::Empty
|
123
155
|
# Pauses a running workflow instance
|
124
156
|
rpc :PauseWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::PauseWorkflowRequest, ::Google::Protobuf::Empty
|
125
157
|
# Resumes a paused workflow instance
|
126
158
|
rpc :ResumeWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::ResumeWorkflowRequest, ::Google::Protobuf::Empty
|
127
159
|
# Raise an event to a running workflow instance
|
128
|
-
rpc :RaiseEventWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::RaiseEventWorkflowRequest,
|
160
|
+
rpc :RaiseEventWorkflowAlpha1, ::Dapr::Proto::Runtime::V1::RaiseEventWorkflowRequest,
|
161
|
+
::Google::Protobuf::Empty
|
129
162
|
# Shutdown the sidecar
|
130
163
|
rpc :Shutdown, ::Google::Protobuf::Empty, ::Google::Protobuf::Empty
|
131
164
|
end
|
data/lib/dapr/version.rb
CHANGED
data/lib/dapr-client.rb
CHANGED
data/lib/dapr.rb
CHANGED