#[non_exhaustive]pub struct BigQueryDatasetSource {
pub dataset: String,
pub selected_resources: Vec<SelectedResource>,
pub restricted_export_policy: Option<RestrictedExportPolicy>,
pub replica_locations: Vec<String>,
pub effective_replicas: Vec<Replica>,
/* private fields */
}Expand description
A reference to a shared dataset. It is an existing BigQuery dataset with a collection of objects such as tables and views that you want to share with subscribers. When subscriber’s subscribe to a listing, Analytics Hub creates a linked dataset in the subscriber’s project. A Linked dataset is an opaque, read-only BigQuery dataset that serves as a symbolic link to a shared dataset.
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.dataset: StringOptional. Resource name of the dataset source for this listing.
e.g. projects/myproject/datasets/123
selected_resources: Vec<SelectedResource>Optional. Resource in this dataset that is selectively shared. This field is required for data clean room exchanges.
restricted_export_policy: Option<RestrictedExportPolicy>Optional. If set, restricted export policy will be propagated and enforced on the linked dataset.
replica_locations: Vec<String>Optional. A list of regions where the publisher has created shared dataset replicas.
effective_replicas: Vec<Replica>Output only. Server-owned effective state of replicas. Contains both primary and secondary replicas. Each replica includes a system-computed (output-only) state and primary designation.
Implementations§
Source§impl BigQueryDatasetSource
impl BigQueryDatasetSource
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_selected_resources<T, V>(self, v: T) -> Self
pub fn set_selected_resources<T, V>(self, v: T) -> Self
Sets the value of selected_resources.
§Example
use google_cloud_bigquery_analyticshub_v1::model::listing::big_query_dataset_source::SelectedResource;
let x = BigQueryDatasetSource::new()
.set_selected_resources([
SelectedResource::default()/* use setters */,
SelectedResource::default()/* use (different) setters */,
]);Sourcepub fn set_restricted_export_policy<T>(self, v: T) -> Selfwhere
T: Into<RestrictedExportPolicy>,
pub fn set_restricted_export_policy<T>(self, v: T) -> Selfwhere
T: Into<RestrictedExportPolicy>,
Sets the value of restricted_export_policy.
§Example
use google_cloud_bigquery_analyticshub_v1::model::listing::big_query_dataset_source::RestrictedExportPolicy;
let x = BigQueryDatasetSource::new().set_restricted_export_policy(RestrictedExportPolicy::default()/* use setters */);Sourcepub fn set_or_clear_restricted_export_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<RestrictedExportPolicy>,
pub fn set_or_clear_restricted_export_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<RestrictedExportPolicy>,
Sets or clears the value of restricted_export_policy.
§Example
use google_cloud_bigquery_analyticshub_v1::model::listing::big_query_dataset_source::RestrictedExportPolicy;
let x = BigQueryDatasetSource::new().set_or_clear_restricted_export_policy(Some(RestrictedExportPolicy::default()/* use setters */));
let x = BigQueryDatasetSource::new().set_or_clear_restricted_export_policy(None::<RestrictedExportPolicy>);Sourcepub fn set_replica_locations<T, V>(self, v: T) -> Self
pub fn set_replica_locations<T, V>(self, v: T) -> Self
Sets the value of replica_locations.
§Example
let x = BigQueryDatasetSource::new().set_replica_locations(["a", "b", "c"]);Sourcepub fn set_effective_replicas<T, V>(self, v: T) -> Self
pub fn set_effective_replicas<T, V>(self, v: T) -> Self
Sets the value of effective_replicas.
§Example
use google_cloud_bigquery_analyticshub_v1::model::listing::big_query_dataset_source::Replica;
let x = BigQueryDatasetSource::new()
.set_effective_replicas([
Replica::default()/* use setters */,
Replica::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for BigQueryDatasetSource
impl Clone for BigQueryDatasetSource
Source§fn clone(&self) -> BigQueryDatasetSource
fn clone(&self) -> BigQueryDatasetSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BigQueryDatasetSource
impl Debug for BigQueryDatasetSource
Source§impl Default for BigQueryDatasetSource
impl Default for BigQueryDatasetSource
Source§fn default() -> BigQueryDatasetSource
fn default() -> BigQueryDatasetSource
Source§impl Message for BigQueryDatasetSource
impl Message for BigQueryDatasetSource
Source§impl PartialEq for BigQueryDatasetSource
impl PartialEq for BigQueryDatasetSource
impl StructuralPartialEq for BigQueryDatasetSource
Auto Trait Implementations§
impl Freeze for BigQueryDatasetSource
impl RefUnwindSafe for BigQueryDatasetSource
impl Send for BigQueryDatasetSource
impl Sync for BigQueryDatasetSource
impl Unpin for BigQueryDatasetSource
impl UnsafeUnpin for BigQueryDatasetSource
impl UnwindSafe for BigQueryDatasetSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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