Operation

@Serializable
data class Operation(val name: String? = null, val metadata: JsonObject? = null, val done: Boolean? = null, val error: Status? = null, val response: JsonObject? = null)

This resource represents a long-running operation that is the result of a network API call.

Constructors

Link copied to clipboard
constructor(name: String? = null, metadata: JsonObject? = null, done: Boolean? = null, error: Status? = null, response: JsonObject? = null)

Properties

Link copied to clipboard
val done: Boolean?

If the value is false, it means the operation is still in progress.

Link copied to clipboard

The error result of the operation in case of failure or cancellation.

Link copied to clipboard
val metadata: JsonObject?

Service-specific metadata associated with the operation.

Link copied to clipboard
val name: String?

The server-assigned name.

Link copied to clipboard
val response: JsonObject?

The normal, successful response of the operation.