class BackupRuns extends Resource (View source)

The "backupRuns" collection of methods.

Typical usage is:

 $sqladminService = new Google\Service\SQLAdmin(...);
 $backupRuns = $sqladminService->backupRuns;

Methods

delete(string $project, string $instance, string $id, array $optParams = [])

Deletes the backup taken by a backup run. (backupRuns.delete)

get(string $project, string $instance, string $id, array $optParams = [])

Retrieves a resource containing information about a backup run.

insert(string $project, string $instance, BackupRun $postBody, array $optParams = [])

Creates a new backup run on demand. (backupRuns.insert)

listBackupRuns(string $project, string $instance, array $optParams = [])

Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. (backupRuns.listBackupRuns)

Details

Operation delete(string $project, string $instance, string $id, array $optParams = [])

Deletes the backup taken by a backup run. (backupRuns.delete)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

string $id

The ID of the backup run to delete. To find a backup run ID, use the list method.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

BackupRun get(string $project, string $instance, string $id, array $optParams = [])

Retrieves a resource containing information about a backup run.

(backupRuns.get)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

string $id

The ID of this backup run.

array $optParams

Optional parameters.

Return Value

BackupRun

Exceptions

Exception

Operation insert(string $project, string $instance, BackupRun $postBody, array $optParams = [])

Creates a new backup run on demand. (backupRuns.insert)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID. This does not include the project ID.

BackupRun $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

BackupRunsListResponse listBackupRuns(string $project, string $instance, array $optParams = [])

Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. (backupRuns.listBackupRuns)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.

array $optParams

Optional parameters.

Return Value

BackupRunsListResponse

Exceptions

Exception