class Google::Apis::BigqueryV2::Table

Attributes

creation_time[RW]
Output-only

The time when this table was created, in milliseconds since the

epoch. Corresponds to the JSON property `creationTime` @return [String]

description[RW]
Optional

A user-friendly description of this table.

Corresponds to the JSON property `description` @return [String]

etag[RW]
Output-only

A hash of this resource.

Corresponds to the JSON property `etag` @return [String]

expiration_time[RW]
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` @return [String]

external_data_configuration[RW]
Optional

Describes the data format, location, and other properties of a

table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. Corresponds to the JSON property `externalDataConfiguration` @return [Google::Apis::BigqueryV2::ExternalDataConfiguration]

friendly_name[RW]
Optional

A descriptive name for this table.

Corresponds to the JSON property `friendlyName` @return [String]

id[RW]
Output-only

An opaque ID uniquely identifying the table.

Corresponds to the JSON property `id` @return [String]

kind[RW]
Output-only

The type of the resource.

Corresponds to the JSON property `kind` @return [String]

last_modified_time[RW]
Output-only

The time when this table was last modified, in milliseconds

since the epoch. Corresponds to the JSON property `lastModifiedTime` @return [String]

location[RW]
Output-only

The geographic location where the table resides. This value is

inherited from the dataset. Corresponds to the JSON property `location` @return [String]

num_bytes[RW]
Output-only

The size of this table in bytes, excluding any data in the

streaming buffer. Corresponds to the JSON property `numBytes` @return [String]

num_rows[RW]
Output-only

The number of rows of data in this table, excluding any data in

the streaming buffer. Corresponds to the JSON property `numRows` @return [String]

partition_configurations[RW]
Experimental

List of partition configurations for this table. Currently only

one configuration can be specified and it can only be an interval partition with type daily. Corresponds to the JSON property `partitionConfigurations` @return [Array<Google::Apis::BigqueryV2::TablePartitionConfiguration>]

schema[RW]
Optional

Describes the schema of this table.

Corresponds to the JSON property `schema` @return [Google::Apis::BigqueryV2::TableSchema]

streaming_buffer[RW]
Output-only

Contains information regarding this table's streaming buffer, if

one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer. Corresponds to the JSON property `streamingBuffer` @return [Google::Apis::BigqueryV2::Streamingbuffer]

table_reference[RW]
Required

Reference describing the ID of this table.

Corresponds to the JSON property `tableReference` @return [Google::Apis::BigqueryV2::TableReference]

type[RW]
Output-only

Describes the table type. The following values are supported:

TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE. Corresponds to the JSON property `type` @return [String]

view[RW]
Optional

The view definition.

Corresponds to the JSON property `view` @return [Google::Apis::BigqueryV2::ViewDefinition]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/bigquery_v2/classes.rb, line 2243
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/bigquery_v2/classes.rb, line 2248
def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @external_data_configuration = args[:external_data_configuration] if args.key?(:external_data_configuration)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @location = args[:location] if args.key?(:location)
  @num_bytes = args[:num_bytes] if args.key?(:num_bytes)
  @num_rows = args[:num_rows] if args.key?(:num_rows)
  @partition_configurations = args[:partition_configurations] if args.key?(:partition_configurations)
  @schema = args[:schema] if args.key?(:schema)
  @self_link = args[:self_link] if args.key?(:self_link)
  @streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer)
  @table_reference = args[:table_reference] if args.key?(:table_reference)
  @type = args[:type] if args.key?(:type)
  @view = args[:view] if args.key?(:view)
end