Class: Google::Apis::AlloydbV1beta::ConnectionPoolConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

Configuration for Managed Connection Pool (MCP).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionPoolConfig

Returns a new instance of ConnectionPoolConfig.



1033
1034
1035
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1033

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authproxy_pooler_countFixnum

Output only. The number of running AuthProxy poolers per instance. Corresponds to the JSON property authproxyPoolerCount

Returns:

  • (Fixnum)


1015
1016
1017
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1015

def authproxy_pooler_count
  @authproxy_pooler_count
end

#enabledBoolean Also known as: enabled?

Optional. Whether to enable Managed Connection Pool (MCP). Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1020
1021
1022
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1020

def enabled
  @enabled
end

#flagsHash<String,String>

Optional. Connection Pool flags, as a list of "key": "value" pairs. Corresponds to the JSON property flags

Returns:

  • (Hash<String,String>)


1026
1027
1028
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1026

def flags
  @flags
end

#pooler_countFixnum

Output only. The number of running poolers per instance. Corresponds to the JSON property poolerCount

Returns:

  • (Fixnum)


1031
1032
1033
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1031

def pooler_count
  @pooler_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1038
1039
1040
1041
1042
1043
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1038

def update!(**args)
  @authproxy_pooler_count = args[:authproxy_pooler_count] if args.key?(:authproxy_pooler_count)
  @enabled = args[:enabled] if args.key?(:enabled)
  @flags = args[:flags] if args.key?(:flags)
  @pooler_count = args[:pooler_count] if args.key?(:pooler_count)
end