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.
-
#authproxy_pooler_scaling_type ⇒ String
Optional.
-
#enabled ⇒ Boolean
(also: #enabled?)
Optional.
-
#flags ⇒ Hash<String,String>
Optional.
-
#pooler_count ⇒ Fixnum
Output only.
-
#pooler_scaling_type ⇒ String
Optional.
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.
1017 1018 1019 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1017 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
989 990 991 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 989 def authproxy_pooler_count @authproxy_pooler_count end |
#authproxy_pooler_scaling_type ⇒ String
Optional. The scaling type of the AuthProxy pooler.
Corresponds to the JSON property authproxyPoolerScalingType
994 995 996 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 994 def authproxy_pooler_scaling_type @authproxy_pooler_scaling_type end |
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether to enable Managed Connection Pool (MCP).
Corresponds to the JSON property enabled
999 1000 1001 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 999 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
1005 1006 1007 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1005 def flags @flags end |
#pooler_count ⇒ Fixnum
Output only. The number of running poolers per instance.
Corresponds to the JSON property poolerCount
1010 1011 1012 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1010 def pooler_count @pooler_count end |
#pooler_scaling_type ⇒ String
Optional. The scaling type of the regular pooler.
Corresponds to the JSON property poolerScalingType
1015 1016 1017 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1015 def pooler_scaling_type @pooler_scaling_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1022 def update!(**args) @authproxy_pooler_count = args[:authproxy_pooler_count] if args.key?(:authproxy_pooler_count) @authproxy_pooler_scaling_type = args[:authproxy_pooler_scaling_type] if args.key?(:authproxy_pooler_scaling_type) @enabled = args[:enabled] if args.key?(:enabled) @flags = args[:flags] if args.key?(:flags) @pooler_count = args[:pooler_count] if args.key?(:pooler_count) @pooler_scaling_type = args[:pooler_scaling_type] if args.key?(:pooler_scaling_type) end |