Class: Google::Apis::SqladminV1beta3::DatabaseFlags

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb

Overview

MySQL flags for Cloud SQL instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatabaseFlags

Returns a new instance of DatabaseFlags



263
264
265
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 263

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

Instance Attribute Details

#nameString

The name of the flag. These flags are passed at instance startup, so include both MySQL server options and MySQL system variables. Flags should be specified with underscores, not hyphens. For more information, see Configuring MySQL Flags in the Google Cloud SQL documentation, as well as the official MySQL documentation for server options and system variables. Corresponds to the JSON property name

Returns:

  • (String)


255
256
257
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 255

def name
  @name
end

#valueString

The value of the flag. Booleans should be 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)


261
262
263
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 261

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 268

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