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 for exporting assets to.

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.


273
274
275
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 273

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)

256
257
258
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 256

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)

264
265
266
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 264

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)

271
272
273
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 271

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


278
279
280
281
282
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 278

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