Class SupportedDatabaseFlag (0.4.0)

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 google.cloud.alloydb_v1alpha.types.SupportedDatabaseFlag.StringRestrictions
Restriction on STRING type value. This field is a member of oneof_ restrictions.
integer_restrictions google.cloud.alloydb_v1alpha.types.SupportedDatabaseFlag.IntegerRestrictions
Restriction on INTEGER type value. This field is a member of oneof_ restrictions.
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[google.cloud.alloydb_v1alpha.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).

Classes

IntegerRestrictions

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

Restrictions on INTEGER type values.

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".