google-cloud-pubsub 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,117 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/pubsub/v1/pubsub.proto for package 'google.pubsub.v1'
3
+ # Original file comments:
4
+ # Copyright (c) 2015, Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/pubsub/v1/pubsub_pb'
21
+
22
+ module Google
23
+ module Pubsub
24
+ module V1
25
+ module Subscriber
26
+ # The service that an application uses to manipulate subscriptions and to
27
+ # consume messages from a subscription via the `Pull` method.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.pubsub.v1.Subscriber'
35
+
36
+ # Creates a subscription to a given topic for a given subscriber.
37
+ # If the subscription already exists, returns `ALREADY_EXISTS`.
38
+ # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
39
+ #
40
+ # If the name is not provided in the request, the server will assign a random
41
+ # name for this subscription on the same project as the topic.
42
+ rpc :CreateSubscription, Subscription, Subscription
43
+ # Gets the configuration details of a subscription.
44
+ rpc :GetSubscription, GetSubscriptionRequest, Subscription
45
+ # Lists matching subscriptions.
46
+ rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
47
+ # Deletes an existing subscription. All pending messages in the subscription
48
+ # are immediately dropped. Calls to `Pull` after deletion will return
49
+ # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
50
+ # the same name, but the new one has no association with the old
51
+ # subscription, or its topic unless the same topic is specified.
52
+ rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
53
+ # Modifies the ack deadline for a specific message. This method is useful
54
+ # to indicate that more time is needed to process a message by the
55
+ # subscriber, or to make the message available for redelivery if the
56
+ # processing was interrupted.
57
+ rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
58
+ # Acknowledges the messages associated with the `ack_ids` in the
59
+ # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
60
+ # from the subscription.
61
+ #
62
+ # Acknowledging a message whose ack deadline has expired may succeed,
63
+ # but such a message may be redelivered later. Acknowledging a message more
64
+ # than once will not result in an error.
65
+ rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
66
+ # Pulls messages from the server. Returns an empty list if there are no
67
+ # messages available in the backlog. The server may return `UNAVAILABLE` if
68
+ # there are too many concurrent pull requests pending for the given
69
+ # subscription.
70
+ rpc :Pull, PullRequest, PullResponse
71
+ # Modifies the `PushConfig` for a specified subscription.
72
+ #
73
+ # This may be used to change a push subscription to a pull one (signified by
74
+ # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
75
+ # attributes of a push subscription. Messages will accumulate for delivery
76
+ # continuously through the call regardless of changes to the `PushConfig`.
77
+ rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
78
+ end
79
+
80
+ Stub = Service.rpc_stub_class
81
+ end
82
+ module Publisher
83
+ # The service that an application uses to manipulate topics, and to send
84
+ # messages to a topic.
85
+ class Service
86
+
87
+ include GRPC::GenericService
88
+
89
+ self.marshal_class_method = :encode
90
+ self.unmarshal_class_method = :decode
91
+ self.service_name = 'google.pubsub.v1.Publisher'
92
+
93
+ # Creates the given topic with the given name.
94
+ rpc :CreateTopic, Topic, Topic
95
+ # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
96
+ # does not exist. The message payload must not be empty; it must contain
97
+ # either a non-empty data field, or at least one attribute.
98
+ rpc :Publish, PublishRequest, PublishResponse
99
+ # Gets the configuration of a topic.
100
+ rpc :GetTopic, GetTopicRequest, Topic
101
+ # Lists matching topics.
102
+ rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
103
+ # Lists the name of the subscriptions for this topic.
104
+ rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
105
+ # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
106
+ # does not exist. After a topic is deleted, a new topic may be created with
107
+ # the same name; this is an entirely new topic with none of the old
108
+ # configuration or subscriptions. Existing subscriptions to this topic are
109
+ # not deleted, but their `topic` field is set to `_deleted-topic_`.
110
+ rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
111
+ end
112
+
113
+ Stub = Service.rpc_stub_class
114
+ end
115
+ end
116
+ end
117
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-pubsub
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.20.0
5
+ platform: ruby
6
+ authors:
7
+ - Mike Moore
8
+ - Chris Smith
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-08-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: google-cloud-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.20.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.20.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: grpc
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: google-protobuf
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: googleapis-common-protos
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.2'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.2'
70
+ - !ruby/object:Gem::Dependency
71
+ name: minitest
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '5.9'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '5.9'
84
+ - !ruby/object:Gem::Dependency
85
+ name: minitest-autotest
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: minitest-focus
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.1'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '1.1'
112
+ - !ruby/object:Gem::Dependency
113
+ name: minitest-rg
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '5.2'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '5.2'
126
+ - !ruby/object:Gem::Dependency
127
+ name: autotest-suffix
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '1.1'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '1.1'
140
+ - !ruby/object:Gem::Dependency
141
+ name: rubocop
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "<="
145
+ - !ruby/object:Gem::Version
146
+ version: 0.35.1
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "<="
152
+ - !ruby/object:Gem::Version
153
+ version: 0.35.1
154
+ - !ruby/object:Gem::Dependency
155
+ name: simplecov
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '0.9'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '0.9'
168
+ - !ruby/object:Gem::Dependency
169
+ name: yard
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '0.9'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '0.9'
182
+ description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
183
+ email:
184
+ - mike@blowmage.com
185
+ - quartzmo@gmail.com
186
+ executables: []
187
+ extensions: []
188
+ extra_rdoc_files: []
189
+ files:
190
+ - lib/google-cloud-pubsub.rb
191
+ - lib/google/cloud/pubsub.rb
192
+ - lib/google/cloud/pubsub/credentials.rb
193
+ - lib/google/cloud/pubsub/message.rb
194
+ - lib/google/cloud/pubsub/policy.rb
195
+ - lib/google/cloud/pubsub/project.rb
196
+ - lib/google/cloud/pubsub/received_message.rb
197
+ - lib/google/cloud/pubsub/service.rb
198
+ - lib/google/cloud/pubsub/subscription.rb
199
+ - lib/google/cloud/pubsub/subscription/list.rb
200
+ - lib/google/cloud/pubsub/topic.rb
201
+ - lib/google/cloud/pubsub/topic/list.rb
202
+ - lib/google/cloud/pubsub/topic/publisher.rb
203
+ - lib/google/cloud/pubsub/version.rb
204
+ - lib/google/iam/v1/iam_policy.rb
205
+ - lib/google/iam/v1/iam_policy_services.rb
206
+ - lib/google/iam/v1/policy.rb
207
+ - lib/google/pubsub/v1/pubsub_pb.rb
208
+ - lib/google/pubsub/v1/pubsub_services_pb.rb
209
+ homepage: http://googlecloudplatform.github.io/google-cloud-ruby/
210
+ licenses:
211
+ - Apache-2.0
212
+ metadata: {}
213
+ post_install_message:
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: 2.0.0
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.6.4
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: API Client library for Google Cloud Pub/Sub
233
+ test_files: []