Class: Google::Apis::CloudassetV1::BigQueryDestination
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::BigQueryDestination
- 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
-
#dataset ⇒ String
Required.
-
#force ⇒ Boolean
(also: #force?)
If the destination table already exists and this flag is
TRUE
, the table will be overwritten by the contents of assets snapshot. -
#table ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BigQueryDestination
constructor
A new instance of BigQueryDestination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#dataset ⇒ String
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
319 320 321 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 319 def dataset @dataset end |
#force ⇒ Boolean 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
327 328 329 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 327 def force @force end |
#table ⇒ String
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
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 |