Class: Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client::Configuration

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

Overview

Configuration class for the AlloyDBAdmin REST API.

This class represents the configuration for AlloyDBAdmin 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::AlloyDB::V1::AlloyDBAdmin::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::AlloyDB::V1::AlloyDBAdmin::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)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_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)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_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})


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_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)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_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)


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
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3813

class Configuration
  extend ::Gapic::Config

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

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

  # @private
  # Overrides for http bindings for the RPCs of this service
  # are only used when this service is used as mixin, and only
  # by the host service.
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
  config_attr :bindings_override, {}, ::Hash, nil

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

    yield self if block_given?
  end

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

  ##
  # Configuration RPC class for the AlloyDBAdmin 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 `delete_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_cluster
    ##
    # RPC-specific configuration for `promote_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :promote_cluster
    ##
    # RPC-specific configuration for `switchover_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :switchover_cluster
    ##
    # RPC-specific configuration for `restore_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restore_cluster
    ##
    # RPC-specific configuration for `create_secondary_cluster`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_cluster
    ##
    # RPC-specific configuration for `list_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instances
    ##
    # RPC-specific configuration for `get_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instance
    ##
    # RPC-specific configuration for `create_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instance
    ##
    # RPC-specific configuration for `create_secondary_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_secondary_instance
    ##
    # RPC-specific configuration for `batch_create_instances`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :batch_create_instances
    ##
    # RPC-specific configuration for `update_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_instance
    ##
    # RPC-specific configuration for `delete_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instance
    ##
    # RPC-specific configuration for `failover_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :failover_instance
    ##
    # RPC-specific configuration for `inject_fault`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :inject_fault
    ##
    # RPC-specific configuration for `restart_instance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :restart_instance
    ##
    # RPC-specific configuration for `execute_sql`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :execute_sql
    ##
    # RPC-specific configuration for `list_backups`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_backups
    ##
    # RPC-specific configuration for `get_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_backup
    ##
    # RPC-specific configuration for `create_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_backup
    ##
    # RPC-specific configuration for `update_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_backup
    ##
    # RPC-specific configuration for `delete_backup`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_backup
    ##
    # RPC-specific configuration for `list_supported_database_flags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_supported_database_flags
    ##
    # RPC-specific configuration for `generate_client_certificate`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_client_certificate
    ##
    # RPC-specific configuration for `get_connection_info`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_connection_info
    ##
    # RPC-specific configuration for `list_users`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_users
    ##
    # RPC-specific configuration for `get_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_user
    ##
    # RPC-specific configuration for `create_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_user
    ##
    # RPC-specific configuration for `update_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_user
    ##
    # RPC-specific configuration for `delete_user`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_user
    ##
    # RPC-specific configuration for `list_databases`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_databases

    # @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
      delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
      @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
      promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
      @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
      switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
      @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
      restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
      @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
      create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
      @create_secondary_cluster = ::Gapic::Config::Method.new create_secondary_cluster_config
      list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
      @list_instances = ::Gapic::Config::Method.new list_instances_config
      get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
      @get_instance = ::Gapic::Config::Method.new get_instance_config
      create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
      @create_instance = ::Gapic::Config::Method.new create_instance_config
      create_secondary_instance_config = parent_rpcs.create_secondary_instance if parent_rpcs.respond_to? :create_secondary_instance
      @create_secondary_instance = ::Gapic::Config::Method.new create_secondary_instance_config
      batch_create_instances_config = parent_rpcs.batch_create_instances if parent_rpcs.respond_to? :batch_create_instances
      @batch_create_instances = ::Gapic::Config::Method.new batch_create_instances_config
      update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
      @update_instance = ::Gapic::Config::Method.new update_instance_config
      delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
      @delete_instance = ::Gapic::Config::Method.new delete_instance_config
      failover_instance_config = parent_rpcs.failover_instance if parent_rpcs.respond_to? :failover_instance
      @failover_instance = ::Gapic::Config::Method.new failover_instance_config
      inject_fault_config = parent_rpcs.inject_fault if parent_rpcs.respond_to? :inject_fault
      @inject_fault = ::Gapic::Config::Method.new inject_fault_config
      restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
      @restart_instance = ::Gapic::Config::Method.new restart_instance_config
      execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
      @execute_sql = ::Gapic::Config::Method.new execute_sql_config
      list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
      @list_backups = ::Gapic::Config::Method.new list_backups_config
      get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
      @get_backup = ::Gapic::Config::Method.new get_backup_config
      create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
      @create_backup = ::Gapic::Config::Method.new create_backup_config
      update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
      @update_backup = ::Gapic::Config::Method.new update_backup_config
      delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
      @delete_backup = ::Gapic::Config::Method.new delete_backup_config
      list_supported_database_flags_config = parent_rpcs.list_supported_database_flags if parent_rpcs.respond_to? :list_supported_database_flags
      @list_supported_database_flags = ::Gapic::Config::Method.new list_supported_database_flags_config
      generate_client_certificate_config = parent_rpcs.generate_client_certificate if parent_rpcs.respond_to? :generate_client_certificate
      @generate_client_certificate = ::Gapic::Config::Method.new generate_client_certificate_config
      get_connection_info_config = parent_rpcs.get_connection_info if parent_rpcs.respond_to? :get_connection_info
      @get_connection_info = ::Gapic::Config::Method.new get_connection_info_config
      list_users_config = parent_rpcs.list_users if parent_rpcs.respond_to? :list_users
      @list_users = ::Gapic::Config::Method.new list_users_config
      get_user_config = parent_rpcs.get_user if parent_rpcs.respond_to? :get_user
      @get_user = ::Gapic::Config::Method.new get_user_config
      create_user_config = parent_rpcs.create_user if parent_rpcs.respond_to? :create_user
      @create_user = ::Gapic::Config::Method.new create_user_config
      update_user_config = parent_rpcs.update_user if parent_rpcs.respond_to? :update_user
      @update_user = ::Gapic::Config::Method.new update_user_config
      delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
      @delete_user = ::Gapic::Config::Method.new delete_user_config
      list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
      @list_databases = ::Gapic::Config::Method.new list_databases_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



3852
3853
3854
3855
3856
3857
3858
# File 'lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb', line 3852

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