Struct google_deploymentmanager2::api::Operation
source · [−]pub struct Operation {Show 24 fields
pub client_operation_id: Option<String>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub end_time: Option<String>,
pub error: Option<OperationError>,
pub http_error_message: Option<String>,
pub http_error_status_code: Option<i32>,
pub id: Option<String>,
pub insert_time: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
pub operation_group_id: Option<String>,
pub operation_type: Option<String>,
pub progress: Option<i32>,
pub region: Option<String>,
pub self_link: Option<String>,
pub start_time: Option<String>,
pub status: Option<String>,
pub status_message: Option<String>,
pub target_id: Option<String>,
pub target_link: Option<String>,
pub user: Option<String>,
pub warnings: Option<Vec<OperationWarnings>>,
pub zone: Option<String>,
}
Expand description
Represents an Operation resource. Google Compute Engine has three Operation resources: * Global * Regional * Zonal 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.
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).
- cancel preview deployments (response)
- delete deployments (response)
- insert deployments (response)
- patch deployments (response)
- stop deployments (response)
- update deployments (response)
- get operations (response)
- list operations (none)
Fields
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.
description: Option<String>
[Output Only] A textual description of the operation, which is set when the operation is created.
end_time: Option<String>
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
error: Option<OperationError>
[Output Only] If errors are generated during processing of the operation, this field will be populated.
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
.
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.
id: Option<String>
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
insert_time: Option<String>
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
kind: Option<String>
[Output Only] Type of the resource. Always compute#operation
for Operation resources.
name: Option<String>
[Output Only] Name of the operation.
operation_group_id: Option<String>
[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert
API request.
operation_type: Option<String>
[Output Only] The type of operation, such as insert
, update
, or delete
, and so on.
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.
region: Option<String>
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
start_time: Option<String>
[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
status: Option<String>
[Output Only] The status of the operation, which can be one of the following: PENDING
, RUNNING
, or DONE
.
status_message: Option<String>
[Output Only] An optional textual description of the current status of the operation.
target_id: Option<String>
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
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.
user: Option<String>
[Output Only] User who requested the operation, for example: user@example.com
.
warnings: Option<Vec<OperationWarnings>>
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.
zone: Option<String>
[Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Resource for Operation
impl ResponseResult for Operation
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more