Interface TuningOperation

A long-running operation.

interface TuningOperation {
    done?: boolean;
    error?: Record<string, unknown>;
    metadata?: Record<string, unknown>;
    name?: string;
    sdkHttpResponse?: HttpResponse;
}

Properties

done?: boolean

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.

error?: Record<string, unknown>

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

metadata?: Record<string, unknown>

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.

name?: string

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}.

sdkHttpResponse?: HttpResponse

Used to retain the full HTTP response.