Operation
import type { Operation } from "https://googleapis.deno.dev/v1/deploymentmanager:v2.ts";
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 zoneOperations
resource. For more information, read
Global, Regional, and Zonal Resources. Note that completed Operation
resources have a limited retention period.
§Properties
[Output Only] The value of requestId
if you provided it in the request.
Not present otherwise.
[Output Only] A textual description of the operation, which is set when the operation is created.
[Output Only] The time that this operation was completed. This value is in RFC3339 text format.
[Output Only] If errors are generated during processing of the operation, this field will be populated.
[Output Only] If the operation fails, this field contains the HTTP error
message that was returned, such as NOT FOUND
.
[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.
[Output Only] The unique identifier for the operation. This identifier is defined by the server.
[Output Only] The time that this operation was requested. This value is in RFC3339 text format.
[Output Only] Type of the resource. Always compute#operation
for
Operation resources.
[Output Only] An ID that represents a group of operations, such as when a
group of operations results from a bulkInsert
API request.
[Output Only] The type of operation, such as insert
, update
, or
delete
, and so on.
[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.
[Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
[Output Only] The status of the operation, which can be one of the
following: PENDING
, RUNNING
, or DONE
.
[Output Only] An optional textual description of the current status of the operation.
[Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
[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.
[Output Only] User who requested the operation, for example:
user@example.com
or alice_smith_identifier (global/workforcePools/example-com-us-employees)
.
[Output Only] If warning messages are generated during processing of the operation, this field will be populated.