pub struct GroupRoles<'c, C: Config> {
pub group_id: String,
/* private fields */
}Expand description
Manage role assignments for groups in the organization.
Fields§
§group_id: StringImplementations§
Source§impl<'c, C: Config> GroupRoles<'c, C>
impl<'c, C: Config> GroupRoles<'c, C>
pub fn new(client: &'c Client<C>, group_id: &str) -> Self
Sourcepub async fn list(&self) -> Result<RoleListResource, OpenAIError>
pub async fn list(&self) -> Result<RoleListResource, OpenAIError>
Lists all role assignments for a group. Lists all role assignments for a group.
Sourcepub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
pub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
Lists all role assignments for a group.
Sourcepub async fn assign(
&self,
request: PublicAssignOrganizationGroupRoleBody,
) -> Result<GroupRoleAssignment, OpenAIError>
pub async fn assign( &self, request: PublicAssignOrganizationGroupRoleBody, ) -> Result<GroupRoleAssignment, OpenAIError>
Assigns a role to a group. Assigns a role to a group.
Sourcepub async fn assign_byot<T0: Serialize, R: DeserializeOwned>(
&self,
request: T0,
) -> Result<R, OpenAIError>
pub async fn assign_byot<T0: Serialize, R: DeserializeOwned>( &self, request: T0, ) -> Result<R, OpenAIError>
Assigns a role to a group.
Sourcepub async fn unassign(
&self,
role_id: &str,
) -> Result<DeletedRoleAssignmentResource, OpenAIError>
pub async fn unassign( &self, role_id: &str, ) -> Result<DeletedRoleAssignmentResource, OpenAIError>
Unassigns a role from a group. Unassigns a role from a group.
Sourcepub async fn unassign_byot<T0: Display, R: DeserializeOwned>(
&self,
role_id: T0,
) -> Result<R, OpenAIError>
pub async fn unassign_byot<T0: Display, R: DeserializeOwned>( &self, role_id: T0, ) -> Result<R, OpenAIError>
Unassigns a role from a group.
Auto Trait Implementations§
impl<'c, C> Freeze for GroupRoles<'c, C>
impl<'c, C> !RefUnwindSafe for GroupRoles<'c, C>
impl<'c, C> Send for GroupRoles<'c, C>
impl<'c, C> Sync for GroupRoles<'c, C>
impl<'c, C> Unpin for GroupRoles<'c, C>
impl<'c, C> !UnwindSafe for GroupRoles<'c, C>
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