TuningOperation

@Serializable
data class TuningOperation(val sdkHttpResponse: HttpResponse? = null, val name: String? = null, val metadata: Map<String, JsonElement>? = null, val done: Boolean? = null, val error: Map<String, JsonElement>? = null)

A long-running operation.

Constructors

Link copied to clipboard
constructor(sdkHttpResponse: HttpResponse? = null, name: String? = null, metadata: Map<String, JsonElement>? = null, done: Boolean? = null, error: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
val done: Boolean? = null

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

Link copied to clipboard
val error: Map<String, JsonElement>? = null

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

Link copied to clipboard
val metadata: Map<String, JsonElement>? = null

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

Link copied to clipboard
val name: String? = null

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

Link copied to clipboard

Used to retain the full HTTP response.