Class: Google::Apis::SqladminV1::ConnectionPoolConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_enabledBoolean Also known as: connection_pooling_enabled?

Whether managed connection pooling is enabled. Corresponds to the JSON property connectionPoolingEnabled

Returns:

  • (Boolean)


993
994
995
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 993

def connection_pooling_enabled
  @connection_pooling_enabled
end

#flagsArray<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_countFixnum

Output only. Number of connection poolers. Corresponds to the JSON property poolerCount

Returns:

  • (Fixnum)


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