| Package | Description |
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model |
| Modifier and Type | Method and Description |
|---|---|
Compute.Disks.CreateSnapshot |
Compute.Disks.createSnapshot(String project,
String zone,
String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
Compute.RegionDisks.CreateSnapshot |
Compute.RegionDisks.createSnapshot(String project,
String region,
String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
Compute.Snapshots.Insert |
Compute.Snapshots.insert(String project,
Snapshot content)
Creates a snapshot in the specified project using the data included in the request.
|
Compute.RegionSnapshots.Insert |
Compute.RegionSnapshots.insert(String project,
String region,
Snapshot content)
Creates a snapshot in the specified region using the data included in the request.
|
| Constructor and Description |
|---|
CreateSnapshot(String project,
String zone,
String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
CreateSnapshot(String project,
String region,
String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
Insert(String project,
Snapshot content)
Creates a snapshot in the specified project using the data included in the request.
|
Insert(String project,
String region,
Snapshot content)
Creates a snapshot in the specified region using the data included in the request.
|
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
Snapshot.clone() |
Snapshot |
Snapshot.encodeLabelFingerprint(byte[] labelFingerprint)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
labels set used for optimistic locking.
|
Snapshot |
Snapshot.set(String fieldName,
Object value) |
Snapshot |
Snapshot.setArchitecture(String architecture)
Output only.
|
Snapshot |
Snapshot.setAutoCreated(Boolean autoCreated)
Output only.
|
Snapshot |
Snapshot.setChainName(String chainName)
Creates the new snapshot in the snapshot chain labeled with the specified name.
|
Snapshot |
Snapshot.setCreationSizeBytes(Long creationSizeBytes)
Output only.
|
Snapshot |
Snapshot.setCreationTimestamp(String creationTimestamp)
Output only.
|
Snapshot |
Snapshot.setDescription(String description)
An optional description of this resource.
|
Snapshot |
Snapshot.setDiskSizeGb(Long diskSizeGb)
Output only.
|
Snapshot |
Snapshot.setDownloadBytes(Long downloadBytes)
Output only.
|
Snapshot |
Snapshot.setEnableConfidentialCompute(Boolean enableConfidentialCompute)
Output only.
|
Snapshot |
Snapshot.setGuestFlush(Boolean guestFlush)
[Input Only] Whether to attempt an application consistent snapshot by informing the OS to
prepare for the snapshot process.
|
Snapshot |
Snapshot.setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
Output only.
|
Snapshot |
Snapshot.setId(BigInteger id)
Output only.
|
Snapshot |
Snapshot.setKind(String kind)
Output only.
|
Snapshot |
Snapshot.setLabelFingerprint(String labelFingerprint)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
labels set used for optimistic locking.
|
Snapshot |
Snapshot.setLabels(Map<String,String> labels)
Labels to apply to this snapshot.
|
Snapshot |
Snapshot.setLicenseCodes(List<Long> licenseCodes)
Output only.
|
Snapshot |
Snapshot.setLicenses(List<String> licenses)
Output only.
|
Snapshot |
Snapshot.setLocationHint(String locationHint)
An opaque location hint used to place the snapshot close to other resources.
|
Snapshot |
Snapshot.setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Snapshot |
Snapshot.setParams(SnapshotParams params)
Input only.
|
Snapshot |
Snapshot.setRegion(String region)
Output only.
|
Snapshot |
Snapshot.setSatisfiesPzi(Boolean satisfiesPzi)
Output only.
|
Snapshot |
Snapshot.setSatisfiesPzs(Boolean satisfiesPzs)
Output only.
|
Snapshot |
Snapshot.setSelfLink(String selfLink)
Output only.
|
Snapshot |
Snapshot.setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
Encrypts the snapshot using acustomer-supplied encryption key.
|
Snapshot |
Snapshot.setSnapshotGroupId(String snapshotGroupId)
Output only.
|
Snapshot |
Snapshot.setSnapshotGroupName(String snapshotGroupName)
Output only.
|
Snapshot |
Snapshot.setSnapshotType(String snapshotType)
Indicates the type of the snapshot.
|
Snapshot |
Snapshot.setSourceDisk(String sourceDisk)
The source disk used to create this snapshot.
|
Snapshot |
Snapshot.setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
The customer-supplied encryption key of the source disk.
|
Snapshot |
Snapshot.setSourceDiskForRecoveryCheckpoint(String sourceDiskForRecoveryCheckpoint)
The source disk whose recovery checkpoint will be used to create this snapshot.
|
Snapshot |
Snapshot.setSourceDiskId(String sourceDiskId)
Output only.
|
Snapshot |
Snapshot.setSourceInstantSnapshot(String sourceInstantSnapshot)
The source instant snapshot used to create this snapshot.
|
Snapshot |
Snapshot.setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey)
Customer provided encryption key when creating Snapshot from Instant Snapshot.
|
Snapshot |
Snapshot.setSourceInstantSnapshotId(String sourceInstantSnapshotId)
Output only.
|
Snapshot |
Snapshot.setSourceSnapshotSchedulePolicy(String sourceSnapshotSchedulePolicy)
Output only.
|
Snapshot |
Snapshot.setSourceSnapshotSchedulePolicyId(String sourceSnapshotSchedulePolicyId)
Output only.
|
Snapshot |
Snapshot.setStatus(String status)
Output only.
|
Snapshot |
Snapshot.setStorageBytes(Long storageBytes)
Output only.
|
Snapshot |
Snapshot.setStorageBytesStatus(String storageBytesStatus)
Output only.
|
Snapshot |
Snapshot.setStorageLocations(List<String> storageLocations)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
| Modifier and Type | Method and Description |
|---|---|
List<Snapshot> |
SnapshotList.getItems()
A list of Snapshot resources.
|
List<Snapshot> |
SnapshotsScopedList.getSnapshots()
[Output Only] A list of snapshots contained in this scope.
|
| Modifier and Type | Method and Description |
|---|---|
SnapshotList |
SnapshotList.setItems(List<Snapshot> items)
A list of Snapshot resources.
|
SnapshotsScopedList |
SnapshotsScopedList.setSnapshots(List<Snapshot> snapshots)
[Output Only] A list of snapshots contained in this scope.
|
Copyright © 2011–2026 Google. All rights reserved.