google-cloud-pubsub 0.31.1 → 0.32.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/README.md +8 -8
  4. data/lib/google/cloud/pubsub/async_publisher.rb +4 -0
  5. data/lib/google/cloud/pubsub/credentials.rb +2 -14
  6. data/lib/google/cloud/pubsub/subscriber.rb +85 -0
  7. data/lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb +24 -19
  8. data/lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb +45 -26
  9. data/lib/google/cloud/pubsub/subscriber/inventory.rb +136 -0
  10. data/lib/google/cloud/pubsub/subscriber/stream.rb +80 -138
  11. data/lib/google/cloud/pubsub/subscription.rb +2 -2
  12. data/lib/google/cloud/pubsub/topic.rb +4 -4
  13. data/lib/google/cloud/pubsub/v1/credentials.rb +38 -0
  14. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +62 -0
  15. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +127 -0
  16. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +1 -1
  17. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +28 -0
  18. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +1 -1
  19. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +1 -1
  20. data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +113 -31
  21. data/lib/google/cloud/pubsub/v1/publisher_client.rb +180 -109
  22. data/lib/google/cloud/pubsub/v1/subscriber_client.rb +322 -193
  23. data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +1 -1
  24. data/lib/google/cloud/pubsub/version.rb +1 -1
  25. data/lib/google/pubsub/v1/pubsub_pb.rb +21 -0
  26. data/lib/google/pubsub/v1/pubsub_services_pb.rb +87 -73
  27. metadata +23 -5
  28. data/lib/google/cloud/pubsub/v1/doc/overview.rb +0 -75
@@ -86,7 +86,7 @@
86
86
  "retry_params_name": "messaging"
87
87
  },
88
88
  "StreamingPull": {
89
- "timeout_millis": 60000,
89
+ "timeout_millis": 900000,
90
90
  "retry_codes_name": "pull",
91
91
  "retry_params_name": "streaming_messaging"
92
92
  },
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Pubsub
19
- VERSION = "0.31.1".freeze
19
+ VERSION = "0.32.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -9,9 +9,13 @@ require 'google/protobuf/empty_pb'
9
9
  require 'google/protobuf/field_mask_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.pubsub.v1.MessageStoragePolicy" do
13
+ repeated :allowed_persistence_regions, :string, 1
14
+ end
12
15
  add_message "google.pubsub.v1.Topic" do
13
16
  optional :name, :string, 1
14
17
  map :labels, :string, :string, 2
18
+ optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
15
19
  end
16
20
  add_message "google.pubsub.v1.PubsubMessage" do
17
21
  optional :data, :bytes, 1
@@ -51,6 +55,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
55
  repeated :subscriptions, :string, 1
52
56
  optional :next_page_token, :string, 2
53
57
  end
58
+ add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
59
+ optional :topic, :string, 1
60
+ optional :page_size, :int32, 2
61
+ optional :page_token, :string, 3
62
+ end
63
+ add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
64
+ repeated :snapshots, :string, 1
65
+ optional :next_page_token, :string, 2
66
+ end
54
67
  add_message "google.pubsub.v1.DeleteTopicRequest" do
55
68
  optional :topic, :string, 1
56
69
  end
@@ -124,6 +137,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
124
137
  add_message "google.pubsub.v1.CreateSnapshotRequest" do
125
138
  optional :name, :string, 1
126
139
  optional :subscription, :string, 2
140
+ map :labels, :string, :string, 3
127
141
  end
128
142
  add_message "google.pubsub.v1.UpdateSnapshotRequest" do
129
143
  optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
@@ -135,6 +149,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
135
149
  optional :expire_time, :message, 3, "google.protobuf.Timestamp"
136
150
  map :labels, :string, :string, 4
137
151
  end
152
+ add_message "google.pubsub.v1.GetSnapshotRequest" do
153
+ optional :snapshot, :string, 1
154
+ end
138
155
  add_message "google.pubsub.v1.ListSnapshotsRequest" do
139
156
  optional :project, :string, 1
140
157
  optional :page_size, :int32, 2
@@ -161,6 +178,7 @@ end
161
178
  module Google
162
179
  module Pubsub
163
180
  module V1
181
+ MessageStoragePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
164
182
  Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
165
183
  PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
166
184
  GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
@@ -171,6 +189,8 @@ module Google
171
189
  ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
172
190
  ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
173
191
  ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
192
+ ListTopicSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsRequest").msgclass
193
+ ListTopicSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsResponse").msgclass
174
194
  DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
175
195
  Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
176
196
  PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
@@ -190,6 +210,7 @@ module Google
190
210
  CreateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
191
211
  UpdateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
192
212
  Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
213
+ GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSnapshotRequest").msgclass
193
214
  ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsRequest").msgclass
