public class Compute.Disks.CreateSnapshot extends ComputeRequest<Operation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
CreateSnapshot(String project,
String zone,
String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisk()
Name of the persistent disk to snapshot.
|
Boolean |
getGuestFlush()
[ Input Only] Specifies to create an application consistent snapshot by informing the OS to prepare
[ for the snapshot process.
|
String |
getProject()
Project ID for this request.
|
String |
getRequestId()
An optional request ID to identify requests.
|
String |
getZone()
The name of the zone for this request.
|
Compute.Disks.CreateSnapshot |
set(String parameterName,
Object value) |
Compute.Disks.CreateSnapshot |
setAlt(String alt)
Data format for the response.
|
Compute.Disks.CreateSnapshot |
setDisk(String disk)
Name of the persistent disk to snapshot.
|
Compute.Disks.CreateSnapshot |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Disks.CreateSnapshot |
setGuestFlush(Boolean guestFlush)
[Input Only] Specifies to create an application consistent snapshot by informing the OS to
prepare for the snapshot process.
|
Compute.Disks.CreateSnapshot |
setKey(String key)
API key.
|
Compute.Disks.CreateSnapshot |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Disks.CreateSnapshot |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Disks.CreateSnapshot |
setProject(String project)
Project ID for this request.
|
Compute.Disks.CreateSnapshot |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.Disks.CreateSnapshot |
setRequestId(String requestId)
An optional request ID to identify requests.
|
Compute.Disks.CreateSnapshot |
setUserIp(String userIp)
Deprecated.
|
Compute.Disks.CreateSnapshot |
setZone(String zone)
The name of the zone for this request.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected CreateSnapshot(String project, String zone, String disk, Snapshot content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
ientRequest) must be called to initialize this instance immediately after invoking the
constructor.
project - Project ID for this request.zone - The name of the zone for this request.disk - Name of the persistent disk to snapshot.content - the Snapshotpublic Compute.Disks.CreateSnapshot setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Operation>public Compute.Disks.CreateSnapshot setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Operation>public String getProject()
public Compute.Disks.CreateSnapshot setProject(String project)
public String getZone()
public Compute.Disks.CreateSnapshot setZone(String zone)
public String getDisk()
public Compute.Disks.CreateSnapshot setDisk(String disk)
public Boolean getGuestFlush()
public Compute.Disks.CreateSnapshot setGuestFlush(Boolean guestFlush)
public String getRequestId()
public Compute.Disks.CreateSnapshot setRequestId(String requestId)
public Compute.Disks.CreateSnapshot set(String parameterName, Object value)
set in class ComputeRequest<Operation>Copyright © 2011–2019 Google. All rights reserved.