class Google::Apis::BigqueryV2::JobConfigurationTableCopy
Attributes
- Optional
-
Specifies whether the job is allowed to create new tables. The
following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. Corresponds to the JSON property `createDisposition` @return [String]
Custom encryption configuration (e.g., Cloud KMS keys). Corresponds to the JSON property `destinationEncryptionConfiguration` @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
- Optional
-
The time when the destination table expires. Expired tables will be
deleted and their storage reclaimed. Corresponds to the JSON property `destinationExpirationTime` @return [Object]
- Required
-
The destination table
Corresponds to the JSON property `destinationTable` @return [Google::Apis::BigqueryV2::TableReference]
- Optional
-
Supported operation types in table copy job.
Corresponds to the JSON property `operationType` @return [String]
- Pick one
-
Source table to copy.
Corresponds to the JSON property `sourceTable` @return [Google::Apis::BigqueryV2::TableReference]
- Pick one
-
Source tables to copy.
Corresponds to the JSON property `sourceTables` @return [Array<Google::Apis::BigqueryV2::TableReference>]
- Optional
-
Specifies the action that occurs if the destination table already
exists. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. Corresponds to the JSON property `writeDisposition` @return [String]
Public Class Methods
# File lib/google/apis/bigquery_v2/classes.rb, line 3694 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/bigquery_v2/classes.rb, line 3699 def update!(**args) @create_disposition = args[:create_disposition] if args.key?(:create_disposition) @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration) @destination_expiration_time = args[:destination_expiration_time] if args.key?(:destination_expiration_time) @destination_table = args[:destination_table] if args.key?(:destination_table) @operation_type = args[:operation_type] if args.key?(:operation_type) @source_table = args[:source_table] if args.key?(:source_table) @source_tables = args[:source_tables] if args.key?(:source_tables) @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end