google-cloud-pubsub-v1 1.10.0 → 1.11.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/pubsub/v1/publisher/credentials.rb +2 -37
- data/lib/google/cloud/pubsub/v1/publisher.rb +2 -35
- data/lib/google/cloud/pubsub/v1/subscriber/credentials.rb +2 -37
- data/lib/google/cloud/pubsub/v1/subscriber.rb +2 -36
- data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/client.rb +61 -61
- data/lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/{publisher → subscription_admin}/helpers.rb +4 -1
- data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/paths.rb +3 -3
- data/lib/google/cloud/pubsub/v1/subscription_admin.rb +51 -0
- data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/client.rb +46 -46
- data/lib/google/cloud/pubsub/v1/topic_admin/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/{subscriber → topic_admin}/helpers.rb +4 -1
- data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/paths.rb +3 -3
- data/lib/google/cloud/pubsub/v1/topic_admin.rb +50 -0
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/cloud/pubsub/v1.rb +2 -2
- data/lib/google/pubsub/v1/pubsub_pb.rb +2 -1
- data/proto_docs/google/pubsub/v1/pubsub.rb +50 -11
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc88639d099120cb0e3640b57b3461ec8321245e442e6521afc5fcbb8555b32
|
4
|
+
data.tar.gz: 2add1a3a7b3b560ee1542648d00628b4b21e5218f14a1228024e73dfd8030d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef28112cb52202dc56dbc4dd537dca8fc087545aefcb8b73ffb029dc9637d21912739bbe7888b54c3710165164e40196d82204a5128f1c43d0f23dd9c0618180
|
7
|
+
data.tar.gz: 01aa61a21bef45400a3d72a29aeb879061a65ecb7e0d46a8f1da81b717c9d61a2fe85402a01e9eaa3738ec28fc96c8f07212c2cba1c2e6308e606e6b79c11668
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright 2025 Google LLC
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -14,39 +14,4 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
require "googleauth"
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Cloud
|
23
|
-
module PubSub
|
24
|
-
module V1
|
25
|
-
module Publisher
|
26
|
-
# Credentials for the Publisher API.
|
27
|
-
class Credentials < ::Google::Auth::Credentials
|
28
|
-
self.scope = [
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/pubsub"
|
31
|
-
]
|
32
|
-
self.env_vars = [
|
33
|
-
"PUBSUB_CREDENTIALS",
|
34
|
-
"PUBSUB_KEYFILE",
|
35
|
-
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
-
"GOOGLE_CLOUD_KEYFILE",
|
37
|
-
"GCLOUD_KEYFILE",
|
38
|
-
"PUBSUB_CREDENTIALS_JSON",
|
39
|
-
"PUBSUB_KEYFILE_JSON",
|
40
|
-
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
-
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
-
"GCLOUD_KEYFILE_JSON"
|
43
|
-
]
|
44
|
-
self.paths = [
|
45
|
-
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
-
]
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
17
|
+
require "google/cloud/pubsub/v1/topic_admin"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright 2025 Google LLC
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -14,37 +14,4 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
|
-
require "google/cloud/pubsub/v1/version"
|
24
|
-
|
25
|
-
require "google/cloud/pubsub/v1/publisher/credentials"
|
26
|
-
require "google/cloud/pubsub/v1/publisher/paths"
|
27
|
-
require "google/cloud/pubsub/v1/publisher/client"
|
28
|
-
|
29
|
-
module Google
|
30
|
-
module Cloud
|
31
|
-
module PubSub
|
32
|
-
module V1
|
33
|
-
##
|
34
|
-
# The service that an application uses to manipulate topics, and to send
|
35
|
-
# messages to a topic.
|
36
|
-
#
|
37
|
-
# @example Load this service and instantiate a gRPC client
|
38
|
-
#
|
39
|
-
# require "google/cloud/pubsub/v1/publisher"
|
40
|
-
# client = ::Google::Cloud::PubSub::V1::Publisher::Client.new
|
41
|
-
#
|
42
|
-
module Publisher
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
helper_path = ::File.join __dir__, "publisher", "helpers.rb"
|
50
|
-
require "google/cloud/pubsub/v1/publisher/helpers" if ::File.file? helper_path
|
17
|
+
require "google/cloud/pubsub/v1/topic_admin"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright 2025 Google LLC
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -14,39 +14,4 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
require "googleauth"
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Cloud
|
23
|
-
module PubSub
|
24
|
-
module V1
|
25
|
-
module Subscriber
|
26
|
-
# Credentials for the Subscriber API.
|
27
|
-
class Credentials < ::Google::Auth::Credentials
|
28
|
-
self.scope = [
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/pubsub"
|
31
|
-
]
|
32
|
-
self.env_vars = [
|
33
|
-
"PUBSUB_CREDENTIALS",
|
34
|
-
"PUBSUB_KEYFILE",
|
35
|
-
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
-
"GOOGLE_CLOUD_KEYFILE",
|
37
|
-
"GCLOUD_KEYFILE",
|
38
|
-
"PUBSUB_CREDENTIALS_JSON",
|
39
|
-
"PUBSUB_KEYFILE_JSON",
|
40
|
-
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
-
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
-
"GCLOUD_KEYFILE_JSON"
|
43
|
-
]
|
44
|
-
self.paths = [
|
45
|
-
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
-
]
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
17
|
+
require "google/cloud/pubsub/v1/subscription_admin"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright 2025 Google LLC
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -14,38 +14,4 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
|
-
require "google/cloud/pubsub/v1/version"
|
24
|
-
|
25
|
-
require "google/cloud/pubsub/v1/subscriber/credentials"
|
26
|
-
require "google/cloud/pubsub/v1/subscriber/paths"
|
27
|
-
require "google/cloud/pubsub/v1/subscriber/client"
|
28
|
-
|
29
|
-
module Google
|
30
|
-
module Cloud
|
31
|
-
module PubSub
|
32
|
-
module V1
|
33
|
-
##
|
34
|
-
# The service that an application uses to manipulate subscriptions and to
|
35
|
-
# consume messages from a subscription via the `Pull` method or by
|
36
|
-
# establishing a bi-directional stream using the `StreamingPull` method.
|
37
|
-
#
|
38
|
-
# @example Load this service and instantiate a gRPC client
|
39
|
-
#
|
40
|
-
# require "google/cloud/pubsub/v1/subscriber"
|
41
|
-
# client = ::Google::Cloud::PubSub::V1::Subscriber::Client.new
|
42
|
-
#
|
43
|
-
module Subscriber
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
helper_path = ::File.join __dir__, "subscriber", "helpers.rb"
|
51
|
-
require "google/cloud/pubsub/v1/subscriber/helpers" if ::File.file? helper_path
|
17
|
+
require "google/cloud/pubsub/v1/subscription_admin"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright 2025 Google LLC
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
6
|
# you may not use this file except in compliance with the License.
|
@@ -24,9 +24,9 @@ module Google
|
|
24
24
|
module Cloud
|
25
25
|
module PubSub
|
26
26
|
module V1
|
27
|
-
module
|
27
|
+
module SubscriptionAdmin
|
28
28
|
##
|
29
|
-
# Client for the
|
29
|
+
# Client for the SubscriptionAdmin service.
|
30
30
|
#
|
31
31
|
# The service that an application uses to manipulate subscriptions and to
|
32
32
|
# consume messages from a subscription via the `Pull` method or by
|
@@ -42,18 +42,18 @@ module Google
|
|
42
42
|
include Paths
|
43
43
|
|
44
44
|
# @private
|
45
|
-
attr_reader :
|
45
|
+
attr_reader :subscription_admin_stub
|
46
46
|
|
47
47
|
##
|
48
|
-
# Configure the
|
48
|
+
# Configure the SubscriptionAdmin Client class.
|
49
49
|
#
|
50
|
-
# See {::Google::Cloud::PubSub::V1::
|
50
|
+
# See {::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client::Configuration}
|
51
51
|
# for a description of the configuration fields.
|
52
52
|
#
|
53
53
|
# @example
|
54
54
|
#
|
55
|
-
# # Modify the configuration for all
|
56
|
-
# ::Google::Cloud::PubSub::V1::
|
55
|
+
# # Modify the configuration for all SubscriptionAdmin clients
|
56
|
+
# ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.configure do |config|
|
57
57
|
# config.timeout = 10.0
|
58
58
|
# end
|
59
59
|
#
|
@@ -160,13 +160,13 @@ module Google
|
|
160
160
|
end
|
161
161
|
|
162
162
|
##
|
163
|
-
# Configure the
|
163
|
+
# Configure the SubscriptionAdmin Client instance.
|
164
164
|
#
|
165
165
|
# The configuration is set to the derived mode, meaning that values can be changed,
|
166
166
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
167
167
|
# should be made on {Client.configure}.
|
168
168
|
#
|
169
|
-
# See {::Google::Cloud::PubSub::V1::
|
169
|
+
# See {::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client::Configuration}
|
170
170
|
# for a description of the configuration fields.
|
171
171
|
#
|
172
172
|
# @yield [config] Configure the Client client.
|
@@ -185,23 +185,23 @@ module Google
|
|
185
185
|
# @return [String]
|
186
186
|
#
|
187
187
|
def universe_domain
|
188
|
-
@
|
188
|
+
@subscription_admin_stub.universe_domain
|
189
189
|
end
|
190
190
|
|
191
191
|
##
|
192
|
-
# Create a new
|
192
|
+
# Create a new SubscriptionAdmin client object.
|
193
193
|
#
|
194
194
|
# @example
|
195
195
|
#
|
196
196
|
# # Create a client using the default configuration
|
197
|
-
# client = ::Google::Cloud::PubSub::V1::
|
197
|
+
# client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
198
198
|
#
|
199
199
|
# # Create a client using a custom configuration
|
200
|
-
# client = ::Google::Cloud::PubSub::V1::
|
200
|
+
# client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new do |config|
|
201
201
|
# config.timeout = 10.0
|
202
202
|
# end
|
203
203
|
#
|
204
|
-
# @yield [config] Configure the
|
204
|
+
# @yield [config] Configure the SubscriptionAdmin client.
|
205
205
|
# @yieldparam config [Client::Configuration]
|
206
206
|
#
|
207
207
|
def initialize
|
@@ -232,7 +232,7 @@ module Google
|
|
232
232
|
@quota_project_id = @config.quota_project
|
233
233
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
234
234
|
|
235
|
-
@
|
235
|
+
@subscription_admin_stub = ::Gapic::ServiceStub.new(
|
236
236
|
::Google::Cloud::PubSub::V1::Subscriber::Stub,
|
237
237
|
credentials: credentials,
|
238
238
|
endpoint: @config.endpoint,
|
@@ -244,7 +244,7 @@ module Google
|
|
244
244
|
logger: @config.logger
|
245
245
|
)
|
246
246
|
|
247
|
-
@
|
247
|
+
@subscription_admin_stub.stub_logger&.info do |entry|
|
248
248
|
entry.set_system_name
|
249
249
|
entry.set_service
|
250
250
|
entry.message = "Created client for #{entry.service}"
|
@@ -257,9 +257,9 @@ module Google
|
|
257
257
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
258
258
|
config.credentials = credentials
|
259
259
|
config.quota_project = @quota_project_id
|
260
|
-
config.endpoint = @
|
261
|
-
config.universe_domain = @
|
262
|
-
config.logger = @
|
260
|
+
config.endpoint = @subscription_admin_stub.endpoint
|
261
|
+
config.universe_domain = @subscription_admin_stub.universe_domain
|
262
|
+
config.logger = @subscription_admin_stub.logger if config.respond_to? :logger=
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
@@ -276,7 +276,7 @@ module Google
|
|
276
276
|
# @return [Logger]
|
277
277
|
#
|
278
278
|
def logger
|
279
|
-
@
|
279
|
+
@subscription_admin_stub.logger
|
280
280
|
end
|
281
281
|
|
282
282
|
# Service calls
|
@@ -437,7 +437,7 @@ module Google
|
|
437
437
|
# require "google/cloud/pubsub/v1"
|
438
438
|
#
|
439
439
|
# # Create a client object. The client can be reused for multiple calls.
|
440
|
-
# client = Google::Cloud::PubSub::V1::
|
440
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
441
441
|
#
|
442
442
|
# # Create a request. To set request fields, pass in keyword arguments.
|
443
443
|
# request = Google::Cloud::PubSub::V1::Subscription.new
|
@@ -482,7 +482,7 @@ module Google
|
|
482
482
|
metadata: @config.metadata,
|
483
483
|
retry_policy: @config.retry_policy
|
484
484
|
|
485
|
-
@
|
485
|
+
@subscription_admin_stub.call_rpc :create_subscription, request, options: options do |response, operation|
|
486
486
|
yield response, operation if block_given?
|
487
487
|
end
|
488
488
|
rescue ::GRPC::BadStatus => e
|
@@ -523,7 +523,7 @@ module Google
|
|
523
523
|
# require "google/cloud/pubsub/v1"
|
524
524
|
#
|
525
525
|
# # Create a client object. The client can be reused for multiple calls.
|
526
|
-
# client = Google::Cloud::PubSub::V1::
|
526
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
527
527
|
#
|
528
528
|
# # Create a request. To set request fields, pass in keyword arguments.
|
529
529
|
# request = Google::Cloud::PubSub::V1::GetSubscriptionRequest.new
|
@@ -568,7 +568,7 @@ module Google
|
|
568
568
|
metadata: @config.metadata,
|
569
569
|
retry_policy: @config.retry_policy
|
570
570
|
|
571
|
-
@
|
571
|
+
@subscription_admin_stub.call_rpc :get_subscription, request, options: options do |response, operation|
|
572
572
|
yield response, operation if block_given?
|
573
573
|
end
|
574
574
|
rescue ::GRPC::BadStatus => e
|
@@ -613,7 +613,7 @@ module Google
|
|
613
613
|
# require "google/cloud/pubsub/v1"
|
614
614
|
#
|
615
615
|
# # Create a client object. The client can be reused for multiple calls.
|
616
|
-
# client = Google::Cloud::PubSub::V1::
|
616
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
617
617
|
#
|
618
618
|
# # Create a request. To set request fields, pass in keyword arguments.
|
619
619
|
# request = Google::Cloud::PubSub::V1::UpdateSubscriptionRequest.new
|
@@ -658,7 +658,7 @@ module Google
|
|
658
658
|
metadata: @config.metadata,
|
659
659
|
retry_policy: @config.retry_policy
|
660
660
|
|
661
|
-
@
|
661
|
+
@subscription_admin_stub.call_rpc :update_subscription, request, options: options do |response, operation|
|
662
662
|
yield response, operation if block_given?
|
663
663
|
end
|
664
664
|
rescue ::GRPC::BadStatus => e
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
# require "google/cloud/pubsub/v1"
|
706
706
|
#
|
707
707
|
# # Create a client object. The client can be reused for multiple calls.
|
708
|
-
# client = Google::Cloud::PubSub::V1::
|
708
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
709
709
|
#
|
710
710
|
# # Create a request. To set request fields, pass in keyword arguments.
|
711
711
|
# request = Google::Cloud::PubSub::V1::ListSubscriptionsRequest.new
|
@@ -754,8 +754,8 @@ module Google
|
|
754
754
|
metadata: @config.metadata,
|
755
755
|
retry_policy: @config.retry_policy
|
756
756
|
|
757
|
-
@
|
758
|
-
response = ::Gapic::PagedEnumerable.new @
|
757
|
+
@subscription_admin_stub.call_rpc :list_subscriptions, request, options: options do |response, operation|
|
758
|
+
response = ::Gapic::PagedEnumerable.new @subscription_admin_stub, :list_subscriptions, request, response, operation, options
|
759
759
|
yield response, operation if block_given?
|
760
760
|
throw :response, response
|
761
761
|
end
|
@@ -801,7 +801,7 @@ module Google
|
|
801
801
|
# require "google/cloud/pubsub/v1"
|
802
802
|
#
|
803
803
|
# # Create a client object. The client can be reused for multiple calls.
|
804
|
-
# client = Google::Cloud::PubSub::V1::
|
804
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
805
805
|
#
|
806
806
|
# # Create a request. To set request fields, pass in keyword arguments.
|
807
807
|
# request = Google::Cloud::PubSub::V1::DeleteSubscriptionRequest.new
|
@@ -846,7 +846,7 @@ module Google
|
|
846
846
|
metadata: @config.metadata,
|
847
847
|
retry_policy: @config.retry_policy
|
848
848
|
|
849
|
-
@
|
849
|
+
@subscription_admin_stub.call_rpc :delete_subscription, request, options: options do |response, operation|
|
850
850
|
yield response, operation if block_given?
|
851
851
|
end
|
852
852
|
rescue ::GRPC::BadStatus => e
|
@@ -903,7 +903,7 @@ module Google
|
|
903
903
|
# require "google/cloud/pubsub/v1"
|
904
904
|
#
|
905
905
|
# # Create a client object. The client can be reused for multiple calls.
|
906
|
-
# client = Google::Cloud::PubSub::V1::
|
906
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
907
907
|
#
|
908
908
|
# # Create a request. To set request fields, pass in keyword arguments.
|
909
909
|
# request = Google::Cloud::PubSub::V1::ModifyAckDeadlineRequest.new
|
@@ -948,7 +948,7 @@ module Google
|
|
948
948
|
metadata: @config.metadata,
|
949
949
|
retry_policy: @config.retry_policy
|
950
950
|
|
951
|
-
@
|
951
|
+
@subscription_admin_stub.call_rpc :modify_ack_deadline, request, options: options do |response, operation|
|
952
952
|
yield response, operation if block_given?
|
953
953
|
end
|
954
954
|
rescue ::GRPC::BadStatus => e
|
@@ -999,7 +999,7 @@ module Google
|
|
999
999
|
# require "google/cloud/pubsub/v1"
|
1000
1000
|
#
|
1001
1001
|
# # Create a client object. The client can be reused for multiple calls.
|
1002
|
-
# client = Google::Cloud::PubSub::V1::
|
1002
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1003
1003
|
#
|
1004
1004
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1005
1005
|
# request = Google::Cloud::PubSub::V1::AcknowledgeRequest.new
|
@@ -1044,7 +1044,7 @@ module Google
|
|
1044
1044
|
metadata: @config.metadata,
|
1045
1045
|
retry_policy: @config.retry_policy
|
1046
1046
|
|
1047
|
-
@
|
1047
|
+
@subscription_admin_stub.call_rpc :acknowledge, request, options: options do |response, operation|
|
1048
1048
|
yield response, operation if block_given?
|
1049
1049
|
end
|
1050
1050
|
rescue ::GRPC::BadStatus => e
|
@@ -1097,7 +1097,7 @@ module Google
|
|
1097
1097
|
# require "google/cloud/pubsub/v1"
|
1098
1098
|
#
|
1099
1099
|
# # Create a client object. The client can be reused for multiple calls.
|
1100
|
-
# client = Google::Cloud::PubSub::V1::
|
1100
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1101
1101
|
#
|
1102
1102
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1103
1103
|
# request = Google::Cloud::PubSub::V1::PullRequest.new
|
@@ -1142,7 +1142,7 @@ module Google
|
|
1142
1142
|
metadata: @config.metadata,
|
1143
1143
|
retry_policy: @config.retry_policy
|
1144
1144
|
|
1145
|
-
@
|
1145
|
+
@subscription_admin_stub.call_rpc :pull, request, options: options do |response, operation|
|
1146
1146
|
yield response, operation if block_given?
|
1147
1147
|
end
|
1148
1148
|
rescue ::GRPC::BadStatus => e
|
@@ -1175,7 +1175,7 @@ module Google
|
|
1175
1175
|
# require "google/cloud/pubsub/v1"
|
1176
1176
|
#
|
1177
1177
|
# # Create a client object. The client can be reused for multiple calls.
|
1178
|
-
# client = Google::Cloud::PubSub::V1::
|
1178
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1179
1179
|
#
|
1180
1180
|
# # Create an input stream.
|
1181
1181
|
# input = Gapic::StreamInput.new
|
@@ -1226,7 +1226,7 @@ module Google
|
|
1226
1226
|
metadata: @config.metadata,
|
1227
1227
|
retry_policy: @config.retry_policy
|
1228
1228
|
|
1229
|
-
@
|
1229
|
+
@subscription_admin_stub.call_rpc :streaming_pull, request, options: options do |response, operation|
|
1230
1230
|
yield response, operation if block_given?
|
1231
1231
|
end
|
1232
1232
|
rescue ::GRPC::BadStatus => e
|
@@ -1279,7 +1279,7 @@ module Google
|
|
1279
1279
|
# require "google/cloud/pubsub/v1"
|
1280
1280
|
#
|
1281
1281
|
# # Create a client object. The client can be reused for multiple calls.
|
1282
|
-
# client = Google::Cloud::PubSub::V1::
|
1282
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1283
1283
|
#
|
1284
1284
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1285
1285
|
# request = Google::Cloud::PubSub::V1::ModifyPushConfigRequest.new
|
@@ -1324,7 +1324,7 @@ module Google
|
|
1324
1324
|
metadata: @config.metadata,
|
1325
1325
|
retry_policy: @config.retry_policy
|
1326
1326
|
|
1327
|
-
@
|
1327
|
+
@subscription_admin_stub.call_rpc :modify_push_config, request, options: options do |response, operation|
|
1328
1328
|
yield response, operation if block_given?
|
1329
1329
|
end
|
1330
1330
|
rescue ::GRPC::BadStatus => e
|
@@ -1369,7 +1369,7 @@ module Google
|
|
1369
1369
|
# require "google/cloud/pubsub/v1"
|
1370
1370
|
#
|
1371
1371
|
# # Create a client object. The client can be reused for multiple calls.
|
1372
|
-
# client = Google::Cloud::PubSub::V1::
|
1372
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1373
1373
|
#
|
1374
1374
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1375
1375
|
# request = Google::Cloud::PubSub::V1::GetSnapshotRequest.new
|
@@ -1414,7 +1414,7 @@ module Google
|
|
1414
1414
|
metadata: @config.metadata,
|
1415
1415
|
retry_policy: @config.retry_policy
|
1416
1416
|
|
1417
|
-
@
|
1417
|
+
@subscription_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation|
|
1418
1418
|
yield response, operation if block_given?
|
1419
1419
|
end
|
1420
1420
|
rescue ::GRPC::BadStatus => e
|
@@ -1465,7 +1465,7 @@ module Google
|
|
1465
1465
|
# require "google/cloud/pubsub/v1"
|
1466
1466
|
#
|
1467
1467
|
# # Create a client object. The client can be reused for multiple calls.
|
1468
|
-
# client = Google::Cloud::PubSub::V1::
|
1468
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1469
1469
|
#
|
1470
1470
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1471
1471
|
# request = Google::Cloud::PubSub::V1::ListSnapshotsRequest.new
|
@@ -1514,8 +1514,8 @@ module Google
|
|
1514
1514
|
metadata: @config.metadata,
|
1515
1515
|
retry_policy: @config.retry_policy
|
1516
1516
|
|
1517
|
-
@
|
1518
|
-
response = ::Gapic::PagedEnumerable.new @
|
1517
|
+
@subscription_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation|
|
1518
|
+
response = ::Gapic::PagedEnumerable.new @subscription_admin_stub, :list_snapshots, request, response, operation, options
|
1519
1519
|
yield response, operation if block_given?
|
1520
1520
|
throw :response, response
|
1521
1521
|
end
|
@@ -1589,7 +1589,7 @@ module Google
|
|
1589
1589
|
# require "google/cloud/pubsub/v1"
|
1590
1590
|
#
|
1591
1591
|
# # Create a client object. The client can be reused for multiple calls.
|
1592
|
-
# client = Google::Cloud::PubSub::V1::
|
1592
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1593
1593
|
#
|
1594
1594
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1595
1595
|
# request = Google::Cloud::PubSub::V1::CreateSnapshotRequest.new
|
@@ -1634,7 +1634,7 @@ module Google
|
|
1634
1634
|
metadata: @config.metadata,
|
1635
1635
|
retry_policy: @config.retry_policy
|
1636
1636
|
|
1637
|
-
@
|
1637
|
+
@subscription_admin_stub.call_rpc :create_snapshot, request, options: options do |response, operation|
|
1638
1638
|
yield response, operation if block_given?
|
1639
1639
|
end
|
1640
1640
|
rescue ::GRPC::BadStatus => e
|
@@ -1682,7 +1682,7 @@ module Google
|
|
1682
1682
|
# require "google/cloud/pubsub/v1"
|
1683
1683
|
#
|
1684
1684
|
# # Create a client object. The client can be reused for multiple calls.
|
1685
|
-
# client = Google::Cloud::PubSub::V1::
|
1685
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1686
1686
|
#
|
1687
1687
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1688
1688
|
# request = Google::Cloud::PubSub::V1::UpdateSnapshotRequest.new
|
@@ -1727,7 +1727,7 @@ module Google
|
|
1727
1727
|
metadata: @config.metadata,
|
1728
1728
|
retry_policy: @config.retry_policy
|
1729
1729
|
|
1730
|
-
@
|
1730
|
+
@subscription_admin_stub.call_rpc :update_snapshot, request, options: options do |response, operation|
|
1731
1731
|
yield response, operation if block_given?
|
1732
1732
|
end
|
1733
1733
|
rescue ::GRPC::BadStatus => e
|
@@ -1776,7 +1776,7 @@ module Google
|
|
1776
1776
|
# require "google/cloud/pubsub/v1"
|
1777
1777
|
#
|
1778
1778
|
# # Create a client object. The client can be reused for multiple calls.
|
1779
|
-
# client = Google::Cloud::PubSub::V1::
|
1779
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1780
1780
|
#
|
1781
1781
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1782
1782
|
# request = Google::Cloud::PubSub::V1::DeleteSnapshotRequest.new
|
@@ -1821,7 +1821,7 @@ module Google
|
|
1821
1821
|
metadata: @config.metadata,
|
1822
1822
|
retry_policy: @config.retry_policy
|
1823
1823
|
|
1824
|
-
@
|
1824
|
+
@subscription_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation|
|
1825
1825
|
yield response, operation if block_given?
|
1826
1826
|
end
|
1827
1827
|
rescue ::GRPC::BadStatus => e
|
@@ -1887,7 +1887,7 @@ module Google
|
|
1887
1887
|
# require "google/cloud/pubsub/v1"
|
1888
1888
|
#
|
1889
1889
|
# # Create a client object. The client can be reused for multiple calls.
|
1890
|
-
# client = Google::Cloud::PubSub::V1::
|
1890
|
+
# client = Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
|
1891
1891
|
#
|
1892
1892
|
# # Create a request. To set request fields, pass in keyword arguments.
|
1893
1893
|
# request = Google::Cloud::PubSub::V1::SeekRequest.new
|
@@ -1932,7 +1932,7 @@ module Google
|
|
1932
1932
|
metadata: @config.metadata,
|
1933
1933
|
retry_policy: @config.retry_policy
|
1934
1934
|
|
1935
|
-
@
|
1935
|
+
@subscription_admin_stub.call_rpc :seek, request, options: options do |response, operation|
|
1936
1936
|
yield response, operation if block_given?
|
1937
1937
|
end
|
1938
1938
|
rescue ::GRPC::BadStatus => e
|
@@ -1940,13 +1940,13 @@ module Google
|
|
1940
1940
|
end
|
1941
1941
|
|
1942
1942
|
##
|
1943
|
-
# Configuration class for the
|
1943
|
+
# Configuration class for the SubscriptionAdmin API.
|
1944
1944
|
#
|
1945
|
-
# This class represents the configuration for
|
1945
|
+
# This class represents the configuration for SubscriptionAdmin,
|
1946
1946
|
# providing control over timeouts, retry behavior, logging, transport
|
1947
1947
|
# parameters, and other low-level controls. Certain parameters can also be
|
1948
1948
|
# applied individually to specific RPCs. See
|
1949
|
-
# {::Google::Cloud::PubSub::V1::
|
1949
|
+
# {::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client::Configuration::Rpcs}
|
1950
1950
|
# for a list of RPCs that can be configured independently.
|
1951
1951
|
#
|
1952
1952
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -1957,13 +1957,13 @@ module Google
|
|
1957
1957
|
# # Modify the global config, setting the timeout for
|
1958
1958
|
# # create_subscription to 20 seconds,
|
1959
1959
|
# # and all remaining timeouts to 10 seconds.
|
1960
|
-
# ::Google::Cloud::PubSub::V1::
|
1960
|
+
# ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.configure do |config|
|
1961
1961
|
# config.timeout = 10.0
|
1962
1962
|
# config.rpcs.create_subscription.timeout = 20.0
|
1963
1963
|
# end
|
1964
1964
|
#
|
1965
1965
|
# # Apply the above configuration only to a new client.
|
1966
|
-
# client = ::Google::Cloud::PubSub::V1::
|
1966
|
+
# client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new do |config|
|
1967
1967
|
# config.timeout = 10.0
|
1968
1968
|
# config.rpcs.create_subscription.timeout = 20.0
|
1969
1969
|
# end
|
@@ -2088,7 +2088,7 @@ module Google
|
|
2088
2088
|
end
|
2089
2089
|
|
2090
2090
|
##
|
2091
|
-
# Configuration RPC class for the
|
2091
|
+
# Configuration RPC class for the SubscriptionAdmin API.
|
2092
2092
|
#
|
2093
2093
|
# Includes fields providing the configuration for each RPC in this service.
|
2094
2094
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|