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
- java.lang.Object
-
- com.google.api.services.sqladmin.SQLAdmin.BackupRuns
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
SQLAdmin.BackupRuns.Delete
class
SQLAdmin.BackupRuns.Get
class
SQLAdmin.BackupRuns.Insert
class
SQLAdmin.BackupRuns.List
-
Constructor Summary
Constructors
Constructor and Description
BackupRuns()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SQLAdmin.BackupRuns.Delete
delete(String project,
String instance,
Long id)
Deletes the backup taken by a backup run.
SQLAdmin.BackupRuns.Get
get(String project,
String instance,
Long id)
Retrieves a resource containing information about a backup run.
SQLAdmin.BackupRuns.Insert
insert(String project,
String instance,
BackupRun content)
Creates a new backup run on demand.
SQLAdmin.BackupRuns.List
list(String project,
String instance)
Lists all backup runs associated with the project or a given instance and configuration in the
reverse chronological order of the backup initiation time.
-
-
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