Cloud Asset V1 API - Class Google::Cloud::Asset::V1::QueryAssetsOutputConfig::BigQueryDestination (v1.1.0)

Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::QueryAssetsOutputConfig::BigQueryDestination.

BigQuery destination.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dataset

def dataset() -> ::String
Returns
  • (::String) — Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

#dataset=

def dataset=(value) -> ::String
Parameter
  • value (::String) — Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".
Returns
  • (::String) — Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/{projectId}/datasets/{datasetId}".

#table

def table() -> ::String
Returns
  • (::String) — Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

#table=

def table=(value) -> ::String
Parameter
  • value (::String) — Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.
Returns
  • (::String) — Required. The BigQuery table where the query results will be saved. If this table does not exist, a new table with the given name will be created.

#write_disposition

def write_disposition() -> ::String
Returns
  • (::String) — Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

    • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
    • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
    • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

#write_disposition=

def write_disposition=(value) -> ::String
Parameter
  • value (::String) — Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

    • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
    • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
    • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.

Returns
  • (::String) — Specifies the action that occurs if the destination table or partition already exists. The following values are supported:

    • WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
    • WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
    • WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

    The default value is WRITE_EMPTY.