pub struct User {Show 14 fields
pub database_roles: Option<Vec<String>>,
pub dual_password_type: Option<String>,
pub etag: Option<String>,
pub host: Option<String>,
pub iam_email: Option<String>,
pub iam_status: Option<String>,
pub instance: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
pub password: Option<String>,
pub password_policy: Option<UserPasswordValidationPolicy>,
pub project: Option<String>,
pub sqlserver_user_details: Option<SqlServerUserDetails>,
pub type_: Option<String>,
}Expand description
A Cloud SQL user resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- delete users (none)
- get users (response)
- insert users (request)
- list users (none)
- update users (request)
Fields§
§database_roles: Option<Vec<String>>Optional. Role memberships of the user
dual_password_type: Option<String>Dual password status for the user.
etag: Option<String>This field is deprecated and will be removed from a future version of the API.
host: Option<String>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.
iam_email: Option<String>Optional. The full email for an IAM user. For normal database users, this will not be filled. Only applicable to MySQL database users.
iam_status: Option<String>Indicates if a group is active or inactive for IAM database authentication.
instance: Option<String>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.
kind: Option<String>This is always sql#user.
name: Option<String>The name of the user in the Cloud SQL instance. Can be omitted for update because it is already specified in the URL.
password: Option<String>The password for the user.
password_policy: Option<UserPasswordValidationPolicy>User level password validation policy.
project: Option<String>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.
sqlserver_user_details: Option<SqlServerUserDetails>no description provided
type_: Option<String>The user type. It determines the method to authenticate the user during login. The default is the database’s built-in user type.