google-cloud-pubsub-v1 0.17.4 → 0.18.1
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +11 -2
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +10 -1
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +17 -8
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +6 -6
- data/proto_docs/google/pubsub/v1/pubsub.rb +8 -7
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c4fc161139d43b56e7b281d9265922f2c18e679fe08abb0598122af2bc1fb91
|
|
4
|
+
data.tar.gz: ac4208f2b9f6a6c090d591c945b5c054b82b86c438a67156315dd03da2c2750c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b90e6842b2f4daf645a5ba209ad92b01851dfa9ffebf6da2ea640903257c1d130e65a2d359c2fdbd401101e135a71b009b04deb362229203902bf2f637041739
|
|
7
|
+
data.tar.gz: a4851bae56b8e8c7e20f99803c6b77f3ab8667a84a85af11445d5b66c05e7d4098ff01e0048c351054c444b84ef6c189acb895e72fb1020e1049e392586dcf16
|
|
@@ -191,7 +191,8 @@ module Google
|
|
|
191
191
|
credentials: credentials,
|
|
192
192
|
endpoint: @config.endpoint,
|
|
193
193
|
channel_args: @config.channel_args,
|
|
194
|
-
interceptors: @config.interceptors
|
|
194
|
+
interceptors: @config.interceptors,
|
|
195
|
+
channel_pool_config: @config.channel_pool
|
|
195
196
|
)
|
|
196
197
|
end
|
|
197
198
|
|
|
@@ -206,7 +207,7 @@ module Google
|
|
|
206
207
|
|
|
207
208
|
##
|
|
208
209
|
# Creates the given topic with the given name. See the [resource name rules]
|
|
209
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
210
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
210
211
|
#
|
|
211
212
|
# @overload create_topic(request, options = nil)
|
|
212
213
|
# Pass arguments to `create_topic` via a request object, either of type
|
|
@@ -1171,6 +1172,14 @@ module Google
|
|
|
1171
1172
|
end
|
|
1172
1173
|
end
|
|
1173
1174
|
|
|
1175
|
+
##
|
|
1176
|
+
# Configuration for the channel pool
|
|
1177
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
1178
|
+
#
|
|
1179
|
+
def channel_pool
|
|
1180
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1174
1183
|
##
|
|
1175
1184
|
# Configuration RPC class for the Publisher API.
|
|
1176
1185
|
#
|
|
@@ -195,7 +195,8 @@ module Google
|
|
|
195
195
|
credentials: credentials,
|
|
196
196
|
endpoint: @config.endpoint,
|
|
197
197
|
channel_args: @config.channel_args,
|
|
198
|
-
interceptors: @config.interceptors
|
|
198
|
+
interceptors: @config.interceptors,
|
|
199
|
+
channel_pool_config: @config.channel_pool
|
|
199
200
|
)
|
|
200
201
|
end
|
|
201
202
|
|
|
@@ -1254,6 +1255,14 @@ module Google
|
|
|
1254
1255
|
end
|
|
1255
1256
|
end
|
|
1256
1257
|
|
|
1258
|
+
##
|
|
1259
|
+
# Configuration for the channel pool
|
|
1260
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
1261
|
+
#
|
|
1262
|
+
def channel_pool
|
|
1263
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1257
1266
|
##
|
|
1258
1267
|
# Configuration RPC class for the SchemaService API.
|
|
1259
1268
|
#
|
|
@@ -227,7 +227,8 @@ module Google
|
|
|
227
227
|
credentials: credentials,
|
|
228
228
|
endpoint: @config.endpoint,
|
|
229
229
|
channel_args: @config.channel_args,
|
|
230
|
-
interceptors: @config.interceptors
|
|
230
|
+
interceptors: @config.interceptors,
|
|
231
|
+
channel_pool_config: @config.channel_pool
|
|
231
232
|
)
|
|
232
233
|
end
|
|
233
234
|
|
|
@@ -242,16 +243,16 @@ module Google
|
|
|
242
243
|
|
|
243
244
|
##
|
|
244
245
|
# Creates a subscription to a given topic. See the [resource name rules]
|
|
245
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
246
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
246
247
|
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
247
248
|
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
248
249
|
#
|
|
249
250
|
# If the name is not provided in the request, the server will assign a random
|
|
250
251
|
# name for this subscription on the same project as the topic, conforming
|
|
251
252
|
# to the [resource name format]
|
|
252
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
253
|
-
# name is populated in the returned Subscription object. Note that
|
|
254
|
-
# API requests, you must specify a name in the request.
|
|
253
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
254
|
+
# generated name is populated in the returned Subscription object. Note that
|
|
255
|
+
# for REST API requests, you must specify a name in the request.
|
|
255
256
|
#
|
|
256
257
|
# @overload create_subscription(request, options = nil)
|
|
257
258
|
# Pass arguments to `create_subscription` via a request object, either of type
|
|
@@ -1489,7 +1490,7 @@ module Google
|
|
|
1489
1490
|
# the request, the server will assign a random
|
|
1490
1491
|
# name for this snapshot on the same project as the subscription, conforming
|
|
1491
1492
|
# to the [resource name format]
|
|
1492
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
1493
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
1493
1494
|
# generated name is populated in the returned Snapshot object. Note that for
|
|
1494
1495
|
# REST API requests, you must specify a name in the request.
|
|
1495
1496
|
#
|
|
@@ -1513,8 +1514,8 @@ module Google
|
|
|
1513
1514
|
# in the request, the server will assign a random name for this snapshot on
|
|
1514
1515
|
# the same project as the subscription. Note that for REST API requests, you
|
|
1515
1516
|
# must specify a name. See the [resource name
|
|
1516
|
-
# rules](https://cloud.google.com/pubsub/docs/
|
|
1517
|
-
# is `projects/{project}/snapshots/{snap}`.
|
|
1517
|
+
# rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
1518
|
+
# Format is `projects/{project}/snapshots/{snap}`.
|
|
1518
1519
|
# @param subscription [::String]
|
|
1519
1520
|
# Required. The subscription whose backlog the snapshot retains.
|
|
1520
1521
|
# Specifically, the created snapshot is guaranteed to retain:
|
|
@@ -2005,6 +2006,14 @@ module Google
|
|
|
2005
2006
|
end
|
|
2006
2007
|
end
|
|
2007
2008
|
|
|
2009
|
+
##
|
|
2010
|
+
# Configuration for the channel pool
|
|
2011
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
2012
|
+
#
|
|
2013
|
+
def channel_pool
|
|
2014
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
2015
|
+
end
|
|
2016
|
+
|
|
2008
2017
|
##
|
|
2009
2018
|
# Configuration RPC class for the Subscriber API.
|
|
2010
2019
|
#
|
|
@@ -35,7 +35,7 @@ module Google
|
|
|
35
35
|
self.service_name = 'google.pubsub.v1.Publisher'
|
|
36
36
|
|
|
37
37
|
# Creates the given topic with the given name. See the [resource name rules]
|
|
38
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
38
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
39
39
|
rpc :CreateTopic, ::Google::Cloud::PubSub::V1::Topic, ::Google::Cloud::PubSub::V1::Topic
|
|
40
40
|
# Updates an existing topic. Note that certain properties of a
|
|
41
41
|
# topic are not modifiable.
|
|
@@ -83,16 +83,16 @@ module Google
|
|
|
83
83
|
self.service_name = 'google.pubsub.v1.Subscriber'
|
|
84
84
|
|
|
85
85
|
# Creates a subscription to a given topic. See the [resource name rules]
|
|
86
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
86
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
87
87
|
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
88
88
|
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
89
89
|
#
|
|
90
90
|
# If the name is not provided in the request, the server will assign a random
|
|
91
91
|
# name for this subscription on the same project as the topic, conforming
|
|
92
92
|
# to the [resource name format]
|
|
93
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
94
|
-
# name is populated in the returned Subscription object. Note that
|
|
95
|
-
# API requests, you must specify a name in the request.
|
|
93
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
94
|
+
# generated name is populated in the returned Subscription object. Note that
|
|
95
|
+
# for REST API requests, you must specify a name in the request.
|
|
96
96
|
rpc :CreateSubscription, ::Google::Cloud::PubSub::V1::Subscription, ::Google::Cloud::PubSub::V1::Subscription
|
|
97
97
|
# Gets the configuration details of a subscription.
|
|
98
98
|
rpc :GetSubscription, ::Google::Cloud::PubSub::V1::GetSubscriptionRequest, ::Google::Cloud::PubSub::V1::Subscription
|
|
@@ -163,7 +163,7 @@ module Google
|
|
|
163
163
|
# the request, the server will assign a random
|
|
164
164
|
# name for this snapshot on the same project as the subscription, conforming
|
|
165
165
|
# to the [resource name format]
|
|
166
|
-
# (https://cloud.google.com/pubsub/docs/
|
|
166
|
+
# (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
167
167
|
# generated name is populated in the returned Snapshot object. Note that for
|
|
168
168
|
# REST API requests, you must specify a name in the request.
|
|
169
169
|
rpc :CreateSnapshot, ::Google::Cloud::PubSub::V1::CreateSnapshotRequest, ::Google::Cloud::PubSub::V1::Snapshot
|
|
@@ -24,11 +24,12 @@ module Google
|
|
|
24
24
|
# A policy constraining the storage of messages published to the topic.
|
|
25
25
|
# @!attribute [rw] allowed_persistence_regions
|
|
26
26
|
# @return [::Array<::String>]
|
|
27
|
-
# A list of IDs of
|
|
28
|
-
# may be persisted in storage. Messages published by publishers
|
|
29
|
-
# non-allowed
|
|
30
|
-
# routed for storage in one of the allowed regions.
|
|
31
|
-
# no regions are allowed, and is not a valid
|
|
27
|
+
# A list of IDs of Google Cloud regions where messages that are published
|
|
28
|
+
# to the topic may be persisted in storage. Messages published by publishers
|
|
29
|
+
# running in non-allowed Google Cloud regions (or running outside of Google
|
|
30
|
+
# Cloud altogether) are routed for storage in one of the allowed regions.
|
|
31
|
+
# An empty list means that no regions are allowed, and is not a valid
|
|
32
|
+
# configuration.
|
|
32
33
|
class MessageStoragePolicy
|
|
33
34
|
include ::Google::Protobuf::MessageExts
|
|
34
35
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1157,8 +1158,8 @@ module Google
|
|
|
1157
1158
|
# in the request, the server will assign a random name for this snapshot on
|
|
1158
1159
|
# the same project as the subscription. Note that for REST API requests, you
|
|
1159
1160
|
# must specify a name. See the [resource name
|
|
1160
|
-
# rules](https://cloud.google.com/pubsub/docs/
|
|
1161
|
-
# is `projects/{project}/snapshots/{snap}`.
|
|
1161
|
+
# rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
1162
|
+
# Format is `projects/{project}/snapshots/{snap}`.
|
|
1162
1163
|
# @!attribute [rw] subscription
|
|
1163
1164
|
# @return [::String]
|
|
1164
1165
|
# Required. The subscription whose backlog the snapshot retains.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-pubsub-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.20.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.20.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|