Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class DiskTargetEnvironment.
DiskTargetEnvironment represents the target environment for the disk.
Generated from protobuf message google.cloud.backupdr.v1beta.DiskTargetEnvironment
Namespace
Google \ Cloud \ BackupDR \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ project |
string
Required. Target project for the disk. |
↳ zone |
string
Required. Target zone for the disk. |
↳ use_project_service_account |
bool
Optional. Whether to use the project service account for the disk restore. |
getProject
Required. Target project for the disk.
| Returns | |
|---|---|
| Type | Description |
string |
|
setProject
Required. Target project for the disk.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getZone
Required. Target zone for the disk.
| Returns | |
|---|---|
| Type | Description |
string |
|
setZone
Required. Target zone for the disk.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUseProjectServiceAccount
Optional. Whether to use the project service account for the disk restore.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasUseProjectServiceAccount
clearUseProjectServiceAccount
setUseProjectServiceAccount
Optional. Whether to use the project service account for the disk restore.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|