struct

CrystaLXD::Operation

Inherits Struct < Value < Object

https://github.com/lxc/lxd/blob/master/doc/rest-api.md#10operations

Constructors

new(client : Client, uuid : String)

Instance methods

state

Returns the current state (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-24).

uuid
wait(timeout : Int32 | Nil = nil) : Success(BackgroundOperation) | Error

Wait for an operation to finish, with an optional timeout in seconds (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-optional-timeout30).

websocket(secret : String)

This connection is upgraded into a websocket connection speaking the protocol defined by the operation type. (https://github.com/lxc/lxd/blob/master/doc/rest-api.md#get-secretsecret).