0.11.4 (latest) 0.11.3 0.10.0 0.9.0 0.7.0 0.6.0 0.5.0 0.4.9 0.3.16 0.2.1 0.1.1

    SupportedDatabaseFlag(mapping=None, *, ignore_unknown_fields=False, **kwargs)

SupportedDatabaseFlag gives general information about a database
flag, like type and allowed values. This is a static value that is
defined on the server side, and it cannot be modified by callers. To
set the Database flags on a particular Instance, a caller should
modify the Instance.database_flags field.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `string_restrictions` | `https://docs.cloud.google.com/python/docs/reference/alloydb/latest/google.cloud.alloydb_v1.types.SupportedDatabaseFlag.StringRestrictions` Restriction on STRING type value. This field is a member of `oneof`_ `restrictions`. |
| `integer_restrictions` | `https://docs.cloud.google.com/python/docs/reference/alloydb/latest/google.cloud.alloydb_v1.types.SupportedDatabaseFlag.IntegerRestrictions` Restriction on INTEGER type value. This field is a member of `oneof`_ `restrictions`. |
| `recommended_string_value` | `str` The recommended value for a STRING flag. This field is a member of `oneof`_ `recommended_value`. |
| `recommended_integer_value` | `google.protobuf.wrappers_pb2.Int64Value` The recommended value for an INTEGER flag. This field is a member of `oneof`_ `recommended_value`. |
| `name` | `str` The name of the flag resource, following Google Cloud conventions, e.g.: - projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning. |
| `flag_name` | `str` The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field. |
| `accepts_multiple_values` | `bool` Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified. |
| `supported_db_versions` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/alloydb/latest/google.cloud.alloydb_v1.types.DatabaseVersion]` Major database engine versions for which this flag is supported. |
| `requires_db_restart` | `bool` Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's). |
| `scope` | `https://docs.cloud.google.com/python/docs/reference/alloydb/latest/google.cloud.alloydb_v1.types.SupportedDatabaseFlag.Scope` The scope of the flag. |

## Classes

### IntegerRestrictions

    IntegerRestrictions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Restrictions on INTEGER type values.

### Scope

    Scope(value)

The scope of the flag.

### StringRestrictions

    StringRestrictions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Restrictions on STRING type values

### ValueType

    ValueType(value)

ValueType describes the semantic type of the value that the flag
accepts. Regardless of the ValueType, the Instance.database_flags
field accepts the stringified version of the value, i.e. "20" or
"3.14".