google-cloud-service_directory-v1 0.1.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 (38) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-service_directory-v1.rb +21 -0
  7. data/lib/google/cloud/service_directory/v1.rb +36 -0
  8. data/lib/google/cloud/service_directory/v1/lookup_service.rb +49 -0
  9. data/lib/google/cloud/service_directory/v1/lookup_service/client.rb +402 -0
  10. data/lib/google/cloud/service_directory/v1/lookup_service/credentials.rb +51 -0
  11. data/lib/google/cloud/service_directory/v1/lookup_service/paths.rb +54 -0
  12. data/lib/google/cloud/service_directory/v1/registration_service.rb +63 -0
  13. data/lib/google/cloud/service_directory/v1/registration_service/client.rb +1796 -0
  14. data/lib/google/cloud/service_directory/v1/registration_service/credentials.rb +51 -0
  15. data/lib/google/cloud/service_directory/v1/registration_service/paths.rb +113 -0
  16. data/lib/google/cloud/service_directory/v1/version.rb +28 -0
  17. data/lib/google/cloud/servicedirectory/v1/endpoint_pb.rb +28 -0
  18. data/lib/google/cloud/servicedirectory/v1/lookup_service_pb.rb +33 -0
  19. data/lib/google/cloud/servicedirectory/v1/lookup_service_services_pb.rb +47 -0
  20. data/lib/google/cloud/servicedirectory/v1/namespace_pb.rb +26 -0
  21. data/lib/google/cloud/servicedirectory/v1/registration_service_pb.rb +125 -0
  22. data/lib/google/cloud/servicedirectory/v1/registration_service_services_pb.rb +95 -0
  23. data/lib/google/cloud/servicedirectory/v1/service_pb.rb +28 -0
  24. data/proto_docs/README.md +4 -0
  25. data/proto_docs/google/api/field_behavior.rb +59 -0
  26. data/proto_docs/google/api/resource.rb +283 -0
  27. data/proto_docs/google/cloud/servicedirectory/v1/endpoint.rb +82 -0
  28. data/proto_docs/google/cloud/servicedirectory/v1/lookup_service.rb +71 -0
  29. data/proto_docs/google/cloud/servicedirectory/v1/namespace.rb +52 -0
  30. data/proto_docs/google/cloud/servicedirectory/v1/registration_service.rb +386 -0
  31. data/proto_docs/google/cloud/servicedirectory/v1/service.rb +76 -0
  32. data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
  33. data/proto_docs/google/iam/v1/options.rb +40 -0
  34. data/proto_docs/google/iam/v1/policy.rb +248 -0
  35. data/proto_docs/google/protobuf/empty.rb +36 -0
  36. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  37. data/proto_docs/google/type/expr.rb +52 -0
  38. metadata +239 -0
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/service_directory/v1"
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/service_directory/v1/lookup_service"
20
+ require "google/cloud/service_directory/v1/registration_service"
21
+ require "google/cloud/service_directory/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module ServiceDirectory
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # require "google/cloud/service_directory/v1"
30
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new
31
+ #
32
+ module V1
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/service_directory/v1/version"
24
+
25
+ require "google/cloud/service_directory/v1/lookup_service/credentials"
26
+ require "google/cloud/service_directory/v1/lookup_service/paths"
27
+ require "google/cloud/service_directory/v1/lookup_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module ServiceDirectory
32
+ module V1
33
+ ##
34
+ # Service Directory API for looking up service data at runtime.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/service_directory/v1/lookup_service"
39
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new
40
+ #
41
+ module LookupService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "lookup_service", "helpers.rb"
49
+ require "google/cloud/service_directory/v1/lookup_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,402 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/errors"
20
+ require "google/cloud/servicedirectory/v1/lookup_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module ServiceDirectory
25
+ module V1
26
+ module LookupService
27
+ ##
28
+ # Client for the LookupService service.
29
+ #
30
+ # Service Directory API for looking up service data at runtime.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :lookup_service_stub
37
+
38
+ ##
39
+ # Configure the LookupService Client class.
40
+ #
41
+ # See {::Google::Cloud::ServiceDirectory::V1::LookupService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all LookupService clients:
47
+ #
48
+ # ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "ServiceDirectory", "V1"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.timeout = 15.0
69
+ default_config.retry_policy = {
70
+ initial_delay: 1.0,
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 2]
74
+ }
75
+
76
+ default_config
77
+ end
78
+ yield @configure if block_given?
79
+ @configure
80
+ end
81
+
82
+ ##
83
+ # Configure the LookupService Client instance.
84
+ #
85
+ # The configuration is set to the derived mode, meaning that values can be changed,
86
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
+ # should be made on {Client.configure}.
88
+ #
89
+ # See {::Google::Cloud::ServiceDirectory::V1::LookupService::Client::Configuration}
90
+ # for a description of the configuration fields.
91
+ #
92
+ # @yield [config] Configure the Client client.
93
+ # @yieldparam config [Client::Configuration]
94
+ #
95
+ # @return [Client::Configuration]
96
+ #
97
+ def configure
98
+ yield @config if block_given?
99
+ @config
100
+ end
101
+
102
+ ##
103
+ # Create a new LookupService client object.
104
+ #
105
+ # ## Examples
106
+ #
107
+ # To create a new LookupService client with the default
108
+ # configuration:
109
+ #
110
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new
111
+ #
112
+ # To create a new LookupService client with a custom
113
+ # configuration:
114
+ #
115
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new do |config|
116
+ # config.timeout = 10.0
117
+ # end
118
+ #
119
+ # @yield [config] Configure the LookupService client.
120
+ # @yieldparam config [Client::Configuration]
121
+ #
122
+ def initialize
123
+ # These require statements are intentionally placed here to initialize
124
+ # the gRPC module only when it's required.
125
+ # See https://github.com/googleapis/toolkit/issues/446
126
+ require "gapic/grpc"
127
+ require "google/cloud/servicedirectory/v1/lookup_service_services_pb"
128
+
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ credentials ||= Credentials.default scope: @config.scope
138
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
139
+ credentials = Credentials.new credentials, scope: @config.scope
140
+ end
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
143
+
144
+ @lookup_service_stub = ::Gapic::ServiceStub.new(
145
+ ::Google::Cloud::ServiceDirectory::V1::LookupService::Stub,
146
+ credentials: credentials,
147
+ endpoint: @config.endpoint,
148
+ channel_args: @config.channel_args,
149
+ interceptors: @config.interceptors
150
+ )
151
+ end
152
+
153
+ # Service calls
154
+
155
+ ##
156
+ # Returns a {::Google::Cloud::ServiceDirectory::V1::Service service} and its
157
+ # associated endpoints.
158
+ # Resolving a service is not considered an active developer method.
159
+ #
160
+ # @overload resolve_service(request, options = nil)
161
+ # Pass arguments to `resolve_service` via a request object, either of type
162
+ # {::Google::Cloud::ServiceDirectory::V1::ResolveServiceRequest} or an equivalent Hash.
163
+ #
164
+ # @param request [::Google::Cloud::ServiceDirectory::V1::ResolveServiceRequest, ::Hash]
165
+ # A request object representing the call parameters. Required. To specify no
166
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
167
+ # @param options [::Gapic::CallOptions, ::Hash]
168
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
169
+ #
170
+ # @overload resolve_service(name: nil, max_endpoints: nil, endpoint_filter: nil)
171
+ # Pass arguments to `resolve_service` via keyword arguments. Note that at
172
+ # least one keyword argument is required. To specify no parameters, or to keep all
173
+ # the default parameter values, pass an empty Hash as a request object (see above).
174
+ #
175
+ # @param name [::String]
176
+ # Required. The name of the service to resolve.
177
+ # @param max_endpoints [::Integer]
178
+ # Optional. The maximum number of endpoints to return. Defaults to 25.
179
+ # Maximum is 100. If a value less than one is specified, the Default is used.
180
+ # If a value greater than the Maximum is specified, the Maximum is used.
181
+ # @param endpoint_filter [::String]
182
+ # Optional. The filter applied to the endpoints of the resolved service.
183
+ #
184
+ # General filter string syntax:
185
+ # <field> <operator> <value> (<logical connector>)
186
+ # <field> can be "name" or "metadata.<key>" for map field.
187
+ # <operator> can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is
188
+ # roughly the same as "=".
189
+ # <value> must be the same data type as the field.
190
+ # <logical connector> can be "AND, OR, NOT".
191
+ #
192
+ # Examples of valid filters:
193
+ # * "metadata.owner" returns Endpoints that have a label with the
194
+ # key "owner", this is the same as "metadata:owner"
195
+ # * "metadata.protocol=gRPC" returns Endpoints that have key/value
196
+ # "protocol=gRPC"
197
+ # * "metadata.owner!=sd AND metadata.foo=bar" returns
198
+ # Endpoints that have "owner" field in metadata with a value that is not
199
+ # "sd" AND have the key/value foo=bar.
200
+ #
201
+ # @yield [response, operation] Access the result along with the RPC operation
202
+ # @yieldparam response [::Google::Cloud::ServiceDirectory::V1::ResolveServiceResponse]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
204
+ #
205
+ # @return [::Google::Cloud::ServiceDirectory::V1::ResolveServiceResponse]
206
+ #
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
208
+ #
209
+ def resolve_service request, options = nil
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
+
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ServiceDirectory::V1::ResolveServiceRequest
213
+
214
+ # Converts hash and nil to an options object
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
+
217
+ # Customize the options with defaults
218
+ metadata = @config.rpcs.resolve_service.metadata.to_h
219
+
220
+ # Set x-goog-api-client and x-goog-user-project headers
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
223
+ gapic_version: ::Google::Cloud::ServiceDirectory::V1::VERSION
224
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
225
+
226
+ header_params = {
227
+ "name" => request.name
228
+ }
229
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
230
+ metadata[:"x-goog-request-params"] ||= request_params_header
231
+
232
+ options.apply_defaults timeout: @config.rpcs.resolve_service.timeout,
233
+ metadata: metadata,
234
+ retry_policy: @config.rpcs.resolve_service.retry_policy
235
+ options.apply_defaults metadata: @config.metadata,
236
+ retry_policy: @config.retry_policy
237
+
238
+ @lookup_service_stub.call_rpc :resolve_service, request, options: options do |response, operation|
239
+ yield response, operation if block_given?
240
+ return response
241
+ end
242
+ rescue ::GRPC::BadStatus => e
243
+ raise ::Google::Cloud::Error.from_error(e)
244
+ end
245
+
246
+ ##
247
+ # Configuration class for the LookupService API.
248
+ #
249
+ # This class represents the configuration for LookupService,
250
+ # providing control over timeouts, retry behavior, logging, transport
251
+ # parameters, and other low-level controls. Certain parameters can also be
252
+ # applied individually to specific RPCs. See
253
+ # {::Google::Cloud::ServiceDirectory::V1::LookupService::Client::Configuration::Rpcs}
254
+ # for a list of RPCs that can be configured independently.
255
+ #
256
+ # Configuration can be applied globally to all clients, or to a single client
257
+ # on construction.
258
+ #
259
+ # # Examples
260
+ #
261
+ # To modify the global config, setting the timeout for resolve_service
262
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
263
+ #
264
+ # ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.configure do |config|
265
+ # config.timeout = 10.0
266
+ # config.rpcs.resolve_service.timeout = 20.0
267
+ # end
268
+ #
269
+ # To apply the above configuration only to a new client:
270
+ #
271
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new do |config|
272
+ # config.timeout = 10.0
273
+ # config.rpcs.resolve_service.timeout = 20.0
274
+ # end
275
+ #
276
+ # @!attribute [rw] endpoint
277
+ # The hostname or hostname:port of the service endpoint.
278
+ # Defaults to `"servicedirectory.googleapis.com"`.
279
+ # @return [::String]
280
+ # @!attribute [rw] credentials
281
+ # Credentials to send with calls. You may provide any of the following types:
282
+ # * (`String`) The path to a service account key file in JSON format
283
+ # * (`Hash`) A service account key as a Hash
284
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
285
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
286
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
287
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
288
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
289
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
290
+ # * (`nil`) indicating no credentials
291
+ # @return [::Object]
292
+ # @!attribute [rw] scope
293
+ # The OAuth scopes
294
+ # @return [::Array<::String>]
295
+ # @!attribute [rw] lib_name
296
+ # The library name as recorded in instrumentation and logging
297
+ # @return [::String]
298
+ # @!attribute [rw] lib_version
299
+ # The library version as recorded in instrumentation and logging
300
+ # @return [::String]
301
+ # @!attribute [rw] channel_args
302
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
303
+ # `GRPC::Core::Channel` object is provided as the credential.
304
+ # @return [::Hash]
305
+ # @!attribute [rw] interceptors
306
+ # An array of interceptors that are run before calls are executed.
307
+ # @return [::Array<::GRPC::ClientInterceptor>]
308
+ # @!attribute [rw] timeout
309
+ # The call timeout in seconds.
310
+ # @return [::Numeric]
311
+ # @!attribute [rw] metadata
312
+ # Additional gRPC headers to be sent with the call.
313
+ # @return [::Hash{::Symbol=>::String}]
314
+ # @!attribute [rw] retry_policy
315
+ # The retry policy. The value is a hash with the following keys:
316
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
317
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
318
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
319
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
320
+ # trigger a retry.
321
+ # @return [::Hash]
322
+ # @!attribute [rw] quota_project
323
+ # A separate project against which to charge quota.
324
+ # @return [::String]
325
+ #
326
+ class Configuration
327
+ extend ::Gapic::Config
328
+
329
+ config_attr :endpoint, "servicedirectory.googleapis.com", ::String
330
+ config_attr :credentials, nil do |value|
331
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
332
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
333
+ allowed.any? { |klass| klass === value }
334
+ end
335
+ config_attr :scope, nil, ::String, ::Array, nil
336
+ config_attr :lib_name, nil, ::String, nil
337
+ config_attr :lib_version, nil, ::String, nil
338
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
339
+ config_attr :interceptors, nil, ::Array, nil
340
+ config_attr :timeout, nil, ::Numeric, nil
341
+ config_attr :metadata, nil, ::Hash, nil
342
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
343
+ config_attr :quota_project, nil, ::String, nil
344
+
345
+ # @private
346
+ def initialize parent_config = nil
347
+ @parent_config = parent_config unless parent_config.nil?
348
+
349
+ yield self if block_given?
350
+ end
351
+
352
+ ##
353
+ # Configurations for individual RPCs
354
+ # @return [Rpcs]
355
+ #
356
+ def rpcs
357
+ @rpcs ||= begin
358
+ parent_rpcs = nil
359
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
360
+ Rpcs.new parent_rpcs
361
+ end
362
+ end
363
+
364
+ ##
365
+ # Configuration RPC class for the LookupService API.
366
+ #
367
+ # Includes fields providing the configuration for each RPC in this service.
368
+ # Each configuration object is of type `Gapic::Config::Method` and includes
369
+ # the following configuration fields:
370
+ #
371
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
372
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
373
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
374
+ # include the following keys:
375
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
376
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
377
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
378
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
379
+ # trigger a retry.
380
+ #
381
+ class Rpcs
382
+ ##
383
+ # RPC-specific configuration for `resolve_service`
384
+ # @return [::Gapic::Config::Method]
385
+ #
386
+ attr_reader :resolve_service
387
+
388
+ # @private
389
+ def initialize parent_rpcs = nil
390
+ resolve_service_config = parent_rpcs&.resolve_service if parent_rpcs&.respond_to? :resolve_service
391
+ @resolve_service = ::Gapic::Config::Method.new resolve_service_config
392
+
393
+ yield self if block_given?
394
+ end
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end
400
+ end
401
+ end
402
+ end