Class: Google::Apis::BigqueryV2::TableList::Table

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

Defined Under Namespace

Classes: View

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

Returns a new instance of Table



3141
3142
3143
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3141

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

Instance Attribute Details

#creation_timeFixnum

The time when this table was created, in milliseconds since the epoch. Corresponds to the JSON property creationTime

Returns:

  • (Fixnum)


3091
3092
3093
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3091

def creation_time
  @creation_time
end

#expiration_timeFixnum

[Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. Corresponds to the JSON property expirationTime

Returns:

  • (Fixnum)


3098
3099
3100
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3098

def expiration_time
  @expiration_time
end

#friendly_nameString

The user-friendly name for this table. Corresponds to the JSON property friendlyName

Returns:

  • (String)


3103
3104
3105
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3103

def friendly_name
  @friendly_name
end

#idString

An opaque ID of the table Corresponds to the JSON property id

Returns:

  • (String)


3108
3109
3110
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3108

def id
  @id
end

#kindString

The resource type. Corresponds to the JSON property kind

Returns:

  • (String)


3113
3114
3115
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3113

def kind
  @kind
end

#labelsHash<String,String>

[Experimental] The labels associated with this table. You can use these to organize and group your tables. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3119
3120
3121
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3119

def labels
  @labels
end

#table_referenceGoogle::Apis::BigqueryV2::TableReference

A reference uniquely identifying the table. Corresponds to the JSON property tableReference



3124
3125
3126
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3124

def table_reference
  @table_reference
end

#time_partitioningGoogle::Apis::BigqueryV2::TimePartitioning

The time-based partitioning for this table. Corresponds to the JSON property timePartitioning



3129
3130
3131
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3129

def time_partitioning
  @time_partitioning
end

#typeString

The type of table. Possible values are: TABLE, VIEW. Corresponds to the JSON property type

Returns:

  • (String)


3134
3135
3136
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3134

def type
  @type
end

#viewGoogle::Apis::BigqueryV2::TableList::Table::View

Additional details for a view. Corresponds to the JSON property view



3139
3140
3141
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3139

def view
  @view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3146

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @table_reference = args[:table_reference] if args.key?(:table_reference)
  @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
  @type = args[:type] if args.key?(:type)
  @view = args[:view] if args.key?(:view)
end