public static class DatasetExtensions
Reference documentation and code samples for the Google BigQuery v2 API class DatasetExtensions.
Extension methods for making it easier to work with Google.Apis.Bigquery.v2.Data.Dataset
Namespace
Google.Cloud.BigQuery.V2Assembly
Google.Cloud.BigQuery.V2.dll
Methods
GetDefaultPartitionExpiration(Dataset)
public static TimeSpan? GetDefaultPartitionExpiration(this Dataset dataset)
Gets the default partition expiration period for all partitioned tables created in the dataset. Partitioned tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by Google.Apis.Bigquery.v2.Data.Table.ExpirationTime. For partitioned tables, this values has priority over Google.Apis.Bigquery.v2.Data.Dataset.DefaultTableExpirationMs.
Parameter | |
---|---|
Name | Description |
dataset | Google.Apis.Bigquery.v2.Data.Dataset The dataset for which to set the expiration for. Must not be null. |
Returns | |
---|---|
Type | Description |
Nullable<TimeSpan> |
GetDefaultTableExpiration(Dataset)
public static TimeSpan? GetDefaultTableExpiration(this Dataset dataset)
Gets the default expiration period for tables created in this dataset. Tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by Google.Apis.Bigquery.v2.Data.Table.ExpirationTime.
Parameter | |
---|---|
Name | Description |
dataset | Google.Apis.Bigquery.v2.Data.Dataset The dataset for which to set the expiration for. Must not be null. |
Returns | |
---|---|
Type | Description |
Nullable<TimeSpan> |
SetDefaultPartitionExpiration(Dataset, Nullable<TimeSpan>)
public static Dataset SetDefaultPartitionExpiration(this Dataset dataset, TimeSpan? expiration)
Gets the default partition expiration period for all partitioned tables created in the dataset. Partitioned tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by Google.Apis.Bigquery.v2.Data.Table.ExpirationTime. For partitioned tables, this values has priority over Google.Apis.Bigquery.v2.Data.Dataset.DefaultTableExpirationMs.
Parameters | |
---|---|
Name | Description |
dataset | Google.Apis.Bigquery.v2.Data.Dataset The dataset for which to set the expiration for. Must not be null. |
expiration | Nullable<TimeSpan> The new expiration to be set. |
Returns | |
---|---|
Type | Description |
Google.Apis.Bigquery.v2.Data.Dataset | The same dataset on which the change was made. To facilitate method chaining. |
SetDefaultTableExpiration(Dataset, Nullable<TimeSpan>)
public static Dataset SetDefaultTableExpiration(this Dataset dataset, TimeSpan? expiration)
Sets the default expiration period for tables created in this dataset. Tables will (by default) be automatically deleted this long after they are created, unless otherwise specified, such as by Google.Apis.Bigquery.v2.Data.Table.ExpirationTime.
Parameters | |
---|---|
Name | Description |
dataset | Google.Apis.Bigquery.v2.Data.Dataset The dataset for which to set the expiration for. Must not be null. |
expiration | Nullable<TimeSpan> The new expiration to be set. |
Returns | |
---|---|
Type | Description |
Google.Apis.Bigquery.v2.Data.Dataset | The same dataset on which the change was made. To facilitate method chaining. |