Compute Engine v1 API - Class Operation (2.12.0)

public sealed class Operation : IMessage<Operation>, IEquatable<Operation>, IDeepCloneable<Operation>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class Operation.

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.

Inheritance

object > Operation

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

Operation()

public Operation()

Operation(Operation)

public Operation(Operation other)
Parameter
NameDescription
otherOperation

Properties

ClientOperationId

public string ClientOperationId { get; set; }

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

Property Value
TypeDescription
string

CreationTimestamp

public string CreationTimestamp { get; set; }

[Deprecated] This field is deprecated.

Property Value
TypeDescription
string

Description

public string Description { get; set; }

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

Property Value
TypeDescription
string

EndTime

public string EndTime { get; set; }

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

Property Value
TypeDescription
string

Error

public Error Error { get; set; }

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

Property Value
TypeDescription
Error

HasClientOperationId

public bool HasClientOperationId { get; }

Gets whether the "client_operation_id" field is set

Property Value
TypeDescription
bool

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasEndTime

public bool HasEndTime { get; }

Gets whether the "end_time" field is set

Property Value
TypeDescription
bool

HasHttpErrorMessage

public bool HasHttpErrorMessage { get; }

Gets whether the "http_error_message" field is set

Property Value
TypeDescription
bool

HasHttpErrorStatusCode

public bool HasHttpErrorStatusCode { get; }

Gets whether the "http_error_status_code" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasInsertTime

public bool HasInsertTime { get; }

Gets whether the "insert_time" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

HasOperationGroupId

public bool HasOperationGroupId { get; }

Gets whether the "operation_group_id" field is set

Property Value
TypeDescription
bool

HasOperationType

public bool HasOperationType { get; }

Gets whether the "operation_type" field is set

Property Value
TypeDescription
bool

HasProgress

public bool HasProgress { get; }

Gets whether the "progress" field is set

Property Value
TypeDescription
bool

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasStartTime

public bool HasStartTime { get; }

Gets whether the "start_time" field is set

Property Value
TypeDescription
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
bool

HasStatusMessage

public bool HasStatusMessage { get; }

Gets whether the "status_message" field is set

Property Value
TypeDescription
bool

HasTargetId

public bool HasTargetId { get; }

Gets whether the "target_id" field is set

Property Value
TypeDescription
bool
public bool HasTargetLink { get; }

Gets whether the "target_link" field is set

Property Value
TypeDescription
bool

HasUser

public bool HasUser { get; }

Gets whether the "user" field is set

Property Value
TypeDescription
bool

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
bool

HttpErrorMessage

public string HttpErrorMessage { get; set; }

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

Property Value
TypeDescription
string

HttpErrorStatusCode

public int HttpErrorStatusCode { get; set; }

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

Property Value
TypeDescription
int

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
ulong

InsertTime

public string InsertTime { get; set; }

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

Property Value
TypeDescription
string

InstancesBulkInsertOperationMetadata

public InstancesBulkInsertOperationMetadata InstancesBulkInsertOperationMetadata { get; set; }
Property Value
TypeDescription
InstancesBulkInsertOperationMetadata

Kind

public string Kind { get; set; }

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

Property Value
TypeDescription
string

Name

public string Name { get; set; }

[Output Only] Name of the operation.

Property Value
TypeDescription
string

OperationGroupId

public string OperationGroupId { get; set; }

[Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.

Property Value
TypeDescription
string

OperationType

public string OperationType { get; set; }

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

Property Value
TypeDescription
string

Progress

public int Progress { get; set; }

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

Property Value
TypeDescription
int

Region

public string Region { get; set; }

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

Property Value
TypeDescription
string
public string SelfLink { get; set; }

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

Property Value
TypeDescription
string

SetCommonInstanceMetadataOperationMetadata

public SetCommonInstanceMetadataOperationMetadata SetCommonInstanceMetadataOperationMetadata { get; set; }

[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.

Property Value
TypeDescription
SetCommonInstanceMetadataOperationMetadata

StartTime

public string StartTime { get; set; }

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

Property Value
TypeDescription
string

Status

public Operation.Types.Status Status { get; set; }

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

Property Value
TypeDescription
OperationTypesStatus

StatusMessage

public string StatusMessage { get; set; }

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

Property Value
TypeDescription
string

TargetId

public ulong TargetId { get; set; }

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

Property Value
TypeDescription
ulong
public string TargetLink { get; set; }

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

Property Value
TypeDescription
string

User

public string User { get; set; }

[Output Only] User who requested the operation, for example: user@example.com or alice_smith_identifier (global/workforcePools/example-com-us-employees).

Property Value
TypeDescription
string

Warnings

public RepeatedField<Warnings> Warnings { get; }

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

Property Value
TypeDescription
RepeatedFieldWarnings

Zone

public string Zone { get; set; }

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

Property Value
TypeDescription
string