Class: Google::Cloud::Dlp::V2::DlpService::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::Dlp::V2::DlpService::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/dlp/v2/dlp_service/client.rb
Overview
Configuration class for the DlpService API.
This class represents the configuration for DlpService, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel
object is provided as the credential.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String
) The path to a service account key file in JSON format - (
Hash
) A service account key as a Hash - (
Google::Auth::Credentials
) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client
) A signet oauth2 client object (see the signet docs) - (
GRPC::Core::Channel
) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials
) a gRPC credentails object - (
nil
) indicating no credentials
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#quota_project ⇒ ::String
A separate project against which to charge quota.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#retry_policy ⇒ ::Hash
The retry policy. The value is a hash with the following keys:
-
:initial_delay
(type:Numeric
) - The initial delay in seconds. -
:max_delay
(type:Numeric
) - The max delay in seconds. -
:multiplier
(type:Numeric
) - The incremental backoff multiplier. -
:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#scope ⇒ ::Array<::String>
The OAuth scopes
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#timeout ⇒ ::Numeric
The call timeout in seconds.
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
#universe_domain ⇒ ::String?
The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6296 class Configuration extend ::Gapic::Config # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "dlp.googleapis.com" config_attr :endpoint, nil, ::String, nil config_attr :credentials, nil do |value| allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil] allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end ## # Configuration RPC class for the DlpService API. # # Includes fields providing the configuration for each RPC in this service. # Each configuration object is of type `Gapic::Config::Method` and includes # the following configuration fields: # # * `timeout` (*type:* `Numeric`) - The call timeout in seconds # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields # include the following keys: # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should # trigger a retry. # class Rpcs ## # RPC-specific configuration for `inspect_content` # @return [::Gapic::Config::Method] # attr_reader :inspect_content ## # RPC-specific configuration for `redact_image` # @return [::Gapic::Config::Method] # attr_reader :redact_image ## # RPC-specific configuration for `deidentify_content` # @return [::Gapic::Config::Method] # attr_reader :deidentify_content ## # RPC-specific configuration for `reidentify_content` # @return [::Gapic::Config::Method] # attr_reader :reidentify_content ## # RPC-specific configuration for `list_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_info_types ## # RPC-specific configuration for `create_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :create_inspect_template ## # RPC-specific configuration for `update_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :update_inspect_template ## # RPC-specific configuration for `get_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :get_inspect_template ## # RPC-specific configuration for `list_inspect_templates` # @return [::Gapic::Config::Method] # attr_reader :list_inspect_templates ## # RPC-specific configuration for `delete_inspect_template` # @return [::Gapic::Config::Method] # attr_reader :delete_inspect_template ## # RPC-specific configuration for `create_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :create_deidentify_template ## # RPC-specific configuration for `update_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :update_deidentify_template ## # RPC-specific configuration for `get_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :get_deidentify_template ## # RPC-specific configuration for `list_deidentify_templates` # @return [::Gapic::Config::Method] # attr_reader :list_deidentify_templates ## # RPC-specific configuration for `delete_deidentify_template` # @return [::Gapic::Config::Method] # attr_reader :delete_deidentify_template ## # RPC-specific configuration for `create_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :create_job_trigger ## # RPC-specific configuration for `update_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :update_job_trigger ## # RPC-specific configuration for `hybrid_inspect_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_job_trigger ## # RPC-specific configuration for `get_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :get_job_trigger ## # RPC-specific configuration for `list_job_triggers` # @return [::Gapic::Config::Method] # attr_reader :list_job_triggers ## # RPC-specific configuration for `delete_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :delete_job_trigger ## # RPC-specific configuration for `activate_job_trigger` # @return [::Gapic::Config::Method] # attr_reader :activate_job_trigger ## # RPC-specific configuration for `create_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :create_discovery_config ## # RPC-specific configuration for `update_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :update_discovery_config ## # RPC-specific configuration for `get_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :get_discovery_config ## # RPC-specific configuration for `list_discovery_configs` # @return [::Gapic::Config::Method] # attr_reader :list_discovery_configs ## # RPC-specific configuration for `delete_discovery_config` # @return [::Gapic::Config::Method] # attr_reader :delete_discovery_config ## # RPC-specific configuration for `create_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :create_dlp_job ## # RPC-specific configuration for `list_dlp_jobs` # @return [::Gapic::Config::Method] # attr_reader :list_dlp_jobs ## # RPC-specific configuration for `get_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :get_dlp_job ## # RPC-specific configuration for `delete_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :delete_dlp_job ## # RPC-specific configuration for `cancel_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :cancel_dlp_job ## # RPC-specific configuration for `create_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :create_stored_info_type ## # RPC-specific configuration for `update_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :update_stored_info_type ## # RPC-specific configuration for `get_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :get_stored_info_type ## # RPC-specific configuration for `list_stored_info_types` # @return [::Gapic::Config::Method] # attr_reader :list_stored_info_types ## # RPC-specific configuration for `delete_stored_info_type` # @return [::Gapic::Config::Method] # attr_reader :delete_stored_info_type ## # RPC-specific configuration for `list_project_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_project_data_profiles ## # RPC-specific configuration for `list_table_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_table_data_profiles ## # RPC-specific configuration for `list_column_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_column_data_profiles ## # RPC-specific configuration for `get_project_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_project_data_profile ## # RPC-specific configuration for `list_file_store_data_profiles` # @return [::Gapic::Config::Method] # attr_reader :list_file_store_data_profiles ## # RPC-specific configuration for `get_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_file_store_data_profile ## # RPC-specific configuration for `delete_file_store_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_file_store_data_profile ## # RPC-specific configuration for `get_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_table_data_profile ## # RPC-specific configuration for `get_column_data_profile` # @return [::Gapic::Config::Method] # attr_reader :get_column_data_profile ## # RPC-specific configuration for `delete_table_data_profile` # @return [::Gapic::Config::Method] # attr_reader :delete_table_data_profile ## # RPC-specific configuration for `hybrid_inspect_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :hybrid_inspect_dlp_job ## # RPC-specific configuration for `finish_dlp_job` # @return [::Gapic::Config::Method] # attr_reader :finish_dlp_job ## # RPC-specific configuration for `create_connection` # @return [::Gapic::Config::Method] # attr_reader :create_connection ## # RPC-specific configuration for `get_connection` # @return [::Gapic::Config::Method] # attr_reader :get_connection ## # RPC-specific configuration for `list_connections` # @return [::Gapic::Config::Method] # attr_reader :list_connections ## # RPC-specific configuration for `search_connections` # @return [::Gapic::Config::Method] # attr_reader :search_connections ## # RPC-specific configuration for `delete_connection` # @return [::Gapic::Config::Method] # attr_reader :delete_connection ## # RPC-specific configuration for `update_connection` # @return [::Gapic::Config::Method] # attr_reader :update_connection # @private def initialize parent_rpcs = nil inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content @inspect_content = ::Gapic::Config::Method.new inspect_content_config redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image @redact_image = ::Gapic::Config::Method.new redact_image_config deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content @deidentify_content = ::Gapic::Config::Method.new deidentify_content_config reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content @reidentify_content = ::Gapic::Config::Method.new reidentify_content_config list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types @list_info_types = ::Gapic::Config::Method.new list_info_types_config create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template @create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template @update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template @get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates @list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template @delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template @create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template @update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template @get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates @list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template @delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger @create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger @update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger @hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger @get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers @list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger @delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger @activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config create_discovery_config_config = parent_rpcs.create_discovery_config if parent_rpcs.respond_to? :create_discovery_config @create_discovery_config = ::Gapic::Config::Method.new create_discovery_config_config update_discovery_config_config = parent_rpcs.update_discovery_config if parent_rpcs.respond_to? :update_discovery_config @update_discovery_config = ::Gapic::Config::Method.new update_discovery_config_config get_discovery_config_config = parent_rpcs.get_discovery_config if parent_rpcs.respond_to? :get_discovery_config @get_discovery_config = ::Gapic::Config::Method.new get_discovery_config_config list_discovery_configs_config = parent_rpcs.list_discovery_configs if parent_rpcs.respond_to? :list_discovery_configs @list_discovery_configs = ::Gapic::Config::Method.new list_discovery_configs_config delete_discovery_config_config = parent_rpcs.delete_discovery_config if parent_rpcs.respond_to? :delete_discovery_config @delete_discovery_config = ::Gapic::Config::Method.new delete_discovery_config_config create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job @create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs @list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job @get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job @delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job @cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type @create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type @update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type @get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config list_file_store_data_profiles_config = parent_rpcs.list_file_store_data_profiles if parent_rpcs.respond_to? :list_file_store_data_profiles @list_file_store_data_profiles = ::Gapic::Config::Method.new list_file_store_data_profiles_config get_file_store_data_profile_config = parent_rpcs.get_file_store_data_profile if parent_rpcs.respond_to? :get_file_store_data_profile @get_file_store_data_profile = ::Gapic::Config::Method.new get_file_store_data_profile_config delete_file_store_data_profile_config = parent_rpcs.delete_file_store_data_profile if parent_rpcs.respond_to? :delete_file_store_data_profile @delete_file_store_data_profile = ::Gapic::Config::Method.new delete_file_store_data_profile_config get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config delete_table_data_profile_config = parent_rpcs.delete_table_data_profile if parent_rpcs.respond_to? :delete_table_data_profile @delete_table_data_profile = ::Gapic::Config::Method.new delete_table_data_profile_config hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job @finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config create_connection_config = parent_rpcs.create_connection if parent_rpcs.respond_to? :create_connection @create_connection = ::Gapic::Config::Method.new create_connection_config get_connection_config = parent_rpcs.get_connection if parent_rpcs.respond_to? :get_connection @get_connection = ::Gapic::Config::Method.new get_connection_config list_connections_config = parent_rpcs.list_connections if parent_rpcs.respond_to? :list_connections @list_connections = ::Gapic::Config::Method.new list_connections_config search_connections_config = parent_rpcs.search_connections if parent_rpcs.respond_to? :search_connections @search_connections = ::Gapic::Config::Method.new search_connections_config delete_connection_config = parent_rpcs.delete_connection if parent_rpcs.respond_to? :delete_connection @delete_connection = ::Gapic::Config::Method.new delete_connection_config update_connection_config = parent_rpcs.update_connection if parent_rpcs.respond_to? :update_connection @update_connection = ::Gapic::Config::Method.new update_connection_config yield self if block_given? end end end |
Instance Method Details
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
6343 6344 6345 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6343 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
6331 6332 6333 6334 6335 6336 6337 |
# File 'lib/google/cloud/dlp/v2/dlp_service/client.rb', line 6331 def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end |