Class: Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Client::Configuration

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

Overview

Configuration class for the SecureSourceManager API.

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

# Apply the above configuration only to a new client.
client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.list_instances.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)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#credentials::Object

Note:

Warning: Passing a String to a keyfile path or a Hash of credentials is deprecated. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data.

Note:

Warning: If you accept a credential configuration (JSON file or Hash) from an

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

  • (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

external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.

Examples:


# The recommended way to provide credentials is to use the `make_creds` method
# on the appropriate credentials class for your environment.

require "googleauth"

credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
  json_key_io: ::File.open("/path/to/keyfile.json")
)

client = ::Google::Cloud::SecureSourceManager::V1::SecureSourceManager::Client.new do |config|
  config.credentials = credentials
end

Returns:

  • (::Object)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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>)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#logger::Logger, ...

A custom logger to use for request/response debug logging, or the value :default (the default) to construct a default logger, or nil to explicitly disable logging.

Returns:

  • (::Logger, :default, nil)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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})


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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)


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
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5434

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
    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
  config_attr :logger, :default, ::Logger, nil, :default

  # @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 SecureSourceManager 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 `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `list_repositories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_repositories
    ##
    # RPC-specific configuration for `get_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_repository
    ##
    # RPC-specific configuration for `create_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_repository
    ##
    # RPC-specific configuration for `update_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_repository
    ##
    # RPC-specific configuration for `delete_repository`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_repository
    ##
    # RPC-specific configuration for `list_hooks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_hooks
    ##
    # RPC-specific configuration for `get_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_hook
    ##
    # RPC-specific configuration for `create_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_hook
    ##
    # RPC-specific configuration for `update_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_hook
    ##
    # RPC-specific configuration for `delete_hook`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_hook
    ##
    # RPC-specific configuration for `get_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy_repo
    ##
    # RPC-specific configuration for `set_iam_policy_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy_repo
    ##
    # RPC-specific configuration for `test_iam_permissions_repo`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions_repo
    ##
    # RPC-specific configuration for `create_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_branch_rule
    ##
    # RPC-specific configuration for `list_branch_rules`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_branch_rules
    ##
    # RPC-specific configuration for `get_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_branch_rule
    ##
    # RPC-specific configuration for `update_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_branch_rule
    ##
    # RPC-specific configuration for `delete_branch_rule`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_branch_rule
    ##
    # RPC-specific configuration for `create_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request
    ##
    # RPC-specific configuration for `get_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request
    ##
    # RPC-specific configuration for `list_pull_requests`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_requests
    ##
    # RPC-specific configuration for `update_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request
    ##
    # RPC-specific configuration for `merge_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :merge_pull_request
    ##
    # RPC-specific configuration for `open_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_pull_request
    ##
    # RPC-specific configuration for `close_pull_request`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_pull_request
    ##
    # RPC-specific configuration for `list_pull_request_file_diffs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_file_diffs
    ##
    # RPC-specific configuration for `fetch_tree`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_tree
    ##
    # RPC-specific configuration for `fetch_blob`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :fetch_blob
    ##
    # RPC-specific configuration for `create_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue
    ##
    # RPC-specific configuration for `get_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue
    ##
    # RPC-specific configuration for `list_issues`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issues
    ##
    # RPC-specific configuration for `update_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue
    ##
    # RPC-specific configuration for `delete_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue
    ##
    # RPC-specific configuration for `open_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :open_issue
    ##
    # RPC-specific configuration for `close_issue`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :close_issue
    ##
    # RPC-specific configuration for `get_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_pull_request_comment
    ##
    # RPC-specific configuration for `list_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_pull_request_comments
    ##
    # RPC-specific configuration for `create_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_pull_request_comment
    ##
    # RPC-specific configuration for `update_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_pull_request_comment
    ##
    # RPC-specific configuration for `delete_pull_request_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_pull_request_comment
    ##
    # RPC-specific configuration for `batch_create_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_pull_request_comments
    ##
    # RPC-specific configuration for `resolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resolve_pull_request_comments
    ##
    # RPC-specific configuration for `unresolve_pull_request_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :unresolve_pull_request_comments
    ##
    # RPC-specific configuration for `create_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_issue_comment
    ##
    # RPC-specific configuration for `get_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_issue_comment
    ##
    # RPC-specific configuration for `list_issue_comments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_issue_comments
    ##
    # RPC-specific configuration for `update_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_issue_comment
    ##
    # RPC-specific configuration for `delete_issue_comment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_issue_comment

    # @private
    def initialize parent_rpcs = nil
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories
      @list_repositories = ::Gapic::Config::Method.new list_repositories_config
      get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository
      @get_repository = ::Gapic::Config::Method.new get_repository_config
      create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository
      @create_repository = ::Gapic::Config::Method.new create_repository_config
      update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository
      @update_repository = ::Gapic::Config::Method.new update_repository_config
      delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository
      @delete_repository = ::Gapic::Config::Method.new delete_repository_config
      list_hooks_config = parent_rpcs.list_hooks if parent_rpcs.respond_to? :list_hooks
      @list_hooks = ::Gapic::Config::Method.new list_hooks_config
      get_hook_config = parent_rpcs.get_hook if parent_rpcs.respond_to? :get_hook
      @get_hook = ::Gapic::Config::Method.new get_hook_config
      create_hook_config = parent_rpcs.create_hook if parent_rpcs.respond_to? :create_hook
      @create_hook = ::Gapic::Config::Method.new create_hook_config
      update_hook_config = parent_rpcs.update_hook if parent_rpcs.respond_to? :update_hook
      @update_hook = ::Gapic::Config::Method.new update_hook_config
      delete_hook_config = parent_rpcs.delete_hook if parent_rpcs.respond_to? :delete_hook
      @delete_hook = ::Gapic::Config::Method.new delete_hook_config
      get_iam_policy_repo_config = parent_rpcs.get_iam_policy_repo if parent_rpcs.respond_to? :get_iam_policy_repo
      @get_iam_policy_repo = ::Gapic::Config::Method.new get_iam_policy_repo_config
      set_iam_policy_repo_config = parent_rpcs.set_iam_policy_repo if parent_rpcs.respond_to? :set_iam_policy_repo
      @set_iam_policy_repo = ::Gapic::Config::Method.new set_iam_policy_repo_config
      test_iam_permissions_repo_config = parent_rpcs.test_iam_permissions_repo if parent_rpcs.respond_to? :test_iam_permissions_repo
      @test_iam_permissions_repo = ::Gapic::Config::Method.new test_iam_permissions_repo_config
      create_branch_rule_config = parent_rpcs.create_branch_rule if parent_rpcs.respond_to? :create_branch_rule
      @create_branch_rule = ::Gapic::Config::Method.new create_branch_rule_config
      list_branch_rules_config = parent_rpcs.list_branch_rules if parent_rpcs.respond_to? :list_branch_rules
      @list_branch_rules = ::Gapic::Config::Method.new list_branch_rules_config
      get_branch_rule_config = parent_rpcs.get_branch_rule if parent_rpcs.respond_to? :get_branch_rule
      @get_branch_rule = ::Gapic::Config::Method.new get_branch_rule_config
      update_branch_rule_config = parent_rpcs.update_branch_rule if parent_rpcs.respond_to? :update_branch_rule
      @update_branch_rule = ::Gapic::Config::Method.new update_branch_rule_config
      delete_branch_rule_config = parent_rpcs.delete_branch_rule if parent_rpcs.respond_to? :delete_branch_rule
      @delete_branch_rule = ::Gapic::Config::Method.new delete_branch_rule_config
      create_pull_request_config = parent_rpcs.create_pull_request if parent_rpcs.respond_to? :create_pull_request
      @create_pull_request = ::Gapic::Config::Method.new create_pull_request_config
      get_pull_request_config = parent_rpcs.get_pull_request if parent_rpcs.respond_to? :get_pull_request
      @get_pull_request = ::Gapic::Config::Method.new get_pull_request_config
      list_pull_requests_config = parent_rpcs.list_pull_requests if parent_rpcs.respond_to? :list_pull_requests
      @list_pull_requests = ::Gapic::Config::Method.new list_pull_requests_config
      update_pull_request_config = parent_rpcs.update_pull_request if parent_rpcs.respond_to? :update_pull_request
      @update_pull_request = ::Gapic::Config::Method.new update_pull_request_config
      merge_pull_request_config = parent_rpcs.merge_pull_request if parent_rpcs.respond_to? :merge_pull_request
      @merge_pull_request = ::Gapic::Config::Method.new merge_pull_request_config
      open_pull_request_config = parent_rpcs.open_pull_request if parent_rpcs.respond_to? :open_pull_request
      @open_pull_request = ::Gapic::Config::Method.new open_pull_request_config
      close_pull_request_config = parent_rpcs.close_pull_request if parent_rpcs.respond_to? :close_pull_request
      @close_pull_request = ::Gapic::Config::Method.new close_pull_request_config
      list_pull_request_file_diffs_config = parent_rpcs.list_pull_request_file_diffs if parent_rpcs.respond_to? :list_pull_request_file_diffs
      @list_pull_request_file_diffs = ::Gapic::Config::Method.new list_pull_request_file_diffs_config
      fetch_tree_config = parent_rpcs.fetch_tree if parent_rpcs.respond_to? :fetch_tree
      @fetch_tree = ::Gapic::Config::Method.new fetch_tree_config
      fetch_blob_config = parent_rpcs.fetch_blob if parent_rpcs.respond_to? :fetch_blob
      @fetch_blob = ::Gapic::Config::Method.new fetch_blob_config
      create_issue_config = parent_rpcs.create_issue if parent_rpcs.respond_to? :create_issue
      @create_issue = ::Gapic::Config::Method.new create_issue_config
      get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
      @get_issue = ::Gapic::Config::Method.new get_issue_config
      list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
      @list_issues = ::Gapic::Config::Method.new list_issues_config
      update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
      @update_issue = ::Gapic::Config::Method.new update_issue_config
      delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
      @delete_issue = ::Gapic::Config::Method.new delete_issue_config
      open_issue_config = parent_rpcs.open_issue if parent_rpcs.respond_to? :open_issue
      @open_issue = ::Gapic::Config::Method.new open_issue_config
      close_issue_config = parent_rpcs.close_issue if parent_rpcs.respond_to? :close_issue
      @close_issue = ::Gapic::Config::Method.new close_issue_config
      get_pull_request_comment_config = parent_rpcs.get_pull_request_comment if parent_rpcs.respond_to? :get_pull_request_comment
      @get_pull_request_comment = ::Gapic::Config::Method.new get_pull_request_comment_config
      list_pull_request_comments_config = parent_rpcs.list_pull_request_comments if parent_rpcs.respond_to? :list_pull_request_comments
      @list_pull_request_comments = ::Gapic::Config::Method.new list_pull_request_comments_config
      create_pull_request_comment_config = parent_rpcs.create_pull_request_comment if parent_rpcs.respond_to? :create_pull_request_comment
      @create_pull_request_comment = ::Gapic::Config::Method.new create_pull_request_comment_config
      update_pull_request_comment_config = parent_rpcs.update_pull_request_comment if parent_rpcs.respond_to? :update_pull_request_comment
      @update_pull_request_comment = ::Gapic::Config::Method.new update_pull_request_comment_config
      delete_pull_request_comment_config = parent_rpcs.delete_pull_request_comment if parent_rpcs.respond_to? :delete_pull_request_comment
      @delete_pull_request_comment = ::Gapic::Config::Method.new delete_pull_request_comment_config
      batch_create_pull_request_comments_config = parent_rpcs.batch_create_pull_request_comments if parent_rpcs.respond_to? :batch_create_pull_request_comments
      @batch_create_pull_request_comments = ::Gapic::Config::Method.new batch_create_pull_request_comments_config
      resolve_pull_request_comments_config = parent_rpcs.resolve_pull_request_comments if parent_rpcs.respond_to? :resolve_pull_request_comments
      @resolve_pull_request_comments = ::Gapic::Config::Method.new resolve_pull_request_comments_config
      unresolve_pull_request_comments_config = parent_rpcs.unresolve_pull_request_comments if parent_rpcs.respond_to? :unresolve_pull_request_comments
      @unresolve_pull_request_comments = ::Gapic::Config::Method.new unresolve_pull_request_comments_config
      create_issue_comment_config = parent_rpcs.create_issue_comment if parent_rpcs.respond_to? :create_issue_comment
      @create_issue_comment = ::Gapic::Config::Method.new create_issue_comment_config
      get_issue_comment_config = parent_rpcs.get_issue_comment if parent_rpcs.respond_to? :get_issue_comment
      @get_issue_comment = ::Gapic::Config::Method.new get_issue_comment_config
      list_issue_comments_config = parent_rpcs.list_issue_comments if parent_rpcs.respond_to? :list_issue_comments
      @list_issue_comments = ::Gapic::Config::Method.new list_issue_comments_config
      update_issue_comment_config = parent_rpcs.update_issue_comment if parent_rpcs.respond_to? :update_issue_comment
      @update_issue_comment = ::Gapic::Config::Method.new update_issue_comment_config
      delete_issue_comment_config = parent_rpcs.delete_issue_comment if parent_rpcs.respond_to? :delete_issue_comment
      @delete_issue_comment = ::Gapic::Config::Method.new delete_issue_comment_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)


5482
5483
5484
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5482

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

#rpcsRpcs

Configurations for individual RPCs

Returns:



5470
5471
5472
5473
5474
5475
5476
# File 'lib/google/cloud/secure_source_manager/v1/secure_source_manager/client.rb', line 5470

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