google-cloud-pubsub-v1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +2 -2
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +7 -7
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +40 -42
- data/lib/google/cloud/pubsub/v1/publisher/paths.rb +1 -1
- data/lib/google/cloud/pubsub/v1/schema_service.rb +2 -0
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +12 -10
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +68 -68
- data/lib/google/cloud/pubsub/v1/subscriber/paths.rb +1 -1
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/pubsub/v1/schema_services_pb.rb +0 -3
- data/proto_docs/google/pubsub/v1/pubsub.rb +0 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8596df73e0db38633aa53abfacd9a8e33c76d0b026405df2312df27522d1137d
|
4
|
+
data.tar.gz: 7eed1184e2ad305499825eb59a89984d44fce5a74fc4628d953b0ed809794187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6170a4f776e71c48610910a196a820cc82f3a46e316aa0c669f726cec2f582a17f212a6a524921e512eb9c606514d4cd722d2c924be45a90f4a442d1d1211794
|
7
|
+
data.tar.gz: 7473861389f67fa5d222f34b2b7b8f444668212d2db62354016c4f214effacf78e43422e0f8127a213d4482755367d336632ed2bca8e3b73222415307feb54ff
|
data/LICENSE.md
CHANGED
@@ -1,192 +1,190 @@
|
|
1
|
-
Apache License
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
same "printed page" as the copyright notice for easier
|
189
|
-
identification within third-party archives.
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
190
188
|
|
191
189
|
Copyright [yyyy] [name of copyright owner]
|
192
190
|
|
@@ -194,7 +192,7 @@ identification within third-party archives.
|
|
194
192
|
you may not use this file except in compliance with the License.
|
195
193
|
You may obtain a copy of the License at
|
196
194
|
|
197
|
-
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
198
196
|
|
199
197
|
Unless required by applicable law or agreed to in writing, software
|
200
198
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/README.md
CHANGED
@@ -71,11 +71,11 @@ end
|
|
71
71
|
|
72
72
|
## Supported Ruby Versions
|
73
73
|
|
74
|
-
This library is supported on Ruby 2.
|
74
|
+
This library is supported on Ruby 2.5+.
|
75
75
|
|
76
76
|
Google provides official support for Ruby versions that are actively supported
|
77
77
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
78
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
79
79
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
80
80
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
81
81
|
about the Ruby support schedule.
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
parent_config = while namespace.any?
|
83
83
|
parent_name = namespace.join "::"
|
84
84
|
parent_const = const_get parent_name
|
85
|
-
break parent_const.configure if parent_const
|
85
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
86
86
|
namespace.pop
|
87
87
|
end
|
88
88
|
default_config = Client::Configuration.new parent_config
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
154
154
|
@config.endpoint == Client.configure.endpoint &&
|
155
155
|
!@config.endpoint.split(".").first.include?("-")
|
156
|
-
credentials ||= Credentials.default scope:
|
156
|
+
credentials ||= Credentials.default scope: @config.scope,
|
157
157
|
enable_self_signed_jwt: enable_self_signed_jwt
|
158
158
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
159
159
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -487,7 +487,7 @@ module Google
|
|
487
487
|
config_attr :scope, nil, ::String, ::Array, nil
|
488
488
|
config_attr :lib_name, nil, ::String, nil
|
489
489
|
config_attr :lib_version, nil, ::String, nil
|
490
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
490
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
491
491
|
config_attr :interceptors, nil, ::Array, nil
|
492
492
|
config_attr :timeout, nil, ::Numeric, nil
|
493
493
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -508,7 +508,7 @@ module Google
|
|
508
508
|
def rpcs
|
509
509
|
@rpcs ||= begin
|
510
510
|
parent_rpcs = nil
|
511
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
511
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
512
512
|
Rpcs.new parent_rpcs
|
513
513
|
end
|
514
514
|
end
|
@@ -549,11 +549,11 @@ module Google
|
|
549
549
|
|
550
550
|
# @private
|
551
551
|
def initialize parent_rpcs = nil
|
552
|
-
set_iam_policy_config = parent_rpcs
|
552
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
553
553
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
554
|
-
get_iam_policy_config = parent_rpcs
|
554
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
555
555
|
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
556
|
-
test_iam_permissions_config = parent_rpcs
|
556
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
557
557
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
558
558
|
|
559
559
|
yield self if block_given?
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
parent_config = while namespace.any?
|
62
62
|
parent_name = namespace.join "::"
|
63
63
|
parent_const = const_get parent_name
|
64
|
-
break parent_const.configure if parent_const
|
64
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
65
|
namespace.pop
|
66
66
|
end
|
67
67
|
default_config = Client::Configuration.new parent_config
|
@@ -69,73 +69,73 @@ module Google
|
|
69
69
|
default_config.rpcs.create_topic.timeout = 60.0
|
70
70
|
default_config.rpcs.create_topic.retry_policy = {
|
71
71
|
initial_delay: 0.1,
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
max_delay: 60.0,
|
73
|
+
multiplier: 1.3,
|
74
|
+
retry_codes: [14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.update_topic.timeout = 60.0
|
78
78
|
default_config.rpcs.update_topic.retry_policy = {
|
79
79
|
initial_delay: 0.1,
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
max_delay: 60.0,
|
81
|
+
multiplier: 1.3,
|
82
|
+
retry_codes: [14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.publish.timeout = 60.0
|
86
86
|
default_config.rpcs.publish.retry_policy = {
|
87
87
|
initial_delay: 0.1,
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
max_delay: 60.0,
|
89
|
+
multiplier: 1.3,
|
90
|
+
retry_codes: [10, 1, 13, 8, 2, 14, 4]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.get_topic.timeout = 60.0
|
94
94
|
default_config.rpcs.get_topic.retry_policy = {
|
95
95
|
initial_delay: 0.1,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 60.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [2, 10, 14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.list_topics.timeout = 60.0
|
102
102
|
default_config.rpcs.list_topics.retry_policy = {
|
103
103
|
initial_delay: 0.1,
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
max_delay: 60.0,
|
105
|
+
multiplier: 1.3,
|
106
|
+
retry_codes: [2, 10, 14]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.list_topic_subscriptions.timeout = 60.0
|
110
110
|
default_config.rpcs.list_topic_subscriptions.retry_policy = {
|
111
111
|
initial_delay: 0.1,
|
112
|
-
|
113
|
-
|
114
|
-
|
112
|
+
max_delay: 60.0,
|
113
|
+
multiplier: 1.3,
|
114
|
+
retry_codes: [2, 10, 14]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.list_topic_snapshots.timeout = 60.0
|
118
118
|
default_config.rpcs.list_topic_snapshots.retry_policy = {
|
119
119
|
initial_delay: 0.1,
|
120
|
-
|
121
|
-
|
122
|
-
|
120
|
+
max_delay: 60.0,
|
121
|
+
multiplier: 1.3,
|
122
|
+
retry_codes: [2, 10, 14]
|
123
123
|
}
|
124
124
|
|
125
125
|
default_config.rpcs.delete_topic.timeout = 60.0
|
126
126
|
default_config.rpcs.delete_topic.retry_policy = {
|
127
127
|
initial_delay: 0.1,
|
128
|
-
|
129
|
-
|
130
|
-
|
128
|
+
max_delay: 60.0,
|
129
|
+
multiplier: 1.3,
|
130
|
+
retry_codes: [14]
|
131
131
|
}
|
132
132
|
|
133
133
|
default_config.rpcs.detach_subscription.timeout = 60.0
|
134
134
|
default_config.rpcs.detach_subscription.retry_policy = {
|
135
135
|
initial_delay: 0.1,
|
136
|
-
|
137
|
-
|
138
|
-
|
136
|
+
max_delay: 60.0,
|
137
|
+
multiplier: 1.3,
|
138
|
+
retry_codes: [14]
|
139
139
|
}
|
140
140
|
|
141
141
|
default_config
|
@@ -204,7 +204,7 @@ module Google
|
|
204
204
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
205
205
|
@config.endpoint == Client.configure.endpoint &&
|
206
206
|
!@config.endpoint.split(".").first.include?("-")
|
207
|
-
credentials ||= Credentials.default scope:
|
207
|
+
credentials ||= Credentials.default scope: @config.scope,
|
208
208
|
enable_self_signed_jwt: enable_self_signed_jwt
|
209
209
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
210
210
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -263,8 +263,6 @@ module Google
|
|
263
263
|
# The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
264
264
|
# @param schema_settings [::Google::Cloud::PubSub::V1::SchemaSettings, ::Hash]
|
265
265
|
# Settings for validating messages published against a schema.
|
266
|
-
#
|
267
|
-
# EXPERIMENTAL: Schema support is in development and may not work yet.
|
268
266
|
# @param satisfies_pzs [::Boolean]
|
269
267
|
# Reserved for future use. This field is set only in responses from the
|
270
268
|
# server; it is ignored if it is set in any requests.
|
@@ -981,7 +979,7 @@ module Google
|
|
981
979
|
config_attr :scope, nil, ::String, ::Array, nil
|
982
980
|
config_attr :lib_name, nil, ::String, nil
|
983
981
|
config_attr :lib_version, nil, ::String, nil
|
984
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
982
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
985
983
|
config_attr :interceptors, nil, ::Array, nil
|
986
984
|
config_attr :timeout, nil, ::Numeric, nil
|
987
985
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1002,7 +1000,7 @@ module Google
|
|
1002
1000
|
def rpcs
|
1003
1001
|
@rpcs ||= begin
|
1004
1002
|
parent_rpcs = nil
|
1005
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1003
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1006
1004
|
Rpcs.new parent_rpcs
|
1007
1005
|
end
|
1008
1006
|
end
|
@@ -1073,23 +1071,23 @@ module Google
|
|
1073
1071
|
|
1074
1072
|
# @private
|
1075
1073
|
def initialize parent_rpcs = nil
|
1076
|
-
create_topic_config = parent_rpcs
|
1074
|
+
create_topic_config = parent_rpcs.create_topic if parent_rpcs.respond_to? :create_topic
|
1077
1075
|
@create_topic = ::Gapic::Config::Method.new create_topic_config
|
1078
|
-
update_topic_config = parent_rpcs
|
1076
|
+
update_topic_config = parent_rpcs.update_topic if parent_rpcs.respond_to? :update_topic
|
1079
1077
|
@update_topic = ::Gapic::Config::Method.new update_topic_config
|
1080
|
-
publish_config = parent_rpcs
|
1078
|
+
publish_config = parent_rpcs.publish if parent_rpcs.respond_to? :publish
|
1081
1079
|
@publish = ::Gapic::Config::Method.new publish_config
|
1082
|
-
get_topic_config = parent_rpcs
|
1080
|
+
get_topic_config = parent_rpcs.get_topic if parent_rpcs.respond_to? :get_topic
|
1083
1081
|
@get_topic = ::Gapic::Config::Method.new get_topic_config
|
1084
|
-
list_topics_config = parent_rpcs
|
1082
|
+
list_topics_config = parent_rpcs.list_topics if parent_rpcs.respond_to? :list_topics
|
1085
1083
|
@list_topics = ::Gapic::Config::Method.new list_topics_config
|
1086
|
-
list_topic_subscriptions_config = parent_rpcs
|
1084
|
+
list_topic_subscriptions_config = parent_rpcs.list_topic_subscriptions if parent_rpcs.respond_to? :list_topic_subscriptions
|
1087
1085
|
@list_topic_subscriptions = ::Gapic::Config::Method.new list_topic_subscriptions_config
|
1088
|
-
list_topic_snapshots_config = parent_rpcs
|
1086
|
+
list_topic_snapshots_config = parent_rpcs.list_topic_snapshots if parent_rpcs.respond_to? :list_topic_snapshots
|
1089
1087
|
@list_topic_snapshots = ::Gapic::Config::Method.new list_topic_snapshots_config
|
1090
|
-
delete_topic_config = parent_rpcs
|
1088
|
+
delete_topic_config = parent_rpcs.delete_topic if parent_rpcs.respond_to? :delete_topic
|
1091
1089
|
@delete_topic = ::Gapic::Config::Method.new delete_topic_config
|
1092
|
-
detach_subscription_config = parent_rpcs
|
1090
|
+
detach_subscription_config = parent_rpcs.detach_subscription if parent_rpcs.respond_to? :detach_subscription
|
1093
1091
|
@detach_subscription = ::Gapic::Config::Method.new detach_subscription_config
|
1094
1092
|
|
1095
1093
|
yield self if block_given?
|
@@ -27,6 +27,8 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the SchemaService service.
|
29
29
|
#
|
30
|
+
# Service for doing schema-related operations.
|
31
|
+
#
|
30
32
|
class Client
|
31
33
|
include Paths
|
32
34
|
|
@@ -58,7 +60,7 @@ module Google
|
|
58
60
|
parent_config = while namespace.any?
|
59
61
|
parent_name = namespace.join "::"
|
60
62
|
parent_const = const_get parent_name
|
61
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
62
64
|
namespace.pop
|
63
65
|
end
|
64
66
|
default_config = Client::Configuration.new parent_config
|
@@ -129,7 +131,7 @@ module Google
|
|
129
131
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
130
132
|
@config.endpoint == Client.configure.endpoint &&
|
131
133
|
!@config.endpoint.split(".").first.include?("-")
|
132
|
-
credentials ||= Credentials.default scope:
|
134
|
+
credentials ||= Credentials.default scope: @config.scope,
|
133
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
134
136
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
config_attr :scope, nil, ::String, ::Array, nil
|
682
684
|
config_attr :lib_name, nil, ::String, nil
|
683
685
|
config_attr :lib_version, nil, ::String, nil
|
684
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
686
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
685
687
|
config_attr :interceptors, nil, ::Array, nil
|
686
688
|
config_attr :timeout, nil, ::Numeric, nil
|
687
689
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -702,7 +704,7 @@ module Google
|
|
702
704
|
def rpcs
|
703
705
|
@rpcs ||= begin
|
704
706
|
parent_rpcs = nil
|
705
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
707
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
706
708
|
Rpcs.new parent_rpcs
|
707
709
|
end
|
708
710
|
end
|
@@ -758,17 +760,17 @@ module Google
|
|
758
760
|
|
759
761
|
# @private
|
760
762
|
def initialize parent_rpcs = nil
|
761
|
-
create_schema_config = parent_rpcs
|
763
|
+
create_schema_config = parent_rpcs.create_schema if parent_rpcs.respond_to? :create_schema
|
762
764
|
@create_schema = ::Gapic::Config::Method.new create_schema_config
|
763
|
-
get_schema_config = parent_rpcs
|
765
|
+
get_schema_config = parent_rpcs.get_schema if parent_rpcs.respond_to? :get_schema
|
764
766
|
@get_schema = ::Gapic::Config::Method.new get_schema_config
|
765
|
-
list_schemas_config = parent_rpcs
|
767
|
+
list_schemas_config = parent_rpcs.list_schemas if parent_rpcs.respond_to? :list_schemas
|
766
768
|
@list_schemas = ::Gapic::Config::Method.new list_schemas_config
|
767
|
-
delete_schema_config = parent_rpcs
|
769
|
+
delete_schema_config = parent_rpcs.delete_schema if parent_rpcs.respond_to? :delete_schema
|
768
770
|
@delete_schema = ::Gapic::Config::Method.new delete_schema_config
|
769
|
-
validate_schema_config = parent_rpcs
|
771
|
+
validate_schema_config = parent_rpcs.validate_schema if parent_rpcs.respond_to? :validate_schema
|
770
772
|
@validate_schema = ::Gapic::Config::Method.new validate_schema_config
|
771
|
-
validate_message_config = parent_rpcs
|
773
|
+
validate_message_config = parent_rpcs.validate_message if parent_rpcs.respond_to? :validate_message
|
772
774
|
@validate_message = ::Gapic::Config::Method.new validate_message_config
|
773
775
|
|
774
776
|
yield self if block_given?
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
parent_config = while namespace.any?
|
63
63
|
parent_name = namespace.join "::"
|
64
64
|
parent_const = const_get parent_name
|
65
|
-
break parent_const.configure if parent_const
|
65
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
66
66
|
namespace.pop
|
67
67
|
end
|
68
68
|
default_config = Client::Configuration.new parent_config
|
@@ -70,129 +70,129 @@ module Google
|
|
70
70
|
default_config.rpcs.create_subscription.timeout = 60.0
|
71
71
|
default_config.rpcs.create_subscription.retry_policy = {
|
72
72
|
initial_delay: 0.1,
|
73
|
-
|
74
|
-
|
75
|
-
|
73
|
+
max_delay: 60.0,
|
74
|
+
multiplier: 1.3,
|
75
|
+
retry_codes: [2, 10, 14]
|
76
76
|
}
|
77
77
|
|
78
78
|
default_config.rpcs.get_subscription.timeout = 60.0
|
79
79
|
default_config.rpcs.get_subscription.retry_policy = {
|
80
80
|
initial_delay: 0.1,
|
81
|
-
|
82
|
-
|
83
|
-
|
81
|
+
max_delay: 60.0,
|
82
|
+
multiplier: 1.3,
|
83
|
+
retry_codes: [2, 10, 14]
|
84
84
|
}
|
85
85
|
|
86
86
|
default_config.rpcs.update_subscription.timeout = 60.0
|
87
87
|
default_config.rpcs.update_subscription.retry_policy = {
|
88
88
|
initial_delay: 0.1,
|
89
|
-
|
90
|
-
|
91
|
-
|
89
|
+
max_delay: 60.0,
|
90
|
+
multiplier: 1.3,
|
91
|
+
retry_codes: [14]
|
92
92
|
}
|
93
93
|
|
94
94
|
default_config.rpcs.list_subscriptions.timeout = 60.0
|
95
95
|
default_config.rpcs.list_subscriptions.retry_policy = {
|
96
96
|
initial_delay: 0.1,
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
max_delay: 60.0,
|
98
|
+
multiplier: 1.3,
|
99
|
+
retry_codes: [2, 10, 14]
|
100
100
|
}
|
101
101
|
|
102
102
|
default_config.rpcs.delete_subscription.timeout = 60.0
|
103
103
|
default_config.rpcs.delete_subscription.retry_policy = {
|
104
104
|
initial_delay: 0.1,
|
105
|
-
|
106
|
-
|
107
|
-
|
105
|
+
max_delay: 60.0,
|
106
|
+
multiplier: 1.3,
|
107
|
+
retry_codes: [14]
|
108
108
|
}
|
109
109
|
|
110
110
|
default_config.rpcs.modify_ack_deadline.timeout = 60.0
|
111
111
|
default_config.rpcs.modify_ack_deadline.retry_policy = {
|
112
112
|
initial_delay: 0.1,
|
113
|
-
|
114
|
-
|
115
|
-
|
113
|
+
max_delay: 60.0,
|
114
|
+
multiplier: 1.3,
|
115
|
+
retry_codes: [14]
|
116
116
|
}
|
117
117
|
|
118
118
|
default_config.rpcs.acknowledge.timeout = 60.0
|
119
119
|
default_config.rpcs.acknowledge.retry_policy = {
|
120
120
|
initial_delay: 0.1,
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
max_delay: 60.0,
|
122
|
+
multiplier: 1.3,
|
123
|
+
retry_codes: [14]
|
124
124
|
}
|
125
125
|
|
126
126
|
default_config.rpcs.pull.timeout = 60.0
|
127
127
|
default_config.rpcs.pull.retry_policy = {
|
128
128
|
initial_delay: 0.1,
|
129
|
-
|
130
|
-
|
131
|
-
|
129
|
+
max_delay: 60.0,
|
130
|
+
multiplier: 1.3,
|
131
|
+
retry_codes: [2, 10, 14]
|
132
132
|
}
|
133
133
|
|
134
134
|
default_config.rpcs.streaming_pull.timeout = 900.0
|
135
135
|
default_config.rpcs.streaming_pull.retry_policy = {
|
136
136
|
initial_delay: 0.1,
|
137
|
-
|
138
|
-
|
139
|
-
|
137
|
+
max_delay: 60.0,
|
138
|
+
multiplier: 1.3,
|
139
|
+
retry_codes: [4, 8, 10, 13, 14]
|
140
140
|
}
|
141
141
|
|
142
142
|
default_config.rpcs.modify_push_config.timeout = 60.0
|
143
143
|
default_config.rpcs.modify_push_config.retry_policy = {
|
144
144
|
initial_delay: 0.1,
|
145
|
-
|
146
|
-
|
147
|
-
|
145
|
+
max_delay: 60.0,
|
146
|
+
multiplier: 1.3,
|
147
|
+
retry_codes: [14]
|
148
148
|
}
|
149
149
|
|
150
150
|
default_config.rpcs.get_snapshot.timeout = 60.0
|
151
151
|
default_config.rpcs.get_snapshot.retry_policy = {
|
152
152
|
initial_delay: 0.1,
|
153
|
-
|
154
|
-
|
155
|
-
|
153
|
+
max_delay: 60.0,
|
154
|
+
multiplier: 1.3,
|
155
|
+
retry_codes: [2, 10, 14]
|
156
156
|
}
|
157
157
|
|
158
158
|
default_config.rpcs.list_snapshots.timeout = 60.0
|
159
159
|
default_config.rpcs.list_snapshots.retry_policy = {
|
160
160
|
initial_delay: 0.1,
|
161
|
-
|
162
|
-
|
163
|
-
|
161
|
+
max_delay: 60.0,
|
162
|
+
multiplier: 1.3,
|
163
|
+
retry_codes: [2, 10, 14]
|
164
164
|
}
|
165
165
|
|
166
166
|
default_config.rpcs.create_snapshot.timeout = 60.0
|
167
167
|
default_config.rpcs.create_snapshot.retry_policy = {
|
168
168
|
initial_delay: 0.1,
|
169
|
-
|
170
|
-
|
171
|
-
|
169
|
+
max_delay: 60.0,
|
170
|
+
multiplier: 1.3,
|
171
|
+
retry_codes: [14]
|
172
172
|
}
|
173
173
|
|
174
174
|
default_config.rpcs.update_snapshot.timeout = 60.0
|
175
175
|
default_config.rpcs.update_snapshot.retry_policy = {
|
176
176
|
initial_delay: 0.1,
|
177
|
-
|
178
|
-
|
179
|
-
|
177
|
+
max_delay: 60.0,
|
178
|
+
multiplier: 1.3,
|
179
|
+
retry_codes: [14]
|
180
180
|
}
|
181
181
|
|
182
182
|
default_config.rpcs.delete_snapshot.timeout = 60.0
|
183
183
|
default_config.rpcs.delete_snapshot.retry_policy = {
|
184
184
|
initial_delay: 0.1,
|
185
|
-
|
186
|
-
|
187
|
-
|
185
|
+
max_delay: 60.0,
|
186
|
+
multiplier: 1.3,
|
187
|
+
retry_codes: [14]
|
188
188
|
}
|
189
189
|
|
190
190
|
default_config.rpcs.seek.timeout = 60.0
|
191
191
|
default_config.rpcs.seek.retry_policy = {
|
192
192
|
initial_delay: 0.1,
|
193
|
-
|
194
|
-
|
195
|
-
|
193
|
+
max_delay: 60.0,
|
194
|
+
multiplier: 1.3,
|
195
|
+
retry_codes: [2, 10, 14]
|
196
196
|
}
|
197
197
|
|
198
198
|
default_config
|
@@ -261,7 +261,7 @@ module Google
|
|
261
261
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
262
262
|
@config.endpoint == Client.configure.endpoint &&
|
263
263
|
!@config.endpoint.split(".").first.include?("-")
|
264
|
-
credentials ||= Credentials.default scope:
|
264
|
+
credentials ||= Credentials.default scope: @config.scope,
|
265
265
|
enable_self_signed_jwt: enable_self_signed_jwt
|
266
266
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
267
267
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -1683,7 +1683,7 @@ module Google
|
|
1683
1683
|
config_attr :scope, nil, ::String, ::Array, nil
|
1684
1684
|
config_attr :lib_name, nil, ::String, nil
|
1685
1685
|
config_attr :lib_version, nil, ::String, nil
|
1686
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1686
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1687
1687
|
config_attr :interceptors, nil, ::Array, nil
|
1688
1688
|
config_attr :timeout, nil, ::Numeric, nil
|
1689
1689
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1704,7 +1704,7 @@ module Google
|
|
1704
1704
|
def rpcs
|
1705
1705
|
@rpcs ||= begin
|
1706
1706
|
parent_rpcs = nil
|
1707
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1707
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1708
1708
|
Rpcs.new parent_rpcs
|
1709
1709
|
end
|
1710
1710
|
end
|
@@ -1810,37 +1810,37 @@ module Google
|
|
1810
1810
|
|
1811
1811
|
# @private
|
1812
1812
|
def initialize parent_rpcs = nil
|
1813
|
-
create_subscription_config = parent_rpcs
|
1813
|
+
create_subscription_config = parent_rpcs.create_subscription if parent_rpcs.respond_to? :create_subscription
|
1814
1814
|
@create_subscription = ::Gapic::Config::Method.new create_subscription_config
|
1815
|
-
get_subscription_config = parent_rpcs
|
1815
|
+
get_subscription_config = parent_rpcs.get_subscription if parent_rpcs.respond_to? :get_subscription
|
1816
1816
|
@get_subscription = ::Gapic::Config::Method.new get_subscription_config
|
1817
|
-
update_subscription_config = parent_rpcs
|
1817
|
+
update_subscription_config = parent_rpcs.update_subscription if parent_rpcs.respond_to? :update_subscription
|
1818
1818
|
@update_subscription = ::Gapic::Config::Method.new update_subscription_config
|
1819
|
-
list_subscriptions_config = parent_rpcs
|
1819
|
+
list_subscriptions_config = parent_rpcs.list_subscriptions if parent_rpcs.respond_to? :list_subscriptions
|
1820
1820
|
@list_subscriptions = ::Gapic::Config::Method.new list_subscriptions_config
|
1821
|
-
delete_subscription_config = parent_rpcs
|
1821
|
+
delete_subscription_config = parent_rpcs.delete_subscription if parent_rpcs.respond_to? :delete_subscription
|
1822
1822
|
@delete_subscription = ::Gapic::Config::Method.new delete_subscription_config
|
1823
|
-
modify_ack_deadline_config = parent_rpcs
|
1823
|
+
modify_ack_deadline_config = parent_rpcs.modify_ack_deadline if parent_rpcs.respond_to? :modify_ack_deadline
|
1824
1824
|
@modify_ack_deadline = ::Gapic::Config::Method.new modify_ack_deadline_config
|
1825
|
-
acknowledge_config = parent_rpcs
|
1825
|
+
acknowledge_config = parent_rpcs.acknowledge if parent_rpcs.respond_to? :acknowledge
|
1826
1826
|
@acknowledge = ::Gapic::Config::Method.new acknowledge_config
|
1827
|
-
pull_config = parent_rpcs
|
1827
|
+
pull_config = parent_rpcs.pull if parent_rpcs.respond_to? :pull
|
1828
1828
|
@pull = ::Gapic::Config::Method.new pull_config
|
1829
|
-
streaming_pull_config = parent_rpcs
|
1829
|
+
streaming_pull_config = parent_rpcs.streaming_pull if parent_rpcs.respond_to? :streaming_pull
|
1830
1830
|
@streaming_pull = ::Gapic::Config::Method.new streaming_pull_config
|
1831
|
-
modify_push_config_config = parent_rpcs
|
1831
|
+
modify_push_config_config = parent_rpcs.modify_push_config if parent_rpcs.respond_to? :modify_push_config
|
1832
1832
|
@modify_push_config = ::Gapic::Config::Method.new modify_push_config_config
|
1833
|
-
get_snapshot_config = parent_rpcs
|
1833
|
+
get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
|
1834
1834
|
@get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
|
1835
|
-
list_snapshots_config = parent_rpcs
|
1835
|
+
list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
|
1836
1836
|
@list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
|
1837
|
-
create_snapshot_config = parent_rpcs
|
1837
|
+
create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
|
1838
1838
|
@create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
|
1839
|
-
update_snapshot_config = parent_rpcs
|
1839
|
+
update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
|
1840
1840
|
@update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
|
1841
|
-
delete_snapshot_config = parent_rpcs
|
1841
|
+
delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
|
1842
1842
|
@delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
|
1843
|
-
seek_config = parent_rpcs
|
1843
|
+
seek_config = parent_rpcs.seek if parent_rpcs.respond_to? :seek
|
1844
1844
|
@seek = ::Gapic::Config::Method.new seek_config
|
1845
1845
|
|
1846
1846
|
yield self if block_given?
|
@@ -76,8 +76,6 @@ module Google
|
|
76
76
|
# @!attribute [rw] schema_settings
|
77
77
|
# @return [::Google::Cloud::PubSub::V1::SchemaSettings]
|
78
78
|
# Settings for validating messages published against a schema.
|
79
|
-
#
|
80
|
-
# EXPERIMENTAL: Schema support is in development and may not work yet.
|
81
79
|
# @!attribute [rw] satisfies_pzs
|
82
80
|
# @return [::Boolean]
|
83
81
|
# Reserved for future use. This field is set only in responses from the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
67
|
+
version: 1.25.1
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
74
|
+
version: 1.25.1
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -233,14 +233,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
233
|
requirements:
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: '2.
|
236
|
+
version: '2.5'
|
237
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
238
|
requirements:
|
239
239
|
- - ">="
|
240
240
|
- !ruby/object:Gem::Version
|
241
241
|
version: '0'
|
242
242
|
requirements: []
|
243
|
-
rubygems_version: 3.2.
|
243
|
+
rubygems_version: 3.2.13
|
244
244
|
signing_key:
|
245
245
|
specification_version: 4
|
246
246
|
summary: API Client library for the Cloud Pub/Sub V1 API
|