Class: Google::Cloud::Dlp::V2::DlpService::Rest::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/dlp/v2/dlp_service/rest/client.rb

Overview

Configuration class for the DlpService REST API.

This class represents the configuration for DlpService REST, 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.

Examples:


# Modify the global config, setting the timeout for
# inspect_content to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::Dlp::V2::DlpService::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.inspect_content.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::Dlp::V2::DlpService::Rest::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.inspect_content.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#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)
  • (nil) indicating no credentials

Returns:

  • (::Object)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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.

Returns:

  • (::String, nil)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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

Returns:

  • (::String)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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

Returns:

  • (::String)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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 headers to be sent with the call.

Returns:

  • (::Hash{::Symbol=>::String})


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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.

Returns:

  • (::String)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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.

Returns:

  • (::Hash)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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

Returns:

  • (::Array<::String>)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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.

Returns:

  • (::Numeric)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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).

Returns:

  • (::String, nil)


5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
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
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5899

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.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 :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 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 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

#rpcsRpcs

Configurations for individual RPCs

Returns:



5931
5932
5933
5934
5935
5936
5937
# File 'lib/google/cloud/dlp/v2/dlp_service/rest/client.rb', line 5931

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