google-cloud-dataplex-v1 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataplex/v1/bindings_override.rb +327 -0
  4. data/lib/google/cloud/dataplex/v1/content_service/client.rb +4 -6
  5. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +969 -0
  6. data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +584 -0
  7. data/lib/google/cloud/dataplex/v1/content_service/rest.rb +53 -0
  8. data/lib/google/cloud/dataplex/v1/content_service.rb +6 -0
  9. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +20 -24
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +12 -14
  11. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +948 -0
  12. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +793 -0
  13. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +523 -0
  14. data/lib/google/cloud/dataplex/v1/data_scan_service/rest.rb +56 -0
  15. data/lib/google/cloud/dataplex/v1/data_scan_service.rb +6 -0
  16. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +100 -120
  17. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +12 -14
  18. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2910 -0
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +793 -0
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +1947 -0
  21. data/lib/google/cloud/dataplex/v1/dataplex_service/rest.rb +58 -0
  22. data/lib/google/cloud/dataplex/v1/dataplex_service.rb +6 -0
  23. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +8 -12
  24. data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +1051 -0
  25. data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +582 -0
  26. data/lib/google/cloud/dataplex/v1/metadata_service/rest.rb +54 -0
  27. data/lib/google/cloud/dataplex/v1/metadata_service.rb +6 -0
  28. data/lib/google/cloud/dataplex/v1/rest.rb +41 -0
  29. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  30. data/lib/google/cloud/dataplex/v1.rb +5 -0
  31. metadata +27 -11
