class Google::Apis::SqladminV1::Flag
A flag resource.
Attributes
For STRING flags, a list of strings that the value can be set to. Corresponds to the JSON property `allowedStringValues` @return [Array<String>]
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7. Corresponds to the JSON property `appliesTo` @return [Array<String>]
Whether or not the flag is considered in beta. Corresponds to the JSON property `inBeta` @return [Boolean]
Whether or not the flag is considered in beta. Corresponds to the JSON property `inBeta` @return [Boolean]
This is always **sql#flag**. Corresponds to the JSON property `kind` @return [String]
For INTEGER flags, the maximum allowed value. Corresponds to the JSON property `maxValue` @return [Fixnum]
For INTEGER flags, the minimum allowed value. Corresponds to the JSON property `minValue` @return [Fixnum]
This is the name of the flag. Flag
names always use underscores, not hyphens, for example: max_allowed_packet Corresponds to the JSON property `name` @return [String]
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. Corresponds to the JSON property `requiresRestart` @return [Boolean]
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. Corresponds to the JSON property `requiresRestart` @return [Boolean]
The type of the flag. Flags are typed to being BOOLEAN, STRING, ** INTEGER** or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/sqladmin_v1/classes.rb, line 1374 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1/classes.rb, line 1379 def update!(**args) @allowed_int_values = args[:allowed_int_values] if args.key?(:allowed_int_values) @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) @applies_to = args[:applies_to] if args.key?(:applies_to) @in_beta = args[:in_beta] if args.key?(:in_beta) @kind = args[:kind] if args.key?(:kind) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @name = args[:name] if args.key?(:name) @requires_restart = args[:requires_restart] if args.key?(:requires_restart) @type = args[:type] if args.key?(:type) end