Class: Google::Apis::AlloydbV1alpha::ConnectionPoolConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::ConnectionPoolConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
Configuration for Managed Connection Pool (MCP).
Instance Attribute Summary collapse
-
#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.
1055 1056 1057 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1055 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether to enable Managed Connection Pool (MCP).
Corresponds to the JSON property enabled
1042 1043 1044 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1042 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
1048 1049 1050 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1048 def flags @flags end |
#pooler_count ⇒ Fixnum
Output only. The number of running poolers per instance.
Corresponds to the JSON property poolerCount
1053 1054 1055 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1053 def pooler_count @pooler_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1060 1061 1062 1063 1064 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1060 def update!(**args) @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 |