# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.1 0.13.1 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Dataflow V1beta3 API class Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.

REST client for the Messages service.


<br />

The Dataflow Messages API is used to monitor the progress of Dataflow jobs.

## Inherits

- Object

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the Messages Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration "Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all Messages clients
::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the Messages Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client#Google__Cloud__Dataflow__V1beta3__Messages__Rest__Client_configure_class_ "Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration "Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))

### #initialize

    def initialize() { |config| ... } -> Client

Create a new Messages REST client object.
**Yields**

- (config) --- Configure the Messages client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-Messages-Rest-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_job_messages

    def list_job_messages(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>
    def list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>

Request the job status.


<br />

To request the status of a job, we recommend using
`projects.locations.jobs.messages.list` with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.jobs.messages.list` is not recommended, as you can only request
the status of jobs that are running in `us-central1`.
**Overloads**

    def list_job_messages(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>

Pass arguments to `list_job_messages` via a request object, either of type [ListJobMessagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-ListJobMessagesRequest "Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-ListJobMessagesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>

Pass arguments to `list_job_messages` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **project_id** (::String) --- A project id.
- **job_id** (::String) --- The job to get messages about.
- **minimum_importance** ([::Google::Cloud::Dataflow::V1beta3::JobMessageImportance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-JobMessageImportance)) --- Filter to only get messages with importance \>= level
- **page_size** (::Integer) --- If specified, determines the maximum number of messages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of results.
- **page_token** (::String) --- If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned.
- **start_time** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Protobuf-Timestamp), ::Hash) --- If specified, return only messages with timestamps \>= start_time. The default is the job creation time (i.e. beginning of messages).
- **end_time** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Protobuf-Timestamp), ::Hash) --- Return only messages with timestamps \< end_time. The default is now (i.e. return up to the latest messages available).
- **location** (::String) --- The [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::Dataflow::V1beta3::JobMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-JobMessage)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::Dataflow::V1beta3::JobMessage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-JobMessage)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dataflow/v1beta3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new

# Call the list_job_messages method.
result = client.list_job_messages request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage.
  p item
end
```

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)