DatabaseBackups
extends CloudApiBase
in
implements
CloudApiInterface
Class DatabaseBackups
Table of Contents
$client | ClientInterface | |
---|---|---|
create() | Backup a database. | OperationResponse |
getAll() | Shows all database backups in an environment. | BackupsResponse |
get() | Gets information about a database backup. | BackupResponse |
restore() | Restores a database backup to a database in an environment. | OperationResponse |
download() | Downloads a database backup. | StreamInterface |
delete() | Deletes a database backup. | OperationResponse |
__construct() | Client constructor. | mixed |
Properties
$client
protected
ClientInterface
$client
Methods
create()
Backup a database.
public
create(
$environmentUuid :
string
, $dbName :
string
)
: OperationResponse
Parameters
- $environmentUuid : string
- $dbName : string
Return values
OperationResponsegetAll()
Shows all database backups in an environment.
public
getAll(
$environmentUuid :
string
, $dbName :
string
)
: BackupsResponse
Parameters
- $environmentUuid : string
- $dbName : string
Return values
BackupsResponseget()
Gets information about a database backup.
public
get(
$environmentUuid :
string
, $dbName :
string
, $backupId :
int
)
: BackupResponse
Parameters
- $environmentUuid : string
- $dbName : string
- $backupId : int
Return values
BackupResponserestore()
Restores a database backup to a database in an environment.
public
restore(
$environmentUuid :
string
, $dbName :
string
, $backupId :
int
)
: OperationResponse
Parameters
- $environmentUuid : string
- $dbName : string
- $backupId : int
Return values
OperationResponsedownload()
Downloads a database backup.
public
download(
$environmentUuid :
string
, $dbName :
string
, $backupId :
int
)
: StreamInterface
Parameters
- $environmentUuid : string
- $dbName : string
- $backupId : int
Return values
StreamInterfacedelete()
Deletes a database backup.
public
delete(
$environmentUuid :
string
, $dbName :
string
, $backupId :
int
)
: OperationResponse
Parameters
- $environmentUuid : string
- $dbName : string
- $backupId : int
Return values
OperationResponse__construct()
Client constructor.
public
__construct(
$client :
ClientInterface
)
: mixed
Parameters
- $client : ClientInterface