google-cloud-pubsub-v1 1.15.0 → 1.17.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/lib/google/cloud/pubsub/v1/bindings_override.rb +158 -0
  4. data/lib/google/cloud/pubsub/v1/rest.rb +40 -0
  5. data/lib/google/cloud/pubsub/v1/schema_service/client.rb +3 -1
  6. data/lib/google/cloud/pubsub/v1/schema_service/credentials.rb +1 -1
  7. data/lib/google/cloud/pubsub/v1/schema_service/paths.rb +1 -1
  8. data/lib/google/cloud/pubsub/v1/schema_service/rest/client.rb +1348 -0
  9. data/lib/google/cloud/pubsub/v1/schema_service/rest/service_stub.rb +696 -0
  10. data/lib/google/cloud/pubsub/v1/schema_service/rest.rb +53 -0
  11. data/lib/google/cloud/pubsub/v1/schema_service.rb +7 -1
  12. data/lib/google/cloud/pubsub/v1/subscription_admin/client.rb +9 -5
  13. data/lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb +1 -1
  14. data/lib/google/cloud/pubsub/v1/subscription_admin/paths.rb +1 -1
  15. data/lib/google/cloud/pubsub/v1/subscription_admin/rest/client.rb +2035 -0
  16. data/lib/google/cloud/pubsub/v1/subscription_admin/rest/service_stub.rb +1005 -0
  17. data/lib/google/cloud/pubsub/v1/subscription_admin/rest.rb +55 -0
  18. data/lib/google/cloud/pubsub/v1/subscription_admin.rb +7 -1
  19. data/lib/google/cloud/pubsub/v1/topic_admin/client.rb +6 -3
  20. data/lib/google/cloud/pubsub/v1/topic_admin/credentials.rb +1 -1
  21. data/lib/google/cloud/pubsub/v1/topic_admin/paths.rb +1 -1
  22. data/lib/google/cloud/pubsub/v1/topic_admin/rest/client.rb +1274 -0
  23. data/lib/google/cloud/pubsub/v1/topic_admin/rest/service_stub.rb +633 -0
  24. data/lib/google/cloud/pubsub/v1/topic_admin/rest.rb +54 -0
  25. data/lib/google/cloud/pubsub/v1/topic_admin.rb +7 -1
  26. data/lib/google/cloud/pubsub/v1/version.rb +1 -1
  27. data/lib/google/cloud/pubsub/v1.rb +6 -1
  28. data/lib/google/pubsub/v1/pubsub_pb.rb +4 -1
  29. data/lib/google/pubsub/v1/pubsub_services_pb.rb +1 -1
  30. data/lib/google/pubsub/v1/schema_pb.rb +2 -1
  31. data/lib/google/pubsub/v1/schema_services_pb.rb +1 -1
  32. data/lib/google-cloud-pubsub-v1.rb +1 -1
  33. data/proto_docs/google/api/client.rb +1 -1
  34. data/proto_docs/google/api/field_behavior.rb +1 -1
  35. data/proto_docs/google/api/launch_stage.rb +1 -1
  36. data/proto_docs/google/api/resource.rb +1 -1
  37. data/proto_docs/google/protobuf/duration.rb +1 -1
  38. data/proto_docs/google/protobuf/empty.rb +1 -1
  39. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  40. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  41. data/proto_docs/google/pubsub/v1/pubsub.rb +101 -25
  42. data/proto_docs/google/pubsub/v1/schema.rb +18 -1
  43. metadata +18 -8
  44. data/proto_docs/google/type/expr.rb +0 -75
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/pubsub/v1/version"
24
+ require "google/cloud/pubsub/v1/bindings_override"
25
+
26
+ require "google/cloud/pubsub/v1/subscription_admin/credentials"
27
+ require "google/cloud/pubsub/v1/subscription_admin/paths"
28
+ require "google/cloud/pubsub/v1/subscription_admin/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module PubSub
33
+ module V1
34
+ ##
35
+ # The service that an application uses to manipulate subscriptions and to
36
+ # consume messages from a subscription via the `Pull` method or by
37
+ # establishing a bi-directional stream using the `StreamingPull` method.
38
+ #
39
+ # To load this service and instantiate a REST client:
40
+ #
41
+ # require "google/cloud/pubsub/v1/subscription_admin/rest"
42
+ # client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Rest::Client.new
43
+ #
44
+ module SubscriptionAdmin
45
+ # Client for the REST transport
46
+ module Rest
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
55
+ require "google/cloud/pubsub/v1/subscription_admin/rest/helpers" if ::File.file? helper_path
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 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.
@@ -25,6 +25,7 @@ require "google/cloud/pubsub/v1/version"
25
25
  require "google/cloud/pubsub/v1/subscription_admin/credentials"
26
26
  require "google/cloud/pubsub/v1/subscription_admin/paths"
27
27
  require "google/cloud/pubsub/v1/subscription_admin/client"
28
+ require "google/cloud/pubsub/v1/subscription_admin/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -40,6 +41,11 @@ module Google
40
41
  # require "google/cloud/pubsub/v1/subscription_admin"
41
42
  # client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Client.new
42
43
  #
44
+ # @example Load this service and instantiate a REST client
45
+ #
46
+ # require "google/cloud/pubsub/v1/subscription_admin/rest"
47
+ # client = ::Google::Cloud::PubSub::V1::SubscriptionAdmin::Rest::Client.new
48
+ #
43
49
  module SubscriptionAdmin
44
50
  end
45
51
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 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.
@@ -308,8 +308,9 @@ module Google
308
308
  # resource. For example:
309
309
  # "123/environment": "production",
310
310
  # "123/costCenter": "marketing"
311
- # See https://docs.cloud.google.com/pubsub/docs/tags for more information on
312
- # using tags with Pub/Sub resources.
311
+ # See
312
+ # https://\\{$universe.dns_names.final_documentation_domain}/pubsub/docs/tags
313
+ # for more information on using tags with Pub/Sub resources.
313
314
  #
314
315
  # @yield [response, operation] Access the result along with the RPC operation
315
316
  # @yieldparam response [::Google::Cloud::PubSub::V1::Topic]
@@ -1203,6 +1204,7 @@ module Google
1203
1204
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1204
1205
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1205
1206
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1207
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1206
1208
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1207
1209
  # trigger a retry.
1208
1210
  # @return [::Hash]
@@ -1286,6 +1288,7 @@ module Google
1286
1288
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1287
1289
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1288
1290
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1291
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1289
1292
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1290
1293
  # trigger a retry.
1291
1294
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 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.