1.9.1 (latest) 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::QueryAssetsRequest.

QueryAssets request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #job_reference

    def job_reference() -> ::String

**Returns**

- (::String) --- Optional. Reference to the query job, which is from the `QueryAssetsResponse` of previous `QueryAssets` call.


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

### #job_reference=

    def job_reference=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Reference to the query job, which is from the `QueryAssetsResponse` of previous `QueryAssets` call.


  Note: The following fields are mutually exclusive: `job_reference`, `statement`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. Reference to the query job, which is from the `QueryAssetsResponse` of previous `QueryAssets` call.


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

### #output_config

    def output_config() -> ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig

**Returns**

- ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryAssetsOutputConfig)) --- Optional. Destination where the query results will be saved.


  When this field is specified, the query results won't be saved in the
  \[QueryAssetsResponse.query_result\]. Instead
  \[QueryAssetsResponse.output_config\] will be set.

  Meanwhile, \[QueryAssetsResponse.job_reference\] will be set and can be used
  to check the status of the query job when passed to a following
  \[QueryAssets\] API call.

### #output_config=

    def output_config=(value) -> ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryAssetsOutputConfig)) --- Optional. Destination where the query results will be saved.


  When this field is specified, the query results won't be saved in the
  \[QueryAssetsResponse.query_result\]. Instead
  \[QueryAssetsResponse.output_config\] will be set.

  Meanwhile, \[QueryAssetsResponse.job_reference\] will be set and can be used
  to check the status of the query job when passed to a following
  \[QueryAssets\] API call.
**Returns**

- ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryAssetsOutputConfig)) --- Optional. Destination where the query results will be saved.


  When this field is specified, the query results won't be saved in the
  \[QueryAssetsResponse.query_result\]. Instead
  \[QueryAssetsResponse.output_config\] will be set.

  Meanwhile, \[QueryAssetsResponse.job_reference\] will be set and can be used
  to check the status of the query job when passed to a following
  \[QueryAssets\] API call.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. The maximum number of rows to return in the results. Responses are limited to 10 MB and 1000 rows.

  By default, the maximum row count is 1000. When the byte or row count limit
  is reached, the rest of the query results will be paginated.

  The field will be ignored when \[output_config\] is specified.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. The maximum number of rows to return in the results. Responses are limited to 10 MB and 1000 rows.


  By default, the maximum row count is 1000. When the byte or row count limit
  is reached, the rest of the query results will be paginated.

  The field will be ignored when \[output_config\] is specified.
**Returns**

- (::Integer) --- Optional. The maximum number of rows to return in the results. Responses are limited to 10 MB and 1000 rows.

  By default, the maximum row count is 1000. When the byte or row count limit
  is reached, the rest of the query results will be paginated.

  The field will be ignored when \[output_config\] is specified.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. A page token received from previous `QueryAssets`.


  The field will be ignored when \[output_config\] is specified.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A page token received from previous `QueryAssets`.


  The field will be ignored when \[output_config\] is specified.
**Returns**

- (::String) --- Optional. A page token received from previous `QueryAssets`.


  The field will be ignored when \[output_config\] is specified.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").

  Only assets belonging to the `parent` will be returned.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").


  Only assets belonging to the `parent` will be returned.
**Returns**

- (::String) --- Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").

  Only assets belonging to the `parent` will be returned.

### #read_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Queries cloud assets as they appeared at the specified point in time.


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

### #read_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Queries cloud assets as they appeared at the specified point in time.


  Note: The following fields are mutually exclusive: `read_time`, `read_time_window`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Queries cloud assets as they appeared at the specified point in time.


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

### #read_time_window

    def read_time_window() -> ::Google::Cloud::Asset::V1::TimeWindow

**Returns**

- ([::Google::Cloud::Asset::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-TimeWindow)) --- Optional. \[start_time\] is required. \[start_time\] must be less than \[end_time\] Defaults \[end_time\] to now if \[start_time\] is set and \[end_time\] isn't. Maximum permitted time range is 7 days.


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

### #read_time_window=

    def read_time_window=(value) -> ::Google::Cloud::Asset::V1::TimeWindow

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-TimeWindow)) --- Optional. \[start_time\] is required. \[start_time\] must be less than \[end_time\] Defaults \[end_time\] to now if \[start_time\] is set and \[end_time\] isn't. Maximum permitted time range is 7 days.


  Note: The following fields are mutually exclusive: `read_time_window`, `read_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Asset::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-TimeWindow)) --- Optional. \[start_time\] is required. \[start_time\] must be less than \[end_time\] Defaults \[end_time\] to now if \[start_time\] is set and \[end_time\] isn't. Maximum permitted time range is 7 days.


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

### #statement

    def statement() -> ::String

**Returns**

- (::String) --- Optional. A SQL statement that's compatible with [BigQuery
  SQL](https://cloud.google.com/bigquery/docs/introduction-sql).


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

### #statement=

    def statement=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A SQL statement that's compatible with [BigQuery
  SQL](https://cloud.google.com/bigquery/docs/introduction-sql).


  Note: The following fields are mutually exclusive: `statement`, `job_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. A SQL statement that's compatible with [BigQuery
  SQL](https://cloud.google.com/bigquery/docs/introduction-sql).


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

### #timeout

    def timeout() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Duration)) --- Optional. Specifies the maximum amount of time that the client is willing to wait for the query to complete. By default, this limit is 5 min for the first query, and 1 minute for the following queries. If the query is complete, the `done` field in the `QueryAssetsResponse` is true, otherwise false.


  Like BigQuery [jobs.query
  API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
  The call is not guaranteed to wait for the specified timeout; it typically
  returns after around 200 seconds (200,000 milliseconds), even if the query
  is not complete.

  The field will be ignored when \[output_config\] is specified.

### #timeout=

    def timeout=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Duration)) --- Optional. Specifies the maximum amount of time that the client is willing to wait for the query to complete. By default, this limit is 5 min for the first query, and 1 minute for the following queries. If the query is complete, the `done` field in the `QueryAssetsResponse` is true, otherwise false.


  Like BigQuery [jobs.query
  API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
  The call is not guaranteed to wait for the specified timeout; it typically
  returns after around 200 seconds (200,000 milliseconds), even if the query
  is not complete.

  The field will be ignored when \[output_config\] is specified.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Duration)) --- Optional. Specifies the maximum amount of time that the client is willing to wait for the query to complete. By default, this limit is 5 min for the first query, and 1 minute for the following queries. If the query is complete, the `done` field in the `QueryAssetsResponse` is true, otherwise false.


  Like BigQuery [jobs.query
  API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
  The call is not guaranteed to wait for the specified timeout; it typically
  returns after around 200 seconds (200,000 milliseconds), even if the query
  is not complete.

  The field will be ignored when \[output_config\] is specified.