All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • Enclosing class:
    SQLAdmin


    public class SQLAdmin.Databases
    extends Object
    The "databases" collection of methods.
    • Constructor Detail

      • Databases

        public Databases()
    • 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.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy