Class Operation (1.1.0)

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

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.

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
Boolean

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasEndTime

public bool HasEndTime { get; }

Gets whether the "end_time" field is set

Property Value
TypeDescription
Boolean

HasHttpErrorMessage

public bool HasHttpErrorMessage { get; }

Gets whether the "http_error_message" field is set

Property Value
TypeDescription
Boolean

HasHttpErrorStatusCode

public bool HasHttpErrorStatusCode { get; }

Gets whether the "http_error_status_code" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasInsertTime

public bool HasInsertTime { get; }

Gets whether the "insert_time" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasOperationGroupId

public bool HasOperationGroupId { get; }

Gets whether the "operation_group_id" field is set

Property Value
TypeDescription
Boolean

HasOperationType

public bool HasOperationType { get; }

Gets whether the "operation_type" field is set

Property Value
TypeDescription
Boolean

HasProgress

public bool HasProgress { get; }

Gets whether the "progress" field is set

Property Value
TypeDescription
Boolean

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasStartTime

public bool HasStartTime { get; }

Gets whether the "start_time" field is set

Property Value
TypeDescription
Boolean

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
Boolean

HasStatusMessage

public bool HasStatusMessage { get; }

Gets whether the "status_message" field is set

Property Value
TypeDescription
Boolean

HasTargetId

public bool HasTargetId { get; }

Gets whether the "target_id" field is set

Property Value
TypeDescription
Boolean
public bool HasTargetLink { get; }

Gets whether the "target_link" field is set

Property Value
TypeDescription
Boolean

HasUser

public bool HasUser { get; }

Gets whether the "user" field is set

Property Value
TypeDescription
Boolean

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
Boolean

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
Int32

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
UInt64

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

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
Int32

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

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
Operation.Types.Status

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

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
RepeatedField<Warnings>

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