public final class Operation
extends com.google.api.client.json.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.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Operation() |
| Modifier and Type | Method and Description |
|---|---|
Operation |
clone() |
java.lang.String |
getClientOperationId()
[Output Only] Reserved for future use.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
[Output Only] A textual description of the operation, which is set when the operation is
created.
|
java.lang.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.
|
java.lang.String |
getHttpErrorMessage()
[Output Only] If the operation fails, this field contains the HTTP error message that was
returned, such as NOT FOUND.
|
java.lang.Integer |
getHttpErrorStatusCode()
[Output Only] If the operation fails, this field contains the HTTP error status code that was
returned.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getInsertTime()
[Output Only] The time that this operation was requested.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.String |
getName()
[Output Only] Name of the resource.
|
java.lang.String |
getOperationType()
[Output Only] The type of operation, such as insert, update, or delete, and so on.
|
java.lang.Integer |
getProgress()
[Output Only] An optional progress indicator that ranges from 0 to 100.
|
java.lang.String |
getRegion()
[Output Only] The URL of the region where the operation resides.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getStartTime()
[Output Only] The time that this operation was started by the server.
|
java.lang.String |
getStatus()
[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING,
or DONE.
|
java.lang.String |
getStatusMessage()
[Output Only] An optional textual description of the current status of the operation.
|
java.math.BigInteger |
getTargetId()
[Output Only] The unique target ID, which identifies a specific incarnation of the target
resource.
|
java.lang.String |
getTargetLink()
[Output Only] The URL of the resource that the operation modifies.
|
java.lang.String |
getUser()
[Output Only] User who requested the operation, for example: user@example.com.
|
java.util.List<Operation.Warnings> |
getWarnings()
[Output Only] If warning messages are generated during processing of the operation, this field
will be populated.
|
java.lang.String |
getZone()
[Output Only] The URL of the zone where the operation resides.
|
Operation |
set(java.lang.String fieldName,
java.lang.Object value) |
Operation |
setClientOperationId(java.lang.String clientOperationId)
[Output Only] Reserved for future use.
|
Operation |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Operation |
setDescription(java.lang.String description)
[Output Only] A textual description of the operation, which is set when the operation is
created.
|
Operation |
setEndTime(java.lang.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(java.lang.String httpErrorMessage)
[Output Only] If the operation fails, this field contains the HTTP error message that was
returned, such as NOT FOUND.
|
Operation |
setHttpErrorStatusCode(java.lang.Integer httpErrorStatusCode)
[Output Only] If the operation fails, this field contains the HTTP error status code that was
returned.
|
Operation |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Operation |
setInsertTime(java.lang.String insertTime)
[Output Only] The time that this operation was requested.
|
Operation |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Operation |
setName(java.lang.String name)
[Output Only] Name of the resource.
|
Operation |
setOperationType(java.lang.String operationType)
[Output Only] The type of operation, such as insert, update, or delete, and so on.
|
Operation |
setProgress(java.lang.Integer progress)
[Output Only] An optional progress indicator that ranges from 0 to 100.
|
Operation |
setRegion(java.lang.String region)
[Output Only] The URL of the region where the operation resides.
|
Operation |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Operation |
setStartTime(java.lang.String startTime)
[Output Only] The time that this operation was started by the server.
|
Operation |
setStatus(java.lang.String status)
[Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING,
or DONE.
|
Operation |
setStatusMessage(java.lang.String statusMessage)
[Output Only] An optional textual description of the current status of the operation.
|
Operation |
setTargetId(java.math.BigInteger targetId)
[Output Only] The unique target ID, which identifies a specific incarnation of the target
resource.
|
Operation |
setTargetLink(java.lang.String targetLink)
[Output Only] The URL of the resource that the operation modifies.
|
Operation |
setUser(java.lang.String user)
[Output Only] User who requested the operation, for example: user@example.com.
|
Operation |
setWarnings(java.util.List<Operation.Warnings> warnings)
[Output Only] If warning messages are generated during processing of the operation, this field
will be populated.
|
Operation |
setZone(java.lang.String zone)
[Output Only] The URL of the zone where the operation resides.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getClientOperationId()
null for nonepublic Operation setClientOperationId(java.lang.String clientOperationId)
clientOperationId - clientOperationId or null for nonepublic java.lang.String getCreationTimestamp()
null for nonepublic Operation setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic Operation setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.String getEndTime()
null for nonepublic Operation setEndTime(java.lang.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 java.lang.String getHttpErrorMessage()
null for nonepublic Operation setHttpErrorMessage(java.lang.String httpErrorMessage)
httpErrorMessage - httpErrorMessage or null for nonepublic java.lang.Integer getHttpErrorStatusCode()
null for nonepublic Operation setHttpErrorStatusCode(java.lang.Integer httpErrorStatusCode)
httpErrorStatusCode - httpErrorStatusCode or null for nonepublic java.math.BigInteger getId()
null for nonepublic Operation setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getInsertTime()
null for nonepublic Operation setInsertTime(java.lang.String insertTime)
insertTime - insertTime or null for nonepublic java.lang.String getKind()
null for nonepublic Operation setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic Operation setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getOperationType()
null for nonepublic Operation setOperationType(java.lang.String operationType)
operationType - operationType or null for nonepublic java.lang.Integer getProgress()
null for nonepublic Operation setProgress(java.lang.Integer progress)
progress - progress or null for nonepublic java.lang.String getRegion()
null for nonepublic Operation setRegion(java.lang.String region)
region - region or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Operation setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getStartTime()
null for nonepublic Operation setStartTime(java.lang.String startTime)
startTime - startTime or null for nonepublic java.lang.String getStatus()
null for nonepublic Operation setStatus(java.lang.String status)
status - status or null for nonepublic java.lang.String getStatusMessage()
null for nonepublic Operation setStatusMessage(java.lang.String statusMessage)
statusMessage - statusMessage or null for nonepublic java.math.BigInteger getTargetId()
null for nonepublic Operation setTargetId(java.math.BigInteger targetId)
targetId - targetId or null for nonepublic java.lang.String getTargetLink()
null for nonepublic Operation setTargetLink(java.lang.String targetLink)
targetLink - targetLink or null for nonepublic java.lang.String getUser()
null for nonepublic Operation setUser(java.lang.String user)
user - user or null for nonepublic java.util.List<Operation.Warnings> getWarnings()
null for nonepublic Operation setWarnings(java.util.List<Operation.Warnings> warnings)
warnings - warnings or null for nonepublic java.lang.String getZone()
null for nonepublic Operation setZone(java.lang.String zone)
zone - zone or null for nonepublic Operation set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Operation clone()
clone in class com.google.api.client.json.GenericJson