Class: Google::Apis::BigqueryV2::JobConfigurationTableCopy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JobConfigurationTableCopy

Returns a new instance of JobConfigurationTableCopy.


3336
3337
3338
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3336

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_dispositionString

[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

Returns:

  • (String)

3291
3292
3293
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3291

def create_disposition
  @create_disposition
end

#destination_encryption_configurationGoogle::Apis::BigqueryV2::EncryptionConfiguration

Custom encryption configuration (e.g., Cloud KMS keys). Corresponds to the JSON property destinationEncryptionConfiguration


3296
3297
3298
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3296

def destination_encryption_configuration
  @destination_encryption_configuration
end

#destination_expiration_timeObject

[Optional] The time when the destination table expires. Expired tables will be deleted and their storage reclaimed. Corresponds to the JSON property destinationExpirationTime

Returns:

  • (Object)

3302
3303
3304
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3302

def destination_expiration_time
  @destination_expiration_time
end

#destination_tableGoogle::Apis::BigqueryV2::TableReference

[Required] The destination table Corresponds to the JSON property destinationTable


3307
3308
3309
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3307

def destination_table
  @destination_table
end

#operation_typeString

[Optional] Supported operation types in table copy job. Corresponds to the JSON property operationType

Returns:

  • (String)

3312
3313
3314
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3312

def operation_type
  @operation_type
end

#source_tableGoogle::Apis::BigqueryV2::TableReference

[Pick one] Source table to copy. Corresponds to the JSON property sourceTable


3317
3318
3319
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3317

def source_table
  @source_table
end

#source_tablesArray<Google::Apis::BigqueryV2::TableReference>

[Pick one] Source tables to copy. Corresponds to the JSON property sourceTables


3322
3323
3324
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3322

def source_tables
  @source_tables
end

#write_dispositionString

[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

Returns:

  • (String)

3334
3335
3336
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3334

def write_disposition
  @write_disposition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3341

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