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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d1ccb6cf646d90b684953f7c8398b191f8bcf0e17532be6d432f6b22100456b
4
- data.tar.gz: 7c1c491420d072b07acc6cc48d657963db58e4daf1322fdcb61dc574179d235f
3
+ metadata.gz: c8339366c2439e84def06609abc0eddc06e157722b462d93c16d6ac4a14dc4ab
4
+ data.tar.gz: 6de43244ddf5068b6db2d5f0a71f889e48ccca6b492bd37b19c18f40bb29fef9
5
5
  SHA512:
6
- metadata.gz: 6ab53005c08a565e9ea947fe283eb35d3fb5cb442e360cddd73b3d7037e56d9d1873a33b0142a559ce19d086110a7960826c67ffc2c75e5de77d59a6055c2add
7
- data.tar.gz: 150adffada0fb6b4b8faa2d2b7253ef0e67e46d474862cb7d2e4bbee5c651174a62b814f094b16ebf57cff97336e4657832c89f8267743283eb009b898519571
6
+ metadata.gz: 620976bdaa301766cc123ff78facf0a973785d6f9b7fe84ead9b3e3694a3534a8ba543b23dbaa2e620532cd8bb1283bd9bf4572733e8a98821299b0d2c9e20f4
7
+ data.tar.gz: eff2719910dbe39be8604c2e86705a2cc8f2062a8e8fe1f371b54c2c2c3a2d613dc01e3b61f08852a1d7866437d6b6c945c1d9da887fe95413e1b3ea43645962
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Provides reliable, many-to-many, asynchronous messaging between applications.
4
4
 
5
- Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.
6
5
 
7
6
  https://github.com/googleapis/google-cloud-ruby
8
7
 
@@ -40,7 +39,7 @@ response = client.create_schema request
40
39
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-pubsub-v1/latest)
41
40
  for class and method documentation.
42
41
 
43
- See also the [Product Documentation](https://cloud.google.com/pubsub)
42
+ See also the [Product Documentation](https://cloud.google.com/pubsub/docs)
44
43
  for general usage information.
45
44
 
46
45
  ## Debug Logging
@@ -86,7 +85,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
85
 
87
86
  ## Supported Ruby Versions
88
87
 
89
- This library is supported on Ruby 3.0+.
88
+ This library is supported on Ruby 3.2+.
90
89
 
91
90
  Google provides official support for Ruby versions that are actively supported
92
91
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -0,0 +1,158 @@
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
+
21
+ module Google
22
+ module Cloud
23
+ module PubSub
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/pubsub/v1/rest"
28
+ # client = ::Google::Cloud::PubSub::V1::SchemaService::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "PubSub"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
46
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{resource}:getIamPolicy",
50
+ matches: [
51
+ ["resource", %r{^projects/[^/]+/topics/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ ),
55
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
56
+ uri_method: :get,
57
+ uri_template: "/v1/{resource}:getIamPolicy",
58
+ matches: [
59
+ ["resource", %r{^projects/[^/]+/subscriptions/[^/]+/?$}, false]
60
+ ],
61
+ body: nil
62
+ ),
63
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
64
+ uri_method: :get,
65
+ uri_template: "/v1/{resource}:getIamPolicy",
66
+ matches: [
67
+ ["resource", %r{^projects/[^/]+/snapshots/[^/]+/?$}, false]
68
+ ],
69
+ body: nil
70
+ ),
71
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
72
+ uri_method: :get,
73
+ uri_template: "/v1/{resource}:getIamPolicy",
74
+ matches: [
75
+ ["resource", %r{^projects/[^/]+/schemas/[^/]+/?$}, false]
76
+ ],
77
+ body: nil
78
+ )
79
+ ]
80
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
81
+
82
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
83
+ uri_method: :post,
84
+ uri_template: "/v1/{resource}:setIamPolicy",
85
+ matches: [
86
+ ["resource", %r{^projects/[^/]+/topics/[^/]+/?$}, false]
87
+ ],
88
+ body: "*"
89
+ ),
90
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
91
+ uri_method: :post,
92
+ uri_template: "/v1/{resource}:setIamPolicy",
93
+ matches: [
94
+ ["resource", %r{^projects/[^/]+/subscriptions/[^/]+/?$}, false]
95
+ ],
96
+ body: "*"
97
+ ),
98
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
99
+ uri_method: :post,
100
+ uri_template: "/v1/{resource}:setIamPolicy",
101
+ matches: [
102
+ ["resource", %r{^projects/[^/]+/snapshots/[^/]+/?$}, false]
103
+ ],
104
+ body: "*"
105
+ ),
106
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
107
+ uri_method: :post,
108
+ uri_template: "/v1/{resource}:setIamPolicy",
109
+ matches: [
110
+ ["resource", %r{^projects/[^/]+/schemas/[^/]+/?$}, false]
111
+ ],
112
+ body: "*"
113
+ )
114
+ ]
115
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
116
+
117
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
118
+ uri_method: :post,
119
+ uri_template: "/v1/{resource}:testIamPermissions",
120
+ matches: [
121
+ ["resource", %r{^projects/[^/]+/subscriptions/[^/]+/?$}, false]
122
+ ],
123
+ body: "*"
124
+ ),
125
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
126
+ uri_method: :post,
127
+ uri_template: "/v1/{resource}:testIamPermissions",
128
+ matches: [
129
+ ["resource", %r{^projects/[^/]+/topics/[^/]+/?$}, false]
130
+ ],
131
+ body: "*"
132
+ ),
133
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
134
+ uri_method: :post,
135
+ uri_template: "/v1/{resource}:testIamPermissions",
136
+ matches: [
137
+ ["resource", %r{^projects/[^/]+/snapshots/[^/]+/?$}, false]
138
+ ],
139
+ body: "*"
140
+ ),
141
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
142
+ uri_method: :post,
143
+ uri_template: "/v1/{resource}:testIamPermissions",
144
+ matches: [
145
+ ["resource", %r{^projects/[^/]+/schemas/[^/]+/?$}, false]
146
+ ],
147
+ body: "*"
148
+ )
149
+ ]
150
+ default_config
151
+ end
152
+ yield @configure if block_given?
153
+ @configure
154
+ end
155
+ end
156
+ end
157
+ end
158
+ end
@@ -0,0 +1,40 @@
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 "google/cloud/pubsub/v1/schema_service/rest"
20
+ require "google/cloud/pubsub/v1/topic_admin/rest"
21
+ require "google/cloud/pubsub/v1/subscription_admin/rest"
22
+ require "google/cloud/pubsub/v1/bindings_override"
23
+ require "google/cloud/pubsub/v1/version"
24
+
25
+ module Google
26
+ module Cloud
27
+ module PubSub
28
+ ##
29
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
30
+ #
31
+ # @example
32
+ #
33
+ # require "google/cloud/pubsub/v1/rest"
34
+ # client = ::Google::Cloud::PubSub::V1::SchemaService::Rest::Client.new
35
+ #
36
+ module V1
37
+ end
38
+ end
39
+ end
40
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 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.
@@ -1278,6 +1278,7 @@ module Google
1278
1278
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1279
1279
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1280
1280
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1281
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1281
1282
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1282
1283
  # trigger a retry.
1283
1284
  # @return [::Hash]
@@ -1361,6 +1362,7 @@ module Google
1361
1362
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1362
1363
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1363
1364
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1365
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1364
1366
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1365
1367
  # trigger a retry.
1366
1368
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 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 2020 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.