Class: Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/security_center/v1/security_center/client.rb

Overview

Configuration class for the SecurityCenter API.

This class represents the configuration for SecurityCenter, 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
# bulk_mute_findings to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.bulk_mute_findings.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.bulk_mute_findings.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channel_args::Hash

Extra parameters passed to the gRPC channel. Note: this is ignored if a GRPC::Core::Channel object is provided as the credential.

Returns:

  • (::Hash)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#credentials::Object

Credentials to send with calls. You may provide any of the following types:

  • (String) The path to a service account key file in JSON format
  • (Hash) A service account key as a Hash
  • (Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs)
  • (Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs)
  • (GRPC::Core::Channel) a gRPC channel with included credentials
  • (GRPC::Core::ChannelCredentials) a gRPC credentails object
  • (nil) indicating no credentials

Returns:

  • (::Object)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_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)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#interceptors::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.

Returns:

  • (::Array<::GRPC::ClientInterceptor>)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#metadata::Hash{::Symbol=>::String}

Additional gRPC headers to be sent with the call.

Returns:

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


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_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)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_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)


5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5141

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "securitycenter.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the SecurityCenter API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `bulk_mute_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_mute_findings
    ##
    # RPC-specific configuration for `create_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `create_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_source
    ##
    # RPC-specific configuration for `create_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_finding
    ##
    # RPC-specific configuration for `create_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_mute_config
    ##
    # RPC-specific configuration for `create_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_notification_config
    ##
    # RPC-specific configuration for `delete_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_mute_config
    ##
    # RPC-specific configuration for `delete_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_notification_config
    ##
    # RPC-specific configuration for `delete_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_big_query_export
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_mute_config
    ##
    # RPC-specific configuration for `get_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_notification_config
    ##
    # RPC-specific configuration for `get_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_organization_settings
    ##
    # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `get_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_source
    ##
    # RPC-specific configuration for `group_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_assets
    ##
    # RPC-specific configuration for `group_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :group_findings
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_descendant_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_findings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_findings
    ##
    # RPC-specific configuration for `list_mute_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_mute_configs
    ##
    # RPC-specific configuration for `list_notification_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_notification_configs
    ##
    # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_effective_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_security_health_analytics_custom_modules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_security_health_analytics_custom_modules
    ##
    # RPC-specific configuration for `list_sources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sources
    ##
    # RPC-specific configuration for `run_asset_discovery`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :run_asset_discovery
    ##
    # RPC-specific configuration for `set_finding_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_finding_state
    ##
    # RPC-specific configuration for `set_mute`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_mute
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_external_system`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_external_system
    ##
    # RPC-specific configuration for `update_finding`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_finding
    ##
    # RPC-specific configuration for `update_mute_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_mute_config
    ##
    # RPC-specific configuration for `update_notification_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_notification_config
    ##
    # RPC-specific configuration for `update_organization_settings`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_organization_settings
    ##
    # RPC-specific configuration for `update_security_health_analytics_custom_module`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_health_analytics_custom_module
    ##
    # RPC-specific configuration for `update_source`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_source
    ##
    # RPC-specific configuration for `update_security_marks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_security_marks
    ##
    # RPC-specific configuration for `create_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_big_query_export
    ##
    # RPC-specific configuration for `delete_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_big_query_export
    ##
    # RPC-specific configuration for `update_big_query_export`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_big_query_export
    ##
    # RPC-specific configuration for `list_big_query_exports`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_big_query_exports

    # @private
    def initialize parent_rpcs = nil
      bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
      @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
      create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
      @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
      create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
      @create_source = ::Gapic::Config::Method.new create_source_config
      create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
      @create_finding = ::Gapic::Config::Method.new create_finding_config
      create_mute_config_config = parent_rpcs.create_mute_config if parent_rpcs.respond_to? :create_mute_config
      @create_mute_config = ::Gapic::Config::Method.new create_mute_config_config
      create_notification_config_config = parent_rpcs.create_notification_config if parent_rpcs.respond_to? :create_notification_config
      @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
      delete_mute_config_config = parent_rpcs.delete_mute_config if parent_rpcs.respond_to? :delete_mute_config
      @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
      delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
      @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
      delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
      @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
      get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
      @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_mute_config_config = parent_rpcs.get_mute_config if parent_rpcs.respond_to? :get_mute_config
      @get_mute_config = ::Gapic::Config::Method.new get_mute_config_config
      get_notification_config_config = parent_rpcs.get_notification_config if parent_rpcs.respond_to? :get_notification_config
      @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
      get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
      @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
      get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
      @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
      get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
      @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
      get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
      @get_source = ::Gapic::Config::Method.new get_source_config
      group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
      @group_assets = ::Gapic::Config::Method.new group_assets_config
      group_findings_config = parent_rpcs.group_findings if parent_rpcs.respond_to? :group_findings
      @group_findings = ::Gapic::Config::Method.new group_findings_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
      @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
      list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
      @list_findings = ::Gapic::Config::Method.new list_findings_config
      list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
      @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
      list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
      @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
      list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
      @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
      list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
      @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
      list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
      @list_sources = ::Gapic::Config::Method.new list_sources_config
      run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
      @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
      set_finding_state_config = parent_rpcs.set_finding_state if parent_rpcs.respond_to? :set_finding_state
      @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
      set_mute_config = parent_rpcs.set_mute if parent_rpcs.respond_to? :set_mute
      @set_mute = ::Gapic::Config::Method.new set_mute_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
      @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
      update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
      @update_external_system = ::Gapic::Config::Method.new update_external_system_config
      update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding
      @update_finding = ::Gapic::Config::Method.new update_finding_config
      update_mute_config_config = parent_rpcs.update_mute_config if parent_rpcs.respond_to? :update_mute_config
      @update_mute_config = ::Gapic::Config::Method.new update_mute_config_config
      update_notification_config_config = parent_rpcs.update_notification_config if parent_rpcs.respond_to? :update_notification_config
      @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
      update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
      @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
      update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
      @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
      update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
      @update_source = ::Gapic::Config::Method.new update_source_config
      update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks
      @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
      create_big_query_export_config = parent_rpcs.create_big_query_export if parent_rpcs.respond_to? :create_big_query_export
      @create_big_query_export = ::Gapic::Config::Method.new create_big_query_export_config
      delete_big_query_export_config = parent_rpcs.delete_big_query_export if parent_rpcs.respond_to? :delete_big_query_export
      @delete_big_query_export = ::Gapic::Config::Method.new delete_big_query_export_config
      update_big_query_export_config = parent_rpcs.update_big_query_export if parent_rpcs.respond_to? :update_big_query_export
      @update_big_query_export = ::Gapic::Config::Method.new update_big_query_export_config
      list_big_query_exports_config = parent_rpcs.list_big_query_exports if parent_rpcs.respond_to? :list_big_query_exports
      @list_big_query_exports = ::Gapic::Config::Method.new list_big_query_exports_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#channel_pool::Gapic::ServiceStub::ChannelPool::Configuration

Configuration for the channel pool

Returns:

  • (::Gapic::ServiceStub::ChannelPool::Configuration)


5188
5189
5190
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5188

def channel_pool
  @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
end

#rpcsRpcs

Configurations for individual RPCs

Returns:



5176
5177
5178
5179
5180
5181
5182
# File 'lib/google/cloud/security_center/v1/security_center/client.rb', line 5176

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