Class: Google::Apis::CloudassetV1::BigQueryDestination

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

Overview

A BigQuery destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BigQueryDestination

Returns a new instance of BigQueryDestination.



337
338
339
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 337

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

Instance Attribute Details

#datasetString

Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId", to which the snapshot result should be exported. If this dataset does not exist, the export call returns an error. Corresponds to the JSON property dataset

Returns:

  • (String)


319
320
321
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 319

def dataset
  @dataset
end

#forceBoolean Also known as: force?

If the destination table already exists and this flag is TRUE, the table will be overwritten by the contents of assets snapshot. If the flag is not set and the destination table already exists, the export call returns an error. Corresponds to the JSON property force

Returns:

  • (Boolean)


327
328
329
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 327

def force
  @force
end

#tableString

Required. The BigQuery table to which the snapshot result should be written. If this table does not exist, a new table with the given name will be created. Corresponds to the JSON property table

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 335

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



342
343
344
345
346
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 342

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