# AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::OperationMetadata (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::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.

### #batch_create_instances_metadata

    def batch_create_instances_metadata() -> ::Google::Cloud::AlloyDB::V1alpha::BatchCreateInstancesMetadata

**Returns**

- ([::Google::Cloud::AlloyDB::V1alpha::BatchCreateInstancesMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-BatchCreateInstancesMetadata)) --- Output only. BatchCreateInstances related metadata.


  Note: The following fields are mutually exclusive: `batch_create_instances_metadata`, `promote_cluster_status`, `upgrade_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #create_time

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

**Returns**

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

### #promote_cluster_status

    def promote_cluster_status() -> ::Google::Cloud::AlloyDB::V1alpha::PromoteClusterStatus

**Returns**

- ([::Google::Cloud::AlloyDB::V1alpha::PromoteClusterStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-PromoteClusterStatus)) --- Output only. PromoteClusterStatus related metadata.


  Note: The following fields are mutually exclusive: `promote_cluster_status`, `batch_create_instances_metadata`, `upgrade_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #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 [google.longrunning.Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/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-alloy_db-v1alpha/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.

### #upgrade_cluster_status

    def upgrade_cluster_status() -> ::Google::Cloud::AlloyDB::V1alpha::UpgradeClusterStatus

**Returns**

- ([::Google::Cloud::AlloyDB::V1alpha::UpgradeClusterStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-UpgradeClusterStatus)) --- Output only. UpgradeClusterStatus related metadata.


  Note: The following fields are mutually exclusive: `upgrade_cluster_status`, `batch_create_instances_metadata`, `promote_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #verb

    def verb() -> ::String

**Returns**

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