google-cloud-pubsub-v1 1.16.0 → 1.18.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 +1 -2
  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 +1 -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 +7 -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 +4 -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 +6 -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 +140 -35
  42. data/proto_docs/google/pubsub/v1/schema.rb +18 -1
  43. metadata +16 -6
  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: 2174d82afb21a3099add823a4fef171044149f792c0bae0513175a4951a86166
4
- data.tar.gz: 5d157d95db581e66a3714fc300e54b9f5fe2b2420deb4f8fe18d2ef9e0d693e7
3
+ metadata.gz: 7817845f9c4c460b9d3f49ae88441307744181653a384557df4350f56575b11e
4
+ data.tar.gz: fc9408909bf47743508f4d31af3c919d17d67fb16e9316bf08b896d62b6c0d14
5
5
  SHA512:
6
- metadata.gz: 32e015dd978e653b7a396a9b0b2117775866dcb66119b37f4082145a8af468927fdad0a2f8e8efaef9dc510f54ecf851f6f4d5bc0be44c4b0e021b87a239f208
7
- data.tar.gz: beb15d81037a704c571a416d2d748ae383e52cc3c9a53cee22c5c473646d88d62abdb2d46507de0311c2999410bc5c3b57a1c918c21d51665c8220101ca503a6
6
+ metadata.gz: 29da1bc749bb9b1e4c2cd1dd60d39299ff3d6f53845b21ca020ab9022fb5286f647baf5d8f33a8de6d97e66674b1760ab84ac124e052e877e3ad0c346a0ed0a9
7
+ data.tar.gz: cc6e094495dc24b0ad35d63000cb63ab075ec891920dec14e69a3be378442a504e9eebb032c20e6c229103af31f53858535235eae57da447d5cae7522c4aa7f7
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
@@ -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.
@@ -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.