Google BigQuery v2 API - Class TableExtensions (3.9.0)

public static class TableExtensions

Reference documentation and code samples for the Google BigQuery v2 API class TableExtensions.

Extension methods for making it easier to work with Table

Inheritance

object > TableExtensions

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

GetExpirationTime(Table)

public static DateTimeOffset? GetExpirationTime(this Table table)

Gets the time at which this table expires, at which point it will be deleted.

Parameter
Name Description
table Table

The table for which to set the expiration for. Must not be null.

Returns
Type Description
DateTimeOffset

SetExpirationTime(Table, DateTimeOffset?)

public static Table SetExpirationTime(this Table table, DateTimeOffset? expiration)

Sets the time at which this table expires, at which point it will be deleted. If this is not set and the dataset does not have a default expiration period, the table will persist until it is deleted.

Parameters
Name Description
table Table

The table for which to set the expiration for. Must not be null.

expiration DateTimeOffset

The new expiration to be set.

Returns
Type Description
Table

The same table on which the change was made. To facilitate method chaining.