| Package | Description | 
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model | 
| Modifier and Type | Method and Description | 
|---|---|
| Compute.Disks.Insert | Compute.Disks. insert(String project,
      String zone,
      Disk content)Creates a persistent disk in the specified project using the data in the request. | 
| Compute.RegionDisks.Insert | Compute.RegionDisks. insert(String project,
      String region,
      Disk content)Creates a persistent regional disk in the specified project using the data included in the
 request. | 
| Constructor and Description | 
|---|
| Insert(String project,
      String zone,
      Disk content)Creates a persistent disk in the specified project using the data in the request. | 
| Insert(String project,
      String region,
      Disk content)Creates a persistent regional disk in the specified project using the data included in the
 request. | 
| Modifier and Type | Method and Description | 
|---|---|
| Disk | Disk. clone() | 
| Disk | Disk. encodeLabelFingerprint(byte[] labelFingerprint)A fingerprint for the labels being applied to this disk, which is essentially a hash of the
 labels set used for optimistic locking. | 
| Disk | Disk. set(String fieldName,
   Object value) | 
| Disk | Disk. setCreationTimestamp(String creationTimestamp)[Output Only] Creation timestamp in RFC3339 text format. | 
| Disk | Disk. setDescription(String description)An optional description of this resource. | 
| Disk | Disk. setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)Encrypts the disk using a customer-supplied encryption key. | 
| Disk | Disk. setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)A list of features to enable on the guest operating system. | 
| Disk | Disk. setId(BigInteger id)[Output Only] The unique identifier for the resource. | 
| Disk | Disk. setKind(String kind)[Output Only] Type of the resource. | 
| Disk | Disk. setLabelFingerprint(String labelFingerprint)A fingerprint for the labels being applied to this disk, which is essentially a hash of the
 labels set used for optimistic locking. | 
| Disk | Disk. setLabels(Map<String,String> labels)Labels to apply to this disk. | 
| Disk | Disk. setLastAttachTimestamp(String lastAttachTimestamp)[Output Only] Last attach timestamp in RFC3339 text format. | 
| Disk | Disk. setLastDetachTimestamp(String lastDetachTimestamp)[Output Only] Last detach timestamp in RFC3339 text format. | 
| Disk | Disk. setLicenseCodes(List<Long> licenseCodes)Integer license codes indicating which licenses are attached to this disk. | 
| Disk | Disk. setLicenses(List<String> licenses)A list of publicly visible licenses. | 
| Disk | Disk. setLocationHint(String locationHint)An opaque location hint used to place the disk close to other resources. | 
| Disk | Disk. setName(String name)Name of the resource. | 
| Disk | Disk. setOptions(String options)Internal use only. | 
| Disk | Disk. setPhysicalBlockSizeBytes(Long physicalBlockSizeBytes)Physical block size of the persistent disk, in bytes. | 
| Disk | Disk. setProvisionedIops(Long provisionedIops)Indicates how many IOPS must be provisioned for the disk. | 
| Disk | Disk. setRegion(String region)[Output Only] URL of the region where the disk resides. | 
| Disk | Disk. setReplicaZones(List<String> replicaZones)URLs of the zones where the disk should be replicated to. | 
| Disk | Disk. setResourcePolicies(List<String> resourcePolicies)Resource policies applied to this disk for automatic snapshot creations. | 
| Disk | Disk. setSatisfiesPzs(Boolean satisfiesPzs)[Output Only] Reserved for future use. | 
| Disk | Disk. setSelfLink(String selfLink)[Output Only] Server-defined fully-qualified URL for this resource. | 
| Disk | Disk. setSizeGb(Long sizeGb)Size, in GB, of the persistent disk. | 
| Disk | Disk. setSourceDisk(String sourceDisk)The source disk used to create this disk. | 
| Disk | Disk. setSourceDiskId(String sourceDiskId)[Output Only] The unique ID of the disk used to create this disk. | 
| Disk | Disk. setSourceImage(String sourceImage)The source image used to create this disk. | 
| Disk | Disk. setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey)The customer-supplied encryption key of the source image. | 
| Disk | Disk. setSourceImageId(String sourceImageId)[Output Only] The ID value of the image used to create this disk. | 
| Disk | Disk. setSourceSnapshot(String sourceSnapshot)The source snapshot used to create this disk. | 
| Disk | Disk. setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey)The customer-supplied encryption key of the source snapshot. | 
| Disk | Disk. setSourceSnapshotId(String sourceSnapshotId)[Output Only] The unique ID of the snapshot used to create this disk. | 
| Disk | Disk. setSourceStorageObject(String sourceStorageObject)The full Google Cloud Storage URI where the disk image is stored. | 
| Disk | Disk. setStatus(String status)[Output Only] The status of disk creation. | 
| Disk | Disk. setType(String type)URL of the disk type resource describing which disk type to use to create the disk. | 
| Disk | Disk. setUsers(List<String> users)[Output Only] Links to the users of the disk (attached instances) in form:
 projects/project/zones/zone/instances/instance | 
| Disk | Disk. setZone(String zone)[Output Only] URL of the zone where the disk resides. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Disk> | DisksScopedList. getDisks()[Output Only] A list of disks contained in this scope. | 
| List<Disk> | DiskList. getItems()A list of Disk resources. | 
| Modifier and Type | Method and Description | 
|---|---|
| DisksScopedList | DisksScopedList. setDisks(List<Disk> disks)[Output Only] A list of disks contained in this scope. | 
| DiskList | DiskList. setItems(List<Disk> items)A list of Disk resources. | 
Copyright © 2011–2021 Google. All rights reserved.