Skip to main content

WorkspaceService

Struct WorkspaceService 

Source
pub struct WorkspaceService { /* private fields */ }

Implementations§

Source§

impl WorkspaceService

Source

pub fn add_user(&self, body: &AddUserBody) -> Request<AddUserResponse>

Add user to organization

Source

pub fn add_user_to_group( &self, user_id: &str, body: &AddUserToGroupBody, ) -> EmptyRequest

Add user to group

Source

pub fn assign_account_role( &self, account_id: &str, body: &AssignAccountRoleBody, ) -> Request<AssignAccountRoleResponse>

Assign account role

Source

pub fn attach_group_policy( &self, group_id: &str, body: &AttachGroupPolicyBody, ) -> EmptyRequest

Attach policy to group

Source

pub fn attach_role_policy( &self, role_id: &str, body: &AttachRolePolicyBody, ) -> EmptyRequest

Attach policy to role

Source

pub fn attach_service_account_policy( &self, service_account_id: &str, body: &AttachServiceAccountPolicyBody, ) -> EmptyRequest

Attach policy to service account

Source

pub fn attach_user_policy( &self, user_id: &str, body: &AttachUserPolicyBody, ) -> EmptyRequest

Attach policy to user

Source

pub fn cancel_invitation(&self, invitation_id: &str) -> EmptyRequest

Cancel invitation

Source

pub fn create_account( &self, body: &CreateAccountBody, ) -> Request<CreateAccountResponse>

Create account

Source

pub fn create_group( &self, body: &CreateGroupBody, ) -> Request<CreateGroupResponse>

Create group

Source

pub fn create_policy( &self, body: &CreatePolicyBody, ) -> Request<CreatePolicyResponse>

Create policy

Source

pub fn delete_account(&self, account_id: &str) -> EmptyRequest

Delete account

Source

pub fn delete_group(&self, group_id: &str) -> EmptyRequest

Delete group

Source

pub fn delete_group_inline_policy( &self, group_id: &str, policy_name: &str, ) -> EmptyRequest

Delete a group’s inline policy by name

Source

pub fn delete_organization(&self, organization_id: &str) -> EmptyRequest

Delete organization

Source

pub fn delete_policy(&self, policy_id: &str) -> EmptyRequest

Delete policy

Source

pub fn delete_user_inline_policy( &self, user_id: &str, policy_name: &str, ) -> EmptyRequest

Delete a user’s inline policy by name

Source

pub fn detach_group_policy( &self, group_id: &str, policy_id: &str, ) -> EmptyRequest

Detach policy from group

Source

pub fn detach_role_policy(&self, role_id: &str, policy_id: &str) -> EmptyRequest

Detach policy from role

Source

pub fn detach_service_account_policy( &self, service_account_id: &str, policy_id: &str, ) -> EmptyRequest

Detach policy from service account

Source

pub fn detach_user_policy(&self, user_id: &str, policy_id: &str) -> EmptyRequest

Detach policy from user

Source

pub fn get_account(&self, account_id: &str) -> Request<GetAccountResponse>

Get account

Source

pub fn get_account_by_reference( &self, reference: &str, scope: &GetAccountScope, ) -> Request<GetAccountResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_account_onboarding( &self, account_id: &str, ) -> Request<GetAccountOnboardingResponse>

Get shared account setup progress

Source

pub fn get_account_resources( &self, account_id: &str, ) -> Request<GetAccountResourcesResponse>

Check account resource presence

Source

pub fn get_group(&self, group_id: &str) -> Request<GetGroupResponse>

Get group

Source

pub fn get_group_by_reference( &self, reference: &str, scope: &GetGroupScope, ) -> Request<GetGroupResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_group_inline_policy( &self, group_id: &str, policy_name: &str, ) -> Request<GetGroupInlinePolicyResponse>

Get a group’s inline policy by name

Source

