Class: Google::Apis::SqladminV1beta4::Flag

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

Overview

A flag resource.

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) ⇒ Flag

Returns a new instance of Flag



1089
1090
1091
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1089

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_string_valuesArray<String>

For STRING flags, a list of strings that the value can be set to. Corresponds to the JSON property allowedStringValues

Returns:

  • (Array<String>)


1040
1041
1042
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1040

def allowed_string_values
  @allowed_string_values
end

#applies_toArray<String>

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

Returns:

  • (Array<String>)


1046
1047
1048
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1046

def applies_to
  @applies_to
end

#in_betaBoolean Also known as: in_beta?

True if the flag is only released in Beta. Corresponds to the JSON property inBeta

Returns:

  • (Boolean)


1051
1052
1053
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1051

def in_beta
  @in_beta
end

#kindString

This is always sql#flag. Corresponds to the JSON property kind

Returns:

  • (String)


1057
1058
1059
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1057

def kind
  @kind
end

#max_valueFixnum

For INTEGER flags, the maximum allowed value. Corresponds to the JSON property maxValue

Returns:

  • (Fixnum)


1062
1063
1064
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1062

def max_value
  @max_value
end

#min_valueFixnum

For INTEGER flags, the minimum allowed value. Corresponds to the JSON property minValue

Returns:

  • (Fixnum)


1067
1068
1069
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1067

def min_value
  @min_value
end

#nameString

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

Returns:

  • (String)


1073
1074
1075
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1073

def name
  @name
end

#requires_restartBoolean Also known as: requires_restart?

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. Corresponds to the JSON property requiresRestart

Returns:

  • (Boolean)


1079
1080
1081
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1079

def requires_restart
  @requires_restart
end

#typeString

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

Returns:

  • (String)


1087
1088
1089
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1087

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1094

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)
  @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