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 zoneOperations
resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#client_operation_id
def client_operation_id() -> ::String
-
(::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
-
value (::String) — [Output Only] The value of
requestId
if you provided it in the request. Not present otherwise.
-
(::String) — [Output Only] The value of
requestId
if you provided it in the request. Not present otherwise.
#creation_timestamp
def creation_timestamp() -> ::String
- (::String) — [Deprecated] This field is deprecated.
#creation_timestamp=
def creation_timestamp=(value) -> ::String
- value (::String) — [Deprecated] This field is deprecated.
- (::String) — [Deprecated] This field is deprecated.
#description
def description() -> ::String
- (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.
#description=
def description=(value) -> ::String
- value (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.
- (::String) — [Output Only] A textual description of the operation, which is set when the operation is created.
#end_time
def end_time() -> ::String
- (::String) — [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
#end_time=
def end_time=(value) -> ::String
- value (::String) — [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
- (::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
- (::Google::Cloud::Compute::V1::Error) — [Output Only] If errors are generated during processing of the operation, this field will be populated.
#error=
def error=(value) -> ::Google::Cloud::Compute::V1::Error
- value (::Google::Cloud::Compute::V1::Error) — [Output Only] If errors are generated during processing of the operation, this field will be populated.
- (::Google::Cloud::Compute::V1::Error) — [Output Only] If errors are generated during processing of the operation, this field will be populated.
#http_error_message
def http_error_message() -> ::String
-
(::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
-
value (::String) — [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as
NOT FOUND
.
-
(::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
-
(::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
-
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.
-
(::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
- (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer
- value (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.
- (::Integer) — [Output Only] The unique identifier for the operation. This identifier is defined by the server.
#insert_time
def insert_time() -> ::String
- (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
#insert_time=
def insert_time=(value) -> ::String
- value (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
- (::String) — [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
#instances_bulk_insert_operation_metadata
def instances_bulk_insert_operation_metadata() -> ::Google::Cloud::Compute::V1::InstancesBulkInsertOperationMetadata
#instances_bulk_insert_operation_metadata=
def instances_bulk_insert_operation_metadata=(value) -> ::Google::Cloud::Compute::V1::InstancesBulkInsertOperationMetadata
#kind
def kind() -> ::String
-
(::String) — [Output Only] Type of the resource. Always
compute#operation
for Operation resources.
#kind=
def kind=(value) -> ::String
-
value (::String) — [Output Only] Type of the resource. Always
compute#operation
for Operation resources.
-
(::String) — [Output Only] Type of the resource. Always
compute#operation
for Operation resources.
#name
def name() -> ::String
- (::String) — [Output Only] Name of the operation.
#name=
def name=(value) -> ::String
- value (::String) — [Output Only] Name of the operation.
- (::String) — [Output Only] Name of the operation.
#operation_group_id
def operation_group_id() -> ::String
-
(::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
-
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.
-
(::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
-
(::String) — [Output Only] The type of operation, such as
insert
,update
, ordelete
, and so on.
#operation_type=
def operation_type=(value) -> ::String
-
value (::String) — [Output Only] The type of operation, such as
insert
,update
, ordelete
, and so on.
-
(::String) — [Output Only] The type of operation, such as
insert
,update
, ordelete
, and so on.
#progress
def progress() -> ::Integer
- (::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
- 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.
- (::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
- (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
#region=
def region=(value) -> ::String
- value (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
- (::String) — [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
#self_link
def self_link() -> ::String
- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String
- value (::String) — [Output Only] Server-defined URL for the resource.
- (::String) — [Output Only] Server-defined URL for the resource.
#set_common_instance_metadata_operation_metadata
def set_common_instance_metadata_operation_metadata() -> ::Google::Cloud::Compute::V1::SetCommonInstanceMetadataOperationMetadata
- (::Google::Cloud::Compute::V1::SetCommonInstanceMetadataOperationMetadata) — [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
#set_common_instance_metadata_operation_metadata=
def set_common_instance_metadata_operation_metadata=(value) -> ::Google::Cloud::Compute::V1::SetCommonInstanceMetadataOperationMetadata
- value (::Google::Cloud::Compute::V1::SetCommonInstanceMetadataOperationMetadata) — [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
- (::Google::Cloud::Compute::V1::SetCommonInstanceMetadataOperationMetadata) — [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state.
#start_time
def start_time() -> ::String
- (::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
- value (::String) — [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
- (::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
-
(::Google::Cloud::Compute::V1::Operation::Status) — [Output Only] The status of the operation, which can be one of the following:
PENDING
,RUNNING
, orDONE
.
#status=
def status=(value) -> ::Google::Cloud::Compute::V1::Operation::Status
-
value (::Google::Cloud::Compute::V1::Operation::Status) — [Output Only] The status of the operation, which can be one of the following:
PENDING
,RUNNING
, orDONE
.
-
(::Google::Cloud::Compute::V1::Operation::Status) — [Output Only] The status of the operation, which can be one of the following:
PENDING
,RUNNING
, orDONE
.
#status_message
def status_message() -> ::String
- (::String) — [Output Only] An optional textual description of the current status of the operation.
#status_message=
def status_message=(value) -> ::String
- value (::String) — [Output Only] An optional textual description of the current status of the operation.
- (::String) — [Output Only] An optional textual description of the current status of the operation.
#target_id
def target_id() -> ::Integer
- (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
#target_id=
def target_id=(value) -> ::Integer
- value (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
- (::Integer) — [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
#target_link
def target_link() -> ::String
- (::String) — [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from.
#target_link=
def target_link=(value) -> ::String
- value (::String) — [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from.
- (::String) — [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from.
#user
def user() -> ::String
-
(::String) — [Output Only] User who requested the operation, for example:
user@example.com
oralice_smith_identifier (global/workforcePools/example-com-us-employees)
.
#user=
def user=(value) -> ::String
-
value (::String) — [Output Only] User who requested the operation, for example:
user@example.com
oralice_smith_identifier (global/workforcePools/example-com-us-employees)
.
-
(::String) — [Output Only] User who requested the operation, for example:
user@example.com
oralice_smith_identifier (global/workforcePools/example-com-us-employees)
.
#warnings
def warnings() -> ::Array<::Google::Cloud::Compute::V1::Warnings>
- (::Array<::Google::Cloud::Compute::V1::Warnings>) — [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
#warnings=
def warnings=(value) -> ::Array<::Google::Cloud::Compute::V1::Warnings>
- value (::Array<::Google::Cloud::Compute::V1::Warnings>) — [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
- (::Array<::Google::Cloud::Compute::V1::Warnings>) — [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
#zone
def zone() -> ::String
- (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
#zone=
def zone=(value) -> ::String
- value (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
- (::String) — [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.