Class: Google::Apis::SqladminV1::ConnectionPoolConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ConnectionPoolConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb
Overview
The managed connection pooling configuration.
Instance Attribute Summary collapse
-
#connection_pooling_enabled ⇒ Boolean
(also: #connection_pooling_enabled?)
Whether managed connection pooling is enabled.
-
#flags ⇒ Array<Google::Apis::SqladminV1::ConnectionPoolFlags>
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.
1006 1007 1008 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1006 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connection_pooling_enabled ⇒ Boolean Also known as: connection_pooling_enabled?
Whether managed connection pooling is enabled.
Corresponds to the JSON property connectionPoolingEnabled
993 994 995 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 993 def connection_pooling_enabled @connection_pooling_enabled end |
#flags ⇒ Array<Google::Apis::SqladminV1::ConnectionPoolFlags>
Optional. List of connection pool configuration flags.
Corresponds to the JSON property flags
999 1000 1001 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 999 def flags @flags end |
#pooler_count ⇒ Fixnum
Output only. Number of connection poolers.
Corresponds to the JSON property poolerCount
1004 1005 1006 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1004 def pooler_count @pooler_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1011 1012 1013 1014 1015 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1011 def update!(**args) @connection_pooling_enabled = args[:connection_pooling_enabled] if args.key?(:connection_pooling_enabled) @flags = args[:flags] if args.key?(:flags) @pooler_count = args[:pooler_count] if args.key?(:pooler_count) end |