Google Cloud Database Center V1beta Client - Class BackupRunInfo (0.3.1)

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class BackupRunInfo.

Metadata about latest backup run state for a database resource.

Generated from protobuf message google.cloud.databasecenter.v1beta.BackupRunInfo

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

The time the backup operation started.

↳ end_time Google\Protobuf\Timestamp

The time the backup operation completed.

↳ state int

Output only. The state of this run.

↳ error_message string

Additional information about the error encountered.

↳ operation_error_type int

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

↳ sub_resource SubResource

Optional. Sub resource details associated with the backup run.

getStartTime

The time the backup operation started.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time the backup operation started.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

The time the backup operation completed.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time the backup operation completed.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. The state of this run.

Returns
Type Description
int Enum of type State.

setState

Output only. The state of this run.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getErrorMessage

Additional information about the error encountered.

Returns
Type Description
string

setErrorMessage

Additional information about the error encountered.

Parameter
Name Description
var string
Returns
Type Description
$this

getOperationErrorType

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

Returns
Type Description
int Enum of type OperationErrorType.

setOperationErrorType

Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED.

Parameter
Name Description
var int

Enum of type OperationErrorType.

Returns
Type Description
$this

getSubResource

Optional. Sub resource details associated with the backup run.

Returns
Type Description
SubResource|null

hasSubResource

clearSubResource

setSubResource

Optional. Sub resource details associated with the backup run.

Parameter
Name Description
var SubResource
Returns
Type Description
$this