#[non_exhaustive]pub struct GcpUserAccessBinding {
pub name: String,
pub group_key: String,
pub access_levels: Vec<String>,
/* private fields */
}Expand description
Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
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: StringImmutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by RFC 3986 Section 2.3). Should not be specified by the client during creation. Example: “organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N”
group_key: StringRequired. Immutable. Google Group id whose members are subject to this binding’s restrictions. See “id” in the [G Suite Directory API’s Groups resource] (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). If a group’s email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: “01d520gv4vjcrht”
access_levels: Vec<String>Required. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: “accessPolicies/9522/accessLevels/device_trusted”
Implementations§
Source§impl GcpUserAccessBinding
impl GcpUserAccessBinding
pub fn new() -> Self
Sourcepub fn set_group_key<T: Into<String>>(self, v: T) -> Self
pub fn set_group_key<T: Into<String>>(self, v: T) -> Self
Sets the value of group_key.
Sourcepub fn set_access_levels<T, V>(self, v: T) -> Self
pub fn set_access_levels<T, V>(self, v: T) -> Self
Sets the value of access_levels.
Trait Implementations§
Source§impl Clone for GcpUserAccessBinding
impl Clone for GcpUserAccessBinding
Source§fn clone(&self) -> GcpUserAccessBinding
fn clone(&self) -> GcpUserAccessBinding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more