target.apidocs.com.google.api.services.sql.SQLAdmin.Databases.html Maven / Gradle / Ivy
SQLAdmin.Databases (Cloud SQL Admin API v1beta4-rev20201026-1.30.10)
com.google.api.services.sql
Class SQLAdmin.Databases
- java.lang.Object
-
- com.google.api.services.sql.SQLAdmin.Databases
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
SQLAdmin.Databases.Delete
class
SQLAdmin.Databases.Get
class
SQLAdmin.Databases.Insert
class
SQLAdmin.Databases.List
class
SQLAdmin.Databases.Patch
class
SQLAdmin.Databases.Update
-
Constructor Summary
Constructors
Constructor and Description
Databases()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SQLAdmin.Databases.Delete
delete(String project,
String instance,
String database)
Deletes a database from a Cloud SQL instance.
SQLAdmin.Databases.Get
get(String project,
String instance,
String database)
Retrieves a resource containing information about a database inside a Cloud SQL instance.
SQLAdmin.Databases.Insert
insert(String project,
String instance,
Database content)
Inserts a resource containing information about a database inside a Cloud SQL instance.
SQLAdmin.Databases.List
list(String project,
String instance)
Lists databases in the specified Cloud SQL instance.
SQLAdmin.Databases.Patch
patch(String project,
String instance,
String database,
Database content)
Partially updates a resource containing information about a database inside a Cloud SQL instance.
SQLAdmin.Databases.Update
update(String project,
String instance,
String database,
Database content)
Updates a resource containing information about a database inside a Cloud SQL instance.
-
-
Method Detail
-
delete
public SQLAdmin.Databases.Delete delete(String project,
String instance,
String database)
throws IOException
Deletes a database from a Cloud SQL instance.
Create a request for the method "databases.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.
database
- Name of the database to be deleted in the instance.
- Returns:
- the request
- Throws:
IOException
-
get
public SQLAdmin.Databases.Get get(String project,
String instance,
String database)
throws IOException
Retrieves a resource containing information about a database inside a Cloud SQL instance.
Create a request for the method "databases.get".
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.
database
- Name of the database in the instance.
- Returns:
- the request
- Throws:
IOException
-
insert
public SQLAdmin.Databases.Insert insert(String project,
String instance,
Database content)
throws IOException
Inserts a resource containing information about a database inside a Cloud SQL instance.
Create a request for the method "databases.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 Database
- Returns:
- the request
- Throws:
IOException
-
list
public SQLAdmin.Databases.List list(String project,
String instance)
throws IOException
Lists databases in the specified Cloud SQL instance.
Create a request for the method "databases.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
- Cloud SQL instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
-
patch
public SQLAdmin.Databases.Patch patch(String project,
String instance,
String database,
Database content)
throws IOException
Partially updates a resource containing information about a database inside a Cloud SQL instance.
This method supports patch semantics.
Create a request for the method "databases.patch".
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.
database
- Name of the database to be updated in the instance.
content
- the Database
- Returns:
- the request
- Throws:
IOException
-
update
public SQLAdmin.Databases.Update update(String project,
String instance,
String database,
Database content)
throws IOException
Updates a resource containing information about a database inside a Cloud SQL instance.
Create a request for the method "databases.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.
database
- Name of the database to be updated in the instance.
content
- the Database
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.