pub fn get_group_inline_policy_by_reference( &self, group_id: &str, reference: &str, scope: &GetGroupInlinePolicyScope, ) -> Request<GetGroupInlinePolicyResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_invitation( &self, invitation_id: &str, ) -> Request<GetInvitationResponse>

Get invitation

Source

pub fn get_invitation_by_reference( &self, reference: &str, scope: &GetInvitationScope, ) -> Request<GetInvitationResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_organization( &self, organization_id: &str, ) -> Request<GetOrganizationResponse>

Get organization

Source

pub fn get_organization_by_reference( &self, reference: &str, scope: &GetOrganizationScope, ) -> Request<GetOrganizationResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_policy(&self, policy_id: &str) -> Request<GetPolicyResponse>

Get policy

Source

pub fn get_policy_by_reference( &self, reference: &str, scope: &GetPolicyScope, ) -> Request<GetPolicyResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_user(&self, user_id: &str) -> Request<GetUserResponse>

Get user

Source

pub fn get_user_by_reference( &self, reference: &str, scope: &GetUserScope, ) -> Request<GetUserResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_user_inline_policy( &self, user_id: &str, policy_name: &str, ) -> Request<GetUserInlinePolicyResponse>

Get a user’s inline policy by name

Source

pub fn get_user_inline_policy_by_reference( &self, user_id: &str, reference: &str, scope: &GetUserInlinePolicyScope, ) -> Request<GetUserInlinePolicyResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_user_permission_boundary( &self, user_id: &str, ) -> Request<GetUserPermissionBoundaryResponse>

Get a user’s permission boundary

Source

pub fn list_account_role_assignments( &self, account_id: &str, ) -> PagedRequest<ListAccountRoleAssignmentsResponse, ListAccountRoleAssignmentsItem>

List account role assignments

Source

pub fn list_account_roles( &self, ) -> PagedRequest<ListAccountRolesResponse, ListAccountRolesItem>

List assigned account roles

Source

pub fn list_accounts( &self, query: &ListAccountsQuery, ) -> PagedRequest<ListAccountsResponse, ListAccountsItem>

List accounts

Source

pub fn list_group_inline_policies( &self, group_id: &str, query: &ListGroupInlinePoliciesQuery, ) -> PagedRequest<ListGroupInlinePoliciesResponse, ListGroupInlinePoliciesItem>

List a group’s inline policies

Source

pub fn list_group_policies( &self, group_id: &str, query: &ListGroupPoliciesQuery, ) -> PagedRequest<ListGroupPoliciesResponse, ListGroupPoliciesItem>

List group policies

Source

pub fn list_group_users( &self, group_id: &str, query: &ListGroupUsersQuery, ) -> PagedRequest<ListGroupUsersResponse, ListGroupUsersItem>

List group users

Source

pub fn list_groups( &self, query: &ListGroupsQuery, ) -> PagedRequest<ListGroupsResponse, ListGroupsItem>

List groups

Source

pub fn list_invitations( &self, query: &ListInvitationsQuery, ) -> PagedRequest<ListInvitationsResponse, ListInvitationsItem>

List invitations

Source

pub fn list_organizations( &self, query: &ListOrganizationsQuery, ) -> PagedRequest<ListOrganizationsResponse, ListOrganizationsItem>

List organizations

Source

pub fn list_policies( &self, query: &ListPoliciesQuery, ) -> PagedRequest<ListPoliciesResponse, ListPoliciesItem>

List policies

Source

pub fn list_policy_groups( &self, policy_id: &str, query: &ListPolicyGroupsQuery, ) -> PagedRequest<ListPolicyGroupsResponse, ListPolicyGroupsItem>

List groups with policy

Source

pub fn list_policy_roles( &self, policy_id: &str, query: &ListPolicyRolesQuery, ) -> PagedRequest<ListPolicyRolesResponse, ListPolicyRolesItem>

List roles with policy

Source

