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.



349
350
351
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 349

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 INVALID_ARGUMENT error. Corresponds to the JSON property dataset

Returns:

  • (String)


331
332
333
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 331

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 FALSE or unset and the destination table already exists, the export call returns an INVALID_ARGUMEMT error. Corresponds to the JSON property force

Returns:

  • (Boolean)


339
340
341
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 339

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)


347
348
349
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 347

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
357
358
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 354

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