| 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. 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 a customer-supplied encryption key. | 
| AttachedDisk | AttachedDisk. setDiskSizeGb(Long diskSizeGb)The size of the disk in GB. | 
| AttachedDisk | AttachedDisk. setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)A list of features to enable on the guest operating system. | 
| AttachedDisk | AttachedDisk. setIndex(Integer index)[Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. | 
| 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] Type of the resource. | 
| AttachedDisk | AttachedDisk. setLicenses(List<String> licenses)[Output Only] Any valid publicly visible licenses. | 
| AttachedDisk | AttachedDisk. setMode(String mode)The mode in which to attach this disk, either READ_WRITE or READ_ONLY. | 
| AttachedDisk | AttachedDisk. setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState)[Output Only] shielded vm initial state stored on disk | 
| 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 or PERSISTENT. | 
| 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> | Instance. getDisks()Array of disks associated with this 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. | 
| Instance | Instance. setDisks(List<AttachedDisk> disks)Array of disks associated with this instance. | 
Copyright © 2011–2021 Google. All rights reserved.