pub fn list_policy_service_accounts( &self, policy_id: &str, query: &ListPolicyServiceAccountsQuery, ) -> PagedRequest<ListPolicyServiceAccountsResponse, ListPolicyServiceAccountsItem>

List service accounts with policy

Source

pub fn list_policy_users( &self, policy_id: &str, query: &ListPolicyUsersQuery, ) -> PagedRequest<ListPolicyUsersResponse, ListPolicyUsersItem>

List users with policy

Source

pub fn list_role_policies( &self, role_id: &str, query: &ListRolePoliciesQuery, ) -> PagedRequest<ListRolePoliciesResponse, ListRolePoliciesItem>

List role policies

Source

pub fn list_service_account_policies( &self, service_account_id: &str, query: &ListServiceAccountPoliciesQuery, ) -> PagedRequest<ListServiceAccountPoliciesResponse, ListServiceAccountPoliciesItem>

List service account policies

Source

pub fn list_user_groups( &self, user_id: &str, query: &ListUserGroupsQuery, ) -> PagedRequest<ListUserGroupsResponse, ListUserGroupsItem>

List user groups

Source

pub fn list_user_inline_policies( &self, user_id: &str, query: &ListUserInlinePoliciesQuery, ) -> PagedRequest<ListUserInlinePoliciesResponse, ListUserInlinePoliciesItem>

List a user’s inline policies

Source

pub fn list_user_policies( &self, user_id: &str, query: &ListUserPoliciesQuery, ) -> PagedRequest<ListUserPoliciesResponse, ListUserPoliciesItem>

List user policies

Source

pub fn list_users( &self, query: &ListUsersQuery, ) -> PagedRequest<ListUsersResponse, ListUsersItem>

List users

Source

pub fn put_group_inline_policy( &self, group_id: &str, policy_name: &str, body: &PutGroupInlinePolicyBody, ) -> Request<PutGroupInlinePolicyResponse>

Create or replace a group’s inline policy

Source

pub fn put_user_inline_policy( &self, user_id: &str, policy_name: &str, body: &PutUserInlinePolicyBody, ) -> Request<PutUserInlinePolicyResponse>

Create or replace a user’s inline policy

Source

pub fn remove_account_role_assignment( &self, account_id: &str, assignment_id: &str, ) -> EmptyRequest

Remove account role assignment

Source

pub fn remove_user(&self, user_id: &str) -> EmptyRequest

Remove user from organization

Source

pub fn remove_user_from_group( &self, user_id: &str, group_id: &str, ) -> EmptyRequest

Remove user from group

Source

pub fn remove_user_permission_boundary(&self, user_id: &str) -> EmptyRequest

Remove a user’s permission boundary

Source

pub fn retry_account_provisioning( &self, account_id: &str, ) -> Request<RetryAccountProvisioningResponse>

Resume failed default network provisioning

Source

pub fn set_user_permission_boundary( &self, user_id: &str, body: &SetUserPermissionBoundaryBody, ) -> EmptyRequest

Set a user’s permission boundary

Source

pub fn update_account( &self, account_id: &str, body: &UpdateAccountBody, ) -> Request<UpdateAccountResponse>

Update account

Source

pub fn update_account_onboarding( &self, account_id: &str, body: &UpdateAccountOnboardingBody, ) -> Request<UpdateAccountOnboardingResponse>

Update shared account guide preferences

Source

pub fn update_group( &self, group_id: &str, body: &UpdateGroupBody, ) -> Request<UpdateGroupResponse>

Update group

Source

pub fn update_organization( &self, organization_id: &str, body: &UpdateOrganizationBody, ) -> Request<UpdateOrganizationResponse>

Update organization

Source

pub fn update_policy( &self, policy_id: &str, body: &UpdatePolicyBody, ) -> Request<UpdatePolicyResponse>

Update policy

Trait Implementations§

Source§

impl Clone for WorkspaceService

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WorkspaceService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more