Class: Google::Apis::AlloydbV1::ConnectionPoolConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::ConnectionPoolConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb
Overview
Configuration for Managed Connection Pool (MCP).
Instance Attribute Summary collapse
-
#authproxy_pooler_count ⇒ Fixnum
Output only.
-
#enabled ⇒ Boolean
(also: #enabled?)
Optional.
-
#flags ⇒ Hash<String,String>
Optional.
-
#pooler_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectionPoolConfig
constructor
A new instance of ConnectionPoolConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectionPoolConfig
Returns a new instance of ConnectionPoolConfig.
984 985 986 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 984 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authproxy_pooler_count ⇒ Fixnum
Output only. The number of running AuthProxy poolers per instance.
Corresponds to the JSON property authproxyPoolerCount
966 967 968 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 966 def authproxy_pooler_count @authproxy_pooler_count end |
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether to enable Managed Connection Pool (MCP).
Corresponds to the JSON property enabled
971 972 973 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 971 def enabled @enabled end |
#flags ⇒ Hash<String,String>
Optional. Connection Pool flags, as a list of "key": "value" pairs.
Corresponds to the JSON property flags
977 978 979 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 977 def flags @flags end |
#pooler_count ⇒ Fixnum
Output only. The number of running poolers per instance.
Corresponds to the JSON property poolerCount
982 983 984 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 982 def pooler_count @pooler_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
989 990 991 992 993 994 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 989 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 |