Class: Google::Apis::SqladminV1::ConnectionPoolFlags

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

Connection pool flags for Cloud SQL instances managed connection pool configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionPoolFlags

Returns a new instance of ConnectionPoolFlags.



1034
1035
1036
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1034

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

Instance Attribute Details

#nameString

Required. The name of the flag. Corresponds to the JSON property name

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1026

def name
  @name
end

#valueString

Required. The value of the flag. Boolean flags are set to on for true and off for false. This field must be omitted if the flag doesn't take a value. Corresponds to the JSON property value

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1032

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1039
1040
1041
1042
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1039

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end