194
215
  ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsResponse").msgclass
195
216
  DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSnapshotRequest").msgclass
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/pubsub/v1/pubsub.proto for package 'google.pubsub.v1'
3
3
  # Original file comments:
4
- # Copyright 2017 Google Inc.
4
+ # Copyright 2018 Google Inc.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # https://www.apache.org/licenses/LICENSE-2.0
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,9 +22,52 @@ require 'google/pubsub/v1/pubsub_pb'
22
22
  module Google
23
23
  module Pubsub
24
24
  module V1
25
+ module Publisher
26
+ # The service that an application uses to manipulate topics, and to send
27
+ # messages to a topic.
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.Publisher'
35
+
36
+ # Creates the given topic with the given name. See the
37
+ # <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
38
+ rpc :CreateTopic, Topic, Topic
39
+ # Updates an existing topic. Note that certain properties of a
40
+ # topic are not modifiable.
41
+ rpc :UpdateTopic, UpdateTopicRequest, Topic
42
+ # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
43
+ # does not exist. The message payload must not be empty; it must contain
44
+ # either a non-empty data field, or at least one attribute.
45
+ rpc :Publish, PublishRequest, PublishResponse
46
+ # Gets the configuration of a topic.
47
+ rpc :GetTopic, GetTopicRequest, Topic
48
+ # Lists matching topics.
49
+ rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
50
+ # Lists the names of the subscriptions on this topic.
51
+ rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
52
+ # Lists the names of the snapshots on this topic.<br><br>
53
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
54
+ # changed in backward-incompatible ways and is not recommended for production
55
+ # use. It is not subject to any SLA or deprecation policy.
56
+ rpc :ListTopicSnapshots, ListTopicSnapshotsRequest, ListTopicSnapshotsResponse
57
+ # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
58
+ # does not exist. After a topic is deleted, a new topic may be created with
59
+ # the same name; this is an entirely new topic with none of the old
60
+ # configuration or subscriptions. Existing subscriptions to this topic are
61
+ # not deleted, but their `topic` field is set to `_deleted-topic_`.
62
+ rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
63
+ end
64
+
65
+ Stub = Service.rpc_stub_class
66
+ end
25
67
  module Subscriber
26
68
  # The service that an application uses to manipulate subscriptions and to
27
- # consume messages from a subscription via the `Pull` method.
69
+ # consume messages from a subscription via the `Pull` method or by
70
+ # establishing a bi-directional stream using the `StreamingPull` method.
28
71
  class Service
29
72
 
30
73
  include GRPC::GenericService
@@ -33,7 +76,8 @@ module Google
33
76
  self.unmarshal_class_method = :decode
34
77
  self.service_name = 'google.pubsub.v1.Subscriber'
35
78
 
36
- # Creates a subscription to a given topic.
79
+ # Creates a subscription to a given topic. See the
80
+ # <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
37
81
  # If the subscription already exists, returns `ALREADY_EXISTS`.
38
82
  # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
39
83
  #
@@ -48,10 +92,6 @@ module Google
48
92
  rpc :GetSubscription, GetSubscriptionRequest, Subscription
49
93
  # Updates an existing subscription. Note that certain properties of a
50
94
  # subscription, such as its topic, are not modifiable.
51
- # NOTE: The style guide requires body: "subscription" instead of body: "*".
52
- # Keeping the latter for internal consistency in V1, however it should be
53
- # corrected in V2. See
54
- # https://cloud.google.com/apis/design/standard_methods#update for details.
55
95
  rpc :UpdateSubscription, UpdateSubscriptionRequest, Subscription
56
96
  # Lists matching subscriptions.
57
97
  rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
@@ -80,18 +120,13 @@ module Google
80
120
  # there are too many concurrent pull requests pending for the given
81
121
  # subscription.
82
122
  rpc :Pull, PullRequest, PullResponse
83
- # (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
84
- # respond with UNIMPLEMENTED errors unless you have been invited to test
85
- # this feature. Contact cloud-pubsub@google.com with any questions.
86
- #
87
123
  # Establishes a stream with the server, which sends messages down to the
88
124
  # client. The client streams acknowledgements and ack deadline modifications
89
125
  # back to the server. The server will close the stream and return the status
90
- # on any error. The server may close the stream with status `OK` to reassign
91
- # server-side resources, in which case, the client should re-establish the
92
- # stream. `UNAVAILABLE` may also be returned in the case of a transient error
93
- # (e.g., a server restart). These should also be retried by the client. Flow
94
- # control can be achieved by configuring the underlying RPC channel.
126
+ # on any error. The server may close the stream with status `UNAVAILABLE` to
127
+ # reassign server-side resources, in which case, the client should
128
+ # re-establish the stream. Flow control can be achieved by configuring the
129
+ # underlying RPC channel.
95
130
  rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
