#[non_exhaustive]pub struct Link {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub lifecycle_state: LifecycleState,
pub bigquery_dataset: Option<BigQueryDataset>,
/* private fields */
}Expand description
Describes a link connected to an analytics enabled bucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
"folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"For example:
`projects/my-project/locations/global/buckets/my-bucket/links/my_link
description: StringDescribes this link.
The maximum length of the description is 8000 characters.
create_time: Option<Timestamp>Output only. The creation timestamp of the link.
lifecycle_state: LifecycleStateOutput only. The resource lifecycle state.
bigquery_dataset: Option<BigQueryDataset>The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it’s linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.
Implementations§
Source§impl Link
impl Link
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_lifecycle_state<T: Into<LifecycleState>>(self, v: T) -> Self
pub fn set_lifecycle_state<T: Into<LifecycleState>>(self, v: T) -> Self
Sets the value of lifecycle_state.
Sourcepub fn set_bigquery_dataset<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDataset>,
pub fn set_bigquery_dataset<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDataset>,
Sets the value of bigquery_dataset.
Sourcepub fn set_or_clear_bigquery_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryDataset>,
pub fn set_or_clear_bigquery_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryDataset>,
Sets or clears the value of bigquery_dataset.