0.1.4 (latest) 0.1.3

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

A Cloud SQL user resource.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `kind` | `str` This is always `sql#user`. |
| `password` | `str` The password for the user. |
| `etag` | `str` This field is deprecated and will be removed from a future version of the API. |
| `name` | `str` The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is already specified in the URL. |
| `host` | `str` Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional. |
| `instance` | `str` The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL. |
| `project` | `str` The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for `update` because it is already specified on the URL. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.User.SqlUserType` The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type. |
| `sqlserver_user_details` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.SqlServerUserDetails` This field is a member of `oneof`_ `user_details`. |
| `iam_email` | `str` Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users. |
| `password_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.UserPasswordValidationPolicy` User level password validation policy. |
| `dual_password_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.User.DualPasswordType` Dual password status for the user. This field is a member of `oneof`_ `_dual_password_type`. |
| `iam_status` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-sql/latest/google.cloud.sqladmin_v1.types.User.IamStatus` Indicates if a group is active or inactive for IAM database authentication. This field is a member of `oneof`_ `_iam_status`. |
| `database_roles` | `MutableSequence[str]` Optional. Role memberships of the user |
| `server_roles` | `MutableSequence[str]` Optional. The server roles for the SQL Server login. |

## Classes

### DualPasswordType

    DualPasswordType(value)

The type of retained password.

### IamStatus

    IamStatus(value)

Indicates if a group is available for IAM database
authentication.

### SqlUserType

    SqlUserType(value)

The user type.