Class: Google::Apis::AlloydbV1::ConnectionPoolConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionPoolConfig

Returns a new instance of ConnectionPoolConfig.



979
980
981
# File 'lib/google/apis/alloydb_v1/classes.rb', line 979

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Optional. Whether to enable Managed Connection Pool (MCP). Corresponds to the JSON property enabled

Returns:

  • (Boolean)


966
967
968
# File 'lib/google/apis/alloydb_v1/classes.rb', line 966

def enabled
  @enabled
end

#flagsHash<String,String>

Optional. Connection Pool flags, as a list of "key": "value" pairs. Corresponds to the JSON property flags

Returns:

  • (Hash<String,String>)


972
973
974
# File 'lib/google/apis/alloydb_v1/classes.rb', line 972

def flags
  @flags
end

#pooler_countFixnum

Output only. The number of running poolers per instance. Corresponds to the JSON property poolerCount

Returns:

  • (Fixnum)


977
978
979
# File 'lib/google/apis/alloydb_v1/classes.rb', line 977

def pooler_count
  @pooler_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



984
985
986
987
988
# File 'lib/google/apis/alloydb_v1/classes.rb', line 984

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