Struct google_cloud_bigquery::http::dataset::Dataset
source · pub struct Dataset {Show 22 fields
pub kind: String,
pub etag: String,
pub id: String,
pub self_link: String,
pub dataset_reference: DatasetReference,
pub friendly_name: Option<String>,
pub description: Option<String>,
pub default_table_expiration_ms: Option<i64>,
pub default_partition_expiration_ms: Option<i64>,
pub labels: Option<HashMap<String, String>>,
pub access: Vec<Access>,
pub creation_time: i64,
pub last_modified_time: i64,
pub location: String,
pub default_encryption_configuration: Option<EncryptionConfiguration>,
pub satisfies_pzs: Option<bool>,
pub linked_dataset_source: Option<LinkedDatasetSource>,
pub is_case_insensitive: Option<bool>,
pub default_collation: Option<Collation>,
pub max_time_travel_hours: Option<i64>,
pub tags: Option<Vec<GcpTag>>,
pub storage_billing_model: Option<StorageBillingModel>,
}Fields§
§kind: StringOutput only. The resource type.
etag: StringOutput only. A hash of the resource.
id: StringOutput only. The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
self_link: StringOutput only. A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
dataset_reference: DatasetReferenceRequired. A reference that identifies the dataset.
friendly_name: Option<String>Optional. A descriptive name for the dataset.
description: Option<String>Optional. Optional. A user-friendly description of the dataset.
default_table_expiration_ms: Option<i64>Optional. The default lifetime of all tables in the dataset, in milliseconds. The minimum lifetime value is 3600000 milliseconds (one hour). To clear an existing default expiration with a PATCH request, set to 0. Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table’s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
default_partition_expiration_ms: Option<i64>This default partition expiration, expressed in milliseconds.
When new time-partitioned tables are created in a dataset where this property is set, the table will inherit this value, propagated as the TimePartitioning.expirationMs property on the new table. If you set TimePartitioning.expirationMs explicitly when creating a table, the defaultPartitionExpirationMs of the containing dataset is ignored.
When creating a partitioned table, if defaultPartitionExpirationMs is set, the defaultTableExpirationMs value is ignored and the table will not be inherit a table expiration deadline.
labels: Option<HashMap<String, String>>The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
access: Vec<Access>Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
creation_time: i64Output only. The time when this dataset was created, in milliseconds since the epoch.
last_modified_time: i64Output only. The date when this dataset was last modified, in milliseconds since the epoch.
location: StringThe geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.
default_encryption_configuration: Option<EncryptionConfiguration>The default encryption key for all tables in the dataset. Once this property is set, all newly-created partitioned tables in the dataset will have encryption key set to this value, unless table creation request (or query) overrides the key.
satisfies_pzs: Option<bool>Output only. Reserved for future use.
linked_dataset_source: Option<LinkedDatasetSource>Optional. The source when the dataset is of type LINKED.
is_case_insensitive: Option<bool>Optional. TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. By default, this is FALSE, which means the dataset and its table names are case-sensitive. This field does not affect routine references.
default_collation: Option<Collation>Optional. Defines the default collation specification of future tables created in the dataset. If a table is created in this dataset without table-level default collation, then the table inherits the dataset default collation, which is applied to the string fields that do not have explicit collation specified. A change to this field affects only tables created afterwards, and does not alter the existing tables. The following values are supported:
‘und:ci’: undetermined locale, case insensitive. ‘’: empty string. Default to case-sensitive behavior.
max_time_travel_hours: Option<i64>Optional. Defines the time travel window in hours. The value can be from 48 to 168 hours (2 to 7 days). The default value is 168 hours if this is not set.
Output only. Tags for the Dataset.
storage_billing_model: Option<StorageBillingModel>Optional. Updates storageBillingModel for the dataset.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dataset
impl<'de> Deserialize<'de> for Dataset
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for Dataset
impl PartialEq for Dataset
impl Eq for Dataset
impl StructuralPartialEq for Dataset
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request