OperationResponse

data class OperationResponse(val clientOperationId: String, val creationTimestamp: String, val description: String, val endTime: String, val error: OperationErrorResponse, val httpErrorMessage: String, val httpErrorStatusCode: Int, val insertTime: String, val kind: String, val name: String, val operationGroupId: String, val operationType: String, val progress: Int, val region: String, val selfLink: String, val startTime: String, val status: String, val statusMessage: String, val targetId: String, val targetLink: String, val user: String, val warnings: List<OperationWarningsItemResponse>, val zone: String)

Represents an Operation resource. Google Compute Engine has three Operation resources: * /compute/docs/reference/rest/{$api_version}/globalOperations * /compute/docs/reference/rest/{$api_version}/regionOperations * /compute/docs/reference/rest/{$api_version}/zoneOperations You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the globalOperations resource. - For regional operations, use the regionOperations resource. - For zonal operations, use the zonalOperations resource. For more information, read Global, Regional, and Zonal Resources.

Constructors

Link copied to clipboard
fun OperationResponse(clientOperationId: String, creationTimestamp: String, description: String, endTime: String, error: OperationErrorResponse, httpErrorMessage: String, httpErrorStatusCode: Int, insertTime: String, kind: String, name: String, operationGroupId: String, operationType: String, progress: Int, region: String, selfLink: String, startTime: String, status: String, statusMessage: String, targetId: String, targetLink: String, user: String, warnings: List<OperationWarningsItemResponse>, zone: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The value of requestId if you provided it in the request. Not present otherwise.

Link copied to clipboard

Deprecated This field is deprecated.

Link copied to clipboard

A textual description of the operation, which is set when the operation is created.

Link copied to clipboard

The time that this operation was completed. This value is in RFC3339 text format.

Link copied to clipboard

If errors are generated during processing of the operation, this field will be populated.

Link copied to clipboard

If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.

Link copied to clipboard

If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.

Link copied to clipboard

The time that this operation was requested. This value is in RFC3339 text format.

Link copied to clipboard

Type of the resource. Always compute#operation for Operation resources.

Link copied to clipboard

Name of the operation.

Link copied to clipboard

An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.

Link copied to clipboard

The type of operation, such as insert, update, or delete, and so on.

Link copied to clipboard

An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.

Link copied to clipboard

The URL of the region where the operation resides. Only applicable when performing regional operations.

Link copied to clipboard

Server-defined URL for the resource.

Link copied to clipboard

The time that this operation was started by the server. This value is in RFC3339 text format.

Link copied to clipboard

The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.

Link copied to clipboard

An optional textual description of the current status of the operation.

Link copied to clipboard

The unique target ID, which identifies a specific incarnation of the target resource.

Link copied to clipboard

The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.

Link copied to clipboard

User who requested the operation, for example: user@example.com.

Link copied to clipboard

If warning messages are generated during processing of the operation, this field will be populated.

Link copied to clipboard

The URL of the zone where the operation resides. Only applicable when performing per-zone operations.