google-cloud-api_hub-v1 0.a → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/api_hub/v1/api_hub/client.rb +4514 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +216 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +4251 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +2147 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub/rest.rb +53 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub.rb +55 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +906 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/credentials.rb +47 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb +88 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/client.rb +853 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub.rb +366 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest.rb +54 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +56 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +640 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_plugin/credentials.rb +47 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +52 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +601 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +248 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +53 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +55 -0
  26. data/lib/google/cloud/api_hub/v1/bindings_override.rb +102 -0
  27. data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +689 -0
  28. data/lib/google/cloud/api_hub/v1/host_project_registration_service/credentials.rb +47 -0
  29. data/lib/google/cloud/api_hub/v1/host_project_registration_service/paths.rb +83 -0
  30. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/client.rb +650 -0
  31. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/service_stub.rb +247 -0
  32. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest.rb +53 -0
  33. data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +55 -0
  34. data/lib/google/cloud/api_hub/v1/linting_service/client.rb +744 -0
  35. data/lib/google/cloud/api_hub/v1/linting_service/credentials.rb +47 -0
  36. data/lib/google/cloud/api_hub/v1/linting_service/paths.rb +75 -0
  37. data/lib/google/cloud/api_hub/v1/linting_service/rest/client.rb +698 -0
  38. data/lib/google/cloud/api_hub/v1/linting_service/rest/service_stub.rb +307 -0
  39. data/lib/google/cloud/api_hub/v1/linting_service/rest.rb +53 -0
  40. data/lib/google/cloud/api_hub/v1/linting_service.rb +55 -0
  41. data/lib/google/cloud/api_hub/v1/provisioning/client.rb +676 -0
  42. data/lib/google/cloud/api_hub/v1/provisioning/credentials.rb +47 -0
  43. data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +809 -0
  44. data/lib/google/cloud/api_hub/v1/provisioning/paths.rb +69 -0
  45. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +637 -0
  46. data/lib/google/cloud/api_hub/v1/provisioning/rest/operations.rb +902 -0
  47. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +247 -0
  48. data/lib/google/cloud/api_hub/v1/provisioning/rest.rb +54 -0
  49. data/lib/google/cloud/api_hub/v1/provisioning.rb +56 -0
  50. data/lib/google/cloud/api_hub/v1/rest.rb +44 -0
  51. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +885 -0
  52. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/credentials.rb +47 -0
  53. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/paths.rb +83 -0
  54. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/client.rb +832 -0
  55. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub.rb +365 -0
  56. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest.rb +53 -0
  57. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +55 -0
  58. data/lib/google/cloud/api_hub/v1/version.rb +7 -2
  59. data/lib/google/cloud/api_hub/v1.rb +51 -0
  60. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +102 -0
  61. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +288 -0
  62. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +92 -0
  63. data/lib/google/cloud/apihub/v1/host_project_registration_service_pb.rb +53 -0
  64. data/lib/google/cloud/apihub/v1/host_project_registration_service_services_pb.rb +53 -0
  65. data/lib/google/cloud/apihub/v1/linting_service_pb.rb +56 -0
  66. data/lib/google/cloud/apihub/v1/linting_service_services_pb.rb +53 -0
  67. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +53 -0
  68. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +51 -0
  69. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +53 -0
  70. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +50 -0
  71. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_pb.rb +57 -0
  72. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_services_pb.rb +55 -0
  73. data/lib/google-cloud-api_hub-v1.rb +21 -0
  74. data/proto_docs/README.md +4 -0
  75. data/proto_docs/google/api/client.rb +420 -0
  76. data/proto_docs/google/api/field_behavior.rb +85 -0
  77. data/proto_docs/google/api/launch_stage.rb +71 -0
  78. data/proto_docs/google/api/resource.rb +227 -0
  79. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +1317 -0
  80. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1296 -0
  81. data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +146 -0
  82. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +103 -0
  83. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +104 -0
  84. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +87 -0
  85. data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +182 -0
  86. data/proto_docs/google/longrunning/operations.rb +164 -0
  87. data/proto_docs/google/protobuf/any.rb +145 -0
  88. data/proto_docs/google/protobuf/duration.rb +98 -0
  89. data/proto_docs/google/protobuf/empty.rb +34 -0
  90. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  91. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  92. data/proto_docs/google/rpc/status.rb +48 -0
  93. metadata +155 -10
