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