Class BigQuery.DatasetOption (2.46.0)

public static class BigQuery.DatasetOption extends Option

Class for specifying dataset get, create and update options.

Inheritance

Object > com.google.cloud.bigquery.Option > BigQuery.DatasetOption

Static Methods

accessPolicyVersion(Integer accessPolicyVersion)

public static BigQuery.DatasetOption accessPolicyVersion(Integer accessPolicyVersion)

Returns an option to specify the dataset's access policy version for conditional access. If this option is not provided the field remains unset and conditional access cannot be used. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for conditional access policy binding in datasets must specify version 3. Datasets with no conditional role bindings in access policy may specify any valid value or leave the field unset. This field will be mapped to IAM Policy version and will be used to fetch the policy from IAM. If unset or if 0 or 1 the value is used for a dataset with conditional bindings, access entry with condition will have role string appended by 'withcond' string followed by a hash value. Please refer to Troubleshooting withcond for more details.

Parameter
Name Description
accessPolicyVersion Integer
Returns
Type Description
BigQuery.DatasetOption

fields(BigQuery.DatasetField[] fields)

public static BigQuery.DatasetOption fields(BigQuery.DatasetField[] fields)

Returns an option to specify the dataset's fields to be returned by the RPC call. If this option is not provided all dataset's fields are returned. DatasetOption.fields can be used to specify only the fields of interest. Dataset#getDatasetId() is always returned, even if not specified.

Parameter
Name Description
fields DatasetField[]
Returns
Type Description
BigQuery.DatasetOption