Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class Flag.
A flag resource.
Generated from protobuf message google.cloud.sql.v1.Flag
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet
↳ type
int
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGERor NONE. NONEis used for flags which do not take a value, such as skip_grant_tables.
↳ applies_to
array
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7.
↳ allowed_string_values
array
For STRINGflags, a list of strings that the value can be set to.
↳ min_value
↳ max_value
↳ requires_restart
Google\Protobuf\BoolValue
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
↳ kind
string
This is always sql#flag.
↳ in_beta
↳ allowed_int_values
array
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
getName
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet
string
setName
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet
var
string
$this
getType
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGERor NONE. NONEis used for flags which do not take a value, such as skip_grant_tables.
int
setType
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGERor NONE. NONEis used for flags which do not take a value, such as skip_grant_tables.
var
int
$this
getAppliesTo
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7.
setAppliesTo
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7.
var
int[]
$this
getAllowedStringValues
For STRINGflags, a list of strings that the value can be set to.
setAllowedStringValues
For STRINGflags, a list of strings that the value can be set to.
var
string[]
$this
getMinValue
For INTEGERflags, the minimum allowed value.
hasMinValue
clearMinValue
getMinValueValue
Returns the unboxed value from getMinValue()
For INTEGERflags, the minimum allowed value.
int|string|null
setMinValue
For INTEGERflags, the minimum allowed value.
$this
setMinValueValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
For INTEGERflags, the minimum allowed value.
var
int|string|null
$this
getMaxValue
For INTEGERflags, the maximum allowed value.
hasMaxValue
clearMaxValue
getMaxValueValue
Returns the unboxed value from getMaxValue()
For INTEGERflags, the maximum allowed value.
int|string|null
setMaxValue
For INTEGERflags, the maximum allowed value.
$this
setMaxValueValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
For INTEGERflags, the maximum allowed value.
var
int|string|null
$this
getRequiresRestart
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
hasRequiresRestart
clearRequiresRestart
getRequiresRestartValue
Returns the unboxed value from getRequiresRestart()
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
bool|null
setRequiresRestart
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
$this
setRequiresRestartValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
var
bool|null
$this
getKind
This is always sql#flag.
string
setKind
This is always sql#flag.
var
string
$this
getInBeta
Whether or not the flag is considered in beta.
hasInBeta
clearInBeta
getInBetaValue
Returns the unboxed value from getInBeta()
Whether or not the flag is considered in beta.
bool|null
setInBeta
Whether or not the flag is considered in beta.
$this
setInBetaValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether or not the flag is considered in beta.
var
bool|null
$this
getAllowedIntValues
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
setAllowedIntValues
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
$this