Iam

Struct Iam 

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

Trait Implementations§

Source§

impl Clone for Iam

Source§

fn clone(&self) -> Iam

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Iam

Source§

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

Formats the value using the given formatter. Read more
Source§

impl IamService for Iam

Implementation of the IamService trait for the Iam struct. This implementation provides concrete functionality for all the methods defined in the IamService trait. By implementing this trait, the Iam struct can be used to interact with the Identity and Access Management (IAM) service, performing operations such as creating users, managing policies, and handling security configurations.

Source§

fn new_iam(session: Session) -> Result<Self, Error>

new_iam

This method initializes a new IAM service instance with the provided session. It sets up client configuration, client info, and handles, and builds a client for communication with the IAM service.

§Parameters
  • session: The session that will be used to create the IAM service.
§Returns

Returns a result containing the new Iam service instance or an error.

Source§

async fn new_create_user( &self, request: CreateUserReq, ) -> Result<CreateUserResp, Error>

new_create_user

This method creates a new user in the IAM system using the provided request parameters.

§Parameters
  • request: The request object containing the details for creating the user.
§Returns

Returns a result containing the response object for creating the user or an error.

Source§

async fn new_get_user(&self, request: GetUserReq) -> Result<GetUserResp, Error>

new_get_user

This method retrieves the details of an existing user from the IAM system.

§Parameters
  • request: The request object containing the details for retrieving the user.
§Returns

Returns a result containing the response object with user details or an error.

Source§

async fn new_update_user( &self, request: UpdateUserReq, ) -> Result<UpdateUserResp, Error>

new_update_user

This method updates an existing user’s details in the IAM system.

§Parameters
  • request: The request object containing the details for updating the user.
§Returns

Returns a result containing the response object for updating the user or an error.

Source§

async fn new_create_login_profile( &self, request: CreateLoginProfileReq, ) -> Result<CreateLoginProfileResp, Error>

new_create_login_profile

This method creates a login profile for an existing user in the IAM system.

§Parameters
  • request: The request object containing the details for creating the login profile.
§Returns

Returns a result containing the response object for creating the login profile or an error.

Source§

async fn new_get_login_profile( &self, request: GetLoginProfileReq, ) -> Result<GetLoginProfileResp, Error>

new_get_login_profile

This method retrieves the login profile of an existing user from the IAM system.

§Parameters
  • request: The request object containing the details for retrieving the login profile.
§Returns

Returns a result containing the response object with login profile details or an error.

Source§

async fn new_update_login_profile( &self, request: UpdateLoginProfileReq, ) -> Result<UpdateLoginProfileResp, Error>

new_update_login_profile

This method updates an existing user’s login profile in the IAM system.

§Parameters
  • request: The request object containing the details for updating the login profile.
§Returns

Returns a result containing the response object for updating the login profile or an error.

Source§

async fn new_delete_login_profile( &self, request: DeleteLoginProfileReq, ) -> Result<DeleteLoginProfileResp, Error>

new_delete_login_profile

This method deletes an existing user’s login profile from the IAM system.

§Parameters
  • request: The request object containing the details for deleting the login profile.
§Returns

Returns a result containing the response object for deleting the login profile or an error.

Source§

async fn new_set_security_config( &self, request: SetSecurityConfigReq, ) -> Result<SetSecurityConfigResp, Error>

new_set_security_config

This method sets the security configuration for a user in the IAM system.

§Parameters
  • request: The request object containing the details for setting the security configuration.
§Returns

Returns a result containing the response object for setting the security configuration or an error.

Source§

async fn new_get_security_config( &self, request: GetSecurityConfigReq, ) -> Result<GetSecurityConfigResp, Error>

new_get_security_config

§Parameters
  • &self
  • request: A GetSecurityConfigReq structure from volcengine_sdk_protobuf::protobuf::iam_user
§Returns
  • On success, returns a GetSecurityConfigResp structure from volcengine_sdk_protobuf::protobuf::iam_user
  • On failure, returns an error::Error
Source§

async fn new_create_project( &self, request: CreateProjectReq, ) -> Result<CreateProjectResp, Error>

new_create_project

§Parameters
  • &self
  • request: A CreateProjectReq structure from volcengine_sdk_protobuf::protobuf::iam_project
§Returns
  • On success, returns a CreateProjectResp structure from volcengine_sdk_protobuf::protobuf::iam_project
  • On failure, returns an error::Error
Source§

async fn new_get_project( &self, request: GetProjectReq, ) -> Result<GetProjectResp, Error>

new_get_project

§Parameters
  • &self
  • request: A GetProjectReq structure from volcengine_sdk_protobuf::protobuf::iam_project
§Returns
  • On success, returns a GetProjectResp structure from volcengine_sdk_protobuf::protobuf::iam_project
  • On failure, returns an error::Error
Source§

async fn new_create_policy( &self, request: CreatePolicyReq, ) -> Result<CreatePolicyResp, Error>

new_create_policy

§Parameters
  • &self
  • request: A CreatePolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a CreatePolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_get_policy( &self, request: GetPolicyReq, ) -> Result<GetPolicyResp, Error>

new_get_policy

§Parameters
  • &self
  • request: A GetPolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a GetPolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_list_policy( &self, request: ListPoliciesReq, ) -> Result<ListPoliciesResp, Error>

new_list_policy

§Parameters
  • &self
  • request: A ListPoliciesReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a ListPoliciesResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_update_policy( &self, request: UpdatePolicyReq, ) -> Result<UpdatePolicyResp, Error>

new_update_policy

§Parameters
  • &self
  • request: A UpdatePolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a UpdatePolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_delete_policy( &self, request: DeletePolicyReq, ) -> Result<DeletePolicyResp, Error>

new_delete_policy

§Parameters
  • &self
  • request: A DeletePolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a DeletePolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_attach_user_policy( &self, request: AttachUserPolicyReq, ) -> Result<AttachUserPolicyResp, Error>

new_attach_user_policy

§Parameters
  • &self
  • request: An AttachUserPolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns an AttachUserPolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_list_attach_user_policy( &self, request: ListAttachedUserPoliciesReq, ) -> Result<ListAttachedUserPoliciesResp, Error>

new_list_attach_user_policy

§Parameters
  • &self
  • request: A ListAttachedUserPoliciesReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a ListAttachedUserPoliciesResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_detach_user_policy( &self, request: DetachUserPolicyReq, ) -> Result<DetachUserPolicyResp, Error>

new_detach_user_policy

§Parameters
  • &self
  • request: A DetachUserPolicyReq structure from volcengine_sdk_protobuf::protobuf::iam_policy
§Returns
  • On success, returns a DetachUserPolicyResp structure from volcengine_sdk_protobuf::protobuf::iam_policy
  • On failure, returns an error::Error
Source§

async fn new_delete_user( &self, request: DeleteUserReq, ) -> Result<DeleteUserResp, Error>

new_delete_user

§Parameters
  • &self
  • request: A DeleteUserReq structure from volcengine_sdk_protobuf::protobuf::iam_user
§Returns
  • On success, returns a DeleteUserResp structure from volcengine_sdk_protobuf::protobuf::iam_user
  • On failure, returns an error::Error

Auto Trait Implementations§

§

impl Freeze for Iam

§

impl RefUnwindSafe for Iam

§

impl Send for Iam

§

impl Sync for Iam

§

impl Unpin for Iam

§

impl UnwindSafe for Iam

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> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,