Class: Google::Cloud::Container::V1::ClusterManager::Rest::Client::Configuration

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

Overview

Configuration class for the ClusterManager REST API.

This class represents the configuration for ClusterManager REST, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.

Configuration can be applied globally to all clients, or to a single client on construction.

Examples:


# Modify the global config, setting the timeout for
# list_clusters to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::Container::V1::ClusterManager::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.list_clusters.timeout = 20.0
end

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

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credentials::Object

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

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

Returns:

  • (::Object)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_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)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#logger::Logger, ...

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

Returns:

  • (::Logger, :default, nil)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

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

Additional headers to be sent with the call.

Returns:

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


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_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)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_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)


3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3642

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the ClusterManager API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `list_clusters`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_clusters
    ##
    # RPC-specific configuration for `get_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_cluster
    ##
    # RPC-specific configuration for `create_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_cluster
    ##
    # RPC-specific configuration for `update_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_cluster
    ##
    # RPC-specific configuration for `update_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_node_pool
    ##
    # RPC-specific configuration for `set_node_pool_autoscaling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_autoscaling
    ##
    # RPC-specific configuration for `set_logging_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_logging_service
    ##
    # RPC-specific configuration for `set_monitoring_service`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_monitoring_service
    ##
    # RPC-specific configuration for `set_addons_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_addons_config
    ##
    # RPC-specific configuration for `set_locations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_locations
    ##
    # RPC-specific configuration for `update_master`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_master
    ##
    # RPC-specific configuration for `set_master_auth`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_master_auth
    ##
    # RPC-specific configuration for `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `list_operations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_operations
    ##
    # RPC-specific configuration for `get_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_operation
    ##
    # RPC-specific configuration for `cancel_operation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :cancel_operation
    ##
    # RPC-specific configuration for `get_server_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_server_config
    ##
    # RPC-specific configuration for `get_json_web_keys`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_json_web_keys
    ##
    # RPC-specific configuration for `list_node_pools`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_node_pools
    ##
    # RPC-specific configuration for `get_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_node_pool
    ##
    # RPC-specific configuration for `create_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_node_pool
    ##
    # RPC-specific configuration for `delete_node_pool`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_node_pool
    ##
    # RPC-specific configuration for `complete_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_node_pool_upgrade
    ##
    # RPC-specific configuration for `rollback_node_pool_upgrade`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_node_pool_upgrade
    ##
    # RPC-specific configuration for `set_node_pool_management`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_management
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_legacy_abac`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_legacy_abac
    ##
    # RPC-specific configuration for `start_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_ip_rotation
    ##
    # RPC-specific configuration for `complete_ip_rotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_ip_rotation
    ##
    # RPC-specific configuration for `set_node_pool_size`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_node_pool_size
    ##
    # RPC-specific configuration for `set_network_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_network_policy
    ##
    # RPC-specific configuration for `set_maintenance_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_maintenance_policy
    ##
    # RPC-specific configuration for `list_usable_subnetworks`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_usable_subnetworks
    ##
    # RPC-specific configuration for `check_autopilot_compatibility`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :check_autopilot_compatibility

    # @private
    def initialize parent_rpcs = nil
      list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
      @list_clusters = ::Gapic::Config::Method.new list_clusters_config
      get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
      @get_cluster = ::Gapic::Config::Method.new get_cluster_config
      create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
      @create_cluster = ::Gapic::Config::Method.new create_cluster_config
      update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
      @update_cluster = ::Gapic::Config::Method.new update_cluster_config
      update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
      @update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
      set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
      @set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
      set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
      @set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
      set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
      @set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
      set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
      @set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
      set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
      @set_locations = ::Gapic::Config::Method.new set_locations_config
      update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
      @update_master = ::Gapic::Config::Method.new update_master_config
      set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
      @set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
      @list_operations = ::Gapic::Config::Method.new list_operations_config
      get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
      @get_operation = ::Gapic::Config::Method.new get_operation_config
      cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
      @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
      get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
      @get_server_config = ::Gapic::Config::Method.new get_server_config_config
      get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
      @get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
      list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
      @list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
      get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
      @get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
      create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
      @create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
      delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
      @delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
      complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
      @complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
      rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
      @rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
      set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
      @set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
      @set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
      start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
      @start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
      complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
      @complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
      set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
      @set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
      set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
      @set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
      set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
      @set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
      list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
      @list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
      check_autopilot_compatibility_config = parent_rpcs.check_autopilot_compatibility if parent_rpcs.respond_to? :check_autopilot_compatibility
      @check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



3675
3676
3677
3678
3679
3680
3681
# File 'lib/google/cloud/container/v1/cluster_manager/rest/client.rb', line 3675

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