class Google::Apis::SqladminV1beta4::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 instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, ` SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, ` SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). 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_v1beta4/classes.rb, line 1448 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sqladmin_v1beta4/classes.rb, line 1453 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