@@ -0,0 +1,853 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/apihub/v1/apihub_service_pb"
21
+ require "google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module ApiHub
27
+ module V1
28
+ module ApiHubDependencies
29
+ module Rest
30
+ ##
31
+ # REST client for the ApiHubDependencies service.
32
+ #
33
+ # This service provides methods for various operations related to a
34
+ # {::Google::Cloud::ApiHub::V1::Dependency Dependency} in the API hub.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "apihub.$UNIVERSE_DOMAIN$"
42
+
43
+ include Paths
44
+
45
+ # @private
46
+ attr_reader :api_hub_dependencies_stub
47
+
48
+ ##
49
+ # Configure the ApiHubDependencies Client class.
50
+ #
51
+ # See {::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client::Configuration}
52
+ # for a description of the configuration fields.
53
+ #
54
+ # @example
55
+ #
56
+ # # Modify the configuration for all ApiHubDependencies clients
57
+ # ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.configure do |config|
58
+ # config.timeout = 10.0
59
+ # end
60
+ #
61
+ # @yield [config] Configure the Client client.
62
+ # @yieldparam config [Client::Configuration]
63
+ #
64
+ # @return [Client::Configuration]
65
+ #
66
+ def self.configure
67
+ @configure ||= begin
68
+ namespace = ["Google", "Cloud", "ApiHub", "V1"]
69
+ parent_config = while namespace.any?
70
+ parent_name = namespace.join "::"
71
+ parent_const = const_get parent_name
72
+ break parent_const.configure if parent_const.respond_to? :configure
73
+ namespace.pop
74
+ end
75
+ default_config = Client::Configuration.new parent_config
76
+
77
+ default_config.rpcs.create_dependency.timeout = 60.0
78
+
79
+ default_config.rpcs.get_dependency.timeout = 60.0
80
+ default_config.rpcs.get_dependency.retry_policy = {
81
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
82
+ }
83
+
84
+ default_config.rpcs.update_dependency.timeout = 60.0
85
+
86
+ default_config.rpcs.delete_dependency.timeout = 60.0
87
+
88
+ default_config.rpcs.list_dependencies.timeout = 60.0
89
+ default_config.rpcs.list_dependencies.retry_policy = {
90
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
91
+ }
92
+
93
+ default_config
94
+ end
95
+ yield @configure if block_given?
96
+ @configure
97
+ end
98
+
99
+ ##
100
+ # Configure the ApiHubDependencies Client instance.
101
+ #
102
+ # The configuration is set to the derived mode, meaning that values can be changed,
103
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
104
+ # should be made on {Client.configure}.
105
+ #
106
+ # See {::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client::Configuration}
107
+ # for a description of the configuration fields.
108
+ #
109
+ # @yield [config] Configure the Client client.
110
+ # @yieldparam config [Client::Configuration]
111
+ #
112
+ # @return [Client::Configuration]
113
+ #
114
+ def configure
115
+ yield @config if block_given?
116
+ @config
117
+ end
118
+
119
+ ##
120
+ # The effective universe domain
121
+ #
122
+ # @return [String]
123
+ #
124
+ def universe_domain
125
+ @api_hub_dependencies_stub.universe_domain
126
+ end
127
+
128
+ ##
129
+ # Create a new ApiHubDependencies REST client object.
130
+ #
131
+ # @example
132
+ #
133
+ # # Create a client using the default configuration
134
+ # client = ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
135
+ #
136
+ # # Create a client using a custom configuration
137
+ # client = ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new do |config|
138
+ # config.timeout = 10.0
139
+ # end
140
+ #
141
+ # @yield [config] Configure the ApiHubDependencies client.
142
+ # @yieldparam config [Client::Configuration]
143
+ #
144
+ def initialize
145
+ # Create the configuration object
146
+ @config = Configuration.new Client.configure
147
+
148
+ # Yield the configuration if needed
149
+ yield @config if block_given?
150
+
151
+ # Create credentials
152
+ credentials = @config.credentials
153
+ # Use self-signed JWT if the endpoint is unchanged from default,
154
+ # but only if the default endpoint does not have a region prefix.
155
+ enable_self_signed_jwt = @config.endpoint.nil? ||
156
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
157
+ !@config.endpoint.split(".").first.include?("-"))
158
+ credentials ||= Credentials.default scope: @config.scope,
159
+ enable_self_signed_jwt: enable_self_signed_jwt
160
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
161
+ credentials = Credentials.new credentials, scope: @config.scope
162
+ end
163
+
164
+ @quota_project_id = @config.quota_project
165
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
166
+
167
+ @api_hub_dependencies_stub = ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::ServiceStub.new(
168
+ endpoint: @config.endpoint,
169
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
170
+ universe_domain: @config.universe_domain,
171
+ credentials: credentials
172
+ )
173
+
174
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @api_hub_dependencies_stub.endpoint
178
+ config.universe_domain = @api_hub_dependencies_stub.universe_domain
179
+ config.bindings_override = @config.bindings_override
180
+ end
181
+ end
182
+
183
+ ##
184
+ # Get the associated client for mix-in of the Locations.
185
+ #
186
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
187
+ #
188
+ attr_reader :location_client
189
+
190
+ # Service calls
191
+
192
+ ##
193
+ # Create a dependency between two entities in the API hub.
194
+ #
195
+ # @overload create_dependency(request, options = nil)
196
+ # Pass arguments to `create_dependency` via a request object, either of type
197
+ # {::Google::Cloud::ApiHub::V1::CreateDependencyRequest} or an equivalent Hash.
198
+ #
199
+ # @param request [::Google::Cloud::ApiHub::V1::CreateDependencyRequest, ::Hash]
200
+ # A request object representing the call parameters. Required. To specify no
201
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
202
+ # @param options [::Gapic::CallOptions, ::Hash]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @overload create_dependency(parent: nil, dependency_id: nil, dependency: nil)
206
+ # Pass arguments to `create_dependency` via keyword arguments. Note that at
207
+ # least one keyword argument is required. To specify no parameters, or to keep all
208
+ # the default parameter values, pass an empty Hash as a request object (see above).
209
+ #
210
+ # @param parent [::String]
211
+ # Required. The parent resource for the dependency resource.
212
+ # Format: `projects/{project}/locations/{location}`
213
+ # @param dependency_id [::String]
214
+ # Optional. The ID to use for the dependency resource, which will become the
215
+ # final component of the dependency's resource name. This field is optional.
216
+ # * If provided, the same will be used. The service will throw an error if
217
+ # duplicate id is provided by the client.
218
+ # * If not provided, a system generated id will be used.
219
+ #
220
+ # This value should be 4-500 characters, and valid characters
221
+ # are `[a-z][A-Z][0-9]-_`.
222
+ # @param dependency [::Google::Cloud::ApiHub::V1::Dependency, ::Hash]
223
+ # Required. The dependency resource to create.
224
+ # @yield [result, operation] Access the result along with the TransportOperation object
225
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::Dependency]
226
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
227
+ #
228
+ # @return [::Google::Cloud::ApiHub::V1::Dependency]
229
+ #
230
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
231
+ #
232
+ # @example Basic example
233
+ # require "google/cloud/api_hub/v1"
234
+ #
235
+ # # Create a client object. The client can be reused for multiple calls.
236
+ # client = Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
237
+ #
238
+ # # Create a request. To set request fields, pass in keyword arguments.
239
+ # request = Google::Cloud::ApiHub::V1::CreateDependencyRequest.new
240
+ #
241
+ # # Call the create_dependency method.
242
+ # result = client.create_dependency request
243
+ #
244
+ # # The returned object is of type Google::Cloud::ApiHub::V1::Dependency.
245
+ # p result
246
+ #
247
+ def create_dependency request, options = nil
248
+ raise ::ArgumentError, "request must be provided" if request.nil?
249
+
250
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::CreateDependencyRequest
251
+
252
+ # Converts hash and nil to an options object
253
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
254
+
255
+ # Customize the options with defaults
256
+ call_metadata = @config.rpcs.create_dependency.metadata.to_h
257
+
258
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
261
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
262
+ transports_version_send: [:rest]
263
+
264
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
265
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
266
+
267
+ options.apply_defaults timeout: @config.rpcs.create_dependency.timeout,
268
+ metadata: call_metadata,
269
+ retry_policy: @config.rpcs.create_dependency.retry_policy
270
+
271
+ options.apply_defaults timeout: @config.timeout,
272
+ metadata: @config.metadata,
273
+ retry_policy: @config.retry_policy
274
+
275
+ @api_hub_dependencies_stub.create_dependency request, options do |result, operation|
276
+ yield result, operation if block_given?
277
+ return result
278
+ end
279
+ rescue ::Gapic::Rest::Error => e
280
+ raise ::Google::Cloud::Error.from_error(e)
281
+ end
282
+
283
+ ##
284
+ # Get details about a dependency resource in the API hub.
285
+ #
286
+ # @overload get_dependency(request, options = nil)
287
+ # Pass arguments to `get_dependency` via a request object, either of type
288
+ # {::Google::Cloud::ApiHub::V1::GetDependencyRequest} or an equivalent Hash.
289
+ #
290
+ # @param request [::Google::Cloud::ApiHub::V1::GetDependencyRequest, ::Hash]
291
+ # A request object representing the call parameters. Required. To specify no
292
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
293
+ # @param options [::Gapic::CallOptions, ::Hash]
294
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
295
+ #
296
+ # @overload get_dependency(name: nil)
297
+ # Pass arguments to `get_dependency` via keyword arguments. Note that at
298
+ # least one keyword argument is required. To specify no parameters, or to keep all
299
+ # the default parameter values, pass an empty Hash as a request object (see above).
300
+ #
301
+ # @param name [::String]
302
+ # Required. The name of the dependency resource to retrieve.
303
+ # Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
304
+ # @yield [result, operation] Access the result along with the TransportOperation object
305
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::Dependency]
306
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
307
+ #
308
+ # @return [::Google::Cloud::ApiHub::V1::Dependency]
309
+ #
310
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
311
+ #
312
+ # @example Basic example
313
+ # require "google/cloud/api_hub/v1"
314
+ #
315
+ # # Create a client object. The client can be reused for multiple calls.
316
+ # client = Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
317
+ #
318
+ # # Create a request. To set request fields, pass in keyword arguments.
319
+ # request = Google::Cloud::ApiHub::V1::GetDependencyRequest.new
320
+ #
321
+ # # Call the get_dependency method.
322
+ # result = client.get_dependency request
323
+ #
324
+ # # The returned object is of type Google::Cloud::ApiHub::V1::Dependency.
325
+ # p result
326
+ #
327
+ def get_dependency request, options = nil
328
+ raise ::ArgumentError, "request must be provided" if request.nil?
329
+
330
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::GetDependencyRequest
331
+
332
+ # Converts hash and nil to an options object
333
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
334
+
335
+ # Customize the options with defaults
336
+ call_metadata = @config.rpcs.get_dependency.metadata.to_h
337
+
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
341
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
342
+ transports_version_send: [:rest]
343
+
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
+
347
+ options.apply_defaults timeout: @config.rpcs.get_dependency.timeout,
348
+ metadata: call_metadata,
349
+ retry_policy: @config.rpcs.get_dependency.retry_policy
350
+
351
+ options.apply_defaults timeout: @config.timeout,
352
+ metadata: @config.metadata,
353
+ retry_policy: @config.retry_policy
354
+
355
+ @api_hub_dependencies_stub.get_dependency request, options do |result, operation|
356
+ yield result, operation if block_given?
357
+ return result
358
+ end
359
+ rescue ::Gapic::Rest::Error => e
360
+ raise ::Google::Cloud::Error.from_error(e)
361
+ end
362
+
363
+ ##
364
+ # Update a dependency based on the
365
+ # {::Google::Cloud::ApiHub::V1::UpdateDependencyRequest#update_mask update_mask}
366
+ # provided in the request.
367
+ #
368
+ # The following fields in the {::Google::Cloud::ApiHub::V1::Dependency dependency}
369
+ # can be updated:
370
+ # * {::Google::Cloud::ApiHub::V1::Dependency#description description}
371
+ #
372
+ # @overload update_dependency(request, options = nil)
373
+ # Pass arguments to `update_dependency` via a request object, either of type
374
+ # {::Google::Cloud::ApiHub::V1::UpdateDependencyRequest} or an equivalent Hash.
375
+ #
376
+ # @param request [::Google::Cloud::ApiHub::V1::UpdateDependencyRequest, ::Hash]
377
+ # A request object representing the call parameters. Required. To specify no
378
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
379
+ # @param options [::Gapic::CallOptions, ::Hash]
380
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
381
+ #
382
+ # @overload update_dependency(dependency: nil, update_mask: nil)
383
+ # Pass arguments to `update_dependency` via keyword arguments. Note that at
384
+ # least one keyword argument is required. To specify no parameters, or to keep all
385
+ # the default parameter values, pass an empty Hash as a request object (see above).
386
+ #
387
+ # @param dependency [::Google::Cloud::ApiHub::V1::Dependency, ::Hash]
388
+ # Required. The dependency resource to update.
389
+ #
390
+ # The dependency's `name` field is used to identify the dependency to update.
391
+ # Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
392
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
393
+ # Required. The list of fields to update.
394
+ # @yield [result, operation] Access the result along with the TransportOperation object
395
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::Dependency]
396
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
397
+ #
398
+ # @return [::Google::Cloud::ApiHub::V1::Dependency]
399
+ #
400
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
401
+ #
402
+ # @example Basic example
403
+ # require "google/cloud/api_hub/v1"
404
+ #
405
+ # # Create a client object. The client can be reused for multiple calls.
406
+ # client = Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
407
+ #
408
+ # # Create a request. To set request fields, pass in keyword arguments.
409
+ # request = Google::Cloud::ApiHub::V1::UpdateDependencyRequest.new
410
+ #
411
+ # # Call the update_dependency method.
412
+ # result = client.update_dependency request
413
+ #
414
+ # # The returned object is of type Google::Cloud::ApiHub::V1::Dependency.
415
+ # p result
416
+ #
417
+ def update_dependency request, options = nil
418
+ raise ::ArgumentError, "request must be provided" if request.nil?
419
+
420
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::UpdateDependencyRequest
421
+
422
+ # Converts hash and nil to an options object
423
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
424
+
425
+ # Customize the options with defaults
426
+ call_metadata = @config.rpcs.update_dependency.metadata.to_h
427
+
428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
429
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
431
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
432
+ transports_version_send: [:rest]
433
+
434
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
435
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
+
437
+ options.apply_defaults timeout: @config.rpcs.update_dependency.timeout,
438
+ metadata: call_metadata,
439
+ retry_policy: @config.rpcs.update_dependency.retry_policy
440
+
441
+ options.apply_defaults timeout: @config.timeout,
442
+ metadata: @config.metadata,
443
+ retry_policy: @config.retry_policy
444
+
445
+ @api_hub_dependencies_stub.update_dependency request, options do |result, operation|
446
+ yield result, operation if block_given?
447
+ return result
448
+ end
449
+ rescue ::Gapic::Rest::Error => e
450
+ raise ::Google::Cloud::Error.from_error(e)
451
+ end
452
+
453
+ ##
454
+ # Delete the dependency resource.
455
+ #
456
+ # @overload delete_dependency(request, options = nil)
457
+ # Pass arguments to `delete_dependency` via a request object, either of type
458
+ # {::Google::Cloud::ApiHub::V1::DeleteDependencyRequest} or an equivalent Hash.
459
+ #
460
+ # @param request [::Google::Cloud::ApiHub::V1::DeleteDependencyRequest, ::Hash]
461
+ # A request object representing the call parameters. Required. To specify no
462
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
463
+ # @param options [::Gapic::CallOptions, ::Hash]
464
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
465
+ #
466
+ # @overload delete_dependency(name: nil)
467
+ # Pass arguments to `delete_dependency` via keyword arguments. Note that at
468
+ # least one keyword argument is required. To specify no parameters, or to keep all
469
+ # the default parameter values, pass an empty Hash as a request object (see above).
470
+ #
471
+ # @param name [::String]
472
+ # Required. The name of the dependency resource to delete.
473
+ # Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
474
+ # @yield [result, operation] Access the result along with the TransportOperation object
475
+ # @yieldparam result [::Google::Protobuf::Empty]
476
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
477
+ #
478
+ # @return [::Google::Protobuf::Empty]
479
+ #
480
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
481
+ #
482
+ # @example Basic example
483
+ # require "google/cloud/api_hub/v1"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::ApiHub::V1::DeleteDependencyRequest.new
490
+ #
491
+ # # Call the delete_dependency method.
492
+ # result = client.delete_dependency request
493
+ #
494
+ # # The returned object is of type Google::Protobuf::Empty.
495
+ # p result
496
+ #
497
+ def delete_dependency request, options = nil
498
+ raise ::ArgumentError, "request must be provided" if request.nil?
499
+
500
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::DeleteDependencyRequest
501
+
502
+ # Converts hash and nil to an options object
503
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
504
+
505
+ # Customize the options with defaults
506
+ call_metadata = @config.rpcs.delete_dependency.metadata.to_h
507
+
508
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
509
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
510
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
511
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
512
+ transports_version_send: [:rest]
513
+
514
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
+
517
+ options.apply_defaults timeout: @config.rpcs.delete_dependency.timeout,
518
+ metadata: call_metadata,
519
+ retry_policy: @config.rpcs.delete_dependency.retry_policy
520
+
521
+ options.apply_defaults timeout: @config.timeout,
522
+ metadata: @config.metadata,
523
+ retry_policy: @config.retry_policy
524
+
525
+ @api_hub_dependencies_stub.delete_dependency request, options do |result, operation|
526
+ yield result, operation if block_given?
527
+ return result
528
+ end
529
+ rescue ::Gapic::Rest::Error => e
530
+ raise ::Google::Cloud::Error.from_error(e)
531
+ end
532
+
533
+ ##
534
+ # List dependencies based on the provided filter and pagination parameters.
535
+ #
536
+ # @overload list_dependencies(request, options = nil)
537
+ # Pass arguments to `list_dependencies` via a request object, either of type
538
+ # {::Google::Cloud::ApiHub::V1::ListDependenciesRequest} or an equivalent Hash.
539
+ #
540
+ # @param request [::Google::Cloud::ApiHub::V1::ListDependenciesRequest, ::Hash]
541
+ # A request object representing the call parameters. Required. To specify no
542
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
543
+ # @param options [::Gapic::CallOptions, ::Hash]
544
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
545
+ #
546
+ # @overload list_dependencies(parent: nil, filter: nil, page_size: nil, page_token: nil)
547
+ # Pass arguments to `list_dependencies` via keyword arguments. Note that at
548
+ # least one keyword argument is required. To specify no parameters, or to keep all
549
+ # the default parameter values, pass an empty Hash as a request object (see above).
550
+ #
551
+ # @param parent [::String]
552
+ # Required. The parent which owns this collection of dependency resources.
553
+ # Format: `projects/{project}/locations/{location}`
554
+ # @param filter [::String]
555
+ # Optional. An expression that filters the list of Dependencies.
556
+ #
557
+ # A filter expression consists of a field name, a comparison operator, and
558
+ # a value for filtering. The value must be a string. Allowed comparison
559
+ # operator is `=`. Filters are not case sensitive.
560
+ #
561
+ # The following fields in the `Dependency` are eligible for filtering:
562
+ #
563
+ # * `consumer.operation_resource_name` - The operation resource name for
564
+ # the consumer entity involved in a dependency. Allowed comparison
565
+ # operators: `=`.
566
+ # * `consumer.external_api_resource_name` - The external api resource name
567
+ # for the consumer entity involved in a dependency. Allowed comparison
568
+ # operators: `=`.
569
+ # * `supplier.operation_resource_name` - The operation resource name for
570
+ # the supplier entity involved in a dependency. Allowed comparison
571
+ # operators: `=`.
572
+ # * `supplier.external_api_resource_name` - The external api resource name
573
+ # for the supplier entity involved in a dependency. Allowed comparison
574
+ # operators: `=`.
575
+ #
576
+ # Expressions are combined with either `AND` logic operator or `OR` logical
577
+ # operator but not both of them together i.e. only one of the `AND` or `OR`
578
+ # operator can be used throughout the filter string and both the operators
579
+ # cannot be used together. No other logical operators are supported. At most
580
+ # three filter fields are allowed in the filter string and if provided
581
+ # more than that then `INVALID_ARGUMENT` error is returned by the API.
582
+ #
583
+ # For example, `consumer.operation_resource_name =
584
+ # \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR
585
+ # supplier.operation_resource_name =
586
+ # \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The
587
+ # dependencies with either consumer or supplier operation resource name as
588
+ # _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_.
589
+ # @param page_size [::Integer]
590
+ # Optional. The maximum number of dependency resources to return. The service
591
+ # may return fewer than this value. If unspecified, at most 50 dependencies
592
+ # will be returned. The maximum value is 1000; values above 1000 will be
593
+ # coerced to 1000.
594
+ # @param page_token [::String]
595
+ # Optional. A page token, received from a previous `ListDependencies` call.
596
+ # Provide this to retrieve the subsequent page.
597
+ #
598
+ # When paginating, all other parameters provided to `ListDependencies` must
599
+ # match the call that provided the page token.
600
+ # @yield [result, operation] Access the result along with the TransportOperation object
601
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiHub::V1::Dependency>]
602
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
603
+ #
604
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiHub::V1::Dependency>]
605
+ #
606
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
607
+ #
608
+ # @example Basic example
609
+ # require "google/cloud/api_hub/v1"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::ApiHub::V1::ListDependenciesRequest.new
616
+ #
617
+ # # Call the list_dependencies method.
618
+ # result = client.list_dependencies request
619
+ #
620
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
621
+ # # over elements, and API calls will be issued to fetch pages as needed.
622
+ # result.each do |item|
623
+ # # Each element is of type ::Google::Cloud::ApiHub::V1::Dependency.
624
+ # p item
625
+ # end
626
+ #
627
+ def list_dependencies request, options = nil
628
+ raise ::ArgumentError, "request must be provided" if request.nil?
629
+
630
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::ListDependenciesRequest
631
+
632
+ # Converts hash and nil to an options object
633
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
634
+
635
+ # Customize the options with defaults
636
+ call_metadata = @config.rpcs.list_dependencies.metadata.to_h
637
+
638
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
639
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
641
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
642
+ transports_version_send: [:rest]
643
+
644
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
645
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
+
647
+ options.apply_defaults timeout: @config.rpcs.list_dependencies.timeout,
648
+ metadata: call_metadata,
649
+ retry_policy: @config.rpcs.list_dependencies.retry_policy
650
+
651
+ options.apply_defaults timeout: @config.timeout,
652
+ metadata: @config.metadata,
653
+ retry_policy: @config.retry_policy
654
+
655
+ @api_hub_dependencies_stub.list_dependencies request, options do |result, operation|
656
+ result = ::Gapic::Rest::PagedEnumerable.new @api_hub_dependencies_stub, :list_dependencies, "dependencies", request, result, options
657
+ yield result, operation if block_given?
658
+ return result
659
+ end
660
+ rescue ::Gapic::Rest::Error => e
661
+ raise ::Google::Cloud::Error.from_error(e)
662
+ end
663
+
664
+ ##
665
+ # Configuration class for the ApiHubDependencies REST API.
666
+ #
667
+ # This class represents the configuration for ApiHubDependencies REST,
668
+ # providing control over timeouts, retry behavior, logging, transport
669
+ # parameters, and other low-level controls. Certain parameters can also be
670
+ # applied individually to specific RPCs. See
671
+ # {::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client::Configuration::Rpcs}
672
+ # for a list of RPCs that can be configured independently.
673
+ #
674
+ # Configuration can be applied globally to all clients, or to a single client
675
+ # on construction.
676
+ #
677
+ # @example
678
+ #
679
+ # # Modify the global config, setting the timeout for
680
+ # # create_dependency to 20 seconds,
681
+ # # and all remaining timeouts to 10 seconds.
682
+ # ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.configure do |config|
683
+ # config.timeout = 10.0
684
+ # config.rpcs.create_dependency.timeout = 20.0
685
+ # end
686
+ #
687
+ # # Apply the above configuration only to a new client.
688
+ # client = ::Google::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Client.new do |config|
689
+ # config.timeout = 10.0
690
+ # config.rpcs.create_dependency.timeout = 20.0
691
+ # end
692
+ #
693
+ # @!attribute [rw] endpoint
694
+ # A custom service endpoint, as a hostname or hostname:port. The default is
695
+ # nil, indicating to use the default endpoint in the current universe domain.
696
+ # @return [::String,nil]
697
+ # @!attribute [rw] credentials
698
+ # Credentials to send with calls. You may provide any of the following types:
699
+ # * (`String`) The path to a service account key file in JSON format
700
+ # * (`Hash`) A service account key as a Hash
701
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
702
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
703
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
704
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
705
+ # * (`nil`) indicating no credentials
706
+ # @return [::Object]
707
+ # @!attribute [rw] scope
708
+ # The OAuth scopes
709
+ # @return [::Array<::String>]
710
+ # @!attribute [rw] lib_name
711
+ # The library name as recorded in instrumentation and logging
712
+ # @return [::String]
713
+ # @!attribute [rw] lib_version
714
+ # The library version as recorded in instrumentation and logging
715
+ # @return [::String]
716
+ # @!attribute [rw] timeout
717
+ # The call timeout in seconds.
718
+ # @return [::Numeric]
719
+ # @!attribute [rw] metadata
720
+ # Additional headers to be sent with the call.
721
+ # @return [::Hash{::Symbol=>::String}]
722
+ # @!attribute [rw] retry_policy
723
+ # The retry policy. The value is a hash with the following keys:
724
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
725
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
726
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
727
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
728
+ # trigger a retry.
729
+ # @return [::Hash]
730
+ # @!attribute [rw] quota_project
731
+ # A separate project against which to charge quota.
732
+ # @return [::String]
733
+ # @!attribute [rw] universe_domain
734
+ # The universe domain within which to make requests. This determines the
735
+ # default endpoint URL. The default value of nil uses the environment
736
+ # universe (usually the default "googleapis.com" universe).
737
+ # @return [::String,nil]
738
+ #
739
+ class Configuration
740
+ extend ::Gapic::Config
741
+
742
+ # @private
743
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
744
+ DEFAULT_ENDPOINT = "apihub.googleapis.com"
745
+
746
+ config_attr :endpoint, nil, ::String, nil
747
+ config_attr :credentials, nil do |value|
748
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
749
+ allowed.any? { |klass| klass === value }
750
+ end
751
+ config_attr :scope, nil, ::String, ::Array, nil
752
+ config_attr :lib_name, nil, ::String, nil
753
+ config_attr :lib_version, nil, ::String, nil
754
+ config_attr :timeout, nil, ::Numeric, nil
755
+ config_attr :metadata, nil, ::Hash, nil
756
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
757
+ config_attr :quota_project, nil, ::String, nil
758
+ config_attr :universe_domain, nil, ::String, nil
759
+
760
+ # @private
761
+ # Overrides for http bindings for the RPCs of this service
762
+ # are only used when this service is used as mixin, and only
763
+ # by the host service.
764
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
765
+ config_attr :bindings_override, {}, ::Hash, nil
766
+
767
+ # @private
768
+ def initialize parent_config = nil
769
+ @parent_config = parent_config unless parent_config.nil?
770
+
771
+ yield self if block_given?
772
+ end
773
+
774
+ ##
775
+ # Configurations for individual RPCs
776
+ # @return [Rpcs]
777
+ #
778
+ def rpcs
779
+ @rpcs ||= begin
780
+ parent_rpcs = nil
781
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
782
+ Rpcs.new parent_rpcs
783
+ end
784
+ end
785
+
786
+ ##
787
+ # Configuration RPC class for the ApiHubDependencies API.
788
+ #
789
+ # Includes fields providing the configuration for each RPC in this service.
790
+ # Each configuration object is of type `Gapic::Config::Method` and includes
791
+ # the following configuration fields:
792
+ #
793
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
794
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
795
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
796
+ # include the following keys:
797
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
798
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
799
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
800
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
801
+ # trigger a retry.
802
+ #
803
+ class Rpcs
804
+ ##
805
+ # RPC-specific configuration for `create_dependency`
806
+ # @return [::Gapic::Config::Method]
807
+ #
808
+ attr_reader :create_dependency
809
+ ##
810
+ # RPC-specific configuration for `get_dependency`
811
+ # @return [::Gapic::Config::Method]
812
+ #
813
+ attr_reader :get_dependency
814
+ ##
815
+ # RPC-specific configuration for `update_dependency`
816
+ # @return [::Gapic::Config::Method]
817
+ #
818
+ attr_reader :update_dependency
819
+ ##
820
+ # RPC-specific configuration for `delete_dependency`
821
+ # @return [::Gapic::Config::Method]
822
+ #
823
+ attr_reader :delete_dependency
824
+ ##
825
+ # RPC-specific configuration for `list_dependencies`
826
+ # @return [::Gapic::Config::Method]
827
+ #
828
+ attr_reader :list_dependencies
829
+
830
+ # @private
831
+ def initialize parent_rpcs = nil
832
+ create_dependency_config = parent_rpcs.create_dependency if parent_rpcs.respond_to? :create_dependency
833
+ @create_dependency = ::Gapic::Config::Method.new create_dependency_config
834
+ get_dependency_config = parent_rpcs.get_dependency if parent_rpcs.respond_to? :get_dependency
835
+ @get_dependency = ::Gapic::Config::Method.new get_dependency_config
836
+ update_dependency_config = parent_rpcs.update_dependency if parent_rpcs.respond_to? :update_dependency
837
+ @update_dependency = ::Gapic::Config::Method.new update_dependency_config
838
+ delete_dependency_config = parent_rpcs.delete_dependency if parent_rpcs.respond_to? :delete_dependency
839
+ @delete_dependency = ::Gapic::Config::Method.new delete_dependency_config
840
+ list_dependencies_config = parent_rpcs.list_dependencies if parent_rpcs.respond_to? :list_dependencies
841
+ @list_dependencies = ::Gapic::Config::Method.new list_dependencies_config
842
+
843
+ yield self if block_given?
844
+ end
845
+ end
846
+ end
847
+ end
848
+ end
849
+ end
850
+ end
851
+ end
852
+ end
853
+ end