Class: Google::Apis::BigqueryV2::JobConfigurationTableCopy
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::JobConfigurationTableCopy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#create_disposition ⇒ String
[Optional] Specifies whether the job is allowed to create new tables.
-
#destination_encryption_configuration ⇒ Google::Apis::BigqueryV2::EncryptionConfiguration
[Experimental] Custom encryption configuration (e.g., Cloud KMS keys).
-
#destination_table ⇒ Google::Apis::BigqueryV2::TableReference
[Required] The destination table Corresponds to the JSON property
destinationTable
. -
#source_table ⇒ Google::Apis::BigqueryV2::TableReference
[Pick one] Source table to copy.
-
#source_tables ⇒ Array<Google::Apis::BigqueryV2::TableReference>
[Pick one] Source tables to copy.
-
#write_disposition ⇒ String
[Optional] Specifies the action that occurs if the destination table already exists.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobConfigurationTableCopy
constructor
A new instance of JobConfigurationTableCopy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ JobConfigurationTableCopy
Returns a new instance of JobConfigurationTableCopy
1727 1728 1729 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_disposition ⇒ String
[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
1693 1694 1695 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1693 def create_disposition @create_disposition end |
#destination_encryption_configuration ⇒ Google::Apis::BigqueryV2::EncryptionConfiguration
[Experimental] Custom encryption configuration (e.g., Cloud KMS keys).
Corresponds to the JSON property destinationEncryptionConfiguration
1698 1699 1700 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1698 def destination_encryption_configuration @destination_encryption_configuration end |
#destination_table ⇒ Google::Apis::BigqueryV2::TableReference
[Required] The destination table
Corresponds to the JSON property destinationTable
1703 1704 1705 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1703 def destination_table @destination_table end |
#source_table ⇒ Google::Apis::BigqueryV2::TableReference
[Pick one] Source table to copy.
Corresponds to the JSON property sourceTable
1708 1709 1710 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1708 def source_table @source_table end |
#source_tables ⇒ Array<Google::Apis::BigqueryV2::TableReference>
[Pick one] Source tables to copy.
Corresponds to the JSON property sourceTables
1713 1714 1715 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1713 def source_tables @source_tables end |
#write_disposition ⇒ String
[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
1725 1726 1727 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1725 def write_disposition @write_disposition end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1732 1733 1734 1735 1736 1737 1738 1739 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1732 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_table = args[:destination_table] if args.key?(:destination_table) @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 |