Class: Google::Cloud::NetApp::V1::NetApp::Client::Configuration

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

Overview

Configuration class for the NetApp API.

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

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


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#credentials::Object

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

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

Returns:

  • (::Object)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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>)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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})


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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)


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
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5474

class Configuration
  extend ::Gapic::Config

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

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

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

    yield self if block_given?
  end

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

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

  ##
  # Configuration RPC class for the NetApp 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_storage_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_storage_pools
    ##
    # RPC-specific configuration for `create_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_storage_pool
    ##
    # RPC-specific configuration for `get_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_storage_pool
    ##
    # RPC-specific configuration for `update_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_storage_pool
    ##
    # RPC-specific configuration for `delete_storage_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_storage_pool
    ##
    # RPC-specific configuration for `switch_active_replica_zone`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switch_active_replica_zone
    ##
    # RPC-specific configuration for `list_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_volumes
    ##
    # RPC-specific configuration for `get_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_volume
    ##
    # RPC-specific configuration for `create_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_volume
    ##
    # RPC-specific configuration for `update_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_volume
    ##
    # RPC-specific configuration for `delete_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_volume
    ##
    # RPC-specific configuration for `revert_volume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :revert_volume
    ##
    # RPC-specific configuration for `list_snapshots`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_snapshots
    ##
    # RPC-specific configuration for `get_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_snapshot
    ##
    # RPC-specific configuration for `create_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_snapshot
    ##
    # RPC-specific configuration for `delete_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_snapshot
    ##
    # RPC-specific configuration for `update_snapshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_snapshot
    ##
    # RPC-specific configuration for `list_active_directories`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_active_directories
    ##
    # RPC-specific configuration for `get_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_active_directory
    ##
    # RPC-specific configuration for `create_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_active_directory
    ##
    # RPC-specific configuration for `update_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_active_directory
    ##
    # RPC-specific configuration for `delete_active_directory`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_active_directory
    ##
    # RPC-specific configuration for `list_kms_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_kms_configs
    ##
    # RPC-specific configuration for `create_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_kms_config
    ##
    # RPC-specific configuration for `get_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_kms_config
    ##
    # RPC-specific configuration for `update_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_kms_config
    ##
    # RPC-specific configuration for `encrypt_volumes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :encrypt_volumes
    ##
    # RPC-specific configuration for `verify_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :verify_kms_config
    ##
    # RPC-specific configuration for `delete_kms_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_kms_config
    ##
    # RPC-specific configuration for `list_replications`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_replications
    ##
    # RPC-specific configuration for `get_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_replication
    ##
    # RPC-specific configuration for `create_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_replication
    ##
    # RPC-specific configuration for `delete_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_replication
    ##
    # RPC-specific configuration for `update_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_replication
    ##
    # RPC-specific configuration for `stop_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop_replication
    ##
    # RPC-specific configuration for `resume_replication`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_replication
    ##
    # RPC-specific configuration for `reverse_replication_direction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reverse_replication_direction
    ##
    # RPC-specific configuration for `create_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_vault
    ##
    # RPC-specific configuration for `get_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_vault
    ##
    # RPC-specific configuration for `list_backup_vaults`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_vaults
    ##
    # RPC-specific configuration for `update_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_vault
    ##
    # RPC-specific configuration for `delete_backup_vault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_vault
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `create_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup_policy
    ##
    # RPC-specific configuration for `get_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup_policy
    ##
    # RPC-specific configuration for `list_backup_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backup_policies
    ##
    # RPC-specific configuration for `update_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup_policy
    ##
    # RPC-specific configuration for `delete_backup_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup_policy

    # @private
    def initialize parent_rpcs = nil
      list_storage_pools_config = parent_rpcs.list_storage_pools if parent_rpcs.respond_to? :list_storage_pools
      @list_storage_pools = ::Gapic::Config::Method.new list_storage_pools_config
      create_storage_pool_config = parent_rpcs.create_storage_pool if parent_rpcs.respond_to? :create_storage_pool
      @create_storage_pool = ::Gapic::Config::Method.new create_storage_pool_config
      get_storage_pool_config = parent_rpcs.get_storage_pool if parent_rpcs.respond_to? :get_storage_pool
      @get_storage_pool = ::Gapic::Config::Method.new get_storage_pool_config
      update_storage_pool_config = parent_rpcs.update_storage_pool if parent_rpcs.respond_to? :update_storage_pool
      @update_storage_pool = ::Gapic::Config::Method.new update_storage_pool_config
      delete_storage_pool_config = parent_rpcs.delete_storage_pool if parent_rpcs.respond_to? :delete_storage_pool
      @delete_storage_pool = ::Gapic::Config::Method.new delete_storage_pool_config
      switch_active_replica_zone_config = parent_rpcs.switch_active_replica_zone if parent_rpcs.respond_to? :switch_active_replica_zone
      @switch_active_replica_zone = ::Gapic::Config::Method.new switch_active_replica_zone_config
      list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
      @list_volumes = ::Gapic::Config::Method.new list_volumes_config
      get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
      @get_volume = ::Gapic::Config::Method.new get_volume_config
      create_volume_config = parent_rpcs.create_volume if parent_rpcs.respond_to? :create_volume
      @create_volume = ::Gapic::Config::Method.new create_volume_config
      update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
      @update_volume = ::Gapic::Config::Method.new update_volume_config
      delete_volume_config = parent_rpcs.delete_volume if parent_rpcs.respond_to? :delete_volume
      @delete_volume = ::Gapic::Config::Method.new delete_volume_config
      revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume
      @revert_volume = ::Gapic::Config::Method.new revert_volume_config
      list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots
      @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config
      get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot
      @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config
      create_snapshot_config = parent_rpcs.create_snapshot if parent_rpcs.respond_to? :create_snapshot
      @create_snapshot = ::Gapic::Config::Method.new create_snapshot_config
      delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot
      @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config
      update_snapshot_config = parent_rpcs.update_snapshot if parent_rpcs.respond_to? :update_snapshot
      @update_snapshot = ::Gapic::Config::Method.new update_snapshot_config
      list_active_directories_config = parent_rpcs.list_active_directories if parent_rpcs.respond_to? :list_active_directories
      @list_active_directories = ::Gapic::Config::Method.new list_active_directories_config
      get_active_directory_config = parent_rpcs.get_active_directory if parent_rpcs.respond_to? :get_active_directory
      @get_active_directory = ::Gapic::Config::Method.new get_active_directory_config
      create_active_directory_config = parent_rpcs.create_active_directory if parent_rpcs.respond_to? :create_active_directory
      @create_active_directory = ::Gapic::Config::Method.new create_active_directory_config
      update_active_directory_config = parent_rpcs.update_active_directory if parent_rpcs.respond_to? :update_active_directory
      @update_active_directory = ::Gapic::Config::Method.new update_active_directory_config
      delete_active_directory_config = parent_rpcs.delete_active_directory if parent_rpcs.respond_to? :delete_active_directory
      @delete_active_directory = ::Gapic::Config::Method.new delete_active_directory_config
      list_kms_configs_config = parent_rpcs.list_kms_configs if parent_rpcs.respond_to? :list_kms_configs
      @list_kms_configs = ::Gapic::Config::Method.new list_kms_configs_config
      create_kms_config_config = parent_rpcs.create_kms_config if parent_rpcs.respond_to? :create_kms_config
      @create_kms_config = ::Gapic::Config::Method.new create_kms_config_config
      get_kms_config_config = parent_rpcs.get_kms_config if parent_rpcs.respond_to? :get_kms_config
      @get_kms_config = ::Gapic::Config::Method.new get_kms_config_config
      update_kms_config_config = parent_rpcs.update_kms_config if parent_rpcs.respond_to? :update_kms_config
      @update_kms_config = ::Gapic::Config::Method.new update_kms_config_config
      encrypt_volumes_config = parent_rpcs.encrypt_volumes if parent_rpcs.respond_to? :encrypt_volumes
      @encrypt_volumes = ::Gapic::Config::Method.new encrypt_volumes_config
      verify_kms_config_config = parent_rpcs.verify_kms_config if parent_rpcs.respond_to? :verify_kms_config
      @verify_kms_config = ::Gapic::Config::Method.new verify_kms_config_config
      delete_kms_config_config = parent_rpcs.delete_kms_config if parent_rpcs.respond_to? :delete_kms_config
      @delete_kms_config = ::Gapic::Config::Method.new delete_kms_config_config
      list_replications_config = parent_rpcs.list_replications if parent_rpcs.respond_to? :list_replications
      @list_replications = ::Gapic::Config::Method.new list_replications_config
      get_replication_config = parent_rpcs.get_replication if parent_rpcs.respond_to? :get_replication
      @get_replication = ::Gapic::Config::Method.new get_replication_config
      create_replication_config = parent_rpcs.create_replication if parent_rpcs.respond_to? :create_replication
      @create_replication = ::Gapic::Config::Method.new create_replication_config
      delete_replication_config = parent_rpcs.delete_replication if parent_rpcs.respond_to? :delete_replication
      @delete_replication = ::Gapic::Config::Method.new delete_replication_config
      update_replication_config = parent_rpcs.update_replication if parent_rpcs.respond_to? :update_replication
      @update_replication = ::Gapic::Config::Method.new update_replication_config
      stop_replication_config = parent_rpcs.stop_replication if parent_rpcs.respond_to? :stop_replication
      @stop_replication = ::Gapic::Config::Method.new stop_replication_config
      resume_replication_config = parent_rpcs.resume_replication if parent_rpcs.respond_to? :resume_replication
      @resume_replication = ::Gapic::Config::Method.new resume_replication_config
      reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
      @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
      create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
      @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
      get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
      @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
      list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
      @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
      update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
      @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
      delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
      @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
      @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
      get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
      @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
      list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
      @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
      update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
      @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
      delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
      @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_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)


5521
5522
5523
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5521

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

#rpcsRpcs

Configurations for individual RPCs

Returns:



5509
5510
5511
5512
5513
5514
5515
# File 'lib/google/cloud/netapp/v1/netapp/client.rb', line 5509

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