Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class DiskRestoreProperties.
DiskRestoreProperties represents the properties of a Disk restore.
Generated from protobuf message google.cloud.backupdr.v1.DiskRestoreProperties
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the disk.
↳ description
string
Optional. An optional description of this resource. Provide this property when you create the resource.
↳ size_gb
int|string
Required. The size of the disk in GB.
↳ licenses
array
Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
↳ guest_os_feature
array< GuestOsFeature
>
Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
↳ disk_encryption_key
CustomerEncryptionKey
Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
↳ physical_block_size_bytes
int|string
Optional. Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently, the supported size is 4096.
↳ provisioned_iops
int|string
Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
↳ provisioned_throughput
int|string
Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
↳ enable_confidential_compute
bool
Optional. Indicates whether this disk is using confidential compute mode. Encryption with a Cloud KMS key is required to enable this option.
↳ storage_pool
string
Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
↳ access_mode
int
Optional. The access mode of the disk.
↳ architecture
int
Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
↳ resource_policy
array
Optional. Resource policies applied to this disk.
↳ type
string
Required. URL of the disk type resource describing which disk type to use to create the disk.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Labels to apply to this disk. These can be modified later using setLabels
method. Label values can be empty.
↳ resource_manager_tags
getName
Required. Name of the disk.
string
hasName
clearName
setName
Required. Name of the disk.
var
string
$this
getDescription
Optional. An optional description of this resource. Provide this property when you create the resource.
string
hasDescription
clearDescription
setDescription
Optional. An optional description of this resource. Provide this property when you create the resource.
var
string
$this
getSizeGb
Required. The size of the disk in GB.
int|string
hasSizeGb
clearSizeGb
setSizeGb
Required. The size of the disk in GB.
var
int|string
$this
getLicenses
Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
setLicenses
Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
var
string[]
$this
getGuestOsFeature
Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
setGuestOsFeature
Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
$this
getDiskEncryptionKey
Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
hasDiskEncryptionKey
clearDiskEncryptionKey
setDiskEncryptionKey
Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
$this
getPhysicalBlockSizeBytes
Optional. Physical block size of the persistent disk, in bytes.
If not present in a request, a default value is used. Currently, the supported size is 4096.
int|string
hasPhysicalBlockSizeBytes
clearPhysicalBlockSizeBytes
setPhysicalBlockSizeBytes
Optional. Physical block size of the persistent disk, in bytes.
If not present in a request, a default value is used. Currently, the supported size is 4096.
var
int|string
$this
getProvisionedIops
Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
int|string
hasProvisionedIops
clearProvisionedIops
setProvisionedIops
Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
var
int|string
$this
getProvisionedThroughput
Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
int|string
hasProvisionedThroughput
clearProvisionedThroughput
setProvisionedThroughput
Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
var
int|string
$this
getEnableConfidentialCompute
Optional. Indicates whether this disk is using confidential compute mode.
Encryption with a Cloud KMS key is required to enable this option.
bool
hasEnableConfidentialCompute
clearEnableConfidentialCompute
setEnableConfidentialCompute
Optional. Indicates whether this disk is using confidential compute mode.
Encryption with a Cloud KMS key is required to enable this option.
var
bool
$this
getStoragePool
Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
string
hasStoragePool
clearStoragePool
setStoragePool
Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
var
string
$this
getAccessMode
Optional. The access mode of the disk.
int
hasAccessMode
clearAccessMode
setAccessMode
Optional. The access mode of the disk.
var
int
$this
getArchitecture
Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
int
hasArchitecture
clearArchitecture
setArchitecture
Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
var
int
$this
getResourcePolicy
Optional. Resource policies applied to this disk.
setResourcePolicy
Optional. Resource policies applied to this disk.
var
string[]
$this
getType
Required. URL of the disk type resource describing which disk type to use to create the disk.
string
hasType
clearType
setType
Required. URL of the disk type resource describing which disk type to use to create the disk.
var
string
$this
getLabels
Optional. Labels to apply to this disk. These can be modified later using setLabels
method. Label values can be empty.
setLabels
Optional. Labels to apply to this disk. These can be modified later using setLabels
method. Label values can be empty.
$this
getResourceManagerTags
Optional. Resource manager tags to be bound to the disk.
setResourceManagerTags
Optional. Resource manager tags to be bound to the disk.
$this