target.apidocs.com.google.api.services.sqladmin.SQLAdmin.Databases.html Maven / Gradle / Ivy
The newest version!
SQLAdmin.Databases (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin
Class SQLAdmin.Databases
- java.lang.Object
-
- com.google.api.services.sqladmin.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 sqladmin 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 sqladmin 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. **Note:**
You can't modify the default character set and collation.
Create a request for the method "databases.insert".
This request holds the parameters needed by the sqladmin 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 sqladmin 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 sqladmin 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 sqladmin 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–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy