Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class AutoProtectionDetails.
AutoProtectionDetails contains the protection details of a resource from the current binding's perspective.
Generated from protobuf message google.cloud.backupdr.v1beta.AutoProtectionDetails
Namespace
Google \ Cloud \ BackupDR \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ state |
int
Output only. Protection state of the resource from the current binding's perspective. Output only. |
↳ backup_plan_association |
string
Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} |
↳ data_source |
string
Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId} |
↳ error |
Google\Rpc\Status
Output only. Error during last sync for protection/unprotection, if any. |
getState
Output only. Protection state of the resource from the current binding's perspective. Output only.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. Protection state of the resource from the current binding's perspective. Output only.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBackupPlanAssociation
Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
| Returns | |
|---|---|
| Type | Description |
string |
|
setBackupPlanAssociation
Output only. Resource name of backup plan association linked to the resource, if any. Format: projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataSource
Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
| Returns | |
|---|---|
| Type | Description |
string |
|
setDataSource
Output only. Resource name of the datasource linked to the resource, if any. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{dataSourceId}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getError
Output only. Error during last sync for protection/unprotection, if any.
| Returns | |
|---|---|
| Type | Description |
Google\Rpc\Status|null |
|
hasError
clearError
setError
Output only. Error during last sync for protection/unprotection, if any.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Rpc\Status
|
| Returns | |
|---|---|
| Type | Description |
$this |
|