Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class RestoreDiskFromInstanceOptions.
Options for creating a disk from a source Compute Instance backup.
Generated from protobuf message google.cloud.backupdr.v1beta.RestoreDiskFromInstanceOptions
Namespace
Google \ Cloud \ BackupDR \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ source_device_name |
string
The device name of the disk to restore from the VM backup. |
↳ boot_disk |
bool
Set to true to restore the boot disk from the instance backup. This field should only be set to true if selected. |
getSourceDeviceName
The device name of the disk to restore from the VM backup.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSourceDeviceName
setSourceDeviceName
The device name of the disk to restore from the VM backup.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBootDisk
Set to true to restore the boot disk from the instance backup.
This field should only be set to true if selected.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasBootDisk
setBootDisk
Set to true to restore the boot disk from the instance backup.
This field should only be set to true if selected.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceDisk
| Returns | |
|---|---|
| Type | Description |
string |
|