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.
335 336 337 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 335 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
317 318 319 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 317 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
325 326 327 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 325 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
333 334 335 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 333 def table @table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 343 344 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 340 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 |