@@ -0,0 +1,969 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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/dataplex/v1/content_pb"
21
+ require "google/cloud/dataplex/v1/content_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module Dataplex
28
+ module V1
29
+ module ContentService
30
+ module Rest
31
+ ##
32
+ # REST client for the ContentService service.
33
+ #
34
+ # ContentService manages Notebook and SQL Scripts for Dataplex.
35
+ #
36
+ class Client
37
+ include Paths
38
+
39
+ # @private
40
+ attr_reader :content_service_stub
41
+
42
+ ##
43
+ # Configure the ContentService Client class.
44
+ #
45
+ # See {::Google::Cloud::Dataplex::V1::ContentService::Rest::Client::Configuration}
46
+ # for a description of the configuration fields.
47
+ #
48
+ # @example
49
+ #
50
+ # # Modify the configuration for all ContentService clients
51
+ # ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
54
+ #
55
+ # @yield [config] Configure the Client client.
56
+ # @yieldparam config [Client::Configuration]
57
+ #
58
+ # @return [Client::Configuration]
59
+ #
60
+ def self.configure
61
+ @configure ||= begin
62
+ namespace = ["Google", "Cloud", "Dataplex", "V1"]
63
+ parent_config = while namespace.any?
64
+ parent_name = namespace.join "::"
65
+ parent_const = const_get parent_name
66
+ break parent_const.configure if parent_const.respond_to? :configure
67
+ namespace.pop
68
+ end
69
+ default_config = Client::Configuration.new parent_config
70
+
71
+ default_config.rpcs.create_content.timeout = 60.0
72
+
73
+ default_config.rpcs.update_content.timeout = 60.0
74
+
75
+ default_config.rpcs.delete_content.timeout = 60.0
76
+
77
+ default_config.rpcs.get_content.timeout = 60.0
78
+ default_config.rpcs.get_content.retry_policy = {
79
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
80
+ }
81
+
82
+ default_config.rpcs.get_iam_policy.timeout = 60.0
83
+ default_config.rpcs.get_iam_policy.retry_policy = {
84
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
85
+ }
86
+
87
+ default_config.rpcs.set_iam_policy.timeout = 60.0
88
+
89
+ default_config.rpcs.test_iam_permissions.timeout = 60.0
90
+ default_config.rpcs.test_iam_permissions.retry_policy = {
91
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
92
+ }
93
+
94
+ default_config.rpcs.list_content.timeout = 60.0
95
+ default_config.rpcs.list_content.retry_policy = {
96
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
97
+ }
98
+
99
+ default_config
100
+ end
101
+ yield @configure if block_given?
102
+ @configure
103
+ end
104
+
105
+ ##
106
+ # Configure the ContentService Client instance.
107
+ #
108
+ # The configuration is set to the derived mode, meaning that values can be changed,
109
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
110
+ # should be made on {Client.configure}.
111
+ #
112
+ # See {::Google::Cloud::Dataplex::V1::ContentService::Rest::Client::Configuration}
113
+ # for a description of the configuration fields.
114
+ #
115
+ # @yield [config] Configure the Client client.
116
+ # @yieldparam config [Client::Configuration]
117
+ #
118
+ # @return [Client::Configuration]
119
+ #
120
+ def configure
121
+ yield @config if block_given?
122
+ @config
123
+ end
124
+
125
+ ##
126
+ # Create a new ContentService REST client object.
127
+ #
128
+ # @example
129
+ #
130
+ # # Create a client using the default configuration
131
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
132
+ #
133
+ # # Create a client using a custom configuration
134
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new do |config|
135
+ # config.timeout = 10.0
136
+ # end
137
+ #
138
+ # @yield [config] Configure the ContentService client.
139
+ # @yieldparam config [Client::Configuration]
140
+ #
141
+ def initialize
142
+ # Create the configuration object
143
+ @config = Configuration.new Client.configure
144
+
145
+ # Yield the configuration if needed
146
+ yield @config if block_given?
147
+
148
+ # Create credentials
149
+ credentials = @config.credentials
150
+ # Use self-signed JWT if the endpoint is unchanged from default,
151
+ # but only if the default endpoint does not have a region prefix.
152
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
153
+ !@config.endpoint.split(".").first.include?("-")
154
+ credentials ||= Credentials.default scope: @config.scope,
155
+ enable_self_signed_jwt: enable_self_signed_jwt
156
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
157
+ credentials = Credentials.new credentials, scope: @config.scope
158
+ end
159
+
160
+ @quota_project_id = @config.quota_project
161
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
162
+
163
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
164
+ config.credentials = credentials
165
+ config.quota_project = @quota_project_id
166
+ config.endpoint = @config.endpoint
167
+ config.bindings_override = @config.bindings_override
168
+ end
169
+
170
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
171
+ config.credentials = credentials
172
+ config.quota_project = @quota_project_id
173
+ config.endpoint = @config.endpoint
174
+ config.bindings_override = @config.bindings_override
175
+ end
176
+
177
+ @content_service_stub = ::Google::Cloud::Dataplex::V1::ContentService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
178
+ end
179
+
180
+ ##
181
+ # Get the associated client for mix-in of the Locations.
182
+ #
183
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
184
+ #
185
+ attr_reader :location_client
186
+
187
+ ##
188
+ # Get the associated client for mix-in of the IAMPolicy.
189
+ #
190
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
191
+ #
192
+ attr_reader :iam_policy_client
193
+
194
+ # Service calls
195
+
196
+ ##
197
+ # Create a content.
198
+ #
199
+ # @overload create_content(request, options = nil)
200
+ # Pass arguments to `create_content` via a request object, either of type
201
+ # {::Google::Cloud::Dataplex::V1::CreateContentRequest} or an equivalent Hash.
202
+ #
203
+ # @param request [::Google::Cloud::Dataplex::V1::CreateContentRequest, ::Hash]
204
+ # A request object representing the call parameters. Required. To specify no
205
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
206
+ # @param options [::Gapic::CallOptions, ::Hash]
207
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
208
+ #
209
+ # @overload create_content(parent: nil, content: nil, validate_only: nil)
210
+ # Pass arguments to `create_content` via keyword arguments. Note that at
211
+ # least one keyword argument is required. To specify no parameters, or to keep all
212
+ # the default parameter values, pass an empty Hash as a request object (see above).
213
+ #
214
+ # @param parent [::String]
215
+ # Required. The resource name of the parent lake:
216
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}
217
+ # @param content [::Google::Cloud::Dataplex::V1::Content, ::Hash]
218
+ # Required. Content resource.
219
+ # @param validate_only [::Boolean]
220
+ # Optional. Only validate the request, but do not perform mutations.
221
+ # The default is false.
222
+ # @yield [result, operation] Access the result along with the TransportOperation object
223
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::Content]
224
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
225
+ #
226
+ # @return [::Google::Cloud::Dataplex::V1::Content]
227
+ #
228
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
229
+ def create_content request, options = nil
230
+ raise ::ArgumentError, "request must be provided" if request.nil?
231
+
232
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateContentRequest
233
+
234
+ # Converts hash and nil to an options object
235
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
236
+
237
+ # Customize the options with defaults
238
+ call_metadata = @config.rpcs.create_content.metadata.to_h
239
+
240
+ # Set x-goog-api-client and x-goog-user-project headers
241
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
242
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
243
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
244
+ transports_version_send: [:rest]
245
+
246
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
247
+
248
+ options.apply_defaults timeout: @config.rpcs.create_content.timeout,
249
+ metadata: call_metadata,
250
+ retry_policy: @config.rpcs.create_content.retry_policy
251
+
252
+ options.apply_defaults timeout: @config.timeout,
253
+ metadata: @config.metadata,
254
+ retry_policy: @config.retry_policy
255
+
256
+ @content_service_stub.create_content request, options do |result, operation|
257
+ yield result, operation if block_given?
258
+ return result
259
+ end
260
+ rescue ::Gapic::Rest::Error => e
261
+ raise ::Google::Cloud::Error.from_error(e)
262
+ end
263
+
264
+ ##
265
+ # Update a content. Only supports full resource update.
266
+ #
267
+ # @overload update_content(request, options = nil)
268
+ # Pass arguments to `update_content` via a request object, either of type
269
+ # {::Google::Cloud::Dataplex::V1::UpdateContentRequest} or an equivalent Hash.
270
+ #
271
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateContentRequest, ::Hash]
272
+ # A request object representing the call parameters. Required. To specify no
273
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
274
+ # @param options [::Gapic::CallOptions, ::Hash]
275
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
276
+ #
277
+ # @overload update_content(update_mask: nil, content: nil, validate_only: nil)
278
+ # Pass arguments to `update_content` via keyword arguments. Note that at
279
+ # least one keyword argument is required. To specify no parameters, or to keep all
280
+ # the default parameter values, pass an empty Hash as a request object (see above).
281
+ #
282
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
283
+ # Required. Mask of fields to update.
284
+ # @param content [::Google::Cloud::Dataplex::V1::Content, ::Hash]
285
+ # Required. Update description.
286
+ # Only fields specified in `update_mask` are updated.
287
+ # @param validate_only [::Boolean]
288
+ # Optional. Only validate the request, but do not perform mutations.
289
+ # The default is false.
290
+ # @yield [result, operation] Access the result along with the TransportOperation object
291
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::Content]
292
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
293
+ #
294
+ # @return [::Google::Cloud::Dataplex::V1::Content]
295
+ #
296
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
297
+ def update_content request, options = nil
298
+ raise ::ArgumentError, "request must be provided" if request.nil?
299
+
300
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateContentRequest
301
+
302
+ # Converts hash and nil to an options object
303
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
304
+
305
+ # Customize the options with defaults
306
+ call_metadata = @config.rpcs.update_content.metadata.to_h
307
+
308
+ # Set x-goog-api-client and x-goog-user-project headers
309
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
311
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
312
+ transports_version_send: [:rest]
313
+
314
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
+
316
+ options.apply_defaults timeout: @config.rpcs.update_content.timeout,
317
+ metadata: call_metadata,
318
+ retry_policy: @config.rpcs.update_content.retry_policy
319
+
320
+ options.apply_defaults timeout: @config.timeout,
321
+ metadata: @config.metadata,
322
+ retry_policy: @config.retry_policy
323
+
324
+ @content_service_stub.update_content request, options do |result, operation|
325
+ yield result, operation if block_given?
326
+ return result
327
+ end
328
+ rescue ::Gapic::Rest::Error => e
329
+ raise ::Google::Cloud::Error.from_error(e)
330
+ end
331
+
332
+ ##
333
+ # Delete a content.
334
+ #
335
+ # @overload delete_content(request, options = nil)
336
+ # Pass arguments to `delete_content` via a request object, either of type
337
+ # {::Google::Cloud::Dataplex::V1::DeleteContentRequest} or an equivalent Hash.
338
+ #
339
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteContentRequest, ::Hash]
340
+ # A request object representing the call parameters. Required. To specify no
341
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
342
+ # @param options [::Gapic::CallOptions, ::Hash]
343
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
344
+ #
345
+ # @overload delete_content(name: nil)
346
+ # Pass arguments to `delete_content` via keyword arguments. Note that at
347
+ # least one keyword argument is required. To specify no parameters, or to keep all
348
+ # the default parameter values, pass an empty Hash as a request object (see above).
349
+ #
350
+ # @param name [::String]
351
+ # Required. The resource name of the content:
352
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/content/\\{content_id}
353
+ # @yield [result, operation] Access the result along with the TransportOperation object
354
+ # @yieldparam result [::Google::Protobuf::Empty]
355
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
356
+ #
357
+ # @return [::Google::Protobuf::Empty]
358
+ #
359
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
360
+ def delete_content request, options = nil
361
+ raise ::ArgumentError, "request must be provided" if request.nil?
362
+
363
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteContentRequest
364
+
365
+ # Converts hash and nil to an options object
366
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
367
+
368
+ # Customize the options with defaults
369
+ call_metadata = @config.rpcs.delete_content.metadata.to_h
370
+
371
+ # Set x-goog-api-client and x-goog-user-project headers
372
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
374
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
375
+ transports_version_send: [:rest]
376
+
377
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
378
+
379
+ options.apply_defaults timeout: @config.rpcs.delete_content.timeout,
380
+ metadata: call_metadata,
381
+ retry_policy: @config.rpcs.delete_content.retry_policy
382
+
383
+ options.apply_defaults timeout: @config.timeout,
384
+ metadata: @config.metadata,
385
+ retry_policy: @config.retry_policy
386
+
387
+ @content_service_stub.delete_content request, options do |result, operation|
388
+ yield result, operation if block_given?
389
+ return result
390
+ end
391
+ rescue ::Gapic::Rest::Error => e
392
+ raise ::Google::Cloud::Error.from_error(e)
393
+ end
394
+
395
+ ##
396
+ # Get a content resource.
397
+ #
398
+ # @overload get_content(request, options = nil)
399
+ # Pass arguments to `get_content` via a request object, either of type
400
+ # {::Google::Cloud::Dataplex::V1::GetContentRequest} or an equivalent Hash.
401
+ #
402
+ # @param request [::Google::Cloud::Dataplex::V1::GetContentRequest, ::Hash]
403
+ # A request object representing the call parameters. Required. To specify no
404
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
405
+ # @param options [::Gapic::CallOptions, ::Hash]
406
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
407
+ #
408
+ # @overload get_content(name: nil, view: nil)
409
+ # Pass arguments to `get_content` via keyword arguments. Note that at
410
+ # least one keyword argument is required. To specify no parameters, or to keep all
411
+ # the default parameter values, pass an empty Hash as a request object (see above).
412
+ #
413
+ # @param name [::String]
414
+ # Required. The resource name of the content:
415
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/content/\\{content_id}
416
+ # @param view [::Google::Cloud::Dataplex::V1::GetContentRequest::ContentView]
417
+ # Optional. Specify content view to make a partial request.
418
+ # @yield [result, operation] Access the result along with the TransportOperation object
419
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::Content]
420
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
421
+ #
422
+ # @return [::Google::Cloud::Dataplex::V1::Content]
423
+ #
424
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
425
+ def get_content request, options = nil
426
+ raise ::ArgumentError, "request must be provided" if request.nil?
427
+
428
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetContentRequest
429
+
430
+ # Converts hash and nil to an options object
431
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
432
+
433
+ # Customize the options with defaults
434
+ call_metadata = @config.rpcs.get_content.metadata.to_h
435
+
436
+ # Set x-goog-api-client and x-goog-user-project headers
437
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
438
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
439
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
440
+ transports_version_send: [:rest]
441
+
442
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
+
444
+ options.apply_defaults timeout: @config.rpcs.get_content.timeout,
445
+ metadata: call_metadata,
446
+ retry_policy: @config.rpcs.get_content.retry_policy
447
+
448
+ options.apply_defaults timeout: @config.timeout,
449
+ metadata: @config.metadata,
450
+ retry_policy: @config.retry_policy
451
+
452
+ @content_service_stub.get_content request, options do |result, operation|
453
+ yield result, operation if block_given?
454
+ return result
455
+ end
456
+ rescue ::Gapic::Rest::Error => e
457
+ raise ::Google::Cloud::Error.from_error(e)
458
+ end
459
+
460
+ ##
461
+ # Gets the access control policy for a contentitem resource. A `NOT_FOUND`
462
+ # error is returned if the resource does not exist. An empty policy is
463
+ # returned if the resource exists but does not have a policy set on it.
464
+ #
465
+ # Caller must have Google IAM `dataplex.content.getIamPolicy` permission
466
+ # on the resource.
467
+ #
468
+ # @overload get_iam_policy(request, options = nil)
469
+ # Pass arguments to `get_iam_policy` via a request object, either of type
470
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
471
+ #
472
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
473
+ # A request object representing the call parameters. Required. To specify no
474
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
475
+ # @param options [::Gapic::CallOptions, ::Hash]
476
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
477
+ #
478
+ # @overload get_iam_policy(resource: nil, options: nil)
479
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
480
+ # least one keyword argument is required. To specify no parameters, or to keep all
481
+ # the default parameter values, pass an empty Hash as a request object (see above).
482
+ #
483
+ # @param resource [::String]
484
+ # REQUIRED: The resource for which the policy is being requested.
485
+ # See the operation documentation for the appropriate value for this field.
486
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
487
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
488
+ # `GetIamPolicy`.
489
+ # @yield [result, operation] Access the result along with the TransportOperation object
490
+ # @yieldparam result [::Google::Iam::V1::Policy]
491
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
492
+ #
493
+ # @return [::Google::Iam::V1::Policy]
494
+ #
495
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
496
+ def get_iam_policy request, options = nil
497
+ raise ::ArgumentError, "request must be provided" if request.nil?
498
+
499
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
500
+
501
+ # Converts hash and nil to an options object
502
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
503
+
504
+ # Customize the options with defaults
505
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
506
+
507
+ # Set x-goog-api-client and x-goog-user-project headers
508
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
510
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
511
+ transports_version_send: [:rest]
512
+
513
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
+
515
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
516
+ metadata: call_metadata,
517
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
518
+
519
+ options.apply_defaults timeout: @config.timeout,
520
+ metadata: @config.metadata,
521
+ retry_policy: @config.retry_policy
522
+
523
+ @content_service_stub.get_iam_policy request, options do |result, operation|
524
+ yield result, operation if block_given?
525
+ return result
526
+ end
527
+ rescue ::Gapic::Rest::Error => e
528
+ raise ::Google::Cloud::Error.from_error(e)
529
+ end
530
+
531
+ ##
532
+ # Sets the access control policy on the specified contentitem resource.
533
+ # Replaces any existing policy.
534
+ #
535
+ # Caller must have Google IAM `dataplex.content.setIamPolicy` permission
536
+ # on the resource.
537
+ #
538
+ # @overload set_iam_policy(request, options = nil)
539
+ # Pass arguments to `set_iam_policy` via a request object, either of type
540
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
541
+ #
542
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
543
+ # A request object representing the call parameters. Required. To specify no
544
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
545
+ # @param options [::Gapic::CallOptions, ::Hash]
546
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
547
+ #
548
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
549
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
550
+ # least one keyword argument is required. To specify no parameters, or to keep all
551
+ # the default parameter values, pass an empty Hash as a request object (see above).
552
+ #
553
+ # @param resource [::String]
554
+ # REQUIRED: The resource for which the policy is being specified.
555
+ # See the operation documentation for the appropriate value for this field.
556
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
557
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
558
+ # the policy is limited to a few 10s of KB. An empty policy is a
559
+ # valid policy but certain Cloud Platform services (such as Projects)
560
+ # might reject them.
561
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
562
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
563
+ # the fields in the mask will be modified. If no mask is provided, the
564
+ # following default mask is used:
565
+ #
566
+ # `paths: "bindings, etag"`
567
+ # @yield [result, operation] Access the result along with the TransportOperation object
568
+ # @yieldparam result [::Google::Iam::V1::Policy]
569
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
570
+ #
571
+ # @return [::Google::Iam::V1::Policy]
572
+ #
573
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
574
+ def set_iam_policy request, options = nil
575
+ raise ::ArgumentError, "request must be provided" if request.nil?
576
+
577
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
578
+
579
+ # Converts hash and nil to an options object
580
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
581
+
582
+ # Customize the options with defaults
583
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
584
+
585
+ # Set x-goog-api-client and x-goog-user-project headers
586
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
587
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
588
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
589
+ transports_version_send: [:rest]
590
+
591
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
592
+
593
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
594
+ metadata: call_metadata,
595
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
596
+
597
+ options.apply_defaults timeout: @config.timeout,
598
+ metadata: @config.metadata,
599
+ retry_policy: @config.retry_policy
600
+
601
+ @content_service_stub.set_iam_policy request, options do |result, operation|
602
+ yield result, operation if block_given?
603
+ return result
604
+ end
605
+ rescue ::Gapic::Rest::Error => e
606
+ raise ::Google::Cloud::Error.from_error(e)
607
+ end
608
+
609
+ ##
610
+ # Returns the caller's permissions on a resource.
611
+ # If the resource does not exist, an empty set of
612
+ # permissions is returned (a `NOT_FOUND` error is not returned).
613
+ #
614
+ # A caller is not required to have Google IAM permission to make this
615
+ # request.
616
+ #
617
+ # Note: This operation is designed to be used for building permission-aware
618
+ # UIs and command-line tools, not for authorization checking. This operation
619
+ # may "fail open" without warning.
620
+ #
621
+ # @overload test_iam_permissions(request, options = nil)
622
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
623
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
624
+ #
625
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
626
+ # A request object representing the call parameters. Required. To specify no
627
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
628
+ # @param options [::Gapic::CallOptions, ::Hash]
629
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
630
+ #
631
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
632
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
633
+ # least one keyword argument is required. To specify no parameters, or to keep all
634
+ # the default parameter values, pass an empty Hash as a request object (see above).
635
+ #
636
+ # @param resource [::String]
637
+ # REQUIRED: The resource for which the policy detail is being requested.
638
+ # See the operation documentation for the appropriate value for this field.
639
+ # @param permissions [::Array<::String>]
640
+ # The set of permissions to check for the `resource`. Permissions with
641
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
642
+ # information see
643
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
649
+ #
650
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
651
+ def test_iam_permissions request, options = nil
652
+ raise ::ArgumentError, "request must be provided" if request.nil?
653
+
654
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
655
+
656
+ # Converts hash and nil to an options object
657
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
658
+
659
+ # Customize the options with defaults
660
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
661
+
662
+ # Set x-goog-api-client and x-goog-user-project headers
663
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
665
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
666
+ transports_version_send: [:rest]
667
+
668
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
669
+
670
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
671
+ metadata: call_metadata,
672
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
673
+
674
+ options.apply_defaults timeout: @config.timeout,
675
+ metadata: @config.metadata,
676
+ retry_policy: @config.retry_policy
677
+
678
+ @content_service_stub.test_iam_permissions request, options do |result, operation|
679
+ yield result, operation if block_given?
680
+ return result
681
+ end
682
+ rescue ::Gapic::Rest::Error => e
683
+ raise ::Google::Cloud::Error.from_error(e)
684
+ end
685
+
686
+ ##
687
+ # List content.
688
+ #
689
+ # @overload list_content(request, options = nil)
690
+ # Pass arguments to `list_content` via a request object, either of type
691
+ # {::Google::Cloud::Dataplex::V1::ListContentRequest} or an equivalent Hash.
692
+ #
693
+ # @param request [::Google::Cloud::Dataplex::V1::ListContentRequest, ::Hash]
694
+ # A request object representing the call parameters. Required. To specify no
695
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
696
+ # @param options [::Gapic::CallOptions, ::Hash]
697
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
698
+ #
699
+ # @overload list_content(parent: nil, page_size: nil, page_token: nil, filter: nil)
700
+ # Pass arguments to `list_content` via keyword arguments. Note that at
701
+ # least one keyword argument is required. To specify no parameters, or to keep all
702
+ # the default parameter values, pass an empty Hash as a request object (see above).
703
+ #
704
+ # @param parent [::String]
705
+ # Required. The resource name of the parent lake:
706
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}
707
+ # @param page_size [::Integer]
708
+ # Optional. Maximum number of content to return. The service may return fewer
709
+ # than this value. If unspecified, at most 10 content will be returned. The
710
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
711
+ # @param page_token [::String]
712
+ # Optional. Page token received from a previous `ListContent` call. Provide
713
+ # this to retrieve the subsequent page. When paginating, all other parameters
714
+ # provided to `ListContent` must match the call that provided the page
715
+ # token.
716
+ # @param filter [::String]
717
+ # Optional. Filter request. Filters are case-sensitive.
718
+ # The following formats are supported:
719
+ #
720
+ # labels.key1 = "value1"
721
+ # labels:key1
722
+ # type = "NOTEBOOK"
723
+ # type = "SQL_SCRIPT"
724
+ #
725
+ # These restrictions can be coinjoined with AND, OR and NOT conjunctions.
726
+ # @yield [result, operation] Access the result along with the TransportOperation object
727
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Content>]
728
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
729
+ #
730
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Content>]
731
+ #
732
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
733
+ def list_content request, options = nil
734
+ raise ::ArgumentError, "request must be provided" if request.nil?
735
+
736
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListContentRequest
737
+
738
+ # Converts hash and nil to an options object
739
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
740
+
741
+ # Customize the options with defaults
742
+ call_metadata = @config.rpcs.list_content.metadata.to_h
743
+
744
+ # Set x-goog-api-client and x-goog-user-project headers
745
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
746
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
747
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
748
+ transports_version_send: [:rest]
749
+
750
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
751
+
752
+ options.apply_defaults timeout: @config.rpcs.list_content.timeout,
753
+ metadata: call_metadata,
754
+ retry_policy: @config.rpcs.list_content.retry_policy
755
+
756
+ options.apply_defaults timeout: @config.timeout,
757
+ metadata: @config.metadata,
758
+ retry_policy: @config.retry_policy
759
+
760
+ @content_service_stub.list_content request, options do |result, operation|
761
+ result = ::Gapic::Rest::PagedEnumerable.new @content_service_stub, :list_content, "content", request, result, options
762
+ yield result, operation if block_given?
763
+ return result
764
+ end
765
+ rescue ::Gapic::Rest::Error => e
766
+ raise ::Google::Cloud::Error.from_error(e)
767
+ end
768
+
769
+ ##
770
+ # Configuration class for the ContentService REST API.
771
+ #
772
+ # This class represents the configuration for ContentService REST,
773
+ # providing control over timeouts, retry behavior, logging, transport
774
+ # parameters, and other low-level controls. Certain parameters can also be
775
+ # applied individually to specific RPCs. See
776
+ # {::Google::Cloud::Dataplex::V1::ContentService::Rest::Client::Configuration::Rpcs}
777
+ # for a list of RPCs that can be configured independently.
778
+ #
779
+ # Configuration can be applied globally to all clients, or to a single client
780
+ # on construction.
781
+ #
782
+ # @example
783
+ #
784
+ # # Modify the global config, setting the timeout for
785
+ # # create_content to 20 seconds,
786
+ # # and all remaining timeouts to 10 seconds.
787
+ # ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.configure do |config|
788
+ # config.timeout = 10.0
789
+ # config.rpcs.create_content.timeout = 20.0
790
+ # end
791
+ #
792
+ # # Apply the above configuration only to a new client.
793
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new do |config|
794
+ # config.timeout = 10.0
795
+ # config.rpcs.create_content.timeout = 20.0
796
+ # end
797
+ #
798
+ # @!attribute [rw] endpoint
799
+ # The hostname or hostname:port of the service endpoint.
800
+ # Defaults to `"dataplex.googleapis.com"`.
801
+ # @return [::String]
802
+ # @!attribute [rw] credentials
803
+ # Credentials to send with calls. You may provide any of the following types:
804
+ # * (`String`) The path to a service account key file in JSON format
805
+ # * (`Hash`) A service account key as a Hash
806
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
807
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
808
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
809
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
810
+ # * (`nil`) indicating no credentials
811
+ # @return [::Object]
812
+ # @!attribute [rw] scope
813
+ # The OAuth scopes
814
+ # @return [::Array<::String>]
815
+ # @!attribute [rw] lib_name
816
+ # The library name as recorded in instrumentation and logging
817
+ # @return [::String]
818
+ # @!attribute [rw] lib_version
819
+ # The library version as recorded in instrumentation and logging
820
+ # @return [::String]
821
+ # @!attribute [rw] timeout
822
+ # The call timeout in seconds.
823
+ # @return [::Numeric]
824
+ # @!attribute [rw] metadata
825
+ # Additional headers to be sent with the call.
826
+ # @return [::Hash{::Symbol=>::String}]
827
+ # @!attribute [rw] retry_policy
828
+ # The retry policy. The value is a hash with the following keys:
829
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
830
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
831
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
832
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
833
+ # trigger a retry.
834
+ # @return [::Hash]
835
+ # @!attribute [rw] quota_project
836
+ # A separate project against which to charge quota.
837
+ # @return [::String]
838
+ #
839
+ class Configuration
840
+ extend ::Gapic::Config
841
+
842
+ config_attr :endpoint, "dataplex.googleapis.com", ::String
843
+ config_attr :credentials, nil do |value|
844
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
845
+ allowed.any? { |klass| klass === value }
846
+ end
847
+ config_attr :scope, nil, ::String, ::Array, nil
848
+ config_attr :lib_name, nil, ::String, nil
849
+ config_attr :lib_version, nil, ::String, nil
850
+ config_attr :timeout, nil, ::Numeric, nil
851
+ config_attr :metadata, nil, ::Hash, nil
852
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
853
+ config_attr :quota_project, nil, ::String, nil
854
+
855
+ # @private
856
+ # Overrides for http bindings for the RPCs of this service
857
+ # are only used when this service is used as mixin, and only
858
+ # by the host service.
859
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
860
+ config_attr :bindings_override, {}, ::Hash, nil
861
+
862
+ # @private
863
+ def initialize parent_config = nil
864
+ @parent_config = parent_config unless parent_config.nil?
865
+
866
+ yield self if block_given?
867
+ end
868
+
869
+ ##
870
+ # Configurations for individual RPCs
871
+ # @return [Rpcs]
872
+ #
873
+ def rpcs
874
+ @rpcs ||= begin
875
+ parent_rpcs = nil
876
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
877
+ Rpcs.new parent_rpcs
878
+ end
879
+ end
880
+
881
+ ##
882
+ # Configuration RPC class for the ContentService API.
883
+ #
884
+ # Includes fields providing the configuration for each RPC in this service.
885
+ # Each configuration object is of type `Gapic::Config::Method` and includes
886
+ # the following configuration fields:
887
+ #
888
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
889
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
890
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
891
+ # include the following keys:
892
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
893
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
894
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
895
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
896
+ # trigger a retry.
897
+ #
898
+ class Rpcs
899
+ ##
900
+ # RPC-specific configuration for `create_content`
901
+ # @return [::Gapic::Config::Method]
902
+ #
903
+ attr_reader :create_content
904
+ ##
905
+ # RPC-specific configuration for `update_content`
906
+ # @return [::Gapic::Config::Method]
907
+ #
908
+ attr_reader :update_content
909
+ ##
910
+ # RPC-specific configuration for `delete_content`
911
+ # @return [::Gapic::Config::Method]
912
+ #
913
+ attr_reader :delete_content
914
+ ##
915
+ # RPC-specific configuration for `get_content`
916
+ # @return [::Gapic::Config::Method]
917
+ #
918
+ attr_reader :get_content
919
+ ##
920
+ # RPC-specific configuration for `get_iam_policy`
921
+ # @return [::Gapic::Config::Method]
922
+ #
923
+ attr_reader :get_iam_policy
924
+ ##
925
+ # RPC-specific configuration for `set_iam_policy`
926
+ # @return [::Gapic::Config::Method]
927
+ #
928
+ attr_reader :set_iam_policy
929
+ ##
930
+ # RPC-specific configuration for `test_iam_permissions`
931
+ # @return [::Gapic::Config::Method]
932
+ #
933
+ attr_reader :test_iam_permissions
934
+ ##
935
+ # RPC-specific configuration for `list_content`
936
+ # @return [::Gapic::Config::Method]
937
+ #
938
+ attr_reader :list_content
939
+
940
+ # @private
941
+ def initialize parent_rpcs = nil
942
+ create_content_config = parent_rpcs.create_content if parent_rpcs.respond_to? :create_content
943
+ @create_content = ::Gapic::Config::Method.new create_content_config
944
+ update_content_config = parent_rpcs.update_content if parent_rpcs.respond_to? :update_content
945
+ @update_content = ::Gapic::Config::Method.new update_content_config
946
+ delete_content_config = parent_rpcs.delete_content if parent_rpcs.respond_to? :delete_content
947
+ @delete_content = ::Gapic::Config::Method.new delete_content_config
948
+ get_content_config = parent_rpcs.get_content if parent_rpcs.respond_to? :get_content
949
+ @get_content = ::Gapic::Config::Method.new get_content_config
950
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
951
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
952
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
953
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
954
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
955
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
956
+ list_content_config = parent_rpcs.list_content if parent_rpcs.respond_to? :list_content
957
+ @list_content = ::Gapic::Config::Method.new list_content_config
958
+
959
+ yield self if block_given?
960
+ end
961
+ end
962
+ end
963
+ end
964
+ end
965
+ end
966
+ end
967
+ end
968
+ end
969
+ end