Class: Google::Apis::SqlV1beta4::DatabaseFlags

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

Overview

Database 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.


456
457
458
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 456

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 server options and system variables for MySQL. Flags are specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation. Corresponds to the JSON property name

Returns:

  • (String)

448
449
450
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 448

def name
  @name
end

#valueString

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

454
455
456
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 454

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


461
462
463
464
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 461

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