# Google Cloud Security Command Center V2 Client - Class BackupDisasterRecovery (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class BackupDisasterRecovery.

Information related to Google Cloud Backup and DR Service findings.

Generated from protobuf message `google.cloud.securitycenter.v2.BackupDisasterRecovery`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ backup_template` | `string` The name of a Backup and DR template which comprises one or more backup policies. See the [Backup and DR documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp) for more information. For example, `snap-ov`. |
| `↳ policies` | `string[]` The names of Backup and DR policies that are associated with a template and that define when to run a backup, how frequently to run a backup, and how long to retain the backup image. For example, `onvaults`. |
| `↳ host` | `string` The name of a Backup and DR host, which is managed by the backup and recovery appliance and known to the management console. The host can be of type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file system, etc.), vCenter, or an ESX server. See the [Backup and DR documentation on hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications) for more information. For example, `centos7-01`. |
| `↳ applications` | `string[]` The names of Backup and DR applications. An application is a VM, database, or file system on a managed host monitored by a backup and recovery appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`, `centos7-01-vol02`. |
| `↳ storage_pool` | `string` The name of the Backup and DR storage pool that the backup and recovery appliance is storing data in. The storage pool could be of type Cloud, Primary, Snapshot, or OnVault. See the [Backup and DR documentation on storage pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools). For example, `DiskPoolOne`. |
| `↳ policy_options` | `string[]` The names of Backup and DR advanced policy options of a policy applying to an application. See the [Backup and DR documentation on policy options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings). For example, `skipofflineappsincongrp, nounmap`. |
| `↳ profile` | `string` The name of the Backup and DR resource profile that specifies the storage media for backups of application and VM data. See the [Backup and DR documentation on profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile). For example, `GCP`. |
| `↳ appliance` | `string` The name of the Backup and DR appliance that captures, moves, and manages the lifecycle of backup data. For example, `backup-server-57137`. |
| `↳ backup_type` | `string` The backup type of the Backup and DR image. For example, `Snapshot`, `Remote Snapshot`, `OnVault`. |
| `↳ backup_create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The timestamp at which the Backup and DR backup was created. |

### getBackupTemplate

The name of a Backup and DR template which comprises one or more backup
policies. See the [Backup and DR
documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp)
for more information. For example, `snap-ov`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBackupTemplate

The name of a Backup and DR template which comprises one or more backup
policies. See the [Backup and DR
documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp)
for more information. For example, `snap-ov`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicies

The names of Backup and DR policies that are associated with a template
and that define when to run a backup, how frequently to run a backup, and
how long to retain the backup image. For example, `onvaults`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPolicies

The names of Backup and DR policies that are associated with a template
and that define when to run a backup, how frequently to run a backup, and
how long to retain the backup image. For example, `onvaults`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHost

The name of a Backup and DR host, which is managed by the backup and
recovery appliance and known to the management console. The host can be of
type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
system, etc.), vCenter, or an ESX server. See the [Backup and DR
documentation on
hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications)
for more information. For example, `centos7-01`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setHost

The name of a Backup and DR host, which is managed by the backup and
recovery appliance and known to the management console. The host can be of
type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
system, etc.), vCenter, or an ESX server. See the [Backup and DR
documentation on
hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications)
for more information. For example, `centos7-01`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getApplications

The names of Backup and DR applications. An application is a VM, database,
or file system on a managed host monitored by a backup and recovery
appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
`centos7-01-vol02`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApplications

The names of Backup and DR applications. An application is a VM, database,
or file system on a managed host monitored by a backup and recovery
appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
`centos7-01-vol02`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStoragePool

The name of the Backup and DR storage pool that the backup and recovery
appliance is storing data in. The storage pool could be of type Cloud,
Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
storage
pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools).

For example, `DiskPoolOne`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setStoragePool

The name of the Backup and DR storage pool that the backup and recovery
appliance is storing data in. The storage pool could be of type Cloud,
Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
storage
pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools).

For example, `DiskPoolOne`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPolicyOptions

The names of Backup and DR advanced policy options of a policy applying to
an application. See the [Backup and DR documentation on policy
options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings).

For example, `skipofflineappsincongrp, nounmap`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPolicyOptions

The names of Backup and DR advanced policy options of a policy applying to
an application. See the [Backup and DR documentation on policy
options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings).

For example, `skipofflineappsincongrp, nounmap`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProfile

The name of the Backup and DR resource profile that specifies the storage
media for backups of application and VM data. See the [Backup and DR
documentation on
profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile).

For example, `GCP`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProfile

The name of the Backup and DR resource profile that specifies the storage
media for backups of application and VM data. See the [Backup and DR
documentation on
profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile).

For example, `GCP`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAppliance

The name of the Backup and DR appliance that captures, moves, and manages
the lifecycle of backup data. For example, `backup-server-57137`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAppliance

The name of the Backup and DR appliance that captures, moves, and manages
the lifecycle of backup data. For example, `backup-server-57137`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBackupType

The backup type of the Backup and DR image.

For example, `Snapshot`, `Remote Snapshot`, `OnVault`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBackupType

The backup type of the Backup and DR image.

For example, `Snapshot`, `Remote Snapshot`, `OnVault`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBackupCreateTime

The timestamp at which the Backup and DR backup was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasBackupCreateTime

### clearBackupCreateTime

### setBackupCreateTime

The timestamp at which the Backup and DR backup was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |