# Cloud Functions V2 API - Class Google::Cloud::Functions::V2::OperationMetadata (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API class Google::Cloud::Functions::V2::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) --- API version used to start the operation.

### #api_version=

    def api_version=(value) -> ::String

**Parameter**

- **value** (::String) --- API version used to start the operation.
**Returns**

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

### #build_name

    def build_name() -> ::String

**Returns**

- (::String) --- The build name of the function for create and update operations.

### #build_name=

    def build_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The build name of the function for create and update operations.
**Returns**

- (::String) --- The build name of the function for create and update operations.

### #cancel_requested

    def cancel_requested() -> ::Boolean

**Returns**

- (::Boolean) --- Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/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-functions-v2/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #cancel_requested=

    def cancel_requested=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/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-functions-v2/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.
**Returns**

- (::Boolean) --- Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/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-functions-v2/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #create_time

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

**Returns**

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

### #create_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Timestamp)) --- The time the operation was created.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Timestamp)) --- 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-functions-v2/latest/Google-Protobuf-Timestamp)) --- The time the operation finished running.

### #end_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Timestamp)) --- The time the operation finished running.
**Returns**

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

### #operation_type

    def operation_type() -> ::Google::Cloud::Functions::V2::OperationType

**Returns**

- ([::Google::Cloud::Functions::V2::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-OperationType)) --- The operation type.

### #operation_type=

    def operation_type=(value) -> ::Google::Cloud::Functions::V2::OperationType

**Parameter**

- **value** ([::Google::Cloud::Functions::V2::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-OperationType)) --- The operation type.
**Returns**

- ([::Google::Cloud::Functions::V2::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-OperationType)) --- The operation type.

### #request_resource

    def request_resource() -> ::Google::Protobuf::Any

**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Any)) --- The original request that started the operation.

### #request_resource=

    def request_resource=(value) -> ::Google::Protobuf::Any

**Parameter**

- **value** ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Any)) --- The original request that started the operation.
**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Protobuf-Any)) --- The original request that started the operation.

### #source_token

    def source_token() -> ::String

**Returns**

- (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

### #source_token=

    def source_token=(value) -> ::String

**Parameter**

- **value** (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
**Returns**

- (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

### #stages

    def stages() -> ::Array<::Google::Cloud::Functions::V2::Stage>

**Returns**

- (::Array\<[::Google::Cloud::Functions::V2::Stage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Stage)\>) --- Mechanism for reporting in-progress stages

### #stages=

    def stages=(value) -> ::Array<::Google::Cloud::Functions::V2::Stage>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Functions::V2::Stage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Stage)\>) --- Mechanism for reporting in-progress stages
**Returns**

- (::Array\<[::Google::Cloud::Functions::V2::Stage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v2/latest/Google-Cloud-Functions-V2-Stage)\>) --- Mechanism for reporting in-progress stages

### #status_detail

    def status_detail() -> ::String

**Returns**

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

### #status_detail=

    def status_detail=(value) -> ::String

**Parameter**

- **value** (::String) --- Human-readable status of the operation, if any.
**Returns**

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

### #target

    def target() -> ::String

**Returns**

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

### #target=

    def target=(value) -> ::String

**Parameter**

- **value** (::String) --- Server-defined resource path for the target of the operation.
**Returns**

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

### #verb

    def verb() -> ::String

**Returns**

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

### #verb=

    def verb=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the verb executed by the operation.
**Returns**

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