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.



2077
2078
2079
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2077

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)


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

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)


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

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)


2075
2076
2077
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2075

def write_disposition
  @write_disposition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2082
2083
2084
2085
2086
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2082

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