Class: Google::Apis::SqladminV1beta3::DatabaseFlags
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::DatabaseFlags
- 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
-
#name ⇒ String
The name of the flag.
-
#value ⇒ String
The value of the flag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseFlags
constructor
A new instance of DatabaseFlags.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DatabaseFlags
Returns a new instance of DatabaseFlags
280 281 282 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
272 273 274 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 272 def name @name end |
#value ⇒ String
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
278 279 280 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 278 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
285 286 287 288 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 285 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |