pub struct RoleBinding {
pub name: String,
pub member: String,
pub role: String,
pub project: String,
pub service_account: String,
pub creator: String,
pub create_time: Option<Timestamp>,
pub state: i32,
pub resources: Vec<String>,
}Expand description
One role granted to one member, organization-wide, in one project or on one service account, optionally only on a list of resources there. Only its list of resources can be changed, with UpdateRoleBinding; to change anything else, delete the binding and create another.
Fields§
§name: StringThe binding’s resource name. A pending binding keeps its name when it becomes active.
member: StringThe full name of who holds the role: a user,
//iam.origincloudapis.eu/users/{user}, one of the organization’s
service accounts,
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent,
//iam.origincloudapis.eu/serviceAgents/{service_agent}. A pending
binding’s member is user:{email}, the address it was granted to,
as typed, until it becomes active. On create, user:{email} names a
user by email address: see CreateRoleBinding.
role: StringThe full name of the role granted,
//iam.origincloudapis.eu/roles/{role}.
project: StringThe full name of the project the binding is limited to, one of the
organization’s: //resourcemanager.origincloudapis.eu/projects/{project}.
Empty for a binding on the whole organization, which covers every
project in it, and for a binding on one service account.
service_account: StringThe full name of the service account the binding is limited to, one of
the organization’s active accounts:
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account}.
Such a binding grants its role on that account alone, and nothing on
the organization or its projects. Only a role whose every permission
acts on one service account can be bound so:
roles/iam.service-account-token-creator, which lets the member get an
access token for that account and no other. Empty for a binding on the
whole organization or a project; never set together with project.
The binding is removed when the account is deleted.
creator: StringThe full name of who created the binding: //iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
//iam.origincloudapis.eu/serviceAgents/{service_agent} for a platform
service agent, or //iam.origincloudapis.eu/services/{service} for a
change the platform made itself.
create_time: Option<Timestamp>When the binding was created.
state: i32Whether the binding grants its role yet.
resources: Vec<String>The full names of the resources the binding is limited to within its
organization or project, such as
//secretmanager.origincloudapis.eu/projects/{project}/regions/{region}/secrets/{secret},
in name order; at most 100. The binding grants its role on these
resources alone, and nothing on the rest of its scope or on the
organization or the project itself. Empty for a binding on its whole
scope. Each entry must be a resource of the binding’s organization, in
the binding’s project if project is set, of a kind that can be
listed. Never set together with service_account, nor on a pending
binding. A resource deleted after the binding was created stays listed,
and the binding covers a resource created later under the same name.
The one field UpdateRoleBinding changes.
Implementations§
Trait Implementations§
Source§impl Clone for RoleBinding
impl Clone for RoleBinding
Source§impl Debug for RoleBinding
impl Debug for RoleBinding
Source§impl Default for RoleBinding
impl Default for RoleBinding
Source§impl<'de> Deserialize<'de> for RoleBinding
impl<'de> Deserialize<'de> for RoleBinding
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>,
impl Eq for RoleBinding
Source§impl Hash for RoleBinding
impl Hash for RoleBinding
Source§impl Message for RoleBinding
impl Message for RoleBinding
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for RoleBinding
impl PartialEq for RoleBinding
Source§impl Serialize for RoleBinding
impl Serialize for RoleBinding
impl StructuralPartialEq for RoleBinding
Auto Trait Implementations§
impl Forget for RoleBinding
impl Freeze for RoleBinding
impl Move for RoleBinding
impl RefUnwindSafe for RoleBinding
impl Send for RoleBindingwhere
RawVecInner: Send,
impl Sync for RoleBindingwhere
RawVecInner: Sync,
impl Unpin for RoleBinding
impl UnsafeUnpin for RoleBindingwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RoleBindingwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.