pub struct TestIamPermissionsRequest {
pub resource: String,
pub permissions: Vec<String>,
pub full_resource_name: String,
}Expand description
The request for TestIamPermissions.
Fields§
§resource: StringThe organization, organizations/{organization}, or the project,
projects/{project}, to test the permissions on.
permissions: Vec<String>The permissions to test, by their keys, such as pvs.volume.create;
at most 100.
full_resource_name: StringThe full name of one resource in resource to test the permissions on
instead, such as
//secretmanager.origincloudapis.eu/projects/{project}/regions/{region}/secrets/{secret}:
the answer is what a call on that resource is allowed, counting the
role bindings that list it as well as those on its organization or
project. Refused with BAD_REQUEST when it isn’t a full name, isn’t in
resource (in the organization, or in the project), or names a kind
of resource a role binding can’t list: only the bindings on its
organization or project apply to such a resource, so testing on the
project answers for it. The resource need not exist. Empty to test on
resource itself.
Trait Implementations§
Source§impl Clone for TestIamPermissionsRequest
impl Clone for TestIamPermissionsRequest
Source§impl Debug for TestIamPermissionsRequest
impl Debug for TestIamPermissionsRequest
Source§impl Default for TestIamPermissionsRequest
impl Default for TestIamPermissionsRequest
Source§impl<'de> Deserialize<'de> for TestIamPermissionsRequest
impl<'de> Deserialize<'de> for TestIamPermissionsRequest
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 TestIamPermissionsRequest
Source§impl Hash for TestIamPermissionsRequest
impl Hash for TestIamPermissionsRequest
Source§impl Message for TestIamPermissionsRequest
impl Message for TestIamPermissionsRequest
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.impl StructuralPartialEq for TestIamPermissionsRequest
Auto Trait Implementations§
impl Forget for TestIamPermissionsRequest
impl Freeze for TestIamPermissionsRequest
impl Move for TestIamPermissionsRequest
impl RefUnwindSafe for TestIamPermissionsRequest
impl Send for TestIamPermissionsRequestwhere
RawVecInner: Send,
impl Sync for TestIamPermissionsRequestwhere
RawVecInner: Sync,
impl Unpin for TestIamPermissionsRequest
impl UnsafeUnpin for TestIamPermissionsRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TestIamPermissionsRequestwhere
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.