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::AppProfile::Job.

## Job

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

See [#save](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-AppProfile.md.txt#Google__Cloud__Bigtable__AppProfile_save_instance_ "Google::Cloud::Bigtable::AppProfile#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"
app_profile = instance.app_profile "my-app-profile"

app_profile.description = "User data instance app profile"
routing_policy = Google::Cloud::Bigtable::AppProfile.single_cluster_routing(
  "my-cluster",
  allow_transactional_writes: true
)
app_profile.routing_policy = routing_policy

job = app_profile.save

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

# OR
job.wait_until_done!

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

## Methods

### #app_profile

```ruby
def app_profile() -> Google::Cloud::Bigtable::AppProfile, nil
```
The instance that is the object of the operation.
**Returns**

- ([Google::Cloud::Bigtable::AppProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigtable/latest/Google-Cloud-Bigtable-AppProfile.md.txt), nil) --- The app profile 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"
app_profile = instance.app_profile "my-app-profile"

app_profile.description = "User data instance app profile"
routing_policy = Google::Cloud::Bigtable::AppProfile.single_cluster_routing(
  "my-cluster",
  allow_transactional_writes: true
)
app_profile.routing_policy = routing_policy

job = app_profile.save

job.wait_until_done!

app_profile = job.app_profile
```