# Cloud Gaming V1 API - Class Google::Cloud::Gaming::V1::OperationMetadata (v0.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.7.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/latest/Google-Cloud-Gaming-V1-OperationMetadata)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.6.0/Google-Cloud-Gaming-V1-OperationMetadata)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.5.0/Google-Cloud-Gaming-V1-OperationMetadata)
- [0.4.4](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gaming-v1/0.4.4/Google-Cloud-Gaming-V1-OperationMetadata)
Reference documentation and code samples for the Cloud Gaming V1 API class Google::Cloud::Gaming::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-gaming-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-gaming-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time the operation finished running.

### #operation_status

    def operation_status() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Gaming::V1::OperationStatus}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Gaming::V1::OperationStatus}) --- Output only. Operation status for Game Services API operations. Operation status is in the form of key-value pairs where keys are resource IDs and the values show the status of the operation. In case of failures, the value includes an error code and error message.

### #requested_cancellation

    def requested_cancellation() -> ::Boolean

**Returns**

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

### #status_message

    def status_message() -> ::String

**Returns**

- (::String) --- Output only. Human-readable status of the operation, if any.

### #target

    def target() -> ::String

**Returns**

- (::String) --- Output only. Server-defined resource path for the target of the operation.

### #unreachable

    def unreachable() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. List of Locations that could not be reached.

### #verb

    def verb() -> ::String

**Returns**

- (::String) --- Output only. Name of the verb executed by the operation.