Class: Google::Apis::BigqueryV2::DestinationTableProperties

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) ⇒ DestinationTableProperties

Returns a new instance of DestinationTableProperties



660
661
662
# File 'generated/google/apis/bigquery_v2/classes.rb', line 660

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

Instance Attribute Details

#descriptionString

[Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. Corresponds to the JSON property description

Returns:

  • (String)


651
652
653
# File 'generated/google/apis/bigquery_v2/classes.rb', line 651

def description
  @description
end

#friendly_nameString

[Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail. Corresponds to the JSON property friendlyName

Returns:

  • (String)


658
659
660
# File 'generated/google/apis/bigquery_v2/classes.rb', line 658

def friendly_name
  @friendly_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



665
666
667
668
# File 'generated/google/apis/bigquery_v2/classes.rb', line 665

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
end