
target.apidocs.com.google.api.services.sqladmin.model.User.html Maven / Gradle / Ivy
User (Cloud SQL Admin API v1-rev20240912-2.0.0)
com.google.api.services.sqladmin.model
Class User
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.User
-
public final class User
extends com.google.api.client.json.GenericJson
A Cloud SQL user resource.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
User()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
User
clone()
String
getDualPasswordType()
Dual password status for the user.
String
getEtag()
This field is deprecated and will be removed from a future version of the API.
String
getHost()
Optional.
String
getInstance()
The name of the Cloud SQL instance.
String
getKind()
This is always `sql#user`.
String
getName()
The name of the user in the Cloud SQL instance.
String
getPassword()
The password for the user.
UserPasswordValidationPolicy
getPasswordPolicy()
User level password validation policy.
String
getProject()
The project ID of the project containing the Cloud SQL database.
SqlServerUserDetails
getSqlserverUserDetails()
String
getType()
The user type.
User
set(String fieldName,
Object value)
User
setDualPasswordType(String dualPasswordType)
Dual password status for the user.
User
setEtag(String etag)
This field is deprecated and will be removed from a future version of the API.
User
setHost(String host)
Optional.
User
setInstance(String instance)
The name of the Cloud SQL instance.
User
setKind(String kind)
This is always `sql#user`.
User
setName(String name)
The name of the user in the Cloud SQL instance.
User
setPassword(String password)
The password for the user.
User
setPasswordPolicy(UserPasswordValidationPolicy passwordPolicy)
User level password validation policy.
User
setProject(String project)
The project ID of the project containing the Cloud SQL database.
User
setSqlserverUserDetails(SqlServerUserDetails sqlserverUserDetails)
User
setType(String type)
The user type.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDualPasswordType
public String getDualPasswordType()
Dual password status for the user.
- Returns:
- value or
null
for none
-
setDualPasswordType
public User setDualPasswordType(String dualPasswordType)
Dual password status for the user.
- Parameters:
dualPasswordType
- dualPasswordType or null
for none
-
getEtag
public String getEtag()
This field is deprecated and will be removed from a future version of the API.
- Returns:
- value or
null
for none
-
setEtag
public User setEtag(String etag)
This field is deprecated and will be removed from a future version of the API.
- Parameters:
etag
- etag or null
for none
-
getHost
public String getHost()
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.
- Returns:
- value or
null
for none
-
setHost
public User setHost(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.
- Parameters:
host
- host or null
for none
-
getInstance
public String getInstance()
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.
- Returns:
- value or
null
for none
-
setInstance
public User setInstance(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.
- Parameters:
instance
- instance or null
for none
-
getKind
public String getKind()
This is always `sql#user`.
- Returns:
- value or
null
for none
-
setKind
public User setKind(String kind)
This is always `sql#user`.
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is
already specified in the URL.
- Returns:
- value or
null
for none
-
setName
public User setName(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.
- Parameters:
name
- name or null
for none
-
getPassword
public String getPassword()
The password for the user.
- Returns:
- value or
null
for none
-
setPassword
public User setPassword(String password)
The password for the user.
- Parameters:
password
- password or null
for none
-
getPasswordPolicy
public UserPasswordValidationPolicy getPasswordPolicy()
User level password validation policy.
- Returns:
- value or
null
for none
-
setPasswordPolicy
public User setPasswordPolicy(UserPasswordValidationPolicy passwordPolicy)
User level password validation policy.
- Parameters:
passwordPolicy
- passwordPolicy or null
for none
-
getProject
public String getProject()
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.
- Returns:
- value or
null
for none
-
setProject
public User setProject(String 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.
- Parameters:
project
- project or null
for none
-
getSqlserverUserDetails
public SqlServerUserDetails getSqlserverUserDetails()
- Returns:
- value or
null
for none
-
setSqlserverUserDetails
public User setSqlserverUserDetails(SqlServerUserDetails sqlserverUserDetails)
- Parameters:
sqlserverUserDetails
- sqlserverUserDetails or null
for none
-
getType
public String getType()
The user type. It determines the method to authenticate the user during login. The default is
the database's built-in user type.
- Returns:
- value or
null
for none
-
setType
public User setType(String type)
The user type. It determines the method to authenticate the user during login. The default is
the database's built-in user type.
- Parameters:
type
- type or null
for none
-
set
public User set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public User clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy