Class shardimage\shardimagephp\services\SuperBackupService
Inheritance | shardimage\shardimagephp\services\SuperBackupService » shardimage\shardimagephp\services\Service » shardimage\shardimagephpapi\base\BaseObject |
---|
Shardimage superbackup service.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$client | shardimage\shardimagephp\auth\Client | Shardimage API Client | shardimage\shardimagephp\services\Service |
$lastError | mixed | Last error in the service | shardimage\shardimagephp\services\Service |
$version | string | Shardimage module version | shardimage\shardimagephp\services\Service |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
sendRequest() | Sends the request to the Shardimage API and returns with the Response object or the ID for the request if deferred. | shardimage\shardimagephp\services\Service |
Method Details
Creates a new superbackup.
public shardimage\shardimagephp\models\superbackup\SuperBackup|shardimage\shardimagephpapi\api\Response create ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\superbackup\SuperBackup | SuperBackup object |
$optParams | array | Optional API parameters |
throws | \shardimage\shardimagephpapi\base\InvalidParamException |
---|
Deletes a superbackup.
public boolean delete ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\superbackup\SuperBackup|string | SuperBackup object or SuperBackup ID |
$optParams | array | Optional API parameters |
Returns whether the specified superbackup exists.
public boolean exists ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\superbackup\SuperBackup|string | SuperBackup object or SuperBackup ID |
$optParams | array | Optional API parameters |
Shardimage controller
public static void getController ( ) |
Shardimage module
public static void getModule ( ) |
Fetches all existing backups.
public shardimage\shardimagephp\models\superbackup\Index index ( $params = [], $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
Updates a superbackup.
public shardimage\shardimagephp\models\superbackup\SuperBackup|shardimage\shardimagephpapi\api\Response update ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\superbackup\SuperBackup | SuperBackup object |
$optParams | array | Optional API parameters |
throws | \shardimage\shardimagephpapi\base\InvalidParamException |
---|
Fetches a superbackup.
public shardimage\shardimagephp\models\superbackup\SuperBackup|shardimage\shardimagephpapi\api\Response view ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\superbackup\SuperBackup|string | SuperBackup object or SuperBackup ID |
$optParams | shardimage\shardimagephp\models\superbackup\SuperBackup|array | Optional API parameters |