class Google::Apis::SqladminV1beta4::Flag

A Google Cloud SQL service flag resource.

Attributes

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_5_5, MYSQL_5_6, or MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances. Corresponds to the JSON property `appliesTo` @return [Array<String>]

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

min_value[RW]

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

name[RW]

This is the name of the flag. Flag names always use underscores, not hyphens, e.g. max_allowed_packet Corresponds to the JSON property `name` @return [String]

requires_restart[RW]

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

requires_restart?[RW]

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. 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 generated/google/apis/sqladmin_v1beta4/classes.rb, line 780
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/sqladmin_v1beta4/classes.rb, line 785
def update!(**args)
  @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values)
  @applies_to = args[:applies_to] if args.key?(:applies_to)
  @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