# Storage Batch Operations V1 API - Class Google::Cloud::StorageBatchOperations::V1::OperationMetadata (v0.10.0)

0.10.0 (latest) 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Storage Batch Operations V1 API class Google::Cloud::StorageBatchOperations::V1::OperationMetadata.

Represents the metadata of the long-running operation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api_version

    def api_version() -> ::String

**Returns**

- (::String) --- Output only. API version used to start the operation.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the operation was created.

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the operation finished running.

### #job

    def job() -> ::Google::Cloud::StorageBatchOperations::V1::Job

**Returns**

- ([::Google::Cloud::StorageBatchOperations::V1::Job](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Cloud-StorageBatchOperations-V1-Job)) --- Output only. The Job associated with the operation.

### #operation

    def operation() -> ::String

**Returns**

- (::String) --- Output only. The unique operation resource name. Format: projects/{project}/locations/global/operations/{operation}.

### #requested_cancellation

    def requested_cancellation() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [google.longrunning.Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_batch_operations-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `[Code.CANCELLED][google.rpc.Code.CANCELLED]`.