class Google::Apis::SqladminV1beta4::Flag

A flag resource.

Attributes

allowed_int_values[RW]

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values. Corresponds to the JSON property `allowedIntValues` @return [Array<Fixnum>]

allowed_string_values[RW]

For STRING flags, a list of strings that the value can be set to. Corresponds to the JSON property `allowedStringValues` @return [Array<String>]

applies_to[RW]

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>]

in_beta[RW]

Whether or not the flag is considered in beta. Corresponds to the JSON property `inBeta` @return [Boolean]

in_beta?[RW]

Whether or not the flag is considered in beta. Corresponds to the JSON property `inBeta` @return [Boolean]

kind[RW]

This is always *sql#flag*. Corresponds to the JSON property `kind` @return [String]

max_value[RW]

For INTEGER flags, the maximum allowed value. Corresponds to the JSON property `maxValue` @return [Fixnum]

min_value[RW]

For INTEGER flags, the minimum allowed value. Corresponds to the JSON property `minValue` @return [Fixnum]

name[RW]

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]

requires_restart[RW]

Indicates whether changing this flag will trigger a database restart. Corresponds to the JSON property `requiresRestart` @return [Boolean]

requires_restart?[RW]

Indicates whether changing this flag will trigger a database restart. Corresponds to the JSON property `requiresRestart` @return [Boolean]

type[RW]

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

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1373
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1378
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