96
131
  # Modifies the `PushConfig` for a specified subscription.
97
132
  #
@@ -100,76 +135,55 @@ module Google
100
135
  # attributes of a push subscription. Messages will accumulate for delivery
101
136
  # continuously through the call regardless of changes to the `PushConfig`.
102
137
  rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
103
- # Lists the existing snapshots.
138
+ # Gets the configuration details of a snapshot.<br><br>
139
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
140
+ # changed in backward-incompatible ways and is not recommended for production
141
+ # use. It is not subject to any SLA or deprecation policy.
142
+ rpc :GetSnapshot, GetSnapshotRequest, Snapshot
143
+ # Lists the existing snapshots.<br><br>
144
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
145
+ # changed in backward-incompatible ways and is not recommended for production
146
+ # use. It is not subject to any SLA or deprecation policy.
104
147
  rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
105
- # Creates a snapshot from the requested subscription.
148
+ # Creates a snapshot from the requested subscription.<br><br>
149
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
150
+ # changed in backward-incompatible ways and is not recommended for production
151
+ # use. It is not subject to any SLA or deprecation policy.
106
152
  # If the snapshot already exists, returns `ALREADY_EXISTS`.
107
153
  # If the requested subscription doesn't exist, returns `NOT_FOUND`.
108
- #
109
- # If the name is not provided in the request, the server will assign a random
154
+ # If the backlog in the subscription is too old -- and the resulting snapshot
155
+ # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
156
+ # See also the `Snapshot.expire_time` field. If the name is not provided in
157
+ # the request, the server will assign a random
110
158
  # name for this snapshot on the same project as the subscription, conforming
111
- # to the
112
- # [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
113
- # The generated name is populated in the returned Snapshot object.
114
- # Note that for REST API requests, you must specify a name in the request.
159
+ # to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
160
+ # The generated
161
+ # name is populated in the returned Snapshot object. Note that for REST API
162
+ # requests, you must specify a name in the request.
115
163
  rpc :CreateSnapshot, CreateSnapshotRequest, Snapshot
116
- # Updates an existing snapshot. Note that certain properties of a snapshot
117
- # are not modifiable.
118
- # NOTE: The style guide requires body: "snapshot" instead of body: "*".
119
- # Keeping the latter for internal consistency in V1, however it should be
120
- # corrected in V2. See
121
- # https://cloud.google.com/apis/design/standard_methods#update for details.
164
+ # Updates an existing snapshot.<br><br>
165
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
166
+ # changed in backward-incompatible ways and is not recommended for production
167
+ # use. It is not subject to any SLA or deprecation policy.
168
+ # Note that certain properties of a snapshot are not modifiable.
122
169
  rpc :UpdateSnapshot, UpdateSnapshotRequest, Snapshot
123
- # Removes an existing snapshot. All messages retained in the snapshot
170
+ # Removes an existing snapshot. <br><br>
171
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
172
+ # changed in backward-incompatible ways and is not recommended for production
173
+ # use. It is not subject to any SLA or deprecation policy.
174
+ # When the snapshot is deleted, all messages retained in the snapshot
124
175
  # are immediately dropped. After a snapshot is deleted, a new one may be
125
176
  # created with the same name, but the new one has no association with the old
126
177
  # snapshot or its subscription, unless the same subscription is specified.
127
178
  rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
128
179
  # Seeks an existing subscription to a point in time or to a given snapshot,
129
- # whichever is provided in the request.
180
+ # whichever is provided in the request.<br><br>
181
+ # <b>ALPHA:</b> This feature is part of an alpha release. This API might be
182
+ # changed in backward-incompatible ways and is not recommended for production
183
+ # use. It is not subject to any SLA or deprecation policy.
130
184
  rpc :Seek, SeekRequest, SeekResponse
131
185
  end
132
186
 
133
- Stub = Service.rpc_stub_class
134
- end
135
- module Publisher
136
- # The service that an application uses to manipulate topics, and to send
137
- # messages to a topic.
138
- class Service
139
-
140
- include GRPC::GenericService
141
-
142
- self.marshal_class_method = :encode
143
- self.unmarshal_class_method = :decode
144
- self.service_name = 'google.pubsub.v1.Publisher'
145
-
146
- # Creates the given topic with the given name.
147
- rpc :CreateTopic, Topic, Topic
148
- # Updates an existing topic. Note that certain properties of a topic are not
149
- # modifiable. Options settings follow the style guide:
150
- # NOTE: The style guide requires body: "topic" instead of body: "*".
151
- # Keeping the latter for internal consistency in V1, however it should be
152
- # corrected in V2. See
153
- # https://cloud.google.com/apis/design/standard_methods#update for details.
154
- rpc :UpdateTopic, UpdateTopicRequest, Topic
155
- # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
156
- # does not exist. The message payload must not be empty; it must contain
157
- # either a non-empty data field, or at least one attribute.
158
- rpc :Publish, PublishRequest, PublishResponse
159
- # Gets the configuration of a topic.
160
- rpc :GetTopic, GetTopicRequest, Topic
161
- # Lists matching topics.
162
- rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
163
- # Lists the name of the subscriptions for this topic.
164
- rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
165
- # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
166
- # does not exist. After a topic is deleted, a new topic may be created with
167
- # the same name; this is an entirely new topic with none of the old
168
- # configuration or subscriptions. Existing subscriptions to this topic are
169
- # not deleted, but their `topic` field is set to `_deleted-topic_`.
170
- rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
171
- end
172
-
173
187
  Stub = Service.rpc_stub_class
174
188
  end
175
189
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.1
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-14 00:00:00.000000000 Z
12
+ date: 2018-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.0'
34
+ version: '1.3'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: '1.3'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: grpc-google-iam-v1
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -137,6 +137,20 @@ dependencies:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '1.1'
140
+ - !ruby/object:Gem::Dependency
141
+ name: redcarpet
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '3.0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '3.0'
140
154
  - !ruby/object:Gem::Dependency
141
155
  name: rubocop
142
156
  requirement: !ruby/object:Gem::Requirement
@@ -222,17 +236,21 @@ files:
222
236
  - lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb
223
237
  - lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb
224
238
  - lib/google/cloud/pubsub/subscriber/enumerator_queue.rb
239
+ - lib/google/cloud/pubsub/subscriber/inventory.rb
225
240
  - lib/google/cloud/pubsub/subscriber/stream.rb
226
241
  - lib/google/cloud/pubsub/subscription.rb
227
242
  - lib/google/cloud/pubsub/subscription/list.rb
228
243
  - lib/google/cloud/pubsub/topic.rb
229
244
  - lib/google/cloud/pubsub/topic/list.rb
230
245
  - lib/google/cloud/pubsub/v1.rb
246
+ - lib/google/cloud/pubsub/v1/credentials.rb
247
+ - lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb
248
+ - lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb
231
249
  - lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb
250
+ - lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb
232
251
  - lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb
233
252
  - lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
234
253
  - lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
235
- - lib/google/cloud/pubsub/v1/doc/overview.rb
236
254
  - lib/google/cloud/pubsub/v1/publisher_client.rb
237
255
  - lib/google/cloud/pubsub/v1/publisher_client_config.json
238
256
  - lib/google/cloud/pubsub/v1/subscriber_client.rb
@@ -1,75 +0,0 @@
1
- # Copyright 2017 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- module Google
16
- module Cloud
17
- # rubocop:disable LineLength
18
-
19
- ##
20
- # # Ruby Client for Google Cloud Pub/Sub API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
- #
22
- # [Google Cloud Pub/Sub API][Product Documentation]:
23
- # Provides reliable, many-to-many, asynchronous messaging between applications.
24
- # - [Product Documentation][]
25
- #
26
- # ## Quick Start
27
- # In order to use this library, you first need to go through the following
28
- # steps:
29
- #
30
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
31
- # 2. [Enable the Google Cloud Pub/Sub API.](https://console.cloud.google.com/apis/api/pubsub)
32
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
- #
34
- # ### Installation
35
- # ```
36
- # $ gem install google-cloud-pubsub
37
- # ```
38
- #
39
- # ### Preview
40
- # #### PublisherClient
41
- # ```rb
42
- # require "google/cloud/pubsub"
43
- #
44
- # publisher_client = Google::Cloud::Pubsub::Publisher.new
45
- # formatted_project = Google::Cloud::Pubsub::V1::PublisherClient.project_path(project_id)
46
- #
47
- # # Iterate over all results.
48
- # publisher_client.list_topics(formatted_project).each do |element|
49
- # # Process element.
50
- # end
51
- #
52
- # # Or iterate over results one page at a time.
53
- # publisher_client.list_topics(formatted_project).each_page do |page|
54
- # # Process each page at a time.
55
- # page.each do |element|
56
- # # Process element.
57
- # end
58
- # end
59
- # ```
60
- #
61
- # ### Next Steps
62
- # - Read the [Google Cloud Pub/Sub API Product documentation][Product Documentation]
63
- # to learn more about the product and see How-to Guides.
64
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
65
- # to see the full list of Cloud APIs that we cover.
66
- #
67
- # [Product Documentation]: https://cloud.google.com/pubsub
68
- #
69
- #
70
- module Pubsub
71
- module V1
72
- end
73
- end
74
- end
75
- end