Resource: Flag
A flag resource.
| JSON representation | 
|---|
| { "name": string, "type": enum ( | 
| Fields | |
|---|---|
| name | 
 This is the name of the flag. Flag names always use underscores, not hyphens, for example:  | 
| type | 
 The type of the flag. Flags are typed to being  | 
| appliesTo[] | 
 The database version this flag applies to. Can be MySQL instances:  | 
| allowedStringValues[] | 
 For  | 
| minValue | 
 For  | 
| maxValue | 
 For  | 
| requiresRestart | 
 Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. | 
| kind | 
 This is always  | 
| inBeta | 
 Whether or not the flag is considered in beta. | 
| allowedIntValues[] | 
 Use this field if only certain integers are accepted. Can be combined with minValue and maxValue to add additional values. | 
| flagScope | 
 Scope of flag. | 
| Union field recommended_value. Recommended flag value for UI display.recommended_valuecan be only one of the following: | |
| recommendedStringValue | 
 Recommended string value in string format for UI display. | 
| recommendedIntValue | 
 Recommended int value in integer format for UI display. | 
SqlFlagType
| Enums | |
|---|---|
| SQL_FLAG_TYPE_UNSPECIFIED | This is an unknown flag type. | 
| BOOLEAN | Boolean type flag. | 
| STRING | String type flag. | 
| INTEGER | Integer type flag. | 
| NONE | Flag type used for a server startup option. | 
| MYSQL_TIMEZONE_OFFSET | Type introduced specially for MySQL TimeZone offset. Accept a string value with the format [-12:59, 13:00]. | 
| FLOAT | Float type flag. | 
| REPEATED_STRING | Comma-separated list of the strings in a SqlFlagType enum. | 
SqlFlagScope
Scopes of a flag describe where the flag is used.
| Enums | |
|---|---|
| SQL_FLAG_SCOPE_UNSPECIFIED | Assume database flags if unspecified | 
| SQL_FLAG_SCOPE_DATABASE | database flags | 
| SQL_FLAG_SCOPE_CONNECTION_POOL | connection pool configuration flags | 
| Methods | |
|---|---|
| 
 | Lists all available database flags for Cloud SQL instances. |