2.13.2 (latest) 2.13.1 2.12.3 2.11.1 2.10.2 2.9.1 2.8.0 2.7.1 2.6.5 Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::Cluster::Job.

## Job

A resource representing the long-running, asynchronous processing of
an cluster create or update operation. The job can be refreshed to
retrieve the cluster object once the operation has been completed.

See [Instance#create_cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-Instance.md.txt#Google__Cloud__Bigtable__Instance_create_cluster_instance_ "Google::Cloud::Bigtable::Instance#create_cluster (method)") and [#save](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-Cluster.md.txt#Google__Cloud__Bigtable__Cluster_save_instance_ "Google::Cloud::Bigtable::Cluster#save (method)").

## Inherits

- [Google::Cloud::Bigtable::LongrunningJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-LongrunningJob.md.txt)

## Example

```ruby
require "google/cloud/bigtable"

bigtable = Google::Cloud::Bigtable.new

instance = bigtable.instance "my-instance"
job = instance.create_cluster(
  "my-new-cluster",
  "us-east-1b",
  nodes: 3,
  storage_type: :SSD
)

job.done? #=> false
job.reload! # API call
job.done? #=> true

# OR wail until  complete
job.wait_until_done!

if job.error?
  status = job.error
else
  cluster = job.cluster
end
```

## Methods

### #cluster

```ruby
def cluster() -> Google::Cloud::Bigtable::Cluster, nil
```
Gets the cluster object from job results
**Returns**

- ([Google::Cloud::Bigtable::Cluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-Cluster.md.txt), nil) --- The cluster instance, or `nil` if the operation is not complete.
**Example**

```ruby
require "google/cloud/bigtable"

bigtable = Google::Cloud::Bigtable.new

instance = bigtable.instance "my-instance"
job = instance.create_cluster(
  "my-new-cluster",
  "us-east-1b",
  nodes: 3,
  storage_type: :SSD
)

job.wait_until_done!
cluster = job.cluster
```