dapr-ruby 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, ::Dapr::Proto::Common::V1::InvokeResponse
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, ::Dapr::Proto::Runtime::V1::GetBulkStateResponse
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, ::Dapr::Proto::Runtime::V1::QueryStateResponse
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, ::Google::Protobuf::Empty
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, ::Dapr::Proto::Runtime::V1::BulkPublishResponse
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, ::Dapr::Proto::Runtime::V1::InvokeBindingResponse
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, ::Dapr::Proto::Runtime::V1::GetBulkSecretResponse
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, ::Google::Protobuf::Empty
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, ::Google::Protobuf::Empty
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, ::Google::Protobuf::Empty
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, ::Dapr::Proto::Runtime::V1::GetActorStateResponse
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, ::Google::Protobuf::Empty
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, ::Dapr::Proto::Runtime::V1::InvokeActorResponse
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, ::Dapr::Proto::Runtime::V1::GetConfigurationResponse
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, ::Dapr::Proto::Runtime::V1::GetConfigurationResponse
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, stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
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, stream(::Dapr::Proto::Runtime::V1::SubscribeConfigurationResponse)
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, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
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, ::Dapr::Proto::Runtime::V1::UnsubscribeConfigurationResponse
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), stream(::Dapr::Proto::Runtime::V1::EncryptResponse)
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), stream(::Dapr::Proto::Runtime::V1::DecryptResponse)
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, ::Dapr::Proto::Runtime::V1::SubtleGetKeyResponse
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, ::Dapr::Proto::Runtime::V1::SubtleEncryptResponse
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, ::Dapr::Proto::Runtime::V1::SubtleDecryptResponse
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, ::Dapr::Proto::Runtime::V1::SubtleWrapKeyResponse
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, ::Dapr::Proto::Runtime::V1::SubtleUnwrapKeyResponse
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, ::Dapr::Proto::Runtime::V1::SubtleSignResponse
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, ::Dapr::Proto::Runtime::V1::SubtleVerifyResponse
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, ::Dapr::Proto::Runtime::V1::StartWorkflowResponse
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, ::Dapr::Proto::Runtime::V1::GetWorkflowResponse
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, ::Google::Protobuf::Empty
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, ::Google::Protobuf::Empty
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Dapr
2
- VERSION = "0.4.2"
4
+ VERSION = '0.4.4'
3
5
  end
data/lib/dapr-client.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dapr"
3
+ require 'dapr'
data/lib/dapr.rb CHANGED
@@ -1 +1,3 @@
1
- require "dapr/version"
1
+ # frozen_string_literal: true
2
+
3
+ require 'dapr/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapr-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tjwp
@@ -32,49 +32,7 @@ dependencies:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: grpc-tools
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: rake
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: rspec
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
35
+ type: :runtime
78
36
  prerelease: false
79
37
  version_requirements: !ruby/object:Gem::Requirement
80
38
  requirements: