Class User
A Cloud SQL user resource.
Implements
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4.Data
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class User : IDirectResponseSchema
Properties
DualPasswordType
Dual password status for the user.
Declaration
[JsonProperty("dualPasswordType")]
public virtual string DualPasswordType { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
This field is deprecated and will be removed from a future version of the API.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Host
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.
Declaration
[JsonProperty("host")]
public virtual string Host { get; set; }
Property Value
Type | Description |
---|---|
string |
Instance
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.
Declaration
[JsonProperty("instance")]
public virtual string Instance { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
This is always sql#user
.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The name of the user in the Cloud SQL instance. Can be omitted for update
because it is already specified
in the URL.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Password
The password for the user.
Declaration
[JsonProperty("password")]
public virtual string Password { get; set; }
Property Value
Type | Description |
---|---|
string |
PasswordPolicy
User level password validation policy.
Declaration
[JsonProperty("passwordPolicy")]
public virtual UserPasswordValidationPolicy PasswordPolicy { get; set; }
Property Value
Type | Description |
---|---|
UserPasswordValidationPolicy |
Project
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.
Declaration
[JsonProperty("project")]
public virtual string Project { get; set; }
Property Value
Type | Description |
---|---|
string |
SqlserverUserDetails
Declaration
[JsonProperty("sqlserverUserDetails")]
public virtual SqlServerUserDetails SqlserverUserDetails { get; set; }
Property Value
Type | Description |
---|---|
SqlServerUserDetails |
Type
The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |