Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class AttachedDisk.
An instance-attached disk resource.
Generated from protobuf message google.cloud.backupdr.v1.AttachedDisk
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ initialize_params
↳ device_name
string
Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
↳ kind
string
Optional. Type of the resource.
↳ disk_type_deprecated
int
Specifies the type of the disk.
↳ mode
int
Optional. The mode in which to attach this disk.
↳ source
string
Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
↳ index
int|string
Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
↳ boot
bool
Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
↳ auto_delete
bool
Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
↳ license
array
Optional. Any valid publicly visible licenses.
↳ disk_interface
int
Optional. Specifies the disk interface to use for attaching this disk.
↳ guest_os_feature
array< GuestOsFeature
>
Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
↳ disk_encryption_key
CustomerEncryptionKey
Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
↳ disk_size_gb
int|string
Optional. The size of the disk in GB.
↳ saved_state
int
Optional. Output only. The state of the disk.
↳ disk_type
string
Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
↳ type
int
Optional. Specifies the type of the disk.
getInitializeParams
Optional. Specifies the parameters to initialize this disk.
hasInitializeParams
clearInitializeParams
setInitializeParams
Optional. Specifies the parameters to initialize this disk.
$this
getDeviceName
Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
string
hasDeviceName
clearDeviceName
setDeviceName
Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
var
string
$this
getKind
Optional. Type of the resource.
string
hasKind
clearKind
setKind
Optional. Type of the resource.
var
string
$this
getDiskTypeDeprecated
Specifies the type of the disk.
int
hasDiskTypeDeprecated
clearDiskTypeDeprecated
setDiskTypeDeprecated
Specifies the type of the disk.
var
int
$this
getMode
Optional. The mode in which to attach this disk.
int
hasMode
clearMode
setMode
Optional. The mode in which to attach this disk.
var
int
$this
getSource
Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
string
hasSource
clearSource
setSource
Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
var
string
$this
getIndex
Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
int|string
hasIndex
clearIndex
setIndex
Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
var
int|string
$this
getBoot
Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
bool
hasBoot
clearBoot
setBoot
Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
var
bool
$this
getAutoDelete
Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
bool
hasAutoDelete
clearAutoDelete
setAutoDelete
Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
var
bool
$this
getLicense
Optional. Any valid publicly visible licenses.
setLicense
Optional. Any valid publicly visible licenses.
var
string[]
$this
getDiskInterface
Optional. Specifies the disk interface to use for attaching this disk.
int
hasDiskInterface
clearDiskInterface
setDiskInterface
Optional. Specifies the disk interface to use for attaching this disk.
var
int
$this
getGuestOsFeature
Optional. A list of features to enable on the guest operating system.
Applicable only for bootable images.
setGuestOsFeature
Optional. A list of features to enable on the guest operating system.
Applicable only for bootable images.
$this
getDiskEncryptionKey
Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
hasDiskEncryptionKey
clearDiskEncryptionKey
setDiskEncryptionKey
Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
$this
getDiskSizeGb
Optional. The size of the disk in GB.
int|string
hasDiskSizeGb
clearDiskSizeGb
setDiskSizeGb
Optional. The size of the disk in GB.
var
int|string
$this
getSavedState
Optional. Output only. The state of the disk.
int
hasSavedState
clearSavedState
setSavedState
Optional. Output only. The state of the disk.
var
int
$this
getDiskType
Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
string
hasDiskType
clearDiskType
setDiskType
Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
var
string
$this
getType
Optional. Specifies the type of the disk.
int
hasType
clearType
setType
Optional. Specifies the type of the disk.
var
int
$this