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 Cloud Deployment Manager V2 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
AbstractMap.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.
|
InstancesBulkInsertOperationMetadata |
getInstancesBulkInsertOperationMetadata() |
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
[Output Only] Name of the operation.
|
String |
getOperationGroupId()
[Output Only] An ID that represents a group of operations, such as when a group of operations
results from a `bulkInsert` API request.
|
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.
|
SetCommonInstanceMetadataOperationMetadata |
getSetCommonInstanceMetadataOperationMetadata()
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will
contain information on all underlying zonal actions and their state.
|
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` or
`alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
|
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 |
setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata) |
Operation |
setKind(String kind)
[Output Only] Type of the resource.
|
Operation |
setName(String name)
[Output Only] Name of the operation.
|
Operation |
setOperationGroupId(String operationGroupId)
[Output Only] An ID that represents a group of operations, such as when a group of operations
results from a `bulkInsert` API request.
|
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 |
setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata)
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will
contain information on all underlying zonal actions and their state.
|
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` or
`alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
|
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 InstancesBulkInsertOperationMetadata getInstancesBulkInsertOperationMetadata()
null
for nonepublic Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata)
instancesBulkInsertOperationMetadata
- instancesBulkInsertOperationMetadata 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 getOperationGroupId()
null
for nonepublic Operation setOperationGroupId(String operationGroupId)
operationGroupId
- operationGroupId 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 SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOperationMetadata()
null
for nonepublic Operation setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata)
setCommonInstanceMetadataOperationMetadata
- setCommonInstanceMetadataOperationMetadata 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 com.google.api.client.json.GenericJson
public Operation clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.