Class: Google::Apis::SqladminV1beta4::Flag
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::Flag
- 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
-
#allowed_int_values ⇒ Array<Fixnum>
Use this field if only certain integers are accepted.
-
#allowed_string_values ⇒ Array<String>
For STRING flags, a list of strings that the value can be set to.
-
#applies_to ⇒ Array<String>
The database version this flag applies to.
-
#in_beta ⇒ Boolean
(also: #in_beta?)
Whether or not the flag is considered in beta.
-
#kind ⇒ String
This is always sql#flag.
-
#max_value ⇒ Fixnum
For INTEGER flags, the maximum allowed value.
-
#min_value ⇒ Fixnum
For INTEGER flags, the minimum allowed value.
-
#name ⇒ String
This is the name of the flag.
-
#requires_restart ⇒ Boolean
(also: #requires_restart?)
Indicates whether changing this flag will trigger a database restart.
-
#type ⇒ String
The type of the flag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Flag
constructor
A new instance of Flag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Flag
Returns a new instance of Flag.
1264 1265 1266 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_int_values ⇒ Array<Fixnum>
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
1210 1211 1212 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1210 def allowed_int_values @allowed_int_values end |
#allowed_string_values ⇒ Array<String>
For STRING flags, a list of strings that the value can be set to.
Corresponds to the JSON property allowedStringValues
1215 1216 1217 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1215 def allowed_string_values @allowed_string_values end |
#applies_to ⇒ 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
1221 1222 1223 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1221 def applies_to @applies_to end |
#in_beta ⇒ Boolean Also known as: in_beta?
Whether or not the flag is considered in beta.
Corresponds to the JSON property inBeta
1226 1227 1228 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1226 def in_beta @in_beta end |
#kind ⇒ String
This is always sql#flag.
Corresponds to the JSON property kind
1232 1233 1234 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1232 def kind @kind end |
#max_value ⇒ Fixnum
For INTEGER flags, the maximum allowed value.
Corresponds to the JSON property maxValue
1237 1238 1239 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1237 def max_value @max_value end |
#min_value ⇒ Fixnum
For INTEGER flags, the minimum allowed value.
Corresponds to the JSON property minValue
1242 1243 1244 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1242 def min_value @min_value end |
#name ⇒ String
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
1248 1249 1250 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1248 def name @name end |
#requires_restart ⇒ Boolean 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
1254 1255 1256 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1254 def requires_restart @requires_restart end |
#type ⇒ String
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
1262 1263 1264 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1262 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1269 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 |