pub struct DatasetAccess {
pub dataset: Option<DatasetAccessEntry>,
pub domain: Option<String>,
pub group_by_email: Option<String>,
pub iam_member: Option<String>,
pub role: Option<String>,
pub routine: Option<RoutineReference>,
pub special_group: Option<String>,
pub user_by_email: Option<String>,
pub view: Option<TableReference>,
}
Expand description
[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;
This type is not used in any activity, and only used as part of another schema.
Fields§
§dataset: Option<DatasetAccessEntry>
[Pick one] A grant authorizing all resources of a particular type in a particular dataset access to this dataset. Only views are supported for now. The role field is not required when this field is set. If that dataset is deleted and re-created, its access needs to be granted again via an update operation.
domain: Option<String>
[Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: “example.com”. Maps to IAM policy member “domain:DOMAIN”.
group_by_email: Option<String>
[Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member “group:GROUP”.
iam_member: Option<String>
[Pick one] Some other type of member that appears in the IAM Policy but isn’t a user, group, domain, or special group.
role: Option<String>
[Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to “roles/bigquery.dataOwner”, it will be returned back as “OWNER”.
routine: Option<RoutineReference>
[Pick one] A routine from a different dataset to grant access to. Queries executed against that routine will have read access to views/tables/routines in this dataset. Only UDF is supported for now. The role field is not required when this field is set. If that routine is updated by any user, access to the routine needs to be granted again via an update operation.
special_group: Option<String>
[Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
user_by_email: Option<String>
[Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member “user:EMAIL” or “serviceAccount:EMAIL”.
view: Option<TableReference>
[Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
Trait Implementations§
Source§impl Clone for DatasetAccess
impl Clone for DatasetAccess
Source§fn clone(&self) -> DatasetAccess
fn clone(&self) -> DatasetAccess
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DatasetAccess
impl Debug for DatasetAccess
Source§impl Default for DatasetAccess
impl Default for DatasetAccess
Source§fn default() -> DatasetAccess
fn default() -> DatasetAccess
Source§impl<'de> Deserialize<'de> for DatasetAccess
impl<'de> Deserialize<'de> for DatasetAccess
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 Serialize for DatasetAccess
impl Serialize for DatasetAccess
impl NestedType for DatasetAccess
impl Part for DatasetAccess
Auto Trait Implementations§
impl Freeze for DatasetAccess
impl RefUnwindSafe for DatasetAccess
impl Send for DatasetAccess
impl Sync for DatasetAccess
impl Unpin for DatasetAccess
impl UnwindSafe for DatasetAccess
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more