google-cloud-dlp-v2 0.1.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ac5d909d8a40e12eedba05b150cde2f585b799405dd67b3b655247c600d6ff9
4
- data.tar.gz: dd1e9260b8d485aca79185b1aaa8bebbad0066526025cc8a2bdb0e2f87ac5a64
3
+ metadata.gz: 2db8c83f4bf98f27140c3a66ef2171c510f7b45aae0b2c83e2885a8824447689
4
+ data.tar.gz: 6a59daa8d3b6408a243e41dedf7cab3cd4b8dbdd76bc7e965f927afe3e743d55
5
5
  SHA512:
6
- metadata.gz: c123eb36bbb78652e37433d11da40e53ad4782c16ecd465643231f871d8f31f1dda2a910d48bbc5b1634065de09b836c0f1f4aaa8748b66d427666efd6b3a536
7
- data.tar.gz: 53fee7f10fd8b3c6349598917665ae77971c48b28bd1ae840fd6546e894fc1ed5d293ce9fd6cc915eba80b4b8041b3e23be2a4c3c37260ed1f724aa72cecb6d2
6
+ metadata.gz: 59ac111e738f1fde9c0f2555de4abd98c645edb1b7a7d8872634a6307552e1e068e8e3a168d324718783ab4685ff49284663ac008fbb875b426292dc577694c9
7
+ data.tar.gz: 7d097245d8cb2219709e8ef0599479468617c3b624d5fd791fd3d775d0a79a624bc63c71c77ef710b940b7aa4c971ab6fd479e8087c5058994267a41679fef5f
@@ -27,7 +27,7 @@ export DLP_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/dlp/v2"
29
29
 
30
- client = Google::Cloud::Dlp::V2::DlpService::Client.new
30
+ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-dlp-v2
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::Dlp::V2::DlpService::Credentials}):
67
+ {::Google::Cloud::Dlp::V2::DlpService::Credentials}):
68
68
 
69
69
  1. `DLP_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `DLP_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/dlp/v2"
77
77
 
