0.1.4 (latest) 0.1.3

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

Database instance local user password validation policy.
This message defines the password policy for local database
users. When enabled, it enforces constraints on password
complexity, length, and reuse. Keep this policy enabled to help
prevent unauthorized access.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `min_length` | `google.protobuf.wrappers_pb2.Int32Value` Minimum number of characters allowed. |
| `complexity` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.PasswordValidationPolicy.Complexity` The complexity of the password. |
| `reuse_interval` | `google.protobuf.wrappers_pb2.Int32Value` Number of previous passwords that cannot be reused. |
| `disallow_username_substring` | `google.protobuf.wrappers_pb2.BoolValue` Disallow username as a part of the password. |
| `password_change_interval` | `google.protobuf.duration_pb2.Duration` Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL. |
| `enable_password_policy` | `google.protobuf.wrappers_pb2.BoolValue` Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords. |
| `disallow_compromised_credentials` | `google.protobuf.wrappers_pb2.BoolValue` This field is deprecated and will be removed in a future version of the API. |

## Classes

### Complexity

    Complexity(value)

The complexity choices of the password.