Class: Google::Apis::AlloydbV1alpha::ConnectionPoolConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionPoolConfig

Returns a new instance of ConnectionPoolConfig.



1100
1101
1102
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1100

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

Instance Attribute Details

#authproxy_pooler_countFixnum

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

Returns:

  • (Fixnum)


1072
1073
1074
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1072

def authproxy_pooler_count
  @authproxy_pooler_count
end

#authproxy_pooler_scaling_typeString

Optional. The scaling type of the AuthProxy pooler. Corresponds to the JSON property authproxyPoolerScalingType

Returns:

  • (String)


1077
1078
1079
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1077

def authproxy_pooler_scaling_type
  @authproxy_pooler_scaling_type
end

#enabledBoolean Also known as: enabled?

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

Returns:

  • (Boolean)


1082
1083
1084
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1082

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>)


1088
1089
1090
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1088

def flags
  @flags
end

#pooler_countFixnum

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

Returns:

  • (Fixnum)


1093
1094
1095
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1093

def pooler_count
  @pooler_count
end

#pooler_scaling_typeString

Optional. The scaling type of the regular pooler. Corresponds to the JSON property poolerScalingType

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1098

def pooler_scaling_type
  @pooler_scaling_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1105
1106
1107
1108
1109
1110
1111
1112
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1105

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