78
78
  ENV["DLP_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::Dlp::V2::DlpService::Client.new
80
+ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/dlp/v2"
90
90
 
91
- client = Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
91
+ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/dlp/v2"
100
100
 
101
- Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
101
+ ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::Dlp::V2::DlpService::Client.new
105
+ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/dlp/v2"
27
27
 
28
- client = Google::Cloud::Dlp::V2::DlpService::Client.new
28
+ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
29
29
  request = my_create_request
30
30
  response = client.inspect_content request
31
31
  ```
@@ -26,7 +26,7 @@ module Google
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
28
  # require "google/cloud/dlp/v2"
29
- # client = Google::Cloud::Dlp::V2::DlpService::Client.new
29
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
30
30
  #
31
31
  module V2
32
32
  end
@@ -44,7 +44,7 @@ module Google
44
44
  # To load this service and instantiate a client:
45
45
  #
46
46
  # require "google/cloud/dlp/v2/dlp_service"
47
- # client = Google::Cloud::Dlp::V2::DlpService::Client.new
47
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
48
48
  #
49
49
  module DlpService
50
50
  end
@@ -46,15 +46,15 @@ module Google
46
46
  ##
47
47
  # Configure the DlpService Client class.
48
48
  #
49
- # See {Google::Cloud::Dlp::V2::DlpService::Client::Configuration}
49
+ # See {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration}
50
50
  # for a description of the configuration fields.
51
51
  #
52
52
  # ## Example
53
53
  #
54
54
  # To modify the configuration for all DlpService clients:
55
55
  #
56
- # Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
57
- # config.timeout = 10_000
56
+ # ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
57
+ # config.timeout = 10.0
58
58
  # end
59
59
  #
60
60
  # @yield [config] Configure the Client client.
@@ -292,7 +292,7 @@ module Google
292
292
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
293
293
  # should be made on {Client.configure}.
294
294
  #
295
- # See {Google::Cloud::Dlp::V2::DlpService::Client::Configuration}
295
+ # See {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration}
296
296
  # for a description of the configuration fields.
297
297
  #
298
298
  # @yield [config] Configure the Client client.
@@ -313,13 +313,13 @@ module Google
313
313
  # To create a new DlpService client with the default
314
314
  # configuration:
315
315
  #
316
- # client = Google::Cloud::Dlp::V2::DlpService::Client.new
316
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
317
317
  #
318
318
  # To create a new DlpService client with a custom
319
319
  # configuration:
320
320
  #
321
- # client = Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
322
- # config.timeout = 10_000
321
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
322
+ # config.timeout = 10.0
323
323
  # end
324
324
  #
325
325
  # @yield [config] Configure the DlpService client.
@@ -344,10 +344,11 @@ module Google
344
344
  if credentials.is_a?(String) || credentials.is_a?(Hash)
345
345
  credentials = Credentials.new credentials, scope: @config.scope
346
346
  end
347
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
347
+ @quota_project_id = @config.quota_project
348
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
348
349
 
349
- @dlp_service_stub = Gapic::ServiceStub.new(
350
- Google::Cloud::Dlp::V2::DlpService::Stub,
350
+ @dlp_service_stub = ::Gapic::ServiceStub.new(
351
+ ::Google::Cloud::Dlp::V2::DlpService::Stub,
351
352
  credentials: credentials,
352
353
  endpoint: @config.endpoint,
353
354
  channel_args: @config.channel_args,
@@ -370,12 +371,12 @@ module Google
370
371
  #
371
372
  # @overload inspect_content(request, options = nil)
372
373
  # Pass arguments to `inspect_content` via a request object, either of type
373
- # {Google::Cloud::Dlp::V2::InspectContentRequest} or an equivalent Hash.
374
+ # {::Google::Cloud::Dlp::V2::InspectContentRequest} or an equivalent Hash.
374
375
  #
375
- # @param request [Google::Cloud::Dlp::V2::InspectContentRequest, Hash]
376
+ # @param request [::Google::Cloud::Dlp::V2::InspectContentRequest, ::Hash]
376
377
  # A request object representing the call parameters. Required. To specify no
377
378
  # parameters, or to keep all the default parameter values, pass an empty Hash.
378
- # @param options [Gapic::CallOptions, Hash]
379
+ # @param options [::Gapic::CallOptions, ::Hash]
379
380
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
380
381
  #
381
382
  # @overload inspect_content(parent: nil, inspect_config: nil, item: nil, inspect_template_name: nil, location_id: nil)
@@ -383,44 +384,44 @@ module Google
383
384
  # least one keyword argument is required. To specify no parameters, or to keep all
384
385
  # the default parameter values, pass an empty Hash as a request object (see above).
385
386
  #
386
- # @param parent [String]
387
- # The parent resource name, for example projects/my-project-id.
388
- # @param inspect_config [Google::Cloud::Dlp::V2::InspectConfig, Hash]
387
+ # @param parent [::String]
388
+ # The parent resource name, for example projects/my-project-id
389
+ # or projects/my-project-id/locations/\\{location_id}
390
+ # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
389
391
  # Configuration for the inspector. What specified here will override
390
392
  # the template referenced by the inspect_template_name argument.
391
- # @param item [Google::Cloud::Dlp::V2::ContentItem, Hash]
393
+ # @param item [::Google::Cloud::Dlp::V2::ContentItem, ::Hash]
392
394
  # The item to inspect.
393
- # @param inspect_template_name [String]
395
+ # @param inspect_template_name [::String]
394
396
  # Template to use. Any configuration directly specified in
395
397
  # inspect_config will override those set in the template. Singular fields
396
398
  # that are set in this request will replace their corresponding fields in the
397
399
  # template. Repeated fields are appended. Singular sub-messages and groups
398
400
  # are recursively merged.
399
- # @param location_id [String]
400
- # The geographic location to process content inspection. Reserved for future
401
- # extensions.
401
+ # @param location_id [::String]
402
+ # Deprecated. This field has no effect.
402
403
  #
403
404
  # @yield [response, operation] Access the result along with the RPC operation
404
- # @yieldparam response [Google::Cloud::Dlp::V2::InspectContentResponse]
405
- # @yieldparam operation [GRPC::ActiveCall::Operation]
405
+ # @yieldparam response [::Google::Cloud::Dlp::V2::InspectContentResponse]
406
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
406
407
  #
407
- # @return [Google::Cloud::Dlp::V2::InspectContentResponse]
408
+ # @return [::Google::Cloud::Dlp::V2::InspectContentResponse]
408
409
  #
409
- # @raise [Google::Cloud::Error] if the RPC is aborted.
410
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
410
411
  #
411
412
  def inspect_content request, options = nil
412
- raise ArgumentError, "request must be provided" if request.nil?
413
+ raise ::ArgumentError, "request must be provided" if request.nil?
413
414
 
414
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::InspectContentRequest
415
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::InspectContentRequest
415
416
 
416
417
  # Converts hash and nil to an options object
417
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
418
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
418
419
 
419
420
  # Customize the options with defaults
420
421
  metadata = @config.rpcs.inspect_content.metadata.to_h
421
422
 
422
423
  # Set x-goog-api-client and x-goog-user-project headers
423
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
424
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
424
425
  lib_name: @config.lib_name, lib_version: @config.lib_version,
425
426
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
426
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -441,8 +442,8 @@ module Google
441
442
  yield response, operation if block_given?
442
443
  return response
443
444
  end
444
- rescue GRPC::BadStatus => e
445
- raise Google::Cloud::Error.from_error(e)
445
+ rescue ::GRPC::BadStatus => e
446
+ raise ::Google::Cloud::Error.from_error(e)
446
447
  end
447
448
 
448
449
  ##
@@ -457,12 +458,12 @@ module Google
457
458
  #
458
459
  # @overload redact_image(request, options = nil)
459
460
  # Pass arguments to `redact_image` via a request object, either of type
460
- # {Google::Cloud::Dlp::V2::RedactImageRequest} or an equivalent Hash.
461
+ # {::Google::Cloud::Dlp::V2::RedactImageRequest} or an equivalent Hash.
461
462
  #
462
- # @param request [Google::Cloud::Dlp::V2::RedactImageRequest, Hash]
463
+ # @param request [::Google::Cloud::Dlp::V2::RedactImageRequest, ::Hash]
463
464
  # A request object representing the call parameters. Required. To specify no
464
465
  # parameters, or to keep all the default parameter values, pass an empty Hash.
465
- # @param options [Gapic::CallOptions, Hash]
466
+ # @param options [::Gapic::CallOptions, ::Hash]
466
467
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
467
468
  #
468
469
  # @overload redact_image(parent: nil, location_id: nil, inspect_config: nil, image_redaction_configs: nil, include_findings: nil, byte_item: nil)
@@ -470,42 +471,42 @@ module Google
470
471
  # least one keyword argument is required. To specify no parameters, or to keep all
471
472
  # the default parameter values, pass an empty Hash as a request object (see above).
472
473
  #
473
- # @param parent [String]
474
- # The parent resource name, for example projects/my-project-id.
475
- # @param location_id [String]
476
- # The geographic location to process the request. Reserved for future
477
- # extensions.
478
- # @param inspect_config [Google::Cloud::Dlp::V2::InspectConfig, Hash]
474
+ # @param parent [::String]
475
+ # The parent resource name, for example projects/my-project-id
476
+ # or projects/my-project-id/locations/\\{location_id}.
477
+ # @param location_id [::String]
478
+ # Deprecated. This field has no effect.
479
+ # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
479
480
  # Configuration for the inspector.
480
- # @param image_redaction_configs [Array<Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig, Hash>]
481
+ # @param image_redaction_configs [::Array<::Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig, ::Hash>]
481
482
  # The configuration for specifying what content to redact from images.
482
- # @param include_findings [Boolean]
483
+ # @param include_findings [::Boolean]
483
484
  # Whether the response should include findings along with the redacted
484
485
  # image.
485
- # @param byte_item [Google::Cloud::Dlp::V2::ByteContentItem, Hash]
486
+ # @param byte_item [::Google::Cloud::Dlp::V2::ByteContentItem, ::Hash]
486
487
  # The content must be PNG, JPEG, SVG or BMP.
487
488
  #
488
489
  # @yield [response, operation] Access the result along with the RPC operation
489
- # @yieldparam response [Google::Cloud::Dlp::V2::RedactImageResponse]
490
- # @yieldparam operation [GRPC::ActiveCall::Operation]
490
+ # @yieldparam response [::Google::Cloud::Dlp::V2::RedactImageResponse]
491
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
491
492
  #
492
- # @return [Google::Cloud::Dlp::V2::RedactImageResponse]
493
+ # @return [::Google::Cloud::Dlp::V2::RedactImageResponse]
493
494
  #
494
- # @raise [Google::Cloud::Error] if the RPC is aborted.
495
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
495
496
  #
496
497
  def redact_image request, options = nil
497
- raise ArgumentError, "request must be provided" if request.nil?
498
+ raise ::ArgumentError, "request must be provided" if request.nil?
498
499
 
499
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::RedactImageRequest
500
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::RedactImageRequest
500
501
 
501
502
  # Converts hash and nil to an options object
502
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
503
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
503
504
 
504
505
  # Customize the options with defaults
505
506
  metadata = @config.rpcs.redact_image.metadata.to_h
506
507
 
507
508
  # Set x-goog-api-client and x-goog-user-project headers
508
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
509
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
510
  lib_name: @config.lib_name, lib_version: @config.lib_version,
510
511
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
511
512
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -526,8 +527,8 @@ module Google
526
527
  yield response, operation if block_given?
527
528
  return response
528
529
  end
529
- rescue GRPC::BadStatus => e
530
- raise Google::Cloud::Error.from_error(e)
530
+ rescue ::GRPC::BadStatus => e
531
+ raise ::Google::Cloud::Error.from_error(e)
531
532
  end
532
533
 
533
534
  ##
@@ -542,12 +543,12 @@ module Google
542
543
  #
543
544
  # @overload deidentify_content(request, options = nil)
544
545
  # Pass arguments to `deidentify_content` via a request object, either of type
545
- # {Google::Cloud::Dlp::V2::DeidentifyContentRequest} or an equivalent Hash.
546
+ # {::Google::Cloud::Dlp::V2::DeidentifyContentRequest} or an equivalent Hash.
546
547
  #
547
- # @param request [Google::Cloud::Dlp::V2::DeidentifyContentRequest, Hash]
548
+ # @param request [::Google::Cloud::Dlp::V2::DeidentifyContentRequest, ::Hash]
548
549
  # A request object representing the call parameters. Required. To specify no
549
550
  # parameters, or to keep all the default parameter values, pass an empty Hash.
550
- # @param options [Gapic::CallOptions, Hash]
551
+ # @param options [::Gapic::CallOptions, ::Hash]
551
552
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
552
553
  #
553
554
  # @overload deidentify_content(parent: nil, deidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, deidentify_template_name: nil, location_id: nil)
@@ -555,55 +556,55 @@ module Google
555
556
  # least one keyword argument is required. To specify no parameters, or to keep all
556
557
  # the default parameter values, pass an empty Hash as a request object (see above).
557
558
  #
558
- # @param parent [String]
559
- # The parent resource name, for example projects/my-project-id.
560
- # @param deidentify_config [Google::Cloud::Dlp::V2::DeidentifyConfig, Hash]
559
+ # @param parent [::String]
560
+ # The parent resource name, for example projects/my-project-id
561
+ # or projects/my-project-id/locations/\\{location_id}.
562
+ # @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
561
563
  # Configuration for the de-identification of the content item.
562
564
  # Items specified here will override the template referenced by the
563
565
  # deidentify_template_name argument.
564
- # @param inspect_config [Google::Cloud::Dlp::V2::InspectConfig, Hash]
566
+ # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
565
567
  # Configuration for the inspector.
566
568
  # Items specified here will override the template referenced by the
567
569
  # inspect_template_name argument.
568
- # @param item [Google::Cloud::Dlp::V2::ContentItem, Hash]
570
+ # @param item [::Google::Cloud::Dlp::V2::ContentItem, ::Hash]
569
571
  # The item to de-identify. Will be treated as text.
570
- # @param inspect_template_name [String]
572
+ # @param inspect_template_name [::String]
571
573
  # Template to use. Any configuration directly specified in
572
574
  # inspect_config will override those set in the template. Singular fields
573
575
  # that are set in this request will replace their corresponding fields in the
574
576
  # template. Repeated fields are appended. Singular sub-messages and groups
575
577
  # are recursively merged.
576
- # @param deidentify_template_name [String]
578
+ # @param deidentify_template_name [::String]
577
579
  # Template to use. Any configuration directly specified in
578
580
  # deidentify_config will override those set in the template. Singular fields
579
581
  # that are set in this request will replace their corresponding fields in the
580
582
  # template. Repeated fields are appended. Singular sub-messages and groups
581
583
  # are recursively merged.
582
- # @param location_id [String]
583
- # The geographic location to process de-identification. Reserved for future
584
- # extensions.
584
+ # @param location_id [::String]
585
+ # Deprecated. This field has no effect.
585
586
  #
586
587
  # @yield [response, operation] Access the result along with the RPC operation
587
- # @yieldparam response [Google::Cloud::Dlp::V2::DeidentifyContentResponse]
588
- # @yieldparam operation [GRPC::ActiveCall::Operation]
588
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyContentResponse]
589
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
589
590
  #
590
- # @return [Google::Cloud::Dlp::V2::DeidentifyContentResponse]
591
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyContentResponse]
591
592
  #
592
- # @raise [Google::Cloud::Error] if the RPC is aborted.
593
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
593
594
  #
594
595
  def deidentify_content request, options = nil
595
- raise ArgumentError, "request must be provided" if request.nil?
596
+ raise ::ArgumentError, "request must be provided" if request.nil?
596
597
 
597
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeidentifyContentRequest
598
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeidentifyContentRequest
598
599
 
599
600
  # Converts hash and nil to an options object
600
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
601
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
601
602
 
602
603
  # Customize the options with defaults
603
604
  metadata = @config.rpcs.deidentify_content.metadata.to_h
604
605
 
605
606
  # Set x-goog-api-client and x-goog-user-project headers
606
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
607
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
607
608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
608
609
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
609
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -624,8 +625,8 @@ module Google
624
625
  yield response, operation if block_given?
625
626
  return response
626
627
  end
627
- rescue GRPC::BadStatus => e
628
- raise Google::Cloud::Error.from_error(e)
628
+ rescue ::GRPC::BadStatus => e
629
+ raise ::Google::Cloud::Error.from_error(e)
629
630
  end
630
631
 
631
632
  ##
@@ -636,12 +637,12 @@ module Google
636
637
  #
637
638
  # @overload reidentify_content(request, options = nil)
638
639
  # Pass arguments to `reidentify_content` via a request object, either of type
639
- # {Google::Cloud::Dlp::V2::ReidentifyContentRequest} or an equivalent Hash.
640
+ # {::Google::Cloud::Dlp::V2::ReidentifyContentRequest} or an equivalent Hash.
640
641
  #
641
- # @param request [Google::Cloud::Dlp::V2::ReidentifyContentRequest, Hash]
642
+ # @param request [::Google::Cloud::Dlp::V2::ReidentifyContentRequest, ::Hash]
642
643
  # A request object representing the call parameters. Required. To specify no
643
644
  # parameters, or to keep all the default parameter values, pass an empty Hash.
644
- # @param options [Gapic::CallOptions, Hash]
645
+ # @param options [::Gapic::CallOptions, ::Hash]
645
646
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
646
647
  #
647
648
  # @overload reidentify_content(parent: nil, reidentify_config: nil, inspect_config: nil, item: nil, inspect_template_name: nil, reidentify_template_name: nil, location_id: nil)
@@ -649,9 +650,9 @@ module Google
649
650
  # least one keyword argument is required. To specify no parameters, or to keep all
650
651
  # the default parameter values, pass an empty Hash as a request object (see above).
651
652
  #
652
- # @param parent [String]
653
+ # @param parent [::String]
653
654
  # Required. The parent resource name.
654
- # @param reidentify_config [Google::Cloud::Dlp::V2::DeidentifyConfig, Hash]
655
+ # @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
655
656
  # Configuration for the re-identification of the content item.
656
657
  # This field shares the same proto message type that is used for
657
658
  # de-identification, however its usage here is for the reversal of the
@@ -662,48 +663,47 @@ module Google
662
663
  #
663
664
  # - `CryptoDeterministicConfig`
664
665
  # - `CryptoReplaceFfxFpeConfig`
665
- # @param inspect_config [Google::Cloud::Dlp::V2::InspectConfig, Hash]
666
+ # @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
666
667
  # Configuration for the inspector.
667
- # @param item [Google::Cloud::Dlp::V2::ContentItem, Hash]
668
+ # @param item [::Google::Cloud::Dlp::V2::ContentItem, ::Hash]
668
669
  # The item to re-identify. Will be treated as text.
669
- # @param inspect_template_name [String]
670
+ # @param inspect_template_name [::String]
670
671
  # Template to use. Any configuration directly specified in
671
672
  # `inspect_config` will override those set in the template. Singular fields
672
673
  # that are set in this request will replace their corresponding fields in the
673
674
  # template. Repeated fields are appended. Singular sub-messages and groups
674
675
  # are recursively merged.
675
- # @param reidentify_template_name [String]
676
+ # @param reidentify_template_name [::String]
676
677
  # Template to use. References an instance of `DeidentifyTemplate`.
677
678
  # Any configuration directly specified in `reidentify_config` or
678
679
  # `inspect_config` will override those set in the template. Singular fields
679
680
  # that are set in this request will replace their corresponding fields in the
680
681
  # template. Repeated fields are appended. Singular sub-messages and groups
681
682
  # are recursively merged.
682
- # @param location_id [String]
683
- # The geographic location to process content reidentification. Reserved for
684
- # future extensions.
683
+ # @param location_id [::String]
684
+ # Deprecated. This field has no effect.
685
685
  #
686
686
  # @yield [response, operation] Access the result along with the RPC operation
687
- # @yieldparam response [Google::Cloud::Dlp::V2::ReidentifyContentResponse]
688
- # @yieldparam operation [GRPC::ActiveCall::Operation]
687
+ # @yieldparam response [::Google::Cloud::Dlp::V2::ReidentifyContentResponse]
688
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
689
689
  #
690
- # @return [Google::Cloud::Dlp::V2::ReidentifyContentResponse]
690
+ # @return [::Google::Cloud::Dlp::V2::ReidentifyContentResponse]
691
691
  #
692
- # @raise [Google::Cloud::Error] if the RPC is aborted.
692
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
693
693
  #
694
694
  def reidentify_content request, options = nil
695
- raise ArgumentError, "request must be provided" if request.nil?
695
+ raise ::ArgumentError, "request must be provided" if request.nil?
696
696
 
697
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ReidentifyContentRequest
697
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ReidentifyContentRequest
698
698
 
699
699
  # Converts hash and nil to an options object
700
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
700
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
701
701
 
702
702
  # Customize the options with defaults
703
703
  metadata = @config.rpcs.reidentify_content.metadata.to_h
704
704
 
705
705
  # Set x-goog-api-client and x-goog-user-project headers
706
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
706
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
708
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
709
709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -724,8 +724,8 @@ module Google
724
724
  yield response, operation if block_given?
725
725
  return response
726
726
  end
727
- rescue GRPC::BadStatus => e
728
- raise Google::Cloud::Error.from_error(e)
727
+ rescue ::GRPC::BadStatus => e
728
+ raise ::Google::Cloud::Error.from_error(e)
729
729
  end
730
730
 
731
731
  ##
@@ -735,51 +735,52 @@ module Google
735
735
  #
736
736
  # @overload list_info_types(request, options = nil)
737
737
  # Pass arguments to `list_info_types` via a request object, either of type
738
- # {Google::Cloud::Dlp::V2::ListInfoTypesRequest} or an equivalent Hash.
738
+ # {::Google::Cloud::Dlp::V2::ListInfoTypesRequest} or an equivalent Hash.
739
739
  #
740
- # @param request [Google::Cloud::Dlp::V2::ListInfoTypesRequest, Hash]
740
+ # @param request [::Google::Cloud::Dlp::V2::ListInfoTypesRequest, ::Hash]
741
741
  # A request object representing the call parameters. Required. To specify no
742
742
  # parameters, or to keep all the default parameter values, pass an empty Hash.
743
- # @param options [Gapic::CallOptions, Hash]
743
+ # @param options [::Gapic::CallOptions, ::Hash]
744
744
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
745
745
  #
746
- # @overload list_info_types(language_code: nil, filter: nil, location_id: nil)
746
+ # @overload list_info_types(parent: nil, language_code: nil, filter: nil, location_id: nil)
747
747
  # Pass arguments to `list_info_types` via keyword arguments. Note that at
748
748
  # least one keyword argument is required. To specify no parameters, or to keep all
749
749
  # the default parameter values, pass an empty Hash as a request object (see above).
750
750
  #
751
- # @param language_code [String]
751
+ # @param parent [::String]
752
+ # The parent resource name, for example locations/\\{location_id}
753
+ # @param language_code [::String]
752
754
  # BCP-47 language code for localized infoType friendly
753
755
  # names. If omitted, or if localized strings are not available,
754
756
  # en-US strings will be returned.
755
- # @param filter [String]
757
+ # @param filter [::String]
756
758
  # filter to only return infoTypes supported by certain parts of the
757
759
  # API. Defaults to supported_by=INSPECT.
758
- # @param location_id [String]
759
- # The geographic location to list info types. Reserved for future
760
- # extensions.
760
+ # @param location_id [::String]
761
+ # Deprecated. This field has no effect.
761
762
  #
762
763
  # @yield [response, operation] Access the result along with the RPC operation
763
- # @yieldparam response [Google::Cloud::Dlp::V2::ListInfoTypesResponse]
764
- # @yieldparam operation [GRPC::ActiveCall::Operation]
764
+ # @yieldparam response [::Google::Cloud::Dlp::V2::ListInfoTypesResponse]
765
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
765
766
  #
766
- # @return [Google::Cloud::Dlp::V2::ListInfoTypesResponse]
767
+ # @return [::Google::Cloud::Dlp::V2::ListInfoTypesResponse]
767
768
  #
768
- # @raise [Google::Cloud::Error] if the RPC is aborted.
769
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
769
770
  #
770
771
  def list_info_types request, options = nil
771
- raise ArgumentError, "request must be provided" if request.nil?
772
+ raise ::ArgumentError, "request must be provided" if request.nil?
772
773
 
773
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListInfoTypesRequest
774
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListInfoTypesRequest
774
775
 
775
776
  # Converts hash and nil to an options object
776
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
777
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
777
778
 
778
779
  # Customize the options with defaults
779
780
  metadata = @config.rpcs.list_info_types.metadata.to_h
780
781
 
781
782
  # Set x-goog-api-client and x-goog-user-project headers
782
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
783
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
783
784
  lib_name: @config.lib_name, lib_version: @config.lib_version,
784
785
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
785
786
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -794,8 +795,8 @@ module Google
794
795
  yield response, operation if block_given?
795
796
  return response
796
797
  end
797
- rescue GRPC::BadStatus => e
798
- raise Google::Cloud::Error.from_error(e)
798
+ rescue ::GRPC::BadStatus => e
799
+ raise ::Google::Cloud::Error.from_error(e)
799
800
  end
800
801
 
801
802
  ##
@@ -805,12 +806,12 @@ module Google
805
806
  #
806
807
  # @overload create_inspect_template(request, options = nil)
807
808
  # Pass arguments to `create_inspect_template` via a request object, either of type
808
- # {Google::Cloud::Dlp::V2::CreateInspectTemplateRequest} or an equivalent Hash.
809
+ # {::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest} or an equivalent Hash.
809
810
  #
810
- # @param request [Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, Hash]
811
+ # @param request [::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, ::Hash]
811
812
  # A request object representing the call parameters. Required. To specify no
812
813
  # parameters, or to keep all the default parameter values, pass an empty Hash.
813
- # @param options [Gapic::CallOptions, Hash]
814
+ # @param options [::Gapic::CallOptions, ::Hash]
814
815
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
815
816
  #
816
817
  # @overload create_inspect_template(parent: nil, inspect_template: nil, template_id: nil, location_id: nil)
@@ -818,41 +819,40 @@ module Google
818
819
  # least one keyword argument is required. To specify no parameters, or to keep all
819
820
  # the default parameter values, pass an empty Hash as a request object (see above).
820
821
  #
821
- # @param parent [String]
822
+ # @param parent [::String]
822
823
  # Required. The parent resource name, for example projects/my-project-id or
823
- # organizations/my-org-id.
824
- # @param inspect_template [Google::Cloud::Dlp::V2::InspectTemplate, Hash]
824
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
825
+ # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
825
826
  # Required. The InspectTemplate to create.
826
- # @param template_id [String]
827
+ # @param template_id [::String]
827
828
  # The template id can contain uppercase and lowercase letters,
828
829
  # numbers, and hyphens; that is, it must match the regular
829
830
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
830
831
  # characters. Can be empty to allow the system to generate one.
831
- # @param location_id [String]
832
- # The geographic location to store the inspection template. Reserved for
833
- # future extensions.
832
+ # @param location_id [::String]
833
+ # Deprecated. This field has no effect.
834
834
  #
835
835
  # @yield [response, operation] Access the result along with the RPC operation
836
- # @yieldparam response [Google::Cloud::Dlp::V2::InspectTemplate]
837
- # @yieldparam operation [GRPC::ActiveCall::Operation]
836
+ # @yieldparam response [::Google::Cloud::Dlp::V2::InspectTemplate]
837
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
838
838
  #
839
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
839
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
840
840
  #
841
- # @raise [Google::Cloud::Error] if the RPC is aborted.
841
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
842
842
  #
843
843
  def create_inspect_template request, options = nil
844
- raise ArgumentError, "request must be provided" if request.nil?
844
+ raise ::ArgumentError, "request must be provided" if request.nil?
845
845
 
846
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CreateInspectTemplateRequest
846
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest
847
847
 
848
848
  # Converts hash and nil to an options object
849
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
849
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
850
850
 
851
851
  # Customize the options with defaults
852
852
  metadata = @config.rpcs.create_inspect_template.metadata.to_h
853
853
 
854
854
  # Set x-goog-api-client and x-goog-user-project headers
855
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
855
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
856
856
  lib_name: @config.lib_name, lib_version: @config.lib_version,
857
857
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
858
858
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -873,8 +873,8 @@ module Google
873
873
  yield response, operation if block_given?
874
874
  return response
875
875
  end
876
- rescue GRPC::BadStatus => e
877
- raise Google::Cloud::Error.from_error(e)
876
+ rescue ::GRPC::BadStatus => e
877
+ raise ::Google::Cloud::Error.from_error(e)
878
878
  end
879
879
 
880
880
  ##
@@ -883,12 +883,12 @@ module Google
883
883
  #
884
884
  # @overload update_inspect_template(request, options = nil)
885
885
  # Pass arguments to `update_inspect_template` via a request object, either of type
886
- # {Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest} or an equivalent Hash.
886
+ # {::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest} or an equivalent Hash.
887
887
  #
888
- # @param request [Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, Hash]
888
+ # @param request [::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, ::Hash]
889
889
  # A request object representing the call parameters. Required. To specify no
890
890
  # parameters, or to keep all the default parameter values, pass an empty Hash.
891
- # @param options [Gapic::CallOptions, Hash]
891
+ # @param options [::Gapic::CallOptions, ::Hash]
892
892
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
893
893
  #
894
894
  # @overload update_inspect_template(name: nil, inspect_template: nil, update_mask: nil)
@@ -896,36 +896,36 @@ module Google
896
896
  # least one keyword argument is required. To specify no parameters, or to keep all
897
897
  # the default parameter values, pass an empty Hash as a request object (see above).
898
898
  #
899
- # @param name [String]
899
+ # @param name [::String]
900
900
  # Required. Resource name of organization and inspectTemplate to be updated,
901
901
  # for example `organizations/433245324/inspectTemplates/432452342` or
902
902
  # projects/project-id/inspectTemplates/432452342.
903
- # @param inspect_template [Google::Cloud::Dlp::V2::InspectTemplate, Hash]
903
+ # @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
904
904
  # New InspectTemplate value.
905
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
905
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
906
906
  # Mask to control which fields get updated.
907
907
  #
908
908
  # @yield [response, operation] Access the result along with the RPC operation
909
- # @yieldparam response [Google::Cloud::Dlp::V2::InspectTemplate]
910
- # @yieldparam operation [GRPC::ActiveCall::Operation]
909
+ # @yieldparam response [::Google::Cloud::Dlp::V2::InspectTemplate]
910
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
911
911
  #
912
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
912
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
913
913
  #
914
- # @raise [Google::Cloud::Error] if the RPC is aborted.
914
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
915
915
  #
916
916
  def update_inspect_template request, options = nil
917
- raise ArgumentError, "request must be provided" if request.nil?
917
+ raise ::ArgumentError, "request must be provided" if request.nil?
918
918
 
919
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest
919
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest
920
920
 
921
921
  # Converts hash and nil to an options object
922
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
922
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
923
923
 
924
924
  # Customize the options with defaults
925
925
  metadata = @config.rpcs.update_inspect_template.metadata.to_h
926
926
 
927
927
  # Set x-goog-api-client and x-goog-user-project headers
928
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
928
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
929
929
  lib_name: @config.lib_name, lib_version: @config.lib_version,
930
930
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
931
931
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -946,8 +946,8 @@ module Google
946
946
  yield response, operation if block_given?
947
947
  return response
948
948
  end
949
- rescue GRPC::BadStatus => e
950
- raise Google::Cloud::Error.from_error(e)
949
+ rescue ::GRPC::BadStatus => e
950
+ raise ::Google::Cloud::Error.from_error(e)
951
951
  end
952
952
 
953
953
  ##
@@ -956,12 +956,12 @@ module Google
956
956
  #
957
957
  # @overload get_inspect_template(request, options = nil)
958
958
  # Pass arguments to `get_inspect_template` via a request object, either of type
959
- # {Google::Cloud::Dlp::V2::GetInspectTemplateRequest} or an equivalent Hash.
959
+ # {::Google::Cloud::Dlp::V2::GetInspectTemplateRequest} or an equivalent Hash.
960
960
  #
961
- # @param request [Google::Cloud::Dlp::V2::GetInspectTemplateRequest, Hash]
961
+ # @param request [::Google::Cloud::Dlp::V2::GetInspectTemplateRequest, ::Hash]
962
962
  # A request object representing the call parameters. Required. To specify no
963
963
  # parameters, or to keep all the default parameter values, pass an empty Hash.
964
- # @param options [Gapic::CallOptions, Hash]
964
+ # @param options [::Gapic::CallOptions, ::Hash]
965
965
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
966
966
  #
967
967
  # @overload get_inspect_template(name: nil)
@@ -969,32 +969,32 @@ module Google
969
969
  # least one keyword argument is required. To specify no parameters, or to keep all
970
970
  # the default parameter values, pass an empty Hash as a request object (see above).
971
971
  #
972
- # @param name [String]
972
+ # @param name [::String]
973
973
  # Required. Resource name of the organization and inspectTemplate to be read,
974
974
  # for example `organizations/433245324/inspectTemplates/432452342` or
975
975
  # projects/project-id/inspectTemplates/432452342.
976
976
  #
977
977
  # @yield [response, operation] Access the result along with the RPC operation
978
- # @yieldparam response [Google::Cloud::Dlp::V2::InspectTemplate]
979
- # @yieldparam operation [GRPC::ActiveCall::Operation]
978
+ # @yieldparam response [::Google::Cloud::Dlp::V2::InspectTemplate]
979
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
980
980
  #
981
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
981
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
982
982
  #
983
- # @raise [Google::Cloud::Error] if the RPC is aborted.
983
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
984
984
  #
985
985
  def get_inspect_template request, options = nil
986
- raise ArgumentError, "request must be provided" if request.nil?
986
+ raise ::ArgumentError, "request must be provided" if request.nil?
987
987
 
988
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::GetInspectTemplateRequest
988
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetInspectTemplateRequest
989
989
 
990
990
  # Converts hash and nil to an options object
991
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
991
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
992
992
 
993
993
  # Customize the options with defaults
994
994
  metadata = @config.rpcs.get_inspect_template.metadata.to_h
995
995
 
996
996
  # Set x-goog-api-client and x-goog-user-project headers
997
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
997
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
998
998
  lib_name: @config.lib_name, lib_version: @config.lib_version,
999
999
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1000
1000
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1015,8 +1015,8 @@ module Google
1015
1015
  yield response, operation if block_given?
1016
1016
  return response
1017
1017
  end
1018
- rescue GRPC::BadStatus => e
1019
- raise Google::Cloud::Error.from_error(e)
1018
+ rescue ::GRPC::BadStatus => e
1019
+ raise ::Google::Cloud::Error.from_error(e)
1020
1020
  end
1021
1021
 
1022
1022
  ##
@@ -1025,12 +1025,12 @@ module Google
1025
1025
  #
1026
1026
  # @overload list_inspect_templates(request, options = nil)
1027
1027
  # Pass arguments to `list_inspect_templates` via a request object, either of type
1028
- # {Google::Cloud::Dlp::V2::ListInspectTemplatesRequest} or an equivalent Hash.
1028
+ # {::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest} or an equivalent Hash.
1029
1029
  #
1030
- # @param request [Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, Hash]
1030
+ # @param request [::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, ::Hash]
1031
1031
  # A request object representing the call parameters. Required. To specify no
1032
1032
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1033
- # @param options [Gapic::CallOptions, Hash]
1033
+ # @param options [::Gapic::CallOptions, ::Hash]
1034
1034
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1035
1035
  #
1036
1036
  # @overload list_inspect_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil)
@@ -1038,16 +1038,16 @@ module Google
1038
1038
  # least one keyword argument is required. To specify no parameters, or to keep all
1039
1039
  # the default parameter values, pass an empty Hash as a request object (see above).
1040
1040
  #
1041
- # @param parent [String]
1041
+ # @param parent [::String]
1042
1042
  # Required. The parent resource name, for example projects/my-project-id or
1043
- # organizations/my-org-id.
1044
- # @param page_token [String]
1043
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1044
+ # @param page_token [::String]
1045
1045
  # Page token to continue retrieval. Comes from previous call
1046
1046
  # to `ListInspectTemplates`.
1047
- # @param page_size [Integer]
1047
+ # @param page_size [::Integer]
1048
1048
  # Size of the page, can be limited by server. If zero server returns
1049
1049
  # a page of max size 100.
1050
- # @param order_by [String]
1050
+ # @param order_by [::String]
1051
1051
  # Comma separated list of fields to order by,
1052
1052
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
1053
1053
  # default sorting order is ascending, redundant space characters are
@@ -1061,31 +1061,30 @@ module Google
1061
1061
  # - `update_time`: corresponds to time the template was last updated.
1062
1062
  # - `name`: corresponds to template's name.
1063
1063
  # - `display_name`: corresponds to template's display name.
1064
- # @param location_id [String]
1065
- # The geographic location where inspection templates will be retrieved from.
1066
- # Use `-` for all locations. Reserved for future extensions.
1064
+ # @param location_id [::String]
1065
+ # Deprecated. This field has no effect.
1067
1066
  #
1068
1067
  # @yield [response, operation] Access the result along with the RPC operation
1069
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::InspectTemplate>]
1070
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1068
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>]
1069
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1071
1070
  #
1072
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::InspectTemplate>]
1071
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::InspectTemplate>]
1073
1072
  #
1074
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1073
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1075
1074
  #
1076
1075
  def list_inspect_templates request, options = nil
1077
- raise ArgumentError, "request must be provided" if request.nil?
1076
+ raise ::ArgumentError, "request must be provided" if request.nil?
1078
1077
 
1079
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListInspectTemplatesRequest
1078
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListInspectTemplatesRequest
1080
1079
 
1081
1080
  # Converts hash and nil to an options object
1082
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1081
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1083
1082
 
1084
1083
  # Customize the options with defaults
1085
1084
  metadata = @config.rpcs.list_inspect_templates.metadata.to_h
1086
1085
 
1087
1086
  # Set x-goog-api-client and x-goog-user-project headers
1088
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1087
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1089
1088
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1090
1089
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1091
1090
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1103,12 +1102,12 @@ module Google
1103
1102
  retry_policy: @config.retry_policy
1104
1103
 
1105
1104
  @dlp_service_stub.call_rpc :list_inspect_templates, request, options: options do |response, operation|
1106
- response = Gapic::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, request, response, operation, options
1105
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, request, response, operation, options
1107
1106
  yield response, operation if block_given?
1108
1107
  return response
1109
1108
  end
1110
- rescue GRPC::BadStatus => e
1111
- raise Google::Cloud::Error.from_error(e)
1109
+ rescue ::GRPC::BadStatus => e
1110
+ raise ::Google::Cloud::Error.from_error(e)
1112
1111
  end
1113
1112
 
1114
1113
  ##
@@ -1117,12 +1116,12 @@ module Google
1117
1116
  #
1118
1117
  # @overload delete_inspect_template(request, options = nil)
1119
1118
  # Pass arguments to `delete_inspect_template` via a request object, either of type
1120
- # {Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest} or an equivalent Hash.
1119
+ # {::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest} or an equivalent Hash.
1121
1120
  #
1122
- # @param request [Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, Hash]
1121
+ # @param request [::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, ::Hash]
1123
1122
  # A request object representing the call parameters. Required. To specify no
1124
1123
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1125
- # @param options [Gapic::CallOptions, Hash]
1124
+ # @param options [::Gapic::CallOptions, ::Hash]
1126
1125
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1127
1126
  #
1128
1127
  # @overload delete_inspect_template(name: nil)
@@ -1130,32 +1129,32 @@ module Google
1130
1129
  # least one keyword argument is required. To specify no parameters, or to keep all
1131
1130
  # the default parameter values, pass an empty Hash as a request object (see above).
1132
1131
  #
1133
- # @param name [String]
1132
+ # @param name [::String]
1134
1133
  # Required. Resource name of the organization and inspectTemplate to be
1135
1134
  # deleted, for example `organizations/433245324/inspectTemplates/432452342`
1136
1135
  # or projects/project-id/inspectTemplates/432452342.
1137
1136
  #
1138
1137
  # @yield [response, operation] Access the result along with the RPC operation
1139
- # @yieldparam response [Google::Protobuf::Empty]
1140
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1138
+ # @yieldparam response [::Google::Protobuf::Empty]
1139
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1141
1140
  #
1142
- # @return [Google::Protobuf::Empty]
1141
+ # @return [::Google::Protobuf::Empty]
1143
1142
  #
1144
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1143
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1145
1144
  #
1146
1145
  def delete_inspect_template request, options = nil
1147
- raise ArgumentError, "request must be provided" if request.nil?
1146
+ raise ::ArgumentError, "request must be provided" if request.nil?
1148
1147
 
1149
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest
1148
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest
1150
1149
 
1151
1150
  # Converts hash and nil to an options object
1152
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1151
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1153
1152
 
1154
1153
  # Customize the options with defaults
1155
1154
  metadata = @config.rpcs.delete_inspect_template.metadata.to_h
1156
1155
 
1157
1156
  # Set x-goog-api-client and x-goog-user-project headers
1158
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1157
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1159
1158
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1160
1159
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1161
1160
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1176,8 +1175,8 @@ module Google
1176
1175
  yield response, operation if block_given?
1177
1176
  return response
1178
1177
  end
1179
- rescue GRPC::BadStatus => e
1180
- raise Google::Cloud::Error.from_error(e)
1178
+ rescue ::GRPC::BadStatus => e
1179
+ raise ::Google::Cloud::Error.from_error(e)
1181
1180
  end
1182
1181
 
1183
1182
  ##
@@ -1188,12 +1187,12 @@ module Google
1188
1187
  #
1189
1188
  # @overload create_deidentify_template(request, options = nil)
1190
1189
  # Pass arguments to `create_deidentify_template` via a request object, either of type
1191
- # {Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest} or an equivalent Hash.
1190
+ # {::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest} or an equivalent Hash.
1192
1191
  #
1193
- # @param request [Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, Hash]
1192
+ # @param request [::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, ::Hash]
1194
1193
  # A request object representing the call parameters. Required. To specify no
1195
1194
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1196
- # @param options [Gapic::CallOptions, Hash]
1195
+ # @param options [::Gapic::CallOptions, ::Hash]
1197
1196
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1198
1197
  #
1199
1198
  # @overload create_deidentify_template(parent: nil, deidentify_template: nil, template_id: nil, location_id: nil)
@@ -1201,41 +1200,40 @@ module Google
1201
1200
  # least one keyword argument is required. To specify no parameters, or to keep all
1202
1201
  # the default parameter values, pass an empty Hash as a request object (see above).
1203
1202
  #
1204
- # @param parent [String]
1203
+ # @param parent [::String]
1205
1204
  # Required. The parent resource name, for example projects/my-project-id or
1206
- # organizations/my-org-id.
1207
- # @param deidentify_template [Google::Cloud::Dlp::V2::DeidentifyTemplate, Hash]
1205
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1206
+ # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1208
1207
  # Required. The DeidentifyTemplate to create.
1209
- # @param template_id [String]
1208
+ # @param template_id [::String]
1210
1209
  # The template id can contain uppercase and lowercase letters,
1211
1210
  # numbers, and hyphens; that is, it must match the regular
1212
1211
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1213
1212
  # characters. Can be empty to allow the system to generate one.
1214
- # @param location_id [String]
1215
- # The geographic location to store the deidentification template. Reserved
1216
- # for future extensions.
1213
+ # @param location_id [::String]
1214
+ # Deprecated. This field has no effect.
1217
1215
  #
1218
1216
  # @yield [response, operation] Access the result along with the RPC operation
1219
- # @yieldparam response [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1220
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1217
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1218
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1221
1219
  #
1222
- # @return [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1220
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1223
1221
  #
1224
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1222
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1225
1223
  #
1226
1224
  def create_deidentify_template request, options = nil
1227
- raise ArgumentError, "request must be provided" if request.nil?
1225
+ raise ::ArgumentError, "request must be provided" if request.nil?
1228
1226
 
1229
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest
1227
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest
1230
1228
 
1231
1229
  # Converts hash and nil to an options object
1232
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1230
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1233
1231
 
1234
1232
  # Customize the options with defaults
1235
1233
  metadata = @config.rpcs.create_deidentify_template.metadata.to_h
1236
1234
 
1237
1235
  # Set x-goog-api-client and x-goog-user-project headers
1238
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1236
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1239
1237
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1240
1238
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1241
1239
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1256,8 +1254,8 @@ module Google
1256
1254
  yield response, operation if block_given?
1257
1255
  return response
1258
1256
  end
1259
- rescue GRPC::BadStatus => e
1260
- raise Google::Cloud::Error.from_error(e)
1257
+ rescue ::GRPC::BadStatus => e
1258
+ raise ::Google::Cloud::Error.from_error(e)
1261
1259
  end
1262
1260
 
1263
1261
  ##
@@ -1267,12 +1265,12 @@ module Google
1267
1265
  #
1268
1266
  # @overload update_deidentify_template(request, options = nil)
1269
1267
  # Pass arguments to `update_deidentify_template` via a request object, either of type
1270
- # {Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest} or an equivalent Hash.
1268
+ # {::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest} or an equivalent Hash.
1271
1269
  #
1272
- # @param request [Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, Hash]
1270
+ # @param request [::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, ::Hash]
1273
1271
  # A request object representing the call parameters. Required. To specify no
1274
1272
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1275
- # @param options [Gapic::CallOptions, Hash]
1273
+ # @param options [::Gapic::CallOptions, ::Hash]
1276
1274
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1277
1275
  #
1278
1276
  # @overload update_deidentify_template(name: nil, deidentify_template: nil, update_mask: nil)
@@ -1280,37 +1278,37 @@ module Google
1280
1278
  # least one keyword argument is required. To specify no parameters, or to keep all
1281
1279
  # the default parameter values, pass an empty Hash as a request object (see above).
1282
1280
  #
1283
- # @param name [String]
1281
+ # @param name [::String]
1284
1282
  # Required. Resource name of organization and deidentify template to be
1285
1283
  # updated, for example
1286
1284
  # `organizations/433245324/deidentifyTemplates/432452342` or
1287
1285
  # projects/project-id/deidentifyTemplates/432452342.
1288
- # @param deidentify_template [Google::Cloud::Dlp::V2::DeidentifyTemplate, Hash]
1286
+ # @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
1289
1287
  # New DeidentifyTemplate value.
1290
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
1288
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1291
1289
  # Mask to control which fields get updated.
1292
1290
  #
1293
1291
  # @yield [response, operation] Access the result along with the RPC operation
1294
- # @yieldparam response [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1295
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1292
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1293
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1296
1294
  #
1297
- # @return [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1295
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1298
1296
  #
1299
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1297
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1300
1298
  #
1301
1299
  def update_deidentify_template request, options = nil
1302
- raise ArgumentError, "request must be provided" if request.nil?
1300
+ raise ::ArgumentError, "request must be provided" if request.nil?
1303
1301
 
1304
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest
1302
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest
1305
1303
 
1306
1304
  # Converts hash and nil to an options object
1307
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1305
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1308
1306
 
1309
1307
  # Customize the options with defaults
1310
1308
  metadata = @config.rpcs.update_deidentify_template.metadata.to_h
1311
1309
 
1312
1310
  # Set x-goog-api-client and x-goog-user-project headers
1313
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1311
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1314
1312
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1315
1313
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1316
1314
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1331,8 +1329,8 @@ module Google
1331
1329
  yield response, operation if block_given?
1332
1330
  return response
1333
1331
  end
1334
- rescue GRPC::BadStatus => e
1335
- raise Google::Cloud::Error.from_error(e)
1332
+ rescue ::GRPC::BadStatus => e
1333
+ raise ::Google::Cloud::Error.from_error(e)
1336
1334
  end
1337
1335
 
1338
1336
  ##
@@ -1342,12 +1340,12 @@ module Google
1342
1340
  #
1343
1341
  # @overload get_deidentify_template(request, options = nil)
1344
1342
  # Pass arguments to `get_deidentify_template` via a request object, either of type
1345
- # {Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest} or an equivalent Hash.
1343
+ # {::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest} or an equivalent Hash.
1346
1344
  #
1347
- # @param request [Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, Hash]
1345
+ # @param request [::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, ::Hash]
1348
1346
  # A request object representing the call parameters. Required. To specify no
1349
1347
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1350
- # @param options [Gapic::CallOptions, Hash]
1348
+ # @param options [::Gapic::CallOptions, ::Hash]
1351
1349
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1352
1350
  #
1353
1351
  # @overload get_deidentify_template(name: nil)
@@ -1355,32 +1353,32 @@ module Google
1355
1353
  # least one keyword argument is required. To specify no parameters, or to keep all
1356
1354
  # the default parameter values, pass an empty Hash as a request object (see above).
1357
1355
  #
1358
- # @param name [String]
1356
+ # @param name [::String]
1359
1357
  # Required. Resource name of the organization and deidentify template to be
1360
1358
  # read, for example `organizations/433245324/deidentifyTemplates/432452342`
1361
1359
  # or projects/project-id/deidentifyTemplates/432452342.
1362
1360
  #
1363
1361
  # @yield [response, operation] Access the result along with the RPC operation
1364
- # @yieldparam response [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1365
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1362
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1363
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1366
1364
  #
1367
- # @return [Google::Cloud::Dlp::V2::DeidentifyTemplate]
1365
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
1368
1366
  #
1369
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1367
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1370
1368
  #
1371
1369
  def get_deidentify_template request, options = nil
1372
- raise ArgumentError, "request must be provided" if request.nil?
1370
+ raise ::ArgumentError, "request must be provided" if request.nil?
1373
1371
 
1374
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest
1372
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest
1375
1373
 
1376
1374
  # Converts hash and nil to an options object
1377
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1375
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1378
1376
 
1379
1377
  # Customize the options with defaults
1380
1378
  metadata = @config.rpcs.get_deidentify_template.metadata.to_h
1381
1379
 
1382
1380
  # Set x-goog-api-client and x-goog-user-project headers
1383
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1381
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1384
1382
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1385
1383
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1386
1384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1401,8 +1399,8 @@ module Google
1401
1399
  yield response, operation if block_given?
1402
1400
  return response
1403
1401
  end
1404
- rescue GRPC::BadStatus => e
1405
- raise Google::Cloud::Error.from_error(e)
1402
+ rescue ::GRPC::BadStatus => e
1403
+ raise ::Google::Cloud::Error.from_error(e)
1406
1404
  end
1407
1405
 
1408
1406
  ##
@@ -1412,12 +1410,12 @@ module Google
1412
1410
  #
1413
1411
  # @overload list_deidentify_templates(request, options = nil)
1414
1412
  # Pass arguments to `list_deidentify_templates` via a request object, either of type
1415
- # {Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest} or an equivalent Hash.
1413
+ # {::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest} or an equivalent Hash.
1416
1414
  #
1417
- # @param request [Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, Hash]
1415
+ # @param request [::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, ::Hash]
1418
1416
  # A request object representing the call parameters. Required. To specify no
1419
1417
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1420
- # @param options [Gapic::CallOptions, Hash]
1418
+ # @param options [::Gapic::CallOptions, ::Hash]
1421
1419
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1422
1420
  #
1423
1421
  # @overload list_deidentify_templates(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil)
@@ -1425,16 +1423,16 @@ module Google
1425
1423
  # least one keyword argument is required. To specify no parameters, or to keep all
1426
1424
  # the default parameter values, pass an empty Hash as a request object (see above).
1427
1425
  #
1428
- # @param parent [String]
1426
+ # @param parent [::String]
1429
1427
  # Required. The parent resource name, for example projects/my-project-id or
1430
- # organizations/my-org-id.
1431
- # @param page_token [String]
1428
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
1429
+ # @param page_token [::String]
1432
1430
  # Page token to continue retrieval. Comes from previous call
1433
1431
  # to `ListDeidentifyTemplates`.
1434
- # @param page_size [Integer]
1432
+ # @param page_size [::Integer]
1435
1433
  # Size of the page, can be limited by server. If zero server returns
1436
1434
  # a page of max size 100.
1437
- # @param order_by [String]
1435
+ # @param order_by [::String]
1438
1436
  # Comma separated list of fields to order by,
1439
1437
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
1440
1438
  # default sorting order is ascending, redundant space characters are
@@ -1448,31 +1446,30 @@ module Google
1448
1446
  # - `update_time`: corresponds to time the template was last updated.
1449
1447
  # - `name`: corresponds to template's name.
1450
1448
  # - `display_name`: corresponds to template's display name.
1451
- # @param location_id [String]
1452
- # The geographic location where deidentifications templates will be retrieved
1453
- # from. Use `-` for all locations. Reserved for future extensions.
1449
+ # @param location_id [::String]
1450
+ # Deprecated. This field has no effect.
1454
1451
  #
1455
1452
  # @yield [response, operation] Access the result along with the RPC operation
1456
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::DeidentifyTemplate>]
1457
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1453
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>]
1454
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1458
1455
  #
1459
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::DeidentifyTemplate>]
1456
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DeidentifyTemplate>]
1460
1457
  #
1461
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1458
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1462
1459
  #
1463
1460
  def list_deidentify_templates request, options = nil
1464
- raise ArgumentError, "request must be provided" if request.nil?
1461
+ raise ::ArgumentError, "request must be provided" if request.nil?
1465
1462
 
1466
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest
1463
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest
1467
1464
 
1468
1465
  # Converts hash and nil to an options object
1469
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1466
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1470
1467
 
1471
1468
  # Customize the options with defaults
1472
1469
  metadata = @config.rpcs.list_deidentify_templates.metadata.to_h
1473
1470
 
1474
1471
  # Set x-goog-api-client and x-goog-user-project headers
1475
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1472
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1476
1473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1477
1474
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1478
1475
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1490,12 +1487,12 @@ module Google
1490
1487
  retry_policy: @config.retry_policy
1491
1488
 
1492
1489
  @dlp_service_stub.call_rpc :list_deidentify_templates, request, options: options do |response, operation|
1493
- response = Gapic::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, request, response, operation, options
1490
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, request, response, operation, options
1494
1491
  yield response, operation if block_given?
1495
1492
  return response
1496
1493
  end
1497
- rescue GRPC::BadStatus => e
1498
- raise Google::Cloud::Error.from_error(e)
1494
+ rescue ::GRPC::BadStatus => e
1495
+ raise ::Google::Cloud::Error.from_error(e)
1499
1496
  end
1500
1497
 
1501
1498
  ##
@@ -1505,12 +1502,12 @@ module Google
1505
1502
  #
1506
1503
  # @overload delete_deidentify_template(request, options = nil)
1507
1504
  # Pass arguments to `delete_deidentify_template` via a request object, either of type
1508
- # {Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest} or an equivalent Hash.
1505
+ # {::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest} or an equivalent Hash.
1509
1506
  #
1510
- # @param request [Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, Hash]
1507
+ # @param request [::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, ::Hash]
1511
1508
  # A request object representing the call parameters. Required. To specify no
1512
1509
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1513
- # @param options [Gapic::CallOptions, Hash]
1510
+ # @param options [::Gapic::CallOptions, ::Hash]
1514
1511
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1515
1512
  #
1516
1513
  # @overload delete_deidentify_template(name: nil)
@@ -1518,33 +1515,33 @@ module Google
1518
1515
  # least one keyword argument is required. To specify no parameters, or to keep all
1519
1516
  # the default parameter values, pass an empty Hash as a request object (see above).
1520
1517
  #
1521
- # @param name [String]
1518
+ # @param name [::String]
1522
1519
  # Required. Resource name of the organization and deidentify template to be
1523
1520
  # deleted, for example
1524
1521
  # `organizations/433245324/deidentifyTemplates/432452342` or
1525
1522
  # projects/project-id/deidentifyTemplates/432452342.
1526
1523
  #
1527
1524
  # @yield [response, operation] Access the result along with the RPC operation
1528
- # @yieldparam response [Google::Protobuf::Empty]
1529
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1525
+ # @yieldparam response [::Google::Protobuf::Empty]
1526
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1530
1527
  #
1531
- # @return [Google::Protobuf::Empty]
1528
+ # @return [::Google::Protobuf::Empty]
1532
1529
  #
1533
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1530
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1534
1531
  #
1535
1532
  def delete_deidentify_template request, options = nil
1536
- raise ArgumentError, "request must be provided" if request.nil?
1533
+ raise ::ArgumentError, "request must be provided" if request.nil?
1537
1534
 
1538
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest
1535
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest
1539
1536
 
1540
1537
  # Converts hash and nil to an options object
1541
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1538
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1542
1539
 
1543
1540
  # Customize the options with defaults
1544
1541
  metadata = @config.rpcs.delete_deidentify_template.metadata.to_h
1545
1542
 
1546
1543
  # Set x-goog-api-client and x-goog-user-project headers
1547
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1544
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1548
1545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1549
1546
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1550
1547
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1565,8 +1562,8 @@ module Google
1565
1562
  yield response, operation if block_given?
1566
1563
  return response
1567
1564
  end
1568
- rescue GRPC::BadStatus => e
1569
- raise Google::Cloud::Error.from_error(e)
1565
+ rescue ::GRPC::BadStatus => e
1566
+ raise ::Google::Cloud::Error.from_error(e)
1570
1567
  end
1571
1568
 
1572
1569
  ##
@@ -1576,12 +1573,12 @@ module Google
1576
1573
  #
1577
1574
  # @overload create_job_trigger(request, options = nil)
1578
1575
  # Pass arguments to `create_job_trigger` via a request object, either of type
1579
- # {Google::Cloud::Dlp::V2::CreateJobTriggerRequest} or an equivalent Hash.
1576
+ # {::Google::Cloud::Dlp::V2::CreateJobTriggerRequest} or an equivalent Hash.
1580
1577
  #
1581
- # @param request [Google::Cloud::Dlp::V2::CreateJobTriggerRequest, Hash]
1578
+ # @param request [::Google::Cloud::Dlp::V2::CreateJobTriggerRequest, ::Hash]
1582
1579
  # A request object representing the call parameters. Required. To specify no
1583
1580
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1584
- # @param options [Gapic::CallOptions, Hash]
1581
+ # @param options [::Gapic::CallOptions, ::Hash]
1585
1582
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1586
1583
  #
1587
1584
  # @overload create_job_trigger(parent: nil, job_trigger: nil, trigger_id: nil, location_id: nil)
@@ -1589,40 +1586,40 @@ module Google
1589
1586
  # least one keyword argument is required. To specify no parameters, or to keep all
1590
1587
  # the default parameter values, pass an empty Hash as a request object (see above).
1591
1588
  #
1592
- # @param parent [String]
1593
- # Required. The parent resource name, for example projects/my-project-id.
1594
- # @param job_trigger [Google::Cloud::Dlp::V2::JobTrigger, Hash]
1589
+ # @param parent [::String]
1590
+ # Required. The parent resource name, for example projects/my-project-id
1591
+ # or projects/my-project-id/locations/\\{location_id}.
1592
+ # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1595
1593
  # Required. The JobTrigger to create.
1596
- # @param trigger_id [String]
1594
+ # @param trigger_id [::String]
1597
1595
  # The trigger id can contain uppercase and lowercase letters,
1598
1596
  # numbers, and hyphens; that is, it must match the regular
1599
1597
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
1600
1598
  # characters. Can be empty to allow the system to generate one.
1601
- # @param location_id [String]
1602
- # The geographic location to store the job trigger. Reserved for
1603
- # future extensions.
1599
+ # @param location_id [::String]
1600
+ # Deprecated. This field has no effect.
1604
1601
  #
1605
1602
  # @yield [response, operation] Access the result along with the RPC operation
1606
- # @yieldparam response [Google::Cloud::Dlp::V2::JobTrigger]
1607
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1603
+ # @yieldparam response [::Google::Cloud::Dlp::V2::JobTrigger]
1604
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1608
1605
  #
1609
- # @return [Google::Cloud::Dlp::V2::JobTrigger]
1606
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1610
1607
  #
1611
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1608
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1612
1609
  #
1613
1610
  def create_job_trigger request, options = nil
1614
- raise ArgumentError, "request must be provided" if request.nil?
1611
+ raise ::ArgumentError, "request must be provided" if request.nil?
1615
1612
 
1616
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CreateJobTriggerRequest
1613
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateJobTriggerRequest
1617
1614
 
1618
1615
  # Converts hash and nil to an options object
1619
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1616
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1620
1617
 
1621
1618
  # Customize the options with defaults
1622
1619
  metadata = @config.rpcs.create_job_trigger.metadata.to_h
1623
1620
 
1624
1621
  # Set x-goog-api-client and x-goog-user-project headers
1625
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1622
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1626
1623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1627
1624
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1628
1625
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1643,8 +1640,8 @@ module Google
1643
1640
  yield response, operation if block_given?
1644
1641
  return response
1645
1642
  end
1646
- rescue GRPC::BadStatus => e
1647
- raise Google::Cloud::Error.from_error(e)
1643
+ rescue ::GRPC::BadStatus => e
1644
+ raise ::Google::Cloud::Error.from_error(e)
1648
1645
  end
1649
1646
 
1650
1647
  ##
@@ -1653,12 +1650,12 @@ module Google
1653
1650
  #
1654
1651
  # @overload update_job_trigger(request, options = nil)
1655
1652
  # Pass arguments to `update_job_trigger` via a request object, either of type
1656
- # {Google::Cloud::Dlp::V2::UpdateJobTriggerRequest} or an equivalent Hash.
1653
+ # {::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest} or an equivalent Hash.
1657
1654
  #
1658
- # @param request [Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, Hash]
1655
+ # @param request [::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, ::Hash]
1659
1656
  # A request object representing the call parameters. Required. To specify no
1660
1657
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1661
- # @param options [Gapic::CallOptions, Hash]
1658
+ # @param options [::Gapic::CallOptions, ::Hash]
1662
1659
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1663
1660
  #
1664
1661
  # @overload update_job_trigger(name: nil, job_trigger: nil, update_mask: nil)
@@ -1666,35 +1663,35 @@ module Google
1666
1663
  # least one keyword argument is required. To specify no parameters, or to keep all
1667
1664
  # the default parameter values, pass an empty Hash as a request object (see above).
1668
1665
  #
1669
- # @param name [String]
1666
+ # @param name [::String]
1670
1667
  # Required. Resource name of the project and the triggeredJob, for example
1671
1668
  # `projects/dlp-test-project/jobTriggers/53234423`.
1672
- # @param job_trigger [Google::Cloud::Dlp::V2::JobTrigger, Hash]
1669
+ # @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
1673
1670
  # New JobTrigger value.
1674
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
1671
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1675
1672
  # Mask to control which fields get updated.
1676
1673
  #
1677
1674
  # @yield [response, operation] Access the result along with the RPC operation
1678
- # @yieldparam response [Google::Cloud::Dlp::V2::JobTrigger]
1679
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1675
+ # @yieldparam response [::Google::Cloud::Dlp::V2::JobTrigger]
1676
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1680
1677
  #
1681
- # @return [Google::Cloud::Dlp::V2::JobTrigger]
1678
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1682
1679
  #
1683
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1680
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1684
1681
  #
1685
1682
  def update_job_trigger request, options = nil
1686
- raise ArgumentError, "request must be provided" if request.nil?
1683
+ raise ::ArgumentError, "request must be provided" if request.nil?
1687
1684
 
1688
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::UpdateJobTriggerRequest
1685
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateJobTriggerRequest
1689
1686
 
1690
1687
  # Converts hash and nil to an options object
1691
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1688
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1692
1689
 
1693
1690
  # Customize the options with defaults
1694
1691
  metadata = @config.rpcs.update_job_trigger.metadata.to_h
1695
1692
 
1696
1693
  # Set x-goog-api-client and x-goog-user-project headers
1697
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1694
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1698
1695
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1699
1696
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1700
1697
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1715,8 +1712,8 @@ module Google
1715
1712
  yield response, operation if block_given?
1716
1713
  return response
1717
1714
  end
1718
- rescue GRPC::BadStatus => e
1719
- raise Google::Cloud::Error.from_error(e)
1715
+ rescue ::GRPC::BadStatus => e
1716
+ raise ::Google::Cloud::Error.from_error(e)
1720
1717
  end
1721
1718
 
1722
1719
  ##
@@ -1729,12 +1726,12 @@ module Google
1729
1726
  #
1730
1727
  # @overload hybrid_inspect_job_trigger(request, options = nil)
1731
1728
  # Pass arguments to `hybrid_inspect_job_trigger` via a request object, either of type
1732
- # {Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest} or an equivalent Hash.
1729
+ # {::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest} or an equivalent Hash.
1733
1730
  #
1734
- # @param request [Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, Hash]
1731
+ # @param request [::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, ::Hash]
1735
1732
  # A request object representing the call parameters. Required. To specify no
1736
1733
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1737
- # @param options [Gapic::CallOptions, Hash]
1734
+ # @param options [::Gapic::CallOptions, ::Hash]
1738
1735
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1739
1736
  #
1740
1737
  # @overload hybrid_inspect_job_trigger(name: nil, hybrid_item: nil)
@@ -1742,33 +1739,33 @@ module Google
1742
1739
  # least one keyword argument is required. To specify no parameters, or to keep all
1743
1740
  # the default parameter values, pass an empty Hash as a request object (see above).
1744
1741
  #
1745
- # @param name [String]
1742
+ # @param name [::String]
1746
1743
  # Required. Resource name of the trigger to execute a hybrid inspect on, for
1747
1744
  # example `projects/dlp-test-project/jobTriggers/53234423`.
1748
- # @param hybrid_item [Google::Cloud::Dlp::V2::HybridContentItem, Hash]
1745
+ # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
1749
1746
  # The item to inspect.
1750
1747
  #
1751
1748
  # @yield [response, operation] Access the result along with the RPC operation
1752
- # @yieldparam response [Google::Cloud::Dlp::V2::HybridInspectResponse]
1753
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1749
+ # @yieldparam response [::Google::Cloud::Dlp::V2::HybridInspectResponse]
1750
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1754
1751
  #
1755
- # @return [Google::Cloud::Dlp::V2::HybridInspectResponse]
1752
+ # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
1756
1753
  #
1757
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1754
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1758
1755
  #
1759
1756
  def hybrid_inspect_job_trigger request, options = nil
1760
- raise ArgumentError, "request must be provided" if request.nil?
1757
+ raise ::ArgumentError, "request must be provided" if request.nil?
1761
1758
 
1762
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest
1759
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest
1763
1760
 
1764
1761
  # Converts hash and nil to an options object
1765
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1762
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1766
1763
 
1767
1764
  # Customize the options with defaults
1768
1765
  metadata = @config.rpcs.hybrid_inspect_job_trigger.metadata.to_h
1769
1766
 
1770
1767
  # Set x-goog-api-client and x-goog-user-project headers
1771
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1768
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1772
1769
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1773
1770
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1774
1771
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1789,8 +1786,8 @@ module Google
1789
1786
  yield response, operation if block_given?
1790
1787
  return response
1791
1788
  end
1792
- rescue GRPC::BadStatus => e
1793
- raise Google::Cloud::Error.from_error(e)
1789
+ rescue ::GRPC::BadStatus => e
1790
+ raise ::Google::Cloud::Error.from_error(e)
1794
1791
  end
1795
1792
 
1796
1793
  ##
@@ -1799,12 +1796,12 @@ module Google
1799
1796
  #
1800
1797
  # @overload get_job_trigger(request, options = nil)
1801
1798
  # Pass arguments to `get_job_trigger` via a request object, either of type
1802
- # {Google::Cloud::Dlp::V2::GetJobTriggerRequest} or an equivalent Hash.
1799
+ # {::Google::Cloud::Dlp::V2::GetJobTriggerRequest} or an equivalent Hash.
1803
1800
  #
1804
- # @param request [Google::Cloud::Dlp::V2::GetJobTriggerRequest, Hash]
1801
+ # @param request [::Google::Cloud::Dlp::V2::GetJobTriggerRequest, ::Hash]
1805
1802
  # A request object representing the call parameters. Required. To specify no
1806
1803
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1807
- # @param options [Gapic::CallOptions, Hash]
1804
+ # @param options [::Gapic::CallOptions, ::Hash]
1808
1805
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1809
1806
  #
1810
1807
  # @overload get_job_trigger(name: nil)
@@ -1812,31 +1809,31 @@ module Google
1812
1809
  # least one keyword argument is required. To specify no parameters, or to keep all
1813
1810
  # the default parameter values, pass an empty Hash as a request object (see above).
1814
1811
  #
1815
- # @param name [String]
1812
+ # @param name [::String]
1816
1813
  # Required. Resource name of the project and the triggeredJob, for example
1817
1814
  # `projects/dlp-test-project/jobTriggers/53234423`.
1818
1815
  #
1819
1816
  # @yield [response, operation] Access the result along with the RPC operation
1820
- # @yieldparam response [Google::Cloud::Dlp::V2::JobTrigger]
1821
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1817
+ # @yieldparam response [::Google::Cloud::Dlp::V2::JobTrigger]
1818
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1822
1819
  #
1823
- # @return [Google::Cloud::Dlp::V2::JobTrigger]
1820
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger]
1824
1821
  #
1825
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1822
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1826
1823
  #
1827
1824
  def get_job_trigger request, options = nil
1828
- raise ArgumentError, "request must be provided" if request.nil?
1825
+ raise ::ArgumentError, "request must be provided" if request.nil?
1829
1826
 
1830
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::GetJobTriggerRequest
1827
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetJobTriggerRequest
1831
1828
 
1832
1829
  # Converts hash and nil to an options object
1833
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1830
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1834
1831
 
1835
1832
  # Customize the options with defaults
1836
1833
  metadata = @config.rpcs.get_job_trigger.metadata.to_h
1837
1834
 
1838
1835
  # Set x-goog-api-client and x-goog-user-project headers
1839
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1836
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1840
1837
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1841
1838
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1842
1839
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1857,8 +1854,8 @@ module Google
1857
1854
  yield response, operation if block_given?
1858
1855
  return response
1859
1856
  end
1860
- rescue GRPC::BadStatus => e
1861
- raise Google::Cloud::Error.from_error(e)
1857
+ rescue ::GRPC::BadStatus => e
1858
+ raise ::Google::Cloud::Error.from_error(e)
1862
1859
  end
1863
1860
 
1864
1861
  ##
@@ -1867,12 +1864,12 @@ module Google
1867
1864
  #
1868
1865
  # @overload list_job_triggers(request, options = nil)
1869
1866
  # Pass arguments to `list_job_triggers` via a request object, either of type
1870
- # {Google::Cloud::Dlp::V2::ListJobTriggersRequest} or an equivalent Hash.
1867
+ # {::Google::Cloud::Dlp::V2::ListJobTriggersRequest} or an equivalent Hash.
1871
1868
  #
1872
- # @param request [Google::Cloud::Dlp::V2::ListJobTriggersRequest, Hash]
1869
+ # @param request [::Google::Cloud::Dlp::V2::ListJobTriggersRequest, ::Hash]
1873
1870
  # A request object representing the call parameters. Required. To specify no
1874
1871
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1875
- # @param options [Gapic::CallOptions, Hash]
1872
+ # @param options [::Gapic::CallOptions, ::Hash]
1876
1873
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1877
1874
  #
1878
1875
  # @overload list_job_triggers(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil, location_id: nil)
@@ -1880,15 +1877,16 @@ module Google
1880
1877
  # least one keyword argument is required. To specify no parameters, or to keep all
1881
1878
  # the default parameter values, pass an empty Hash as a request object (see above).
1882
1879
  #
1883
- # @param parent [String]
1884
- # Required. The parent resource name, for example `projects/my-project-id`.
1885
- # @param page_token [String]
1880
+ # @param parent [::String]
1881
+ # Required. The parent resource name, for example `projects/my-project-id`
1882
+ # or projects/my-project-id/locations/\\{location_id}.
1883
+ # @param page_token [::String]
1886
1884
  # Page token to continue retrieval. Comes from previous call
1887
1885
  # to ListJobTriggers. `order_by` field must not
1888
1886
  # change for subsequent calls.
1889
- # @param page_size [Integer]
1887
+ # @param page_size [::Integer]
1890
1888
  # Size of the page, can be limited by a server.
1891
- # @param order_by [String]
1889
+ # @param order_by [::String]
1892
1890
  # Comma separated list of triggeredJob fields to order by,
1893
1891
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
1894
1892
  # default sorting order is ascending, redundant space characters are
@@ -1904,7 +1902,7 @@ module Google
1904
1902
  # - `name`: corresponds to JobTrigger's name.
1905
1903
  # - `display_name`: corresponds to JobTrigger's display name.
1906
1904
  # - `status`: corresponds to JobTrigger's status.
1907
- # @param filter [String]
1905
+ # @param filter [::String]
1908
1906
  # Allows filtering.
1909
1907
  #
1910
1908
  # Supported syntax:
@@ -1929,31 +1927,30 @@ module Google
1929
1927
  # * last_run_time > \"2017-12-12T00:00:00+00:00\"
1930
1928
  #
1931
1929
  # The length of this field should be no more than 500 characters.
1932
- # @param location_id [String]
1933
- # The geographic location where job triggers will be retrieved from.
1934
- # Use `-` for all locations. Reserved for future extensions.
1930
+ # @param location_id [::String]
1931
+ # Deprecated. This field has no effect.
1935
1932
  #
1936
1933
  # @yield [response, operation] Access the result along with the RPC operation
1937
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::JobTrigger>]
1938
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1934
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>]
1935
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1939
1936
  #
1940
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::JobTrigger>]
1937
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::JobTrigger>]
1941
1938
  #
1942
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1939
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1943
1940
  #
1944
1941
  def list_job_triggers request, options = nil
1945
- raise ArgumentError, "request must be provided" if request.nil?
1942
+ raise ::ArgumentError, "request must be provided" if request.nil?
1946
1943
 
1947
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListJobTriggersRequest
1944
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListJobTriggersRequest
1948
1945
 
1949
1946
  # Converts hash and nil to an options object
1950
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1947
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1951
1948
 
1952
1949
  # Customize the options with defaults
1953
1950
  metadata = @config.rpcs.list_job_triggers.metadata.to_h
1954
1951
 
1955
1952
  # Set x-goog-api-client and x-goog-user-project headers
1956
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1953
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1957
1954
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1958
1955
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
1959
1956
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1971,12 +1968,12 @@ module Google
1971
1968
  retry_policy: @config.retry_policy
1972
1969
 
1973
1970
  @dlp_service_stub.call_rpc :list_job_triggers, request, options: options do |response, operation|
1974
- response = Gapic::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, request, response, operation, options
1971
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, request, response, operation, options
1975
1972
  yield response, operation if block_given?
1976
1973
  return response
1977
1974
  end
1978
- rescue GRPC::BadStatus => e
1979
- raise Google::Cloud::Error.from_error(e)
1975
+ rescue ::GRPC::BadStatus => e
1976
+ raise ::Google::Cloud::Error.from_error(e)
1980
1977
  end
1981
1978
 
1982
1979
  ##
@@ -1985,12 +1982,12 @@ module Google
1985
1982
  #
1986
1983
  # @overload delete_job_trigger(request, options = nil)
1987
1984
  # Pass arguments to `delete_job_trigger` via a request object, either of type
1988
- # {Google::Cloud::Dlp::V2::DeleteJobTriggerRequest} or an equivalent Hash.
1985
+ # {::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest} or an equivalent Hash.
1989
1986
  #
1990
- # @param request [Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, Hash]
1987
+ # @param request [::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, ::Hash]
1991
1988
  # A request object representing the call parameters. Required. To specify no
1992
1989
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1993
- # @param options [Gapic::CallOptions, Hash]
1990
+ # @param options [::Gapic::CallOptions, ::Hash]
1994
1991
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1995
1992
  #
1996
1993
  # @overload delete_job_trigger(name: nil)
@@ -1998,31 +1995,31 @@ module Google
1998
1995
  # least one keyword argument is required. To specify no parameters, or to keep all
1999
1996
  # the default parameter values, pass an empty Hash as a request object (see above).
2000
1997
  #
2001
- # @param name [String]
1998
+ # @param name [::String]
2002
1999
  # Required. Resource name of the project and the triggeredJob, for example
2003
2000
  # `projects/dlp-test-project/jobTriggers/53234423`.
2004
2001
  #
2005
2002
  # @yield [response, operation] Access the result along with the RPC operation
2006
- # @yieldparam response [Google::Protobuf::Empty]
2007
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2003
+ # @yieldparam response [::Google::Protobuf::Empty]
2004
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2008
2005
  #
2009
- # @return [Google::Protobuf::Empty]
2006
+ # @return [::Google::Protobuf::Empty]
2010
2007
  #
2011
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2008
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2012
2009
  #
2013
2010
  def delete_job_trigger request, options = nil
2014
- raise ArgumentError, "request must be provided" if request.nil?
2011
+ raise ::ArgumentError, "request must be provided" if request.nil?
2015
2012
 
2016
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeleteJobTriggerRequest
2013
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteJobTriggerRequest
2017
2014
 
2018
2015
  # Converts hash and nil to an options object
2019
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2016
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2020
2017
 
2021
2018
  # Customize the options with defaults
2022
2019
  metadata = @config.rpcs.delete_job_trigger.metadata.to_h
2023
2020
 
2024
2021
  # Set x-goog-api-client and x-goog-user-project headers
2025
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2022
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2026
2023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2027
2024
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2028
2025
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2043,8 +2040,8 @@ module Google
2043
2040
  yield response, operation if block_given?
2044
2041
  return response
2045
2042
  end
2046
- rescue GRPC::BadStatus => e
2047
- raise Google::Cloud::Error.from_error(e)
2043
+ rescue ::GRPC::BadStatus => e
2044
+ raise ::Google::Cloud::Error.from_error(e)
2048
2045
  end
2049
2046
 
2050
2047
  ##
@@ -2053,12 +2050,12 @@ module Google
2053
2050
  #
2054
2051
  # @overload activate_job_trigger(request, options = nil)
2055
2052
  # Pass arguments to `activate_job_trigger` via a request object, either of type
2056
- # {Google::Cloud::Dlp::V2::ActivateJobTriggerRequest} or an equivalent Hash.
2053
+ # {::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest} or an equivalent Hash.
2057
2054
  #
2058
- # @param request [Google::Cloud::Dlp::V2::ActivateJobTriggerRequest, Hash]
2055
+ # @param request [::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest, ::Hash]
2059
2056
  # A request object representing the call parameters. Required. To specify no
2060
2057
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2061
- # @param options [Gapic::CallOptions, Hash]
2058
+ # @param options [::Gapic::CallOptions, ::Hash]
2062
2059
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2063
2060
  #
2064
2061
  # @overload activate_job_trigger(name: nil)
@@ -2066,31 +2063,31 @@ module Google
2066
2063
  # least one keyword argument is required. To specify no parameters, or to keep all
2067
2064
  # the default parameter values, pass an empty Hash as a request object (see above).
2068
2065
  #
2069
- # @param name [String]
2066
+ # @param name [::String]
2070
2067
  # Required. Resource name of the trigger to activate, for example
2071
2068
  # `projects/dlp-test-project/jobTriggers/53234423`.
2072
2069
  #
2073
2070
  # @yield [response, operation] Access the result along with the RPC operation
2074
- # @yieldparam response [Google::Cloud::Dlp::V2::DlpJob]
2075
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2071
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DlpJob]
2072
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2076
2073
  #
2077
- # @return [Google::Cloud::Dlp::V2::DlpJob]
2074
+ # @return [::Google::Cloud::Dlp::V2::DlpJob]
2078
2075
  #
2079
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2076
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2080
2077
  #
2081
2078
  def activate_job_trigger request, options = nil
2082
- raise ArgumentError, "request must be provided" if request.nil?
2079
+ raise ::ArgumentError, "request must be provided" if request.nil?
2083
2080
 
2084
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ActivateJobTriggerRequest
2081
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ActivateJobTriggerRequest
2085
2082
 
2086
2083
  # Converts hash and nil to an options object
2087
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2084
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2088
2085
 
2089
2086
  # Customize the options with defaults
2090
2087
  metadata = @config.rpcs.activate_job_trigger.metadata.to_h
2091
2088
 
2092
2089
  # Set x-goog-api-client and x-goog-user-project headers
2093
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2090
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2094
2091
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2095
2092
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2096
2093
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2111,8 +2108,8 @@ module Google
2111
2108
  yield response, operation if block_given?
2112
2109
  return response
2113
2110
  end
2114
- rescue GRPC::BadStatus => e
2115
- raise Google::Cloud::Error.from_error(e)
2111
+ rescue ::GRPC::BadStatus => e
2112
+ raise ::Google::Cloud::Error.from_error(e)
2116
2113
  end
2117
2114
 
2118
2115
  ##
@@ -2126,12 +2123,12 @@ module Google
2126
2123
  #
2127
2124
  # @overload create_dlp_job(request, options = nil)
2128
2125
  # Pass arguments to `create_dlp_job` via a request object, either of type
2129
- # {Google::Cloud::Dlp::V2::CreateDlpJobRequest} or an equivalent Hash.
2126
+ # {::Google::Cloud::Dlp::V2::CreateDlpJobRequest} or an equivalent Hash.
2130
2127
  #
2131
- # @param request [Google::Cloud::Dlp::V2::CreateDlpJobRequest, Hash]
2128
+ # @param request [::Google::Cloud::Dlp::V2::CreateDlpJobRequest, ::Hash]
2132
2129
  # A request object representing the call parameters. Required. To specify no
2133
2130
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2134
- # @param options [Gapic::CallOptions, Hash]
2131
+ # @param options [::Gapic::CallOptions, ::Hash]
2135
2132
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2136
2133
  #
2137
2134
  # @overload create_dlp_job(parent: nil, inspect_job: nil, risk_job: nil, job_id: nil, location_id: nil)
@@ -2139,42 +2136,42 @@ module Google
2139
2136
  # least one keyword argument is required. To specify no parameters, or to keep all
2140
2137
  # the default parameter values, pass an empty Hash as a request object (see above).
2141
2138
  #
2142
- # @param parent [String]
2143
- # Required. The parent resource name, for example projects/my-project-id.
2144
- # @param inspect_job [Google::Cloud::Dlp::V2::InspectJobConfig, Hash]
2139
+ # @param parent [::String]
2140
+ # Required. The parent resource name, for example projects/my-project-id
2141
+ # or projects/my-project-id/locations/\\{location_id}.
2142
+ # @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
2145
2143
  # Set to control what and how to inspect.
2146
- # @param risk_job [Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, Hash]
2144
+ # @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
2147
2145
  # Set to choose what metric to calculate.
2148
- # @param job_id [String]
2146
+ # @param job_id [::String]
2149
2147
  # The job id can contain uppercase and lowercase letters,
2150
2148
  # numbers, and hyphens; that is, it must match the regular
2151
2149
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2152
2150
  # characters. Can be empty to allow the system to generate one.
2153
- # @param location_id [String]
2154
- # The geographic location to store and process the job. Reserved for
2155
- # future extensions.
2151
+ # @param location_id [::String]
2152
+ # Deprecated. This field has no effect.
2156
2153
  #
2157
2154
  # @yield [response, operation] Access the result along with the RPC operation
2158
- # @yieldparam response [Google::Cloud::Dlp::V2::DlpJob]
2159
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2155
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DlpJob]
2156
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2160
2157
  #
2161
- # @return [Google::Cloud::Dlp::V2::DlpJob]
2158
+ # @return [::Google::Cloud::Dlp::V2::DlpJob]
2162
2159
  #
2163
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2160
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2164
2161
  #
2165
2162
  def create_dlp_job request, options = nil
2166
- raise ArgumentError, "request must be provided" if request.nil?
2163
+ raise ::ArgumentError, "request must be provided" if request.nil?
2167
2164
 
2168
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CreateDlpJobRequest
2165
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateDlpJobRequest
2169
2166
 
2170
2167
  # Converts hash and nil to an options object
2171
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2168
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2172
2169
 
2173
2170
  # Customize the options with defaults
2174
2171
  metadata = @config.rpcs.create_dlp_job.metadata.to_h
2175
2172
 
2176
2173
  # Set x-goog-api-client and x-goog-user-project headers
2177
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2174
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2178
2175
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2179
2176
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2180
2177
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2195,8 +2192,8 @@ module Google
2195
2192
  yield response, operation if block_given?
2196
2193
  return response
2197
2194
  end
2198
- rescue GRPC::BadStatus => e
2199
- raise Google::Cloud::Error.from_error(e)
2195
+ rescue ::GRPC::BadStatus => e
2196
+ raise ::Google::Cloud::Error.from_error(e)
2200
2197
  end
2201
2198
 
2202
2199
  ##
@@ -2206,12 +2203,12 @@ module Google
2206
2203
  #
2207
2204
  # @overload list_dlp_jobs(request, options = nil)
2208
2205
  # Pass arguments to `list_dlp_jobs` via a request object, either of type
2209
- # {Google::Cloud::Dlp::V2::ListDlpJobsRequest} or an equivalent Hash.
2206
+ # {::Google::Cloud::Dlp::V2::ListDlpJobsRequest} or an equivalent Hash.
2210
2207
  #
2211
- # @param request [Google::Cloud::Dlp::V2::ListDlpJobsRequest, Hash]
2208
+ # @param request [::Google::Cloud::Dlp::V2::ListDlpJobsRequest, ::Hash]
2212
2209
  # A request object representing the call parameters. Required. To specify no
2213
2210
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2214
- # @param options [Gapic::CallOptions, Hash]
2211
+ # @param options [::Gapic::CallOptions, ::Hash]
2215
2212
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2216
2213
  #
2217
2214
  # @overload list_dlp_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, type: nil, order_by: nil, location_id: nil)
@@ -2219,9 +2216,10 @@ module Google
2219
2216
  # least one keyword argument is required. To specify no parameters, or to keep all
2220
2217
  # the default parameter values, pass an empty Hash as a request object (see above).
2221
2218
  #
2222
- # @param parent [String]
2223
- # Required. The parent resource name, for example projects/my-project-id.
2224
- # @param filter [String]
2219
+ # @param parent [::String]
2220
+ # Required. The parent resource name, for example projects/my-project-id
2221
+ # or projects/my-project-id/locations/\\{location_id}.
2222
+ # @param filter [::String]
2225
2223
  # Allows filtering.
2226
2224
  #
2227
2225
  # Supported syntax:
@@ -2250,13 +2248,13 @@ module Google
2250
2248
  # * end_time > \"2017-12-12T00:00:00+00:00\"
2251
2249
  #
2252
2250
  # The length of this field should be no more than 500 characters.
2253
- # @param page_size [Integer]
2251
+ # @param page_size [::Integer]
2254
2252
  # The standard list page size.
2255
- # @param page_token [String]
2253
+ # @param page_token [::String]
2256
2254
  # The standard list page token.
2257
- # @param type [Google::Cloud::Dlp::V2::DlpJobType]
2255
+ # @param type [::Google::Cloud::Dlp::V2::DlpJobType]
2258
2256
  # The type of job. Defaults to `DlpJobType.INSPECT`
2259
- # @param order_by [String]
2257
+ # @param order_by [::String]
2260
2258
  # Comma separated list of fields to order by,
2261
2259
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
2262
2260
  # default sorting order is ascending, redundant space characters are
@@ -2270,31 +2268,30 @@ module Google
2270
2268
  # - `end_time`: corresponds to time the job ended.
2271
2269
  # - `name`: corresponds to job's name.
2272
2270
  # - `state`: corresponds to `state`
2273
- # @param location_id [String]
2274
- # The geographic location where jobs will be retrieved from.
2275
- # Use `-` for all locations. Reserved for future extensions.
2271
+ # @param location_id [::String]
2272
+ # Deprecated. This field has no effect.
2276
2273
  #
2277
2274
  # @yield [response, operation] Access the result along with the RPC operation
2278
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::DlpJob>]
2279
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2275
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>]
2276
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2280
2277
  #
2281
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::DlpJob>]
2278
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::DlpJob>]
2282
2279
  #
2283
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2280
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2284
2281
  #
2285
2282
  def list_dlp_jobs request, options = nil
2286
- raise ArgumentError, "request must be provided" if request.nil?
2283
+ raise ::ArgumentError, "request must be provided" if request.nil?
2287
2284
 
2288
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListDlpJobsRequest
2285
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListDlpJobsRequest
2289
2286
 
2290
2287
  # Converts hash and nil to an options object
2291
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2288
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2292
2289
 
2293
2290
  # Customize the options with defaults
2294
2291
  metadata = @config.rpcs.list_dlp_jobs.metadata.to_h
2295
2292
 
2296
2293
  # Set x-goog-api-client and x-goog-user-project headers
2297
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2294
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2298
2295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2299
2296
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2300
2297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2312,12 +2309,12 @@ module Google
2312
2309
  retry_policy: @config.retry_policy
2313
2310
 
2314
2311
  @dlp_service_stub.call_rpc :list_dlp_jobs, request, options: options do |response, operation|
2315
- response = Gapic::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, request, response, operation, options
2312
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, request, response, operation, options
2316
2313
  yield response, operation if block_given?
2317
2314
  return response
2318
2315
  end
2319
- rescue GRPC::BadStatus => e
2320
- raise Google::Cloud::Error.from_error(e)
2316
+ rescue ::GRPC::BadStatus => e
2317
+ raise ::Google::Cloud::Error.from_error(e)
2321
2318
  end
2322
2319
 
2323
2320
  ##
@@ -2327,12 +2324,12 @@ module Google
2327
2324
  #
2328
2325
  # @overload get_dlp_job(request, options = nil)
2329
2326
  # Pass arguments to `get_dlp_job` via a request object, either of type
2330
- # {Google::Cloud::Dlp::V2::GetDlpJobRequest} or an equivalent Hash.
2327
+ # {::Google::Cloud::Dlp::V2::GetDlpJobRequest} or an equivalent Hash.
2331
2328
  #
2332
- # @param request [Google::Cloud::Dlp::V2::GetDlpJobRequest, Hash]
2329
+ # @param request [::Google::Cloud::Dlp::V2::GetDlpJobRequest, ::Hash]
2333
2330
  # A request object representing the call parameters. Required. To specify no
2334
2331
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2335
- # @param options [Gapic::CallOptions, Hash]
2332
+ # @param options [::Gapic::CallOptions, ::Hash]
2336
2333
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2337
2334
  #
2338
2335
  # @overload get_dlp_job(name: nil)
@@ -2340,30 +2337,30 @@ module Google
2340
2337
  # least one keyword argument is required. To specify no parameters, or to keep all
2341
2338
  # the default parameter values, pass an empty Hash as a request object (see above).
2342
2339
  #
2343
- # @param name [String]
2340
+ # @param name [::String]
2344
2341
  # Required. The name of the DlpJob resource.
2345
2342
  #
2346
2343
  # @yield [response, operation] Access the result along with the RPC operation
2347
- # @yieldparam response [Google::Cloud::Dlp::V2::DlpJob]
2348
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2344
+ # @yieldparam response [::Google::Cloud::Dlp::V2::DlpJob]
2345
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2349
2346
  #
2350
- # @return [Google::Cloud::Dlp::V2::DlpJob]
2347
+ # @return [::Google::Cloud::Dlp::V2::DlpJob]
2351
2348
  #
2352
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2349
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2353
2350
  #
2354
2351
  def get_dlp_job request, options = nil
2355
- raise ArgumentError, "request must be provided" if request.nil?
2352
+ raise ::ArgumentError, "request must be provided" if request.nil?
2356
2353
 
2357
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::GetDlpJobRequest
2354
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetDlpJobRequest
2358
2355
 
2359
2356
  # Converts hash and nil to an options object
2360
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2357
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2361
2358
 
2362
2359
  # Customize the options with defaults
2363
2360
  metadata = @config.rpcs.get_dlp_job.metadata.to_h
2364
2361
 
2365
2362
  # Set x-goog-api-client and x-goog-user-project headers
2366
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2363
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2367
2364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2368
2365
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2369
2366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2384,8 +2381,8 @@ module Google
2384
2381
  yield response, operation if block_given?
2385
2382
  return response
2386
2383
  end
2387
- rescue GRPC::BadStatus => e
2388
- raise Google::Cloud::Error.from_error(e)
2384
+ rescue ::GRPC::BadStatus => e
2385
+ raise ::Google::Cloud::Error.from_error(e)
2389
2386
  end
2390
2387
 
2391
2388
  ##
@@ -2397,12 +2394,12 @@ module Google
2397
2394
  #
2398
2395
  # @overload delete_dlp_job(request, options = nil)
2399
2396
  # Pass arguments to `delete_dlp_job` via a request object, either of type
2400
- # {Google::Cloud::Dlp::V2::DeleteDlpJobRequest} or an equivalent Hash.
2397
+ # {::Google::Cloud::Dlp::V2::DeleteDlpJobRequest} or an equivalent Hash.
2401
2398
  #
2402
- # @param request [Google::Cloud::Dlp::V2::DeleteDlpJobRequest, Hash]
2399
+ # @param request [::Google::Cloud::Dlp::V2::DeleteDlpJobRequest, ::Hash]
2403
2400
  # A request object representing the call parameters. Required. To specify no
2404
2401
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2405
- # @param options [Gapic::CallOptions, Hash]
2402
+ # @param options [::Gapic::CallOptions, ::Hash]
2406
2403
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2407
2404
  #
2408
2405
  # @overload delete_dlp_job(name: nil)
@@ -2410,30 +2407,30 @@ module Google
2410
2407
  # least one keyword argument is required. To specify no parameters, or to keep all
2411
2408
  # the default parameter values, pass an empty Hash as a request object (see above).
2412
2409
  #
2413
- # @param name [String]
2410
+ # @param name [::String]
2414
2411
  # Required. The name of the DlpJob resource to be deleted.
2415
2412
  #
2416
2413
  # @yield [response, operation] Access the result along with the RPC operation
2417
- # @yieldparam response [Google::Protobuf::Empty]
2418
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2414
+ # @yieldparam response [::Google::Protobuf::Empty]
2415
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2419
2416
  #
2420
- # @return [Google::Protobuf::Empty]
2417
+ # @return [::Google::Protobuf::Empty]
2421
2418
  #
2422
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2419
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2423
2420
  #
2424
2421
  def delete_dlp_job request, options = nil
2425
- raise ArgumentError, "request must be provided" if request.nil?
2422
+ raise ::ArgumentError, "request must be provided" if request.nil?
2426
2423
 
2427
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeleteDlpJobRequest
2424
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteDlpJobRequest
2428
2425
 
2429
2426
  # Converts hash and nil to an options object
2430
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2427
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2431
2428
 
2432
2429
  # Customize the options with defaults
2433
2430
  metadata = @config.rpcs.delete_dlp_job.metadata.to_h
2434
2431
 
2435
2432
  # Set x-goog-api-client and x-goog-user-project headers
2436
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2433
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2437
2434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2438
2435
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2439
2436
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2454,8 +2451,8 @@ module Google
2454
2451
  yield response, operation if block_given?
2455
2452
  return response
2456
2453
  end
2457
- rescue GRPC::BadStatus => e
2458
- raise Google::Cloud::Error.from_error(e)
2454
+ rescue ::GRPC::BadStatus => e
2455
+ raise ::Google::Cloud::Error.from_error(e)
2459
2456
  end
2460
2457
 
2461
2458
  ##
@@ -2467,12 +2464,12 @@ module Google
2467
2464
  #
2468
2465
  # @overload cancel_dlp_job(request, options = nil)
2469
2466
  # Pass arguments to `cancel_dlp_job` via a request object, either of type
2470
- # {Google::Cloud::Dlp::V2::CancelDlpJobRequest} or an equivalent Hash.
2467
+ # {::Google::Cloud::Dlp::V2::CancelDlpJobRequest} or an equivalent Hash.
2471
2468
  #
2472
- # @param request [Google::Cloud::Dlp::V2::CancelDlpJobRequest, Hash]
2469
+ # @param request [::Google::Cloud::Dlp::V2::CancelDlpJobRequest, ::Hash]
2473
2470
  # A request object representing the call parameters. Required. To specify no
2474
2471
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2475
- # @param options [Gapic::CallOptions, Hash]
2472
+ # @param options [::Gapic::CallOptions, ::Hash]
2476
2473
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2477
2474
  #
2478
2475
  # @overload cancel_dlp_job(name: nil)
@@ -2480,30 +2477,30 @@ module Google
2480
2477
  # least one keyword argument is required. To specify no parameters, or to keep all
2481
2478
  # the default parameter values, pass an empty Hash as a request object (see above).
2482
2479
  #
2483
- # @param name [String]
2480
+ # @param name [::String]
2484
2481
  # Required. The name of the DlpJob resource to be cancelled.
2485
2482
  #
2486
2483
  # @yield [response, operation] Access the result along with the RPC operation
2487
- # @yieldparam response [Google::Protobuf::Empty]
2488
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2484
+ # @yieldparam response [::Google::Protobuf::Empty]
2485
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2489
2486
  #
2490
- # @return [Google::Protobuf::Empty]
2487
+ # @return [::Google::Protobuf::Empty]
2491
2488
  #
2492
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2489
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2493
2490
  #
2494
2491
  def cancel_dlp_job request, options = nil
2495
- raise ArgumentError, "request must be provided" if request.nil?
2492
+ raise ::ArgumentError, "request must be provided" if request.nil?
2496
2493
 
2497
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CancelDlpJobRequest
2494
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CancelDlpJobRequest
2498
2495
 
2499
2496
  # Converts hash and nil to an options object
2500
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2497
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2501
2498
 
2502
2499
  # Customize the options with defaults
2503
2500
  metadata = @config.rpcs.cancel_dlp_job.metadata.to_h
2504
2501
 
2505
2502
  # Set x-goog-api-client and x-goog-user-project headers
2506
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2503
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2507
2504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2508
2505
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2509
2506
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2524,8 +2521,8 @@ module Google
2524
2521
  yield response, operation if block_given?
2525
2522
  return response
2526
2523
  end
2527
- rescue GRPC::BadStatus => e
2528
- raise Google::Cloud::Error.from_error(e)
2524
+ rescue ::GRPC::BadStatus => e
2525
+ raise ::Google::Cloud::Error.from_error(e)
2529
2526
  end
2530
2527
 
2531
2528
  ##
@@ -2535,12 +2532,12 @@ module Google
2535
2532
  #
2536
2533
  # @overload create_stored_info_type(request, options = nil)
2537
2534
  # Pass arguments to `create_stored_info_type` via a request object, either of type
2538
- # {Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest} or an equivalent Hash.
2535
+ # {::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest} or an equivalent Hash.
2539
2536
  #
2540
- # @param request [Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, Hash]
2537
+ # @param request [::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, ::Hash]
2541
2538
  # A request object representing the call parameters. Required. To specify no
2542
2539
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2543
- # @param options [Gapic::CallOptions, Hash]
2540
+ # @param options [::Gapic::CallOptions, ::Hash]
2544
2541
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2545
2542
  #
2546
2543
  # @overload create_stored_info_type(parent: nil, config: nil, stored_info_type_id: nil, location_id: nil)
@@ -2548,41 +2545,40 @@ module Google
2548
2545
  # least one keyword argument is required. To specify no parameters, or to keep all
2549
2546
  # the default parameter values, pass an empty Hash as a request object (see above).
2550
2547
  #
2551
- # @param parent [String]
2548
+ # @param parent [::String]
2552
2549
  # Required. The parent resource name, for example projects/my-project-id or
2553
- # organizations/my-org-id.
2554
- # @param config [Google::Cloud::Dlp::V2::StoredInfoTypeConfig, Hash]
2550
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
2551
+ # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2555
2552
  # Required. Configuration of the storedInfoType to create.
2556
- # @param stored_info_type_id [String]
2553
+ # @param stored_info_type_id [::String]
2557
2554
  # The storedInfoType ID can contain uppercase and lowercase letters,
2558
2555
  # numbers, and hyphens; that is, it must match the regular
2559
2556
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2560
2557
  # characters. Can be empty to allow the system to generate one.
2561
- # @param location_id [String]
2562
- # The geographic location to store the stored infoType. Reserved for
2563
- # future extensions.
2558
+ # @param location_id [::String]
2559
+ # Deprecated. This field has no effect.
2564
2560
  #
2565
2561
  # @yield [response, operation] Access the result along with the RPC operation
2566
- # @yieldparam response [Google::Cloud::Dlp::V2::StoredInfoType]
2567
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2562
+ # @yieldparam response [::Google::Cloud::Dlp::V2::StoredInfoType]
2563
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2568
2564
  #
2569
- # @return [Google::Cloud::Dlp::V2::StoredInfoType]
2565
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2570
2566
  #
2571
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2567
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2572
2568
  #
2573
2569
  def create_stored_info_type request, options = nil
2574
- raise ArgumentError, "request must be provided" if request.nil?
2570
+ raise ::ArgumentError, "request must be provided" if request.nil?
2575
2571
 
2576
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest
2572
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest
2577
2573
 
2578
2574
  # Converts hash and nil to an options object
2579
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2575
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2580
2576
 
2581
2577
  # Customize the options with defaults
2582
2578
  metadata = @config.rpcs.create_stored_info_type.metadata.to_h
2583
2579
 
2584
2580
  # Set x-goog-api-client and x-goog-user-project headers
2585
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2581
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2586
2582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2587
2583
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2588
2584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2603,8 +2599,8 @@ module Google
2603
2599
  yield response, operation if block_given?
2604
2600
  return response
2605
2601
  end
2606
- rescue GRPC::BadStatus => e
2607
- raise Google::Cloud::Error.from_error(e)
2602
+ rescue ::GRPC::BadStatus => e
2603
+ raise ::Google::Cloud::Error.from_error(e)
2608
2604
  end
2609
2605
 
2610
2606
  ##
@@ -2615,12 +2611,12 @@ module Google
2615
2611
  #
2616
2612
  # @overload update_stored_info_type(request, options = nil)
2617
2613
  # Pass arguments to `update_stored_info_type` via a request object, either of type
2618
- # {Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest} or an equivalent Hash.
2614
+ # {::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest} or an equivalent Hash.
2619
2615
  #
2620
- # @param request [Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, Hash]
2616
+ # @param request [::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, ::Hash]
2621
2617
  # A request object representing the call parameters. Required. To specify no
2622
2618
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2623
- # @param options [Gapic::CallOptions, Hash]
2619
+ # @param options [::Gapic::CallOptions, ::Hash]
2624
2620
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2625
2621
  #
2626
2622
  # @overload update_stored_info_type(name: nil, config: nil, update_mask: nil)
@@ -2628,38 +2624,38 @@ module Google
2628
2624
  # least one keyword argument is required. To specify no parameters, or to keep all
2629
2625
  # the default parameter values, pass an empty Hash as a request object (see above).
2630
2626
  #
2631
- # @param name [String]
2632
- # Required. Resource name of organization and storedInfoType to be updated,
2633
- # for example `organizations/433245324/storedInfoTypes/432452342` or
2627
+ # @param name [::String]
2628
+ # Required. Resource name of organization and storedInfoType to be updated, for
2629
+ # example `organizations/433245324/storedInfoTypes/432452342` or
2634
2630
  # projects/project-id/storedInfoTypes/432452342.
2635
- # @param config [Google::Cloud::Dlp::V2::StoredInfoTypeConfig, Hash]
2631
+ # @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
2636
2632
  # Updated configuration for the storedInfoType. If not provided, a new
2637
2633
  # version of the storedInfoType will be created with the existing
2638
2634
  # configuration.
2639
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2635
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2640
2636
  # Mask to control which fields get updated.
2641
2637
  #
2642
2638
  # @yield [response, operation] Access the result along with the RPC operation
2643
- # @yieldparam response [Google::Cloud::Dlp::V2::StoredInfoType]
2644
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2639
+ # @yieldparam response [::Google::Cloud::Dlp::V2::StoredInfoType]
2640
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2645
2641
  #
2646
- # @return [Google::Cloud::Dlp::V2::StoredInfoType]
2642
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2647
2643
  #
2648
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2644
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2649
2645
  #
2650
2646
  def update_stored_info_type request, options = nil
2651
- raise ArgumentError, "request must be provided" if request.nil?
2647
+ raise ::ArgumentError, "request must be provided" if request.nil?
2652
2648
 
2653
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest
2649
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest
2654
2650
 
2655
2651
  # Converts hash and nil to an options object
2656
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2652
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2657
2653
 
2658
2654
  # Customize the options with defaults
2659
2655
  metadata = @config.rpcs.update_stored_info_type.metadata.to_h
2660
2656
 
2661
2657
  # Set x-goog-api-client and x-goog-user-project headers
2662
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2658
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2663
2659
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2664
2660
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2665
2661
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2680,8 +2676,8 @@ module Google
2680
2676
  yield response, operation if block_given?
2681
2677
  return response
2682
2678
  end
2683
- rescue GRPC::BadStatus => e
2684
- raise Google::Cloud::Error.from_error(e)
2679
+ rescue ::GRPC::BadStatus => e
2680
+ raise ::Google::Cloud::Error.from_error(e)
2685
2681
  end
2686
2682
 
2687
2683
  ##
@@ -2691,12 +2687,12 @@ module Google
2691
2687
  #
2692
2688
  # @overload get_stored_info_type(request, options = nil)
2693
2689
  # Pass arguments to `get_stored_info_type` via a request object, either of type
2694
- # {Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest} or an equivalent Hash.
2690
+ # {::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest} or an equivalent Hash.
2695
2691
  #
2696
- # @param request [Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, Hash]
2692
+ # @param request [::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, ::Hash]
2697
2693
  # A request object representing the call parameters. Required. To specify no
2698
2694
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2699
- # @param options [Gapic::CallOptions, Hash]
2695
+ # @param options [::Gapic::CallOptions, ::Hash]
2700
2696
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2701
2697
  #
2702
2698
  # @overload get_stored_info_type(name: nil)
@@ -2704,32 +2700,32 @@ module Google
2704
2700
  # least one keyword argument is required. To specify no parameters, or to keep all
2705
2701
  # the default parameter values, pass an empty Hash as a request object (see above).
2706
2702
  #
2707
- # @param name [String]
2703
+ # @param name [::String]
2708
2704
  # Required. Resource name of the organization and storedInfoType to be read,
2709
2705
  # for example `organizations/433245324/storedInfoTypes/432452342` or
2710
2706
  # projects/project-id/storedInfoTypes/432452342.
2711
2707
  #
2712
2708
  # @yield [response, operation] Access the result along with the RPC operation
2713
- # @yieldparam response [Google::Cloud::Dlp::V2::StoredInfoType]
2714
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2709
+ # @yieldparam response [::Google::Cloud::Dlp::V2::StoredInfoType]
2710
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2715
2711
  #
2716
- # @return [Google::Cloud::Dlp::V2::StoredInfoType]
2712
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoType]
2717
2713
  #
2718
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2714
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2719
2715
  #
2720
2716
  def get_stored_info_type request, options = nil
2721
- raise ArgumentError, "request must be provided" if request.nil?
2717
+ raise ::ArgumentError, "request must be provided" if request.nil?
2722
2718
 
2723
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest
2719
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest
2724
2720
 
2725
2721
  # Converts hash and nil to an options object
2726
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2722
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2727
2723
 
2728
2724
  # Customize the options with defaults
2729
2725
  metadata = @config.rpcs.get_stored_info_type.metadata.to_h
2730
2726
 
2731
2727
  # Set x-goog-api-client and x-goog-user-project headers
2732
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2728
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2733
2729
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2734
2730
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2735
2731
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2750,8 +2746,8 @@ module Google
2750
2746
  yield response, operation if block_given?
2751
2747
  return response
2752
2748
  end
2753
- rescue GRPC::BadStatus => e
2754
- raise Google::Cloud::Error.from_error(e)
2749
+ rescue ::GRPC::BadStatus => e
2750
+ raise ::Google::Cloud::Error.from_error(e)
2755
2751
  end
2756
2752
 
2757
2753
  ##
@@ -2761,12 +2757,12 @@ module Google
2761
2757
  #
2762
2758
  # @overload list_stored_info_types(request, options = nil)
2763
2759
  # Pass arguments to `list_stored_info_types` via a request object, either of type
2764
- # {Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest} or an equivalent Hash.
2760
+ # {::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest} or an equivalent Hash.
2765
2761
  #
2766
- # @param request [Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, Hash]
2762
+ # @param request [::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, ::Hash]
2767
2763
  # A request object representing the call parameters. Required. To specify no
2768
2764
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2769
- # @param options [Gapic::CallOptions, Hash]
2765
+ # @param options [::Gapic::CallOptions, ::Hash]
2770
2766
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2771
2767
  #
2772
2768
  # @overload list_stored_info_types(parent: nil, page_token: nil, page_size: nil, order_by: nil, location_id: nil)
@@ -2774,16 +2770,16 @@ module Google
2774
2770
  # least one keyword argument is required. To specify no parameters, or to keep all
2775
2771
  # the default parameter values, pass an empty Hash as a request object (see above).
2776
2772
  #
2777
- # @param parent [String]
2773
+ # @param parent [::String]
2778
2774
  # Required. The parent resource name, for example projects/my-project-id or
2779
- # organizations/my-org-id.
2780
- # @param page_token [String]
2775
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2776
+ # @param page_token [::String]
2781
2777
  # Page token to continue retrieval. Comes from previous call
2782
2778
  # to `ListStoredInfoTypes`.
2783
- # @param page_size [Integer]
2779
+ # @param page_size [::Integer]
2784
2780
  # Size of the page, can be limited by server. If zero server returns
2785
2781
  # a page of max size 100.
2786
- # @param order_by [String]
2782
+ # @param order_by [::String]
2787
2783
  # Comma separated list of fields to order by,
2788
2784
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
2789
2785
  # default sorting order is ascending, redundant space characters are
@@ -2798,31 +2794,30 @@ module Google
2798
2794
  # - `state`: corresponds to the state of the resource.
2799
2795
  # - `name`: corresponds to resource name.
2800
2796
  # - `display_name`: corresponds to info type's display name.
2801
- # @param location_id [String]
2802
- # The geographic location where stored infoTypes will be retrieved from.
2803
- # Use `-` for all locations. Reserved for future extensions.
2797
+ # @param location_id [::String]
2798
+ # Deprecated. This field has no effect.
2804
2799
  #
2805
2800
  # @yield [response, operation] Access the result along with the RPC operation
2806
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::StoredInfoType>]
2807
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2801
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>]
2802
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2808
2803
  #
2809
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dlp::V2::StoredInfoType>]
2804
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::StoredInfoType>]
2810
2805
  #
2811
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2806
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2812
2807
  #
2813
2808
  def list_stored_info_types request, options = nil
2814
- raise ArgumentError, "request must be provided" if request.nil?
2809
+ raise ::ArgumentError, "request must be provided" if request.nil?
2815
2810
 
2816
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest
2811
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest
2817
2812
 
2818
2813
  # Converts hash and nil to an options object
2819
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2814
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2820
2815
 
2821
2816
  # Customize the options with defaults
2822
2817
  metadata = @config.rpcs.list_stored_info_types.metadata.to_h
2823
2818
 
2824
2819
  # Set x-goog-api-client and x-goog-user-project headers
2825
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2820
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2826
2821
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2827
2822
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2828
2823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2840,12 +2835,12 @@ module Google
2840
2835
  retry_policy: @config.retry_policy
2841
2836
 
2842
2837
  @dlp_service_stub.call_rpc :list_stored_info_types, request, options: options do |response, operation|
2843
- response = Gapic::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, request, response, operation, options
2838
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, request, response, operation, options
2844
2839
  yield response, operation if block_given?
2845
2840
  return response
2846
2841
  end
2847
- rescue GRPC::BadStatus => e
2848
- raise Google::Cloud::Error.from_error(e)
2842
+ rescue ::GRPC::BadStatus => e
2843
+ raise ::Google::Cloud::Error.from_error(e)
2849
2844
  end
2850
2845
 
2851
2846
  ##
@@ -2855,12 +2850,12 @@ module Google
2855
2850
  #
2856
2851
  # @overload delete_stored_info_type(request, options = nil)
2857
2852
  # Pass arguments to `delete_stored_info_type` via a request object, either of type
2858
- # {Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest} or an equivalent Hash.
2853
+ # {::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest} or an equivalent Hash.
2859
2854
  #
2860
- # @param request [Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, Hash]
2855
+ # @param request [::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, ::Hash]
2861
2856
  # A request object representing the call parameters. Required. To specify no
2862
2857
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2863
- # @param options [Gapic::CallOptions, Hash]
2858
+ # @param options [::Gapic::CallOptions, ::Hash]
2864
2859
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2865
2860
  #
2866
2861
  # @overload delete_stored_info_type(name: nil)
@@ -2868,32 +2863,32 @@ module Google
2868
2863
  # least one keyword argument is required. To specify no parameters, or to keep all
2869
2864
  # the default parameter values, pass an empty Hash as a request object (see above).
2870
2865
  #
2871
- # @param name [String]
2866
+ # @param name [::String]
2872
2867
  # Required. Resource name of the organization and storedInfoType to be
2873
2868
  # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
2874
2869
  # projects/project-id/storedInfoTypes/432452342.
2875
2870
  #
2876
2871
  # @yield [response, operation] Access the result along with the RPC operation
2877
- # @yieldparam response [Google::Protobuf::Empty]
2878
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2872
+ # @yieldparam response [::Google::Protobuf::Empty]
2873
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2879
2874
  #
2880
- # @return [Google::Protobuf::Empty]
2875
+ # @return [::Google::Protobuf::Empty]
2881
2876
  #
2882
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2877
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2883
2878
  #
2884
2879
  def delete_stored_info_type request, options = nil
2885
- raise ArgumentError, "request must be provided" if request.nil?
2880
+ raise ::ArgumentError, "request must be provided" if request.nil?
2886
2881
 
2887
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest
2882
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest
2888
2883
 
2889
2884
  # Converts hash and nil to an options object
2890
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2885
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2891
2886
 
2892
2887
  # Customize the options with defaults
2893
2888
  metadata = @config.rpcs.delete_stored_info_type.metadata.to_h
2894
2889
 
2895
2890
  # Set x-goog-api-client and x-goog-user-project headers
2896
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2891
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2897
2892
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2898
2893
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2899
2894
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2914,8 +2909,8 @@ module Google
2914
2909
  yield response, operation if block_given?
2915
2910
  return response
2916
2911
  end
2917
- rescue GRPC::BadStatus => e
2918
- raise Google::Cloud::Error.from_error(e)
2912
+ rescue ::GRPC::BadStatus => e
2913
+ raise ::Google::Cloud::Error.from_error(e)
2919
2914
  end
2920
2915
 
2921
2916
  ##
@@ -2928,12 +2923,12 @@ module Google
2928
2923
  #
2929
2924
  # @overload hybrid_inspect_dlp_job(request, options = nil)
2930
2925
  # Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
2931
- # {Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
2926
+ # {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
2932
2927
  #
2933
- # @param request [Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, Hash]
2928
+ # @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
2934
2929
  # A request object representing the call parameters. Required. To specify no
2935
2930
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2936
- # @param options [Gapic::CallOptions, Hash]
2931
+ # @param options [::Gapic::CallOptions, ::Hash]
2937
2932
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2938
2933
  #
2939
2934
  # @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
@@ -2941,33 +2936,33 @@ module Google
2941
2936
  # least one keyword argument is required. To specify no parameters, or to keep all
2942
2937
  # the default parameter values, pass an empty Hash as a request object (see above).
2943
2938
  #
2944
- # @param name [String]
2939
+ # @param name [::String]
2945
2940
  # Required. Resource name of the job to execute a hybrid inspect on, for
2946
2941
  # example `projects/dlp-test-project/dlpJob/53234423`.
2947
- # @param hybrid_item [Google::Cloud::Dlp::V2::HybridContentItem, Hash]
2942
+ # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
2948
2943
  # The item to inspect.
2949
2944
  #
2950
2945
  # @yield [response, operation] Access the result along with the RPC operation
2951
- # @yieldparam response [Google::Cloud::Dlp::V2::HybridInspectResponse]
2952
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2946
+ # @yieldparam response [::Google::Cloud::Dlp::V2::HybridInspectResponse]
2947
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2953
2948
  #
2954
- # @return [Google::Cloud::Dlp::V2::HybridInspectResponse]
2949
+ # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
2955
2950
  #
2956
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2951
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2957
2952
  #
2958
2953
  def hybrid_inspect_dlp_job request, options = nil
2959
- raise ArgumentError, "request must be provided" if request.nil?
2954
+ raise ::ArgumentError, "request must be provided" if request.nil?
2960
2955
 
2961
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
2956
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
2962
2957
 
2963
2958
  # Converts hash and nil to an options object
2964
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2959
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2965
2960
 
2966
2961
  # Customize the options with defaults
2967
2962
  metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
2968
2963
 
2969
2964
  # Set x-goog-api-client and x-goog-user-project headers
2970
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2965
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2971
2966
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2972
2967
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
2973
2968
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2988,8 +2983,8 @@ module Google
2988
2983
  yield response, operation if block_given?
2989
2984
  return response
2990
2985
  end
2991
- rescue GRPC::BadStatus => e
2992
- raise Google::Cloud::Error.from_error(e)
2986
+ rescue ::GRPC::BadStatus => e
2987
+ raise ::Google::Cloud::Error.from_error(e)
2993
2988
  end
2994
2989
 
2995
2990
  ##
@@ -3001,12 +2996,12 @@ module Google
3001
2996
  #
3002
2997
  # @overload finish_dlp_job(request, options = nil)
3003
2998
  # Pass arguments to `finish_dlp_job` via a request object, either of type
3004
- # {Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
2999
+ # {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
3005
3000
  #
3006
- # @param request [Google::Cloud::Dlp::V2::FinishDlpJobRequest, Hash]
3001
+ # @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
3007
3002
  # A request object representing the call parameters. Required. To specify no
3008
3003
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3009
- # @param options [Gapic::CallOptions, Hash]
3004
+ # @param options [::Gapic::CallOptions, ::Hash]
3010
3005
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3011
3006
  #
3012
3007
  # @overload finish_dlp_job(name: nil)
@@ -3014,30 +3009,30 @@ module Google
3014
3009
  # least one keyword argument is required. To specify no parameters, or to keep all
3015
3010
  # the default parameter values, pass an empty Hash as a request object (see above).
3016
3011
  #
3017
- # @param name [String]
3012
+ # @param name [::String]
3018
3013
  # Required. The name of the DlpJob resource to be cancelled.
3019
3014
  #
3020
3015
  # @yield [response, operation] Access the result along with the RPC operation
3021
- # @yieldparam response [Google::Protobuf::Empty]
3022
- # @yieldparam operation [GRPC::ActiveCall::Operation]
3016
+ # @yieldparam response [::Google::Protobuf::Empty]
3017
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3023
3018
  #
3024
- # @return [Google::Protobuf::Empty]
3019
+ # @return [::Google::Protobuf::Empty]
3025
3020
  #
3026
- # @raise [Google::Cloud::Error] if the RPC is aborted.
3021
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3027
3022
  #
3028
3023
  def finish_dlp_job request, options = nil
3029
- raise ArgumentError, "request must be provided" if request.nil?
3024
+ raise ::ArgumentError, "request must be provided" if request.nil?
3030
3025
 
3031
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dlp::V2::FinishDlpJobRequest
3026
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
3032
3027
 
3033
3028
  # Converts hash and nil to an options object
3034
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3029
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3035
3030
 
3036
3031
  # Customize the options with defaults
3037
3032
  metadata = @config.rpcs.finish_dlp_job.metadata.to_h
3038
3033
 
3039
3034
  # Set x-goog-api-client and x-goog-user-project headers
3040
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
3035
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3041
3036
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3042
3037
  gapic_version: ::Google::Cloud::Dlp::V2::VERSION
3043
3038
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -3058,8 +3053,8 @@ module Google
3058
3053
  yield response, operation if block_given?
3059
3054
  return response
3060
3055
  end
3061
- rescue GRPC::BadStatus => e
3062
- raise Google::Cloud::Error.from_error(e)
3056
+ rescue ::GRPC::BadStatus => e
3057
+ raise ::Google::Cloud::Error.from_error(e)
3063
3058
  end
3064
3059
 
3065
3060
  ##
@@ -3069,7 +3064,7 @@ module Google
3069
3064
  # providing control over timeouts, retry behavior, logging, transport
3070
3065
  # parameters, and other low-level controls. Certain parameters can also be
3071
3066
  # applied individually to specific RPCs. See
3072
- # {Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
3067
+ # {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
3073
3068
  # for a list of RPCs that can be configured independently.
3074
3069
  #
3075
3070
  # Configuration can be applied globally to all clients, or to a single client
@@ -3080,22 +3075,22 @@ module Google
3080
3075
  # To modify the global config, setting the timeout for inspect_content
3081
3076
  # to 20 seconds, and all remaining timeouts to 10 seconds:
3082
3077
  #
3083
- # Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
3084
- # config.timeout = 10_000
3085
- # config.rpcs.inspect_content.timeout = 20_000
3078
+ # ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
3079
+ # config.timeout = 10.0
3080
+ # config.rpcs.inspect_content.timeout = 20.0
3086
3081
  # end
3087
3082
  #
3088
3083
  # To apply the above configuration only to a new client:
3089
3084
  #
3090
- # client = Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
3091
- # config.timeout = 10_000
3092
- # config.rpcs.inspect_content.timeout = 20_000
3085
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
3086
+ # config.timeout = 10.0
3087
+ # config.rpcs.inspect_content.timeout = 20.0
3093
3088
  # end
3094
3089
  #
3095
3090
  # @!attribute [rw] endpoint
3096
3091
  # The hostname or hostname:port of the service endpoint.
3097
3092
  # Defaults to `"dlp.googleapis.com"`.
3098
- # @return [String]
3093
+ # @return [::String]
3099
3094
  # @!attribute [rw] credentials
3100
3095
  # Credentials to send with calls. You may provide any of the following types:
3101
3096
  # * (`String`) The path to a service account key file in JSON format
@@ -3107,29 +3102,29 @@ module Google
3107
3102
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3108
3103
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3109
3104
  # * (`nil`) indicating no credentials
3110
- # @return [Object]
3105
+ # @return [::Object]
3111
3106
  # @!attribute [rw] scope
3112
3107
  # The OAuth scopes
3113
- # @return [Array<String>]
3108
+ # @return [::Array<::String>]
3114
3109
  # @!attribute [rw] lib_name
3115
3110
  # The library name as recorded in instrumentation and logging
3116
- # @return [String]
3111
+ # @return [::String]
3117
3112
  # @!attribute [rw] lib_version
3118
3113
  # The library version as recorded in instrumentation and logging
3119
- # @return [String]
3114
+ # @return [::String]
3120
3115
  # @!attribute [rw] channel_args
3121
3116
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
3122
3117
  # `GRPC::Core::Channel` object is provided as the credential.
3123
- # @return [Hash]
3118
+ # @return [::Hash]
3124
3119
  # @!attribute [rw] interceptors
3125
3120
  # An array of interceptors that are run before calls are executed.
3126
- # @return [Array<GRPC::ClientInterceptor>]
3121
+ # @return [::Array<::GRPC::ClientInterceptor>]
3127
3122
  # @!attribute [rw] timeout
3128
- # The call timeout in milliseconds.
3129
- # @return [Numeric]
3123
+ # The call timeout in seconds.
3124
+ # @return [::Numeric]
3130
3125
  # @!attribute [rw] metadata
3131
3126
  # Additional gRPC headers to be sent with the call.
3132
- # @return [Hash{Symbol=>String}]
3127
+ # @return [::Hash{::Symbol=>::String}]
3133
3128
  # @!attribute [rw] retry_policy
3134
3129
  # The retry policy. The value is a hash with the following keys:
3135
3130
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -3137,25 +3132,29 @@ module Google
3137
3132
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3138
3133
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3139
3134
  # trigger a retry.
3140
- # @return [Hash]
3135
+ # @return [::Hash]
3136
+ # @!attribute [rw] quota_project
3137
+ # A separate project against which to charge quota.
3138
+ # @return [::String]
3141
3139
  #
3142
3140
  class Configuration
3143
- extend Gapic::Config
3141
+ extend ::Gapic::Config
3144
3142
 
3145
- config_attr :endpoint, "dlp.googleapis.com", String
3146
- config_attr :credentials, nil do |value|
3143
+ config_attr :endpoint, "dlp.googleapis.com", ::String
3144
+ config_attr :credentials, nil do |value|
3147
3145
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3148
3146
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3149
3147
  allowed.any? { |klass| klass === value }
3150
3148
  end
3151
- config_attr :scope, nil, String, Array, nil
3152
- config_attr :lib_name, nil, String, nil
3153
- config_attr :lib_version, nil, String, nil
3154
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
3155
- config_attr :interceptors, nil, Array, nil
3156
- config_attr :timeout, nil, Numeric, nil
3157
- config_attr :metadata, nil, Hash, nil
3158
- config_attr :retry_policy, nil, Hash, Proc, nil
3149
+ config_attr :scope, nil, ::String, ::Array, nil
3150
+ config_attr :lib_name, nil, ::String, nil
3151
+ config_attr :lib_version, nil, ::String, nil
3152
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3153
+ config_attr :interceptors, nil, ::Array, nil
3154
+ config_attr :timeout, nil, ::Numeric, nil
3155
+ config_attr :metadata, nil, ::Hash, nil
3156
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3157
+ config_attr :quota_project, nil, ::String, nil
3159
3158
 
3160
3159
  # @private
3161
3160
  def initialize parent_config = nil
@@ -3171,7 +3170,7 @@ module Google
3171
3170
  def rpcs
3172
3171
  @rpcs ||= begin
3173
3172
  parent_rpcs = nil
3174
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
3173
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3175
3174
  Rpcs.new parent_rpcs
3176
3175
  end
3177
3176
  end
@@ -3196,245 +3195,245 @@ module Google
3196
3195
  class Rpcs
3197
3196
  ##
3198
3197
  # RPC-specific configuration for `inspect_content`
3199
- # @return [Gapic::Config::Method]
3198
+ # @return [::Gapic::Config::Method]
3200
3199
  #
3201
3200
  attr_reader :inspect_content
3202
3201
  ##
3203
3202
  # RPC-specific configuration for `redact_image`
3204
- # @return [Gapic::Config::Method]
3203
+ # @return [::Gapic::Config::Method]
3205
3204
  #
3206
3205
  attr_reader :redact_image
3207
3206
  ##
3208
3207
  # RPC-specific configuration for `deidentify_content`
3209
- # @return [Gapic::Config::Method]
3208
+ # @return [::Gapic::Config::Method]
3210
3209
  #
3211
3210
  attr_reader :deidentify_content
3212
3211
  ##
3213
3212
  # RPC-specific configuration for `reidentify_content`
3214
- # @return [Gapic::Config::Method]
3213
+ # @return [::Gapic::Config::Method]
3215
3214
  #
3216
3215
  attr_reader :reidentify_content
3217
3216
  ##
3218
3217
  # RPC-specific configuration for `list_info_types`
3219
- # @return [Gapic::Config::Method]
3218
+ # @return [::Gapic::Config::Method]
3220
3219
  #
3221
3220
  attr_reader :list_info_types
3222
3221
  ##
3223
3222
  # RPC-specific configuration for `create_inspect_template`
3224
- # @return [Gapic::Config::Method]
3223
+ # @return [::Gapic::Config::Method]
3225
3224
  #
3226
3225
  attr_reader :create_inspect_template
3227
3226
  ##
3228
3227
  # RPC-specific configuration for `update_inspect_template`
3229
- # @return [Gapic::Config::Method]
3228
+ # @return [::Gapic::Config::Method]
3230
3229
  #
3231
3230
  attr_reader :update_inspect_template
3232
3231
  ##
3233
3232
  # RPC-specific configuration for `get_inspect_template`
3234
- # @return [Gapic::Config::Method]
3233
+ # @return [::Gapic::Config::Method]
3235
3234
  #
3236
3235
  attr_reader :get_inspect_template
3237
3236
  ##
3238
3237
  # RPC-specific configuration for `list_inspect_templates`
3239
- # @return [Gapic::Config::Method]
3238
+ # @return [::Gapic::Config::Method]
3240
3239
  #
3241
3240
  attr_reader :list_inspect_templates
3242
3241
  ##
3243
3242
  # RPC-specific configuration for `delete_inspect_template`
3244
- # @return [Gapic::Config::Method]
3243
+ # @return [::Gapic::Config::Method]
3245
3244
  #
3246
3245
  attr_reader :delete_inspect_template
3247
3246
  ##
3248
3247
  # RPC-specific configuration for `create_deidentify_template`
3249
- # @return [Gapic::Config::Method]
3248
+ # @return [::Gapic::Config::Method]
3250
3249
  #
3251
3250
  attr_reader :create_deidentify_template
3252
3251
  ##
3253
3252
  # RPC-specific configuration for `update_deidentify_template`
3254
- # @return [Gapic::Config::Method]
3253
+ # @return [::Gapic::Config::Method]
3255
3254
  #
3256
3255
  attr_reader :update_deidentify_template
3257
3256
  ##
3258
3257
  # RPC-specific configuration for `get_deidentify_template`
3259
- # @return [Gapic::Config::Method]
3258
+ # @return [::Gapic::Config::Method]
3260
3259
  #
3261
3260
  attr_reader :get_deidentify_template
3262
3261
  ##
3263
3262
  # RPC-specific configuration for `list_deidentify_templates`
3264
- # @return [Gapic::Config::Method]
3263
+ # @return [::Gapic::Config::Method]
3265
3264
  #
3266
3265
  attr_reader :list_deidentify_templates
3267
3266
  ##
3268
3267
  # RPC-specific configuration for `delete_deidentify_template`
3269
- # @return [Gapic::Config::Method]
3268
+ # @return [::Gapic::Config::Method]
3270
3269
  #
3271
3270
  attr_reader :delete_deidentify_template
3272
3271
  ##
3273
3272
  # RPC-specific configuration for `create_job_trigger`
3274
- # @return [Gapic::Config::Method]
3273
+ # @return [::Gapic::Config::Method]
3275
3274
  #
3276
3275
  attr_reader :create_job_trigger
3277
3276
  ##
3278
3277
  # RPC-specific configuration for `update_job_trigger`
3279
- # @return [Gapic::Config::Method]
3278
+ # @return [::Gapic::Config::Method]
3280
3279
  #
3281
3280
  attr_reader :update_job_trigger
3282
3281
  ##
3283
3282
  # RPC-specific configuration for `hybrid_inspect_job_trigger`
3284
- # @return [Gapic::Config::Method]
3283
+ # @return [::Gapic::Config::Method]
3285
3284
  #
3286
3285
  attr_reader :hybrid_inspect_job_trigger
3287
3286
  ##
3288
3287
  # RPC-specific configuration for `get_job_trigger`
3289
- # @return [Gapic::Config::Method]
3288
+ # @return [::Gapic::Config::Method]
3290
3289
  #
3291
3290
  attr_reader :get_job_trigger
3292
3291
  ##
3293
3292
  # RPC-specific configuration for `list_job_triggers`
3294
- # @return [Gapic::Config::Method]
3293
+ # @return [::Gapic::Config::Method]
3295
3294
  #
3296
3295
  attr_reader :list_job_triggers
3297
3296
  ##
3298
3297
  # RPC-specific configuration for `delete_job_trigger`
3299
- # @return [Gapic::Config::Method]
3298
+ # @return [::Gapic::Config::Method]
3300
3299
  #
3301
3300
  attr_reader :delete_job_trigger
3302
3301
  ##
3303
3302
  # RPC-specific configuration for `activate_job_trigger`
3304
- # @return [Gapic::Config::Method]
3303
+ # @return [::Gapic::Config::Method]
3305
3304
  #
3306
3305
  attr_reader :activate_job_trigger
3307
3306
  ##
3308
3307
  # RPC-specific configuration for `create_dlp_job`
3309
- # @return [Gapic::Config::Method]
3308
+ # @return [::Gapic::Config::Method]
3310
3309
  #
3311
3310
  attr_reader :create_dlp_job
3312
3311
  ##
3313
3312
  # RPC-specific configuration for `list_dlp_jobs`
3314
- # @return [Gapic::Config::Method]
3313
+ # @return [::Gapic::Config::Method]
3315
3314
  #
3316
3315
  attr_reader :list_dlp_jobs
3317
3316
  ##
3318
3317
  # RPC-specific configuration for `get_dlp_job`
3319
- # @return [Gapic::Config::Method]
3318
+ # @return [::Gapic::Config::Method]
3320
3319
  #
3321
3320
  attr_reader :get_dlp_job
3322
3321
  ##
3323
3322
  # RPC-specific configuration for `delete_dlp_job`
3324
- # @return [Gapic::Config::Method]
3323
+ # @return [::Gapic::Config::Method]
3325
3324
  #
3326
3325
  attr_reader :delete_dlp_job
3327
3326
  ##
3328
3327
  # RPC-specific configuration for `cancel_dlp_job`
3329
- # @return [Gapic::Config::Method]
3328
+ # @return [::Gapic::Config::Method]
3330
3329
  #
3331
3330
  attr_reader :cancel_dlp_job
3332
3331
  ##
3333
3332
  # RPC-specific configuration for `create_stored_info_type`
3334
- # @return [Gapic::Config::Method]
3333
+ # @return [::Gapic::Config::Method]
3335
3334
  #
3336
3335
  attr_reader :create_stored_info_type
3337
3336
  ##
3338
3337
  # RPC-specific configuration for `update_stored_info_type`
3339
- # @return [Gapic::Config::Method]
3338
+ # @return [::Gapic::Config::Method]
3340
3339
  #
3341
3340
  attr_reader :update_stored_info_type
3342
3341
  ##
3343
3342
  # RPC-specific configuration for `get_stored_info_type`
3344
- # @return [Gapic::Config::Method]
3343
+ # @return [::Gapic::Config::Method]
3345
3344
  #
3346
3345
  attr_reader :get_stored_info_type
3347
3346
  ##
3348
3347
  # RPC-specific configuration for `list_stored_info_types`
3349
- # @return [Gapic::Config::Method]
3348
+ # @return [::Gapic::Config::Method]
3350
3349
  #
3351
3350
  attr_reader :list_stored_info_types
3352
3351
  ##
3353
3352
  # RPC-specific configuration for `delete_stored_info_type`
3354
- # @return [Gapic::Config::Method]
3353
+ # @return [::Gapic::Config::Method]
3355
3354
  #
3356
3355
  attr_reader :delete_stored_info_type
3357
3356
  ##
3358
3357
  # RPC-specific configuration for `hybrid_inspect_dlp_job`
3359
- # @return [Gapic::Config::Method]
3358
+ # @return [::Gapic::Config::Method]
3360
3359
  #
3361
3360
  attr_reader :hybrid_inspect_dlp_job
3362
3361
  ##
3363
3362
  # RPC-specific configuration for `finish_dlp_job`
3364
- # @return [Gapic::Config::Method]
3363
+ # @return [::Gapic::Config::Method]
3365
3364
  #
3366
3365
  attr_reader :finish_dlp_job
3367
3366
 
3368
3367
  # @private
3369
3368
  def initialize parent_rpcs = nil
3370
3369
  inspect_content_config = parent_rpcs&.inspect_content if parent_rpcs&.respond_to? :inspect_content
3371
- @inspect_content = Gapic::Config::Method.new inspect_content_config
3370
+ @inspect_content = ::Gapic::Config::Method.new inspect_content_config
3372
3371
  redact_image_config = parent_rpcs&.redact_image if parent_rpcs&.respond_to? :redact_image
3373
- @redact_image = Gapic::Config::Method.new redact_image_config
3372
+ @redact_image = ::Gapic::Config::Method.new redact_image_config
3374
3373
  deidentify_content_config = parent_rpcs&.deidentify_content if parent_rpcs&.respond_to? :deidentify_content
3375
- @deidentify_content = Gapic::Config::Method.new deidentify_content_config
3374
+ @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config
3376
3375
  reidentify_content_config = parent_rpcs&.reidentify_content if parent_rpcs&.respond_to? :reidentify_content
3377
- @reidentify_content = Gapic::Config::Method.new reidentify_content_config
3376
+ @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config
3378
3377
  list_info_types_config = parent_rpcs&.list_info_types if parent_rpcs&.respond_to? :list_info_types
3379
- @list_info_types = Gapic::Config::Method.new list_info_types_config
3378
+ @list_info_types = ::Gapic::Config::Method.new list_info_types_config
3380
3379
  create_inspect_template_config = parent_rpcs&.create_inspect_template if parent_rpcs&.respond_to? :create_inspect_template
3381
- @create_inspect_template = Gapic::Config::Method.new create_inspect_template_config
3380
+ @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config
3382
3381
  update_inspect_template_config = parent_rpcs&.update_inspect_template if parent_rpcs&.respond_to? :update_inspect_template
3383
- @update_inspect_template = Gapic::Config::Method.new update_inspect_template_config
3382
+ @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config
3384
3383
  get_inspect_template_config = parent_rpcs&.get_inspect_template if parent_rpcs&.respond_to? :get_inspect_template
3385
- @get_inspect_template = Gapic::Config::Method.new get_inspect_template_config
3384
+ @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config
3386
3385
  list_inspect_templates_config = parent_rpcs&.list_inspect_templates if parent_rpcs&.respond_to? :list_inspect_templates
3387
- @list_inspect_templates = Gapic::Config::Method.new list_inspect_templates_config
3386
+ @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config
3388
3387
  delete_inspect_template_config = parent_rpcs&.delete_inspect_template if parent_rpcs&.respond_to? :delete_inspect_template
3389
- @delete_inspect_template = Gapic::Config::Method.new delete_inspect_template_config
3388
+ @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config
3390
3389
  create_deidentify_template_config = parent_rpcs&.create_deidentify_template if parent_rpcs&.respond_to? :create_deidentify_template
3391
- @create_deidentify_template = Gapic::Config::Method.new create_deidentify_template_config
3390
+ @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config
3392
3391
  update_deidentify_template_config = parent_rpcs&.update_deidentify_template if parent_rpcs&.respond_to? :update_deidentify_template
3393
- @update_deidentify_template = Gapic::Config::Method.new update_deidentify_template_config
3392
+ @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config
3394
3393
  get_deidentify_template_config = parent_rpcs&.get_deidentify_template if parent_rpcs&.respond_to? :get_deidentify_template
3395
- @get_deidentify_template = Gapic::Config::Method.new get_deidentify_template_config
3394
+ @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config
3396
3395
  list_deidentify_templates_config = parent_rpcs&.list_deidentify_templates if parent_rpcs&.respond_to? :list_deidentify_templates
3397
- @list_deidentify_templates = Gapic::Config::Method.new list_deidentify_templates_config
3396
+ @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config
3398
3397
  delete_deidentify_template_config = parent_rpcs&.delete_deidentify_template if parent_rpcs&.respond_to? :delete_deidentify_template
3399
- @delete_deidentify_template = Gapic::Config::Method.new delete_deidentify_template_config
3398
+ @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config
3400
3399
  create_job_trigger_config = parent_rpcs&.create_job_trigger if parent_rpcs&.respond_to? :create_job_trigger
3401
- @create_job_trigger = Gapic::Config::Method.new create_job_trigger_config
3400
+ @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config
3402
3401
  update_job_trigger_config = parent_rpcs&.update_job_trigger if parent_rpcs&.respond_to? :update_job_trigger
3403
- @update_job_trigger = Gapic::Config::Method.new update_job_trigger_config
3402
+ @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config
3404
3403
  hybrid_inspect_job_trigger_config = parent_rpcs&.hybrid_inspect_job_trigger if parent_rpcs&.respond_to? :hybrid_inspect_job_trigger
3405
- @hybrid_inspect_job_trigger = Gapic::Config::Method.new hybrid_inspect_job_trigger_config
3404
+ @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config
3406
3405
  get_job_trigger_config = parent_rpcs&.get_job_trigger if parent_rpcs&.respond_to? :get_job_trigger
3407
- @get_job_trigger = Gapic::Config::Method.new get_job_trigger_config
3406
+ @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config
3408
3407
  list_job_triggers_config = parent_rpcs&.list_job_triggers if parent_rpcs&.respond_to? :list_job_triggers
3409
- @list_job_triggers = Gapic::Config::Method.new list_job_triggers_config
3408
+ @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config
3410
3409
  delete_job_trigger_config = parent_rpcs&.delete_job_trigger if parent_rpcs&.respond_to? :delete_job_trigger
3411
- @delete_job_trigger = Gapic::Config::Method.new delete_job_trigger_config
3410
+ @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config
3412
3411
  activate_job_trigger_config = parent_rpcs&.activate_job_trigger if parent_rpcs&.respond_to? :activate_job_trigger
3413
- @activate_job_trigger = Gapic::Config::Method.new activate_job_trigger_config
3412
+ @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config
3414
3413
  create_dlp_job_config = parent_rpcs&.create_dlp_job if parent_rpcs&.respond_to? :create_dlp_job
3415
- @create_dlp_job = Gapic::Config::Method.new create_dlp_job_config
3414
+ @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config
3416
3415
  list_dlp_jobs_config = parent_rpcs&.list_dlp_jobs if parent_rpcs&.respond_to? :list_dlp_jobs
3417
- @list_dlp_jobs = Gapic::Config::Method.new list_dlp_jobs_config
3416
+ @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config
3418
3417
  get_dlp_job_config = parent_rpcs&.get_dlp_job if parent_rpcs&.respond_to? :get_dlp_job
3419
- @get_dlp_job = Gapic::Config::Method.new get_dlp_job_config
3418
+ @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config
3420
3419
  delete_dlp_job_config = parent_rpcs&.delete_dlp_job if parent_rpcs&.respond_to? :delete_dlp_job
3421
- @delete_dlp_job = Gapic::Config::Method.new delete_dlp_job_config
3420
+ @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config
3422
3421
  cancel_dlp_job_config = parent_rpcs&.cancel_dlp_job if parent_rpcs&.respond_to? :cancel_dlp_job
3423
- @cancel_dlp_job = Gapic::Config::Method.new cancel_dlp_job_config
3422
+ @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config
3424
3423
  create_stored_info_type_config = parent_rpcs&.create_stored_info_type if parent_rpcs&.respond_to? :create_stored_info_type
3425
- @create_stored_info_type = Gapic::Config::Method.new create_stored_info_type_config
3424
+ @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config
3426
3425
  update_stored_info_type_config = parent_rpcs&.update_stored_info_type if parent_rpcs&.respond_to? :update_stored_info_type
3427
- @update_stored_info_type = Gapic::Config::Method.new update_stored_info_type_config
3426
+ @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config
3428
3427
  get_stored_info_type_config = parent_rpcs&.get_stored_info_type if parent_rpcs&.respond_to? :get_stored_info_type
3429
- @get_stored_info_type = Gapic::Config::Method.new get_stored_info_type_config
3428
+ @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config
3430
3429
  list_stored_info_types_config = parent_rpcs&.list_stored_info_types if parent_rpcs&.respond_to? :list_stored_info_types
3431
- @list_stored_info_types = Gapic::Config::Method.new list_stored_info_types_config
3430
+ @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
3432
3431
  delete_stored_info_type_config = parent_rpcs&.delete_stored_info_type if parent_rpcs&.respond_to? :delete_stored_info_type
3433
- @delete_stored_info_type = Gapic::Config::Method.new delete_stored_info_type_config
3432
+ @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
3434
3433
  hybrid_inspect_dlp_job_config = parent_rpcs&.hybrid_inspect_dlp_job if parent_rpcs&.respond_to? :hybrid_inspect_dlp_job
3435
- @hybrid_inspect_dlp_job = Gapic::Config::Method.new hybrid_inspect_dlp_job_config
3434
+ @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
3436
3435
  finish_dlp_job_config = parent_rpcs&.finish_dlp_job if parent_rpcs&.respond_to? :finish_dlp_job
3437
- @finish_dlp_job = Gapic::Config::Method.new finish_dlp_job_config
3436
+ @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
3438
3437
 
3439
3438
  yield self if block_given?
3440
3439
  end