Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1QueryAssetsOutputConfigBigQueryDestination

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

BigQuery destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1QueryAssetsOutputConfigBigQueryDestination

Returns a new instance of GoogleCloudAssetV1QueryAssetsOutputConfigBigQueryDestination.



2058
2059
2060
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2058

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#datasetString

Required. The BigQuery dataset where the query results will be saved. It has the format of "projects/projectId/datasets/datasetId". Corresponds to the JSON property dataset

Returns:

  • (String)


2039
2040
2041
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2039

def dataset
  @dataset
end

#tableString

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. Corresponds to the JSON property table

Returns:

  • (String)


2045
2046
2047
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2045

def table
  @table
end

#write_dispositionString

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. Corresponds to the JSON property writeDisposition

Returns:

  • (String)


2056
2057
2058
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2056

def write_disposition
  @write_disposition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2063
2064
2065
2066
2067
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2063

def update!(**args)
  @dataset = args[:dataset] if args.key?(:dataset)
  @table = args[:table] if args.key?(:table)
  @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end