public final class Operation extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Operation.Error
[Output Only] If errors are generated during processing of the operation, this field will be
 populated. 
 | 
static class  | 
Operation.Warnings
Model definition for OperationWarnings. 
 | 
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Operation()  | 
| Modifier and Type | Method and Description | 
|---|---|
Operation | 
clone()  | 
String | 
getClientOperationId()
[Output Only] The value of `requestId` if you provided it in the request. 
 | 
String | 
getCreationTimestamp()
[Deprecated] This field is deprecated. 
 | 
String | 
getDescription()
[Output Only] A textual description of the operation, which is set when the operation is
 created. 
 | 
String | 
getEndTime()
[Output Only] The time that this operation was completed. 
 | 
Operation.Error | 
getError()
[Output Only] If errors are generated during processing of the operation, this field will be
 populated. 
 | 
String | 
getHttpErrorMessage()
[Output Only] If the operation fails, this field contains the HTTP error message that was
 returned, such as `NOT FOUND`. 
 | 
Integer | 
getHttpErrorStatusCode()
[Output Only] If the operation fails, this field contains the HTTP error status code that was
 returned. 
 | 
BigInteger | 
getId()
[Output Only] The unique identifier for the operation. 
 | 
String | 
getInsertTime()
[Output Only] The time that this operation was requested. 
 | 
String | 
getKind()
[Output Only] Type of the resource. 
 | 
String | 
getName()
[Output Only] Name of the operation. 
 | 
String | 
getOperationType()
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 
 | 
Integer | 
getProgress()
[Output Only] An optional progress indicator that ranges from 0 to 100. 
 | 
String | 
getRegion()
[Output Only] The URL of the region where the operation resides. 
 | 
String | 
getSelfLink()
[Output Only] Server-defined URL for the resource. 
 | 
String | 
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
String | 
getStartTime()
[Output Only] The time that this operation was started by the server. 
 | 
String | 
getStatus()
[Output Only] The status of the operation, which can be one of the following: `PENDING`,
 `RUNNING`, or `DONE`. 
 | 
String | 
getStatusMessage()
[Output Only] An optional textual description of the current status of the operation. 
 | 
BigInteger | 
getTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target
 resource. 
 | 
String | 
getTargetLink()
[Output Only] The URL of the resource that the operation modifies. 
 | 
String | 
getUser()
[Output Only] User who requested the operation, for example: `user@example.com`. 
 | 
List<Operation.Warnings> | 
getWarnings()
[Output Only] If warning messages are generated during processing of the operation, this field
 will be populated. 
 | 
String | 
getZone()
[Output Only] The URL of the zone where the operation resides. 
 | 
Operation | 
set(String fieldName,
   Object value)  | 
Operation | 
setClientOperationId(String clientOperationId)
[Output Only] The value of `requestId` if you provided it in the request. 
 | 
Operation | 
setCreationTimestamp(String creationTimestamp)
[Deprecated] This field is deprecated. 
 | 
Operation | 
setDescription(String description)
[Output Only] A textual description of the operation, which is set when the operation is
 created. 
 | 
Operation | 
setEndTime(String endTime)
[Output Only] The time that this operation was completed. 
 | 
Operation | 
setError(Operation.Error error)
[Output Only] If errors are generated during processing of the operation, this field will be
 populated. 
 | 
Operation | 
setHttpErrorMessage(String httpErrorMessage)
[Output Only] If the operation fails, this field contains the HTTP error message that was
 returned, such as `NOT FOUND`. 
 | 
Operation | 
setHttpErrorStatusCode(Integer httpErrorStatusCode)
[Output Only] If the operation fails, this field contains the HTTP error status code that was
 returned. 
 | 
Operation | 
setId(BigInteger id)
[Output Only] The unique identifier for the operation. 
 | 
Operation | 
setInsertTime(String insertTime)
[Output Only] The time that this operation was requested. 
 | 
Operation | 
setKind(String kind)
[Output Only] Type of the resource. 
 | 
Operation | 
setName(String name)
[Output Only] Name of the operation. 
 | 
Operation | 
setOperationType(String operationType)
[Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 
 | 
Operation | 
setProgress(Integer progress)
[Output Only] An optional progress indicator that ranges from 0 to 100. 
 | 
Operation | 
setRegion(String region)
[Output Only] The URL of the region where the operation resides. 
 | 
Operation | 
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource. 
 | 
Operation | 
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
Operation | 
setStartTime(String startTime)
[Output Only] The time that this operation was started by the server. 
 | 
Operation | 
setStatus(String status)
[Output Only] The status of the operation, which can be one of the following: `PENDING`,
 `RUNNING`, or `DONE`. 
 | 
Operation | 
setStatusMessage(String statusMessage)
[Output Only] An optional textual description of the current status of the operation. 
 | 
Operation | 
setTargetId(BigInteger targetId)
[Output Only] The unique target ID, which identifies a specific incarnation of the target
 resource. 
 | 
Operation | 
setTargetLink(String targetLink)
[Output Only] The URL of the resource that the operation modifies. 
 | 
Operation | 
setUser(String user)
[Output Only] User who requested the operation, for example: `user@example.com`. 
 | 
Operation | 
setWarnings(List<Operation.Warnings> warnings)
[Output Only] If warning messages are generated during processing of the operation, this field
 will be populated. 
 | 
Operation | 
setZone(String zone)
[Output Only] The URL of the zone where the operation resides. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getClientOperationId()
null for nonepublic Operation setClientOperationId(String clientOperationId)
clientOperationId - clientOperationId or null for nonepublic String getCreationTimestamp()
null for nonepublic Operation setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Operation setDescription(String description)
description - description or null for nonepublic String getEndTime()
null for nonepublic Operation setEndTime(String endTime)
endTime - endTime or null for nonepublic Operation.Error getError()
null for nonepublic Operation setError(Operation.Error error)
error - error or null for nonepublic String getHttpErrorMessage()
null for nonepublic Operation setHttpErrorMessage(String httpErrorMessage)
httpErrorMessage - httpErrorMessage or null for nonepublic Integer getHttpErrorStatusCode()
null for nonepublic Operation setHttpErrorStatusCode(Integer httpErrorStatusCode)
httpErrorStatusCode - httpErrorStatusCode or null for nonepublic BigInteger getId()
null for nonepublic Operation setId(BigInteger id)
id - id or null for nonepublic String getInsertTime()
null for nonepublic Operation setInsertTime(String insertTime)
insertTime - insertTime or null for nonepublic String getKind()
null for nonepublic Operation setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Operation setName(String name)
name - name or null for nonepublic String getOperationType()
null for nonepublic Operation setOperationType(String operationType)
operationType - operationType or null for nonepublic Integer getProgress()
null for nonepublic Operation setProgress(Integer progress)
progress - progress or null for nonepublic String getRegion()
null for nonepublic Operation setRegion(String region)
region - region or null for nonepublic String getSelfLink()
null for nonepublic Operation setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSelfLinkWithId()
null for nonepublic Operation setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId or null for nonepublic String getStartTime()
null for nonepublic Operation setStartTime(String startTime)
startTime - startTime or null for nonepublic String getStatus()
null for nonepublic Operation setStatus(String status)
status - status or null for nonepublic String getStatusMessage()
null for nonepublic Operation setStatusMessage(String statusMessage)
statusMessage - statusMessage or null for nonepublic BigInteger getTargetId()
null for nonepublic Operation setTargetId(BigInteger targetId)
targetId - targetId or null for nonepublic String getTargetLink()
null for nonepublic Operation setTargetLink(String targetLink)
targetLink - targetLink or null for nonepublic String getUser()
null for nonepublic Operation setUser(String user)
user - user or null for nonepublic List<Operation.Warnings> getWarnings()
null for nonepublic Operation setWarnings(List<Operation.Warnings> warnings)
warnings - warnings or null for nonepublic String getZone()
null for nonepublic Operation setZone(String zone)
zone - zone or null for nonepublic Operation set(String fieldName, Object value)
set in class GenericJsonpublic Operation clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.