Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::Operation (v1.3.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::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 zonalOperations resource. For more information, read Global, Regional, and Zonal Resources.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#client_operation_id

def client_operation_id() -> ::String
Returns
  • (::String) — [Output Only] The value of requestId if you provided it in the request. Not present otherwise.

#client_operation_id=

def client_operation_id=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The value of requestId if you provided it in the request. Not present otherwise.
Returns
  • (::String) — [Output Only] The value of requestId if you provided it in the request. Not present otherwise.

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Deprecated] This field is deprecated.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Deprecated] This field is deprecated.
Returns
  • (::String) — [Deprecated] This field is deprecated.

#description

def description() -> ::String
Returns
  • (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.
Returns
  • (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.

#end_time

def end_time() -> ::String
Returns
  • (::String) — [Output Only] The time that this operation was completed. This value is in RFC3339 text format.

#end_time=

def end_time=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Returns
  • (::String) — [Output Only] The time that this operation was completed. This value is in RFC3339 text format.

#error

def error() -> ::Google::Cloud::Compute::V1::Error
Returns

#error=

def error=(value) -> ::Google::Cloud::Compute::V1::Error
Parameter
Returns

#http_error_message

def http_error_message() -> ::String
Returns
  • (::String) — [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.

#http_error_message=

def http_error_message=(value) -> ::String
Parameter
  • value (::String) — [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Returns
  • (::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

def http_error_status_code() -> ::Integer
Returns
  • (::Integer) — [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.

#http_error_status_code=

def http_error_status_code=(value) -> ::Integer
Parameter
  • value (::Integer) — [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.
Returns
  • (::Integer) — [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

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.

#insert_time

def insert_time() -> ::String
Returns
  • (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.

#insert_time=

def insert_time=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Returns
  • (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] Type of the resource. Always compute#operation for Operation resources.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Type of the resource. Always compute#operation for Operation resources.
Returns
  • (::String) — [Output Only] Type of the resource. Always compute#operation for Operation resources.

#name

def name() -> ::String
Returns
  • (::String) — [Output Only] Name of the operation.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Name of the operation.
Returns
  • (::String) — [Output Only] Name of the operation.

#operation_group_id

def operation_group_id() -> ::String
Returns
  • (::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_group_id=

def operation_group_id=(value) -> ::String
Parameter
  • value (::String) — [Output Only] An ID that represents a group of operations, such as when a group of operations results from a bulkInsert API request.
Returns
  • (::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

def operation_type() -> ::String
Returns
  • (::String) — [Output Only] The type of operation, such as insert, update, or delete, and so on.

#operation_type=

def operation_type=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The type of operation, such as insert, update, or delete, and so on.
Returns
  • (::String) — [Output Only] The type of operation, such as insert, update, or delete, and so on.

#progress

def progress() -> ::Integer
Returns
  • (::Integer) — [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.

#progress=

def progress=(value) -> ::Integer
Parameter
  • value (::Integer) — [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.
Returns
  • (::Integer) — [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

def region() -> ::String
Returns
  • (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.

#region=

def region=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
Returns
  • (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.

#start_time

def start_time() -> ::String
Returns
  • (::String) — [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

#start_time=

def start_time=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
Returns
  • (::String) — [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.

#status

def status() -> ::Google::Cloud::Compute::V1::Operation::Status
Returns

#status=

def status=(value) -> ::Google::Cloud::Compute::V1::Operation::Status
Parameter
Returns

#status_message

def status_message() -> ::String
Returns
  • (::String) — [Output Only] An optional textual description of the current status of the operation.

#status_message=

def status_message=(value) -> ::String
Parameter
  • value (::String) — [Output Only] An optional textual description of the current status of the operation.
Returns
  • (::String) — [Output Only] An optional textual description of the current status of the operation.

#target_id

def target_id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.

#target_id=

def target_id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Returns
  • (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
def target_link() -> ::String
Returns
  • (::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.
def target_link=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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

def user() -> ::String
Returns
  • (::String) — [Output Only] User who requested the operation, for example: user@example.com.

#user=

def user=(value) -> ::String
Parameter
  • value (::String) — [Output Only] User who requested the operation, for example: user@example.com.
Returns
  • (::String) — [Output Only] User who requested the operation, for example: user@example.com.

#warnings

def warnings() -> ::Array<::Google::Cloud::Compute::V1::Warnings>
Returns

#warnings=

def warnings=(value) -> ::Array<::Google::Cloud::Compute::V1::Warnings>
Parameter
Returns

#zone

def zone() -> ::String
Returns
  • (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.

#zone=

def zone=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
Returns
  • (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.