[][src]Struct google_compute1::Operation

pub struct Operation {
    pub status: Option<String>,
    pub description: Option<String>,
    pub warnings: Option<Vec<OperationWarnings>>,
    pub error: Option<OperationError>,
    pub target_id: Option<String>,
    pub user: Option<String>,
    pub start_time: Option<String>,
    pub client_operation_id: Option<String>,
    pub creation_timestamp: Option<String>,
    pub id: Option<String>,
    pub kind: Option<String>,
    pub name: Option<String>,
    pub zone: Option<String>,
    pub region: Option<String>,
    pub operation_type: Option<String>,
    pub self_link: Option<String>,
    pub insert_time: Option<String>,
    pub http_error_message: Option<String>,
    pub progress: Option<i32>,
    pub end_time: Option<String>,
    pub http_error_status_code: Option<i32>,
    pub status_message: Option<String>,
    pub target_link: Option<String>,
}

Represents an Operation resource.

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. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

status: Option<String>

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

description: Option<String>

[Output Only] A textual description of the operation, which is set when the operation is created.

warnings: Option<Vec<OperationWarnings>>

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

error: Option<OperationError>

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

target_id: Option<String>

[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.

user: Option<String>

[Output Only] User who requested the operation, for example: user@example.com.

start_time: Option<String>

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

client_operation_id: Option<String>

[Output Only] The value of requestId if you provided it in the request. Not present otherwise.

creation_timestamp: Option<String>

[Deprecated] This field is deprecated.

id: Option<String>

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

kind: Option<String>

[Output Only] Type of the resource. Always compute#operation for Operation resources.

name: Option<String>

[Output Only] Name of the resource.

zone: Option<String>

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

region: Option<String>

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

operation_type: Option<String>

[Output Only] The type of operation, such as insert, update, or delete, and so on.

self_link: Option<String>

[Output Only] Server-defined URL for the resource.

insert_time: Option<String>

[Output Only] The time that this operation was requested. This value is in RFC3339 text format.

http_error_message: Option<String>

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

progress: Option<i32>

[Output Only] 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.

end_time: Option<String>

[Output Only] The time that this operation was completed. This value is in RFC3339 text format.

http_error_status_code: Option<i32>

[Output Only] 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.

status_message: Option<String>

[Output Only] An optional textual description of the current status of the operation.

target_link: Option<String>

[Output Only] 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.

Trait Implementations

impl ResponseResult for Operation[src]

impl Default for Operation[src]

impl Clone for Operation[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Operation[src]

impl Serialize for Operation[src]

impl<'de> Deserialize<'de> for Operation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]