pub struct GcpRuntimePermissionsGenerator;Expand description
GCP runtime permissions generator for custom roles and IAM bindings
Implementations§
Source§impl GcpRuntimePermissionsGenerator
impl GcpRuntimePermissionsGenerator
Sourcepub fn generate_custom_role(
&self,
permission_set: &PermissionSet,
context: &PermissionContext,
) -> Result<GcpCustomRole>
pub fn generate_custom_role( &self, permission_set: &PermissionSet, context: &PermissionContext, ) -> Result<GcpCustomRole>
Generate a GCP custom role from a permission set
Takes a PermissionSet and produces GCP custom role definitions that can be created at runtime.
Sourcepub fn generate_bindings(
&self,
permission_set: &PermissionSet,
binding_target: BindingTarget,
context: &PermissionContext,
) -> Result<GcpIamBindings>
pub fn generate_bindings( &self, permission_set: &PermissionSet, binding_target: BindingTarget, context: &PermissionContext, ) -> Result<GcpIamBindings>
Generate IAM bindings from permission set and binding target
Takes a PermissionSet and binding target, produces GCP IAM bindings that can be applied to resources at runtime.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcpRuntimePermissionsGenerator
impl RefUnwindSafe for GcpRuntimePermissionsGenerator
impl Send for GcpRuntimePermissionsGenerator
impl Sync for GcpRuntimePermissionsGenerator
impl Unpin for GcpRuntimePermissionsGenerator
impl UnsafeUnpin for GcpRuntimePermissionsGenerator
impl UnwindSafe for GcpRuntimePermissionsGenerator
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
Mutably borrows from an owned value. Read more