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

target.apidocs.com.google.api.services.sqladmin.SQLAdmin.BackupRuns.html Maven / Gradle / Ivy

The newest version!






SQLAdmin.BackupRuns (Cloud SQL Admin API v1-rev20241108-2.0.0)












com.google.api.services.sqladmin

Class SQLAdmin.BackupRuns

  • Enclosing class:
    SQLAdmin


    public class SQLAdmin.BackupRuns
    extends Object
    The "backupRuns" collection of methods.
    • Constructor Detail

      • BackupRuns

        public BackupRuns()
    • Method Detail

      • delete

        public SQLAdmin.BackupRuns.Delete delete(String project,
                                                 String instance,
                                                 Long id)
                                          throws IOException
        Deletes the backup taken by a backup run. Create a request for the method "backupRuns.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 - Cloud SQL instance ID. This does not include the project ID.
        id - The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
        Returns:
        the request
        Throws:
        IOException
      • get

        public SQLAdmin.BackupRuns.Get get(String project,
                                           String instance,
                                           Long id)
                                    throws IOException
        Retrieves a resource containing information about a backup run. Create a request for the method "backupRuns.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 - Cloud SQL instance ID. This does not include the project ID.
        id - The ID of this backup run.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public SQLAdmin.BackupRuns.Insert insert(String project,
                                                 String instance,
                                                 BackupRun content)
                                          throws IOException
        Creates a new backup run on demand. Create a request for the method "backupRuns.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 - Cloud SQL instance ID. This does not include the project ID.
        content - the BackupRun
        Returns:
        the request
        Throws:
        IOException
      • list

        public SQLAdmin.BackupRuns.List list(String project,
                                             String instance)
                                      throws IOException
        Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. Create a request for the method "backupRuns.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, or "-" for all instances. This does not include the project ID.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy