| Package | Description |
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model |
| Modifier and Type | Method and Description |
|---|---|
Compute.Instances.AttachDisk |
Compute.Instances.attachDisk(String project,
String zone,
String instance,
AttachedDisk content)
Attaches an existing Disk resource to an instance.
|
| Constructor and Description |
|---|
AttachDisk(String project,
String zone,
String instance,
AttachedDisk content)
Attaches an existing Disk resource to an instance.
|
| Modifier and Type | Method and Description |
|---|---|
AttachedDisk |
AttachedDisk.clone() |
AttachedDisk |
AttachedDisk.set(String fieldName,
Object value) |
AttachedDisk |
AttachedDisk.setArchitecture(String architecture)
Output only.
|
AttachedDisk |
AttachedDisk.setAutoDelete(Boolean autoDelete)
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the
disk is detached from the instance).
|
AttachedDisk |
AttachedDisk.setBoot(Boolean boot)
Indicates that this is a boot disk.
|
AttachedDisk |
AttachedDisk.setDeviceName(String deviceName)
Specifies a unique device name of your choice that is reflected into the/dev/disk/by-
id/google-* tree of a Linux operating system running within the instance.
|
AttachedDisk |
AttachedDisk.setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
Encrypts or decrypts a disk using acustomer-supplied encryption key.
|
AttachedDisk |
AttachedDisk.setDiskSizeGb(Long diskSizeGb)
The size of the disk in GB.
|
AttachedDisk |
AttachedDisk.setForceAttach(Boolean forceAttach)
[Input Only] Whether to force attach the regional disk even if it's currently attached to
another instance.
|
AttachedDisk |
AttachedDisk.setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
A list of features to enable on the guest operating system.
|
AttachedDisk |
AttachedDisk.setIndex(Integer index)
Output only.
|
AttachedDisk |
AttachedDisk.setInitializeParams(AttachedDiskInitializeParams initializeParams)
[Input Only] Specifies the parameters for a new disk that will be created alongside the new
instance.
|
AttachedDisk |
AttachedDisk.setInterface(String interface__)
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
AttachedDisk |
AttachedDisk.setKind(String kind)
Output only.
|
AttachedDisk |
AttachedDisk.setLicenses(List<String> licenses)
Output only.
|
AttachedDisk |
AttachedDisk.setLocked(Boolean locked)
Output only.
|
AttachedDisk |
AttachedDisk.setMode(String mode)
The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.
|
AttachedDisk |
AttachedDisk.setSavedState(String savedState)
Output only.
|
AttachedDisk |
AttachedDisk.setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState)
Output only.
|
AttachedDisk |
AttachedDisk.setSource(String source)
Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
AttachedDisk |
AttachedDisk.setType(String type)
Specifies the type of the disk, either SCRATCH orPERSISTENT.
|
| Modifier and Type | Method and Description |
|---|---|
List<AttachedDisk> |
InstanceProperties.getDisks()
An array of disks that are associated with the instances that are created from these
properties.
|
List<AttachedDisk> |
InstanceFlexibilityPolicyInstanceSelection.getDisks()
Disks to be attached to the instances created from in this selection.
|
List<AttachedDisk> |
Instance.getDisks()
Array of disks associated with this instance.
|
List<AttachedDisk> |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.getDisks()
List of disks to be attached to the instances created from this selection.
|
List<AttachedDisk> |
ManagedInstancePropertiesFromFlexibilityPolicy.getDisks()
List of disks to be attached to the instance.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceProperties |
InstanceProperties.setDisks(List<AttachedDisk> disks)
An array of disks that are associated with the instances that are created from these
properties.
|
InstanceFlexibilityPolicyInstanceSelection |
InstanceFlexibilityPolicyInstanceSelection.setDisks(List<AttachedDisk> disks)
Disks to be attached to the instances created from in this selection.
|
Instance |
Instance.setDisks(List<AttachedDisk> disks)
Array of disks associated with this instance.
|
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection |
InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.setDisks(List<AttachedDisk> disks)
List of disks to be attached to the instances created from this selection.
|
ManagedInstancePropertiesFromFlexibilityPolicy |
ManagedInstancePropertiesFromFlexibilityPolicy.setDisks(List<AttachedDisk> disks)
List of disks to be attached to the instance.
|
Copyright © 2011–2026 Google. All rights reserved.