target.apidocs.com.google.api.services.sql.SQLAdmin.Users.html Maven / Gradle / Ivy
SQLAdmin.Users (Cloud SQL Admin API v1beta4-rev20201026-1.30.10)
com.google.api.services.sql
Class SQLAdmin.Users
- java.lang.Object
-
- com.google.api.services.sql.SQLAdmin.Users
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
SQLAdmin.Users.Delete
class
SQLAdmin.Users.Insert
class
SQLAdmin.Users.List
class
SQLAdmin.Users.Update
-
Constructor Summary
Constructors
Constructor and Description
Users()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SQLAdmin.Users.Delete
delete(String project,
String instance)
Deletes a user from a Cloud SQL instance.
SQLAdmin.Users.Insert
insert(String project,
String instance,
User content)
Creates a new user in a Cloud SQL instance.
SQLAdmin.Users.List
list(String project,
String instance)
Lists users in the specified Cloud SQL instance.
SQLAdmin.Users.Update
update(String project,
String instance,
User content)
Updates an existing user in a Cloud SQL instance.
-
-
Method Detail
-
delete
public SQLAdmin.Users.Delete delete(String project,
String instance)
throws IOException
Deletes a user from a Cloud SQL instance.
Create a request for the method "users.delete".
This request holds the parameters needed by the sql server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Database instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
-
insert
public SQLAdmin.Users.Insert insert(String project,
String instance,
User content)
throws IOException
Creates a new user in a Cloud SQL instance.
Create a request for the method "users.insert".
This request holds the parameters needed by the sql server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Database instance ID. This does not include the project ID.
content
- the User
- Returns:
- the request
- Throws:
IOException
-
list
public SQLAdmin.Users.List list(String project,
String instance)
throws IOException
Lists users in the specified Cloud SQL instance.
Create a request for the method "users.list".
This request holds the parameters needed by the sql server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Database instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
-
update
public SQLAdmin.Users.Update update(String project,
String instance,
User content)
throws IOException
Updates an existing user in a Cloud SQL instance.
Create a request for the method "users.update".
This request holds the parameters needed by the sql server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Database instance ID. This does not include the project ID.
content
- the User
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.