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.
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module PubSub
24
+ module V1
25
+ module SubscriptionAdmin
26
+ # Credentials for the SubscriptionAdmin 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
@@ -19,7 +19,7 @@ module Google
19
19
  module Cloud
20
20
  module PubSub
21
21
  module V1
22
- module Publisher
22
+ module SubscriptionAdmin
23
23
  class Client # rubocop:disable Style/Documentation
24
24
  class << self
25
25
  alias configure_internal configure
@@ -41,6 +41,9 @@ module Google
41
41
  end
42
42
  end
43
43
  end
44
+ # Alias for SubscriptionAdmin. Subscriber is a legacy name for this service,
45
+ # maintained for backwards compatibility.
46
+ Subscriber = SubscriptionAdmin
44
47
  end
45
48
  end
46
49
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
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.
@@ -21,8 +21,8 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- module Subscriber
25
- # Path helper methods for the Subscriber API.
24
+ module SubscriptionAdmin
25
+ # Path helper methods for the SubscriptionAdmin API.
26
26
  module Paths
27
27
  ##
28
28
  # Create a fully-qualified Project resource string.
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
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/subscription_admin/credentials"
26
+ require "google/cloud/pubsub/v1/subscription_admin/paths"
27
+ require "google/cloud/pubsub/v1/subscription_admin/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/subscription_admin"
41
+ # client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
42
+ #
43
+ module SubscriptionAdmin
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "subscription_admin", "helpers.rb"
51
+ require "google/cloud/pubsub/v1/subscription_admin/helpers" if ::File.file? helper_path
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
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 Publisher
27
+ module TopicAdmin
28
28
  ##
29
- # Client for the Publisher service.
29
+ # Client for the TopicAdmin service.
30
30
  #
31
31
  # The service that an application uses to manipulate topics, and to send
32
32
  # messages to a topic.
@@ -41,18 +41,18 @@ module Google
41
41
  include Paths
42
42
 
43
43
  # @private
44
- attr_reader :publisher_stub
44
+ attr_reader :topic_admin_stub
45
45
 
46
46
  ##
47
- # Configure the Publisher Client class.
47
+ # Configure the TopicAdmin Client class.
48
48
  #
49
- # See {::Google::Cloud::PubSub::V1::Publisher::Client::Configuration}
49
+ # See {::Google::Cloud::PubSub::V1::TopicAdmin::Client::Configuration}
50
50
  # for a description of the configuration fields.
51
51
  #
52
52
  # @example
53
53
  #
54
- # # Modify the configuration for all Publisher clients
55
- # ::Google::Cloud::PubSub::V1::Publisher::Client.configure do |config|
54
+ # # Modify the configuration for all TopicAdmin clients
55
+ # ::Google::Cloud::PubSub::V1::TopicAdmin::Client.configure do |config|
56
56
  # config.timeout = 10.0
57
57
  # end
58
58
  #
@@ -124,13 +124,13 @@ module Google
124
124
  end
125
125
 
126
126
  ##
127
- # Configure the Publisher Client instance.
127
+ # Configure the TopicAdmin Client instance.
128
128
  #
129
129
  # The configuration is set to the derived mode, meaning that values can be changed,
130
130
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
131
131
  # should be made on {Client.configure}.
132
132
  #
133
- # See {::Google::Cloud::PubSub::V1::Publisher::Client::Configuration}
133
+ # See {::Google::Cloud::PubSub::V1::TopicAdmin::Client::Configuration}
134
134
  # for a description of the configuration fields.
135
135
  #
136
136
  # @yield [config] Configure the Client client.
@@ -149,23 +149,23 @@ module Google
149
149
  # @return [String]
150
150
  #
151
151
  def universe_domain
152
- @publisher_stub.universe_domain
152
+ @topic_admin_stub.universe_domain
153
153
  end
154
154
 
155
155
  ##
156
- # Create a new Publisher client object.
156
+ # Create a new TopicAdmin client object.
157
157
  #
158
158
  # @example
159
159
  #
160
160
  # # Create a client using the default configuration
161
- # client = ::Google::Cloud::PubSub::V1::Publisher::Client.new
161
+ # client = ::Google::Cloud::PubSub::V1::TopicAdmin::Client.new
162
162
  #
163
163
  # # Create a client using a custom configuration
164
- # client = ::Google::Cloud::PubSub::V1::Publisher::Client.new do |config|
164
+ # client = ::Google::Cloud::PubSub::V1::TopicAdmin::Client.new do |config|
165
165
  # config.timeout = 10.0
166
166
  # end
167
167
  #
168
- # @yield [config] Configure the Publisher client.
168
+ # @yield [config] Configure the TopicAdmin client.
169
169
  # @yieldparam config [Client::Configuration]
170
170
  #
171
171
  def initialize
@@ -196,7 +196,7 @@ module Google
196
196
  @quota_project_id = @config.quota_project
197
197
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
198
198
 
199
- @publisher_stub = ::Gapic::ServiceStub.new(
199
+ @topic_admin_stub = ::Gapic::ServiceStub.new(
200
200
  ::Google::Cloud::PubSub::V1::Publisher::Stub,
201
201
  credentials: credentials,
202
202
  endpoint: @config.endpoint,
@@ -208,7 +208,7 @@ module Google
208
208
  logger: @config.logger
209
209
  )
210
210
 
211
- @publisher_stub.stub_logger&.info do |entry|
211
+ @topic_admin_stub.stub_logger&.info do |entry|
212
212
  entry.set_system_name
213
213
  entry.set_service
214
214
  entry.message = "Created client for #{entry.service}"
@@ -221,9 +221,9 @@ module Google
221
221
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
222
222
  config.credentials = credentials
223
223
  config.quota_project = @quota_project_id
224
- config.endpoint = @publisher_stub.endpoint
225
- config.universe_domain = @publisher_stub.universe_domain
226
- config.logger = @publisher_stub.logger if config.respond_to? :logger=
224
+ config.endpoint = @topic_admin_stub.endpoint
225
+ config.universe_domain = @topic_admin_stub.universe_domain
226
+ config.logger = @topic_admin_stub.logger if config.respond_to? :logger=
227
227
  end
228
228
  end
229
229
 
@@ -240,7 +240,7 @@ module Google
240
240
  # @return [Logger]
241
241
  #
242
242
  def logger
243
- @publisher_stub.logger
243
+ @topic_admin_stub.logger
244
244
  end
245
245
 
246
246
  # Service calls
@@ -316,7 +316,7 @@ module Google
316
316
  # require "google/cloud/pubsub/v1"
317
317
  #
318
318
  # # Create a client object. The client can be reused for multiple calls.
319
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
319
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
320
320
  #
321
321
  # # Create a request. To set request fields, pass in keyword arguments.
322
322
  # request = Google::Cloud::PubSub::V1::Topic.new
@@ -361,7 +361,7 @@ module Google
361
361
  metadata: @config.metadata,
362
362
  retry_policy: @config.retry_policy
363
363
 
364
- @publisher_stub.call_rpc :create_topic, request, options: options do |response, operation|
364
+ @topic_admin_stub.call_rpc :create_topic, request, options: options do |response, operation|
365
365
  yield response, operation if block_given?
366
366
  end
367
367
  rescue ::GRPC::BadStatus => e
@@ -408,7 +408,7 @@ module Google
408
408
  # require "google/cloud/pubsub/v1"
409
409
  #
410
410
  # # Create a client object. The client can be reused for multiple calls.
411
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
411
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
412
412
  #
413
413
  # # Create a request. To set request fields, pass in keyword arguments.
414
414
  # request = Google::Cloud::PubSub::V1::UpdateTopicRequest.new
@@ -453,7 +453,7 @@ module Google
453
453
  metadata: @config.metadata,
454
454
  retry_policy: @config.retry_policy
455
455
 
456
- @publisher_stub.call_rpc :update_topic, request, options: options do |response, operation|
456
+ @topic_admin_stub.call_rpc :update_topic, request, options: options do |response, operation|
457
457
  yield response, operation if block_given?
458
458
  end
459
459
  rescue ::GRPC::BadStatus => e
@@ -497,7 +497,7 @@ module Google
497
497
  # require "google/cloud/pubsub/v1"
498
498
  #
499
499
  # # Create a client object. The client can be reused for multiple calls.
500
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
500
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
501
501
  #
502
502
  # # Create a request. To set request fields, pass in keyword arguments.
503
503
  # request = Google::Cloud::PubSub::V1::PublishRequest.new
@@ -542,7 +542,7 @@ module Google
542
542
  metadata: @config.metadata,
543
543
  retry_policy: @config.retry_policy
544
544
 
545
- @publisher_stub.call_rpc :publish, request, options: options do |response, operation|
545
+ @topic_admin_stub.call_rpc :publish, request, options: options do |response, operation|
546
546
  yield response, operation if block_given?
547
547
  end
548
548
  rescue ::GRPC::BadStatus => e
@@ -583,7 +583,7 @@ module Google
583
583
  # require "google/cloud/pubsub/v1"
584
584
  #
585
585
  # # Create a client object. The client can be reused for multiple calls.
586
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
586
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
587
587
  #
588
588
  # # Create a request. To set request fields, pass in keyword arguments.
589
589
  # request = Google::Cloud::PubSub::V1::GetTopicRequest.new
@@ -628,7 +628,7 @@ module Google
628
628
  metadata: @config.metadata,
629
629
  retry_policy: @config.retry_policy
630
630
 
631
- @publisher_stub.call_rpc :get_topic, request, options: options do |response, operation|
631
+ @topic_admin_stub.call_rpc :get_topic, request, options: options do |response, operation|
632
632
  yield response, operation if block_given?
633
633
  end
634
634
  rescue ::GRPC::BadStatus => e
@@ -675,7 +675,7 @@ module Google
675
675
  # require "google/cloud/pubsub/v1"
676
676
  #
677
677
  # # Create a client object. The client can be reused for multiple calls.
678
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
678
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
679
679
  #
680
680
  # # Create a request. To set request fields, pass in keyword arguments.
681
681
  # request = Google::Cloud::PubSub::V1::ListTopicsRequest.new
@@ -724,8 +724,8 @@ module Google
724
724
  metadata: @config.metadata,
725
725
  retry_policy: @config.retry_policy
726
726
 
727
- @publisher_stub.call_rpc :list_topics, request, options: options do |response, operation|
728
- response = ::Gapic::PagedEnumerable.new @publisher_stub, :list_topics, request, response, operation, options
727
+ @topic_admin_stub.call_rpc :list_topics, request, options: options do |response, operation|
728
+ response = ::Gapic::PagedEnumerable.new @topic_admin_stub, :list_topics, request, response, operation, options
729
729
  yield response, operation if block_given?
730
730
  throw :response, response
731
731
  end
@@ -773,7 +773,7 @@ module Google
773
773
  # require "google/cloud/pubsub/v1"
774
774
  #
775
775
  # # Create a client object. The client can be reused for multiple calls.
776
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
776
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
777
777
  #
778
778
  # # Create a request. To set request fields, pass in keyword arguments.
779
779
  # request = Google::Cloud::PubSub::V1::ListTopicSubscriptionsRequest.new
@@ -818,7 +818,7 @@ module Google
818
818
  metadata: @config.metadata,
819
819
  retry_policy: @config.retry_policy
820
820
 
821
- @publisher_stub.call_rpc :list_topic_subscriptions, request, options: options do |response, operation|
821
+ @topic_admin_stub.call_rpc :list_topic_subscriptions, request, options: options do |response, operation|
822
822
  yield response, operation if block_given?
823
823
  end
824
824
  rescue ::GRPC::BadStatus => e
@@ -869,7 +869,7 @@ module Google
869
869
  # require "google/cloud/pubsub/v1"
870
870
  #
871
871
  # # Create a client object. The client can be reused for multiple calls.
872
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
872
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
873
873
  #
874
874
  # # Create a request. To set request fields, pass in keyword arguments.
875
875
  # request = Google::Cloud::PubSub::V1::ListTopicSnapshotsRequest.new
@@ -914,7 +914,7 @@ module Google
914
914
  metadata: @config.metadata,
915
915
  retry_policy: @config.retry_policy
916
916
 
917
- @publisher_stub.call_rpc :list_topic_snapshots, request, options: options do |response, operation|
917
+ @topic_admin_stub.call_rpc :list_topic_snapshots, request, options: options do |response, operation|
918
918
  yield response, operation if block_given?
919
919
  end
920
920
  rescue ::GRPC::BadStatus => e
@@ -959,7 +959,7 @@ module Google
959
959
  # require "google/cloud/pubsub/v1"
960
960
  #
961
961
  # # Create a client object. The client can be reused for multiple calls.
962
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
962
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
963
963
  #
964
964
  # # Create a request. To set request fields, pass in keyword arguments.
965
965
  # request = Google::Cloud::PubSub::V1::DeleteTopicRequest.new
@@ -1004,7 +1004,7 @@ module Google
1004
1004
  metadata: @config.metadata,
1005
1005
  retry_policy: @config.retry_policy
1006
1006
 
1007
- @publisher_stub.call_rpc :delete_topic, request, options: options do |response, operation|
1007
+ @topic_admin_stub.call_rpc :delete_topic, request, options: options do |response, operation|
1008
1008
  yield response, operation if block_given?
1009
1009
  end
1010
1010
  rescue ::GRPC::BadStatus => e
@@ -1048,7 +1048,7 @@ module Google
1048
1048
  # require "google/cloud/pubsub/v1"
1049
1049
  #
1050
1050
  # # Create a client object. The client can be reused for multiple calls.
1051
- # client = Google::Cloud::PubSub::V1::Publisher::Client.new
1051
+ # client = Google::Cloud::PubSub::V1::TopicAdmin::Client.new
1052
1052
  #
1053
1053
  # # Create a request. To set request fields, pass in keyword arguments.
1054
1054
  # request = Google::Cloud::PubSub::V1::DetachSubscriptionRequest.new
@@ -1093,7 +1093,7 @@ module Google
1093
1093
  metadata: @config.metadata,
1094
1094
  retry_policy: @config.retry_policy
1095
1095
 
1096
- @publisher_stub.call_rpc :detach_subscription, request, options: options do |response, operation|
1096
+ @topic_admin_stub.call_rpc :detach_subscription, request, options: options do |response, operation|
1097
1097
  yield response, operation if block_given?
1098
1098
  end
1099
1099
  rescue ::GRPC::BadStatus => e
@@ -1101,13 +1101,13 @@ module Google
1101
1101
  end
1102
1102
 
1103
1103
  ##
1104
- # Configuration class for the Publisher API.
1104
+ # Configuration class for the TopicAdmin API.
1105
1105
  #
1106
- # This class represents the configuration for Publisher,
1106
+ # This class represents the configuration for TopicAdmin,
1107
1107
  # providing control over timeouts, retry behavior, logging, transport
1108
1108
  # parameters, and other low-level controls. Certain parameters can also be
1109
1109
  # applied individually to specific RPCs. See
1110
- # {::Google::Cloud::PubSub::V1::Publisher::Client::Configuration::Rpcs}
1110
+ # {::Google::Cloud::PubSub::V1::TopicAdmin::Client::Configuration::Rpcs}
1111
1111
  # for a list of RPCs that can be configured independently.
1112
1112
  #
1113
1113
  # Configuration can be applied globally to all clients, or to a single client
@@ -1118,13 +1118,13 @@ module Google
1118
1118
  # # Modify the global config, setting the timeout for
1119
1119
  # # create_topic to 20 seconds,
1120
1120
  # # and all remaining timeouts to 10 seconds.
1121
- # ::Google::Cloud::PubSub::V1::Publisher::Client.configure do |config|
1121
+ # ::Google::Cloud::PubSub::V1::TopicAdmin::Client.configure do |config|
1122
1122
  # config.timeout = 10.0
1123
1123
  # config.rpcs.create_topic.timeout = 20.0
1124
1124
  # end
1125
1125
  #
1126
1126
  # # Apply the above configuration only to a new client.
1127
- # client = ::Google::Cloud::PubSub::V1::Publisher::Client.new do |config|
1127
+ # client = ::Google::Cloud::PubSub::V1::TopicAdmin::Client.new do |config|
1128
1128
  # config.timeout = 10.0
1129
1129
  # config.rpcs.create_topic.timeout = 20.0
1130
1130
  # end
@@ -1249,7 +1249,7 @@ module Google
1249
1249
  end
1250
1250
 
1251
1251
  ##
1252
- # Configuration RPC class for the Publisher API.
1252
+ # Configuration RPC class for the TopicAdmin API.
1253
1253
  #
1254
1254
  # Includes fields providing the configuration for each RPC in this service.
1255
1255
  # Each configuration object is of type `Gapic::Config::Method` and includes
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module PubSub
24
+ module V1
25
+ module TopicAdmin
26
+ # Credentials for the TopicAdmin 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
@@ -19,7 +19,7 @@ module Google
19
19
  module Cloud
20
20
  module PubSub
21
21
  module V1
22
- module Subscriber
22
+ module TopicAdmin
23
23
  class Client # rubocop:disable Style/Documentation
24
24
  class << self
25
25
  alias configure_internal configure
@@ -41,6 +41,9 @@ module Google
41
41
  end
42
42
  end
43
43
  end
44
+ # Alias for TopicAdmin. Publisher is a legacy name for this service,
45
+ # maintained for backwards compatibility.
46
+ Publisher = TopicAdmin
44
47
  end
45
48
  end
46
49
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
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.
@@ -21,8 +21,8 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- module Publisher
25
- # Path helper methods for the Publisher API.
24
+ module TopicAdmin
25
+ # Path helper methods for the TopicAdmin API.
26
26
  module Paths
27
27
  ##
28
28
  # Create a fully-qualified Project resource string.
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
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/topic_admin/credentials"
26
+ require "google/cloud/pubsub/v1/topic_admin/paths"
27
+ require "google/cloud/pubsub/v1/topic_admin/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/topic_admin"
40
+ # client = ::Google::Cloud::PubSub::V1::TopicAdmin::Client.new
41
+ #
42
+ module TopicAdmin
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "topic_admin", "helpers.rb"
50
+ require "google/cloud/pubsub/v1/topic_admin/helpers" if ::File.file? helper_path
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "1.10.0"
24
+ VERSION = "1.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -17,8 +17,8 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/pubsub/v1/schema_service"
20
- require "google/cloud/pubsub/v1/publisher"
21
- require "google/cloud/pubsub/v1/subscriber"
20
+ require "google/cloud/pubsub/v1/topic_admin"
21
+ require "google/cloud/pubsub/v1/subscription_admin"
22
22
  require "google/cloud/pubsub/v1/version"
23
23
 
24
24
  module Google