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

Constructor Details

#initialize(**args) ⇒ DestinationTableProperties

Returns a new instance of DestinationTableProperties.



1718
1719
1720
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1718

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)


1701
1702
1703
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1701

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)


1708
1709
1710
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1708

def friendly_name
  @friendly_name
end

#labelsHash<String,String>

[Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1716
1717
1718
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1716

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1723
1724
1725
1726
1727
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1723

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