pub struct AuthClient<'a> { /* private fields */ }Expand description
Typed API wrapper for the trellis.auth@v1 contract.
Implementations§
Source§impl<'a> AuthClient<'a>
impl<'a> AuthClient<'a>
Sourcepub fn new(inner: &'a TrellisClient) -> Self
pub fn new(inner: &'a TrellisClient) -> Self
Wrap an already connected low-level Trellis client.
Sourcepub async fn auth_activate_workload(
&self,
input: &AuthActivateWorkloadRequest,
) -> Result<AuthActivateWorkloadResponse, TrellisClientError>
pub async fn auth_activate_workload( &self, input: &AuthActivateWorkloadRequest, ) -> Result<AuthActivateWorkloadResponse, TrellisClientError>
Call Auth.ActivateWorkload.
Sourcepub async fn auth_clear_login_portal_selection(
&self,
input: &AuthClearLoginPortalSelectionRequest,
) -> Result<AuthClearLoginPortalSelectionResponse, TrellisClientError>
pub async fn auth_clear_login_portal_selection( &self, input: &AuthClearLoginPortalSelectionRequest, ) -> Result<AuthClearLoginPortalSelectionResponse, TrellisClientError>
Call Auth.ClearLoginPortalSelection.
Sourcepub async fn auth_clear_workload_portal_selection(
&self,
input: &AuthClearWorkloadPortalSelectionRequest,
) -> Result<AuthClearWorkloadPortalSelectionResponse, TrellisClientError>
pub async fn auth_clear_workload_portal_selection( &self, input: &AuthClearWorkloadPortalSelectionRequest, ) -> Result<AuthClearWorkloadPortalSelectionResponse, TrellisClientError>
Call Auth.ClearWorkloadPortalSelection.
Sourcepub async fn auth_create_portal(
&self,
input: &AuthCreatePortalRequest,
) -> Result<AuthCreatePortalResponse, TrellisClientError>
pub async fn auth_create_portal( &self, input: &AuthCreatePortalRequest, ) -> Result<AuthCreatePortalResponse, TrellisClientError>
Call Auth.CreatePortal.
Sourcepub async fn auth_create_workload_profile(
&self,
input: &AuthCreateWorkloadProfileRequest,
) -> Result<AuthCreateWorkloadProfileResponse, TrellisClientError>
pub async fn auth_create_workload_profile( &self, input: &AuthCreateWorkloadProfileRequest, ) -> Result<AuthCreateWorkloadProfileResponse, TrellisClientError>
Call Auth.CreateWorkloadProfile.
Sourcepub async fn auth_decide_workload_activation_review(
&self,
input: &AuthDecideWorkloadActivationReviewRequest,
) -> Result<AuthDecideWorkloadActivationReviewResponse, TrellisClientError>
pub async fn auth_decide_workload_activation_review( &self, input: &AuthDecideWorkloadActivationReviewRequest, ) -> Result<AuthDecideWorkloadActivationReviewResponse, TrellisClientError>
Call Auth.DecideWorkloadActivationReview.
Sourcepub async fn auth_disable_portal(
&self,
input: &AuthDisablePortalRequest,
) -> Result<AuthDisablePortalResponse, TrellisClientError>
pub async fn auth_disable_portal( &self, input: &AuthDisablePortalRequest, ) -> Result<AuthDisablePortalResponse, TrellisClientError>
Call Auth.DisablePortal.
Sourcepub async fn auth_disable_workload_instance(
&self,
input: &AuthDisableWorkloadInstanceRequest,
) -> Result<AuthDisableWorkloadInstanceResponse, TrellisClientError>
pub async fn auth_disable_workload_instance( &self, input: &AuthDisableWorkloadInstanceRequest, ) -> Result<AuthDisableWorkloadInstanceResponse, TrellisClientError>
Call Auth.DisableWorkloadInstance.
Sourcepub async fn auth_disable_workload_profile(
&self,
input: &AuthDisableWorkloadProfileRequest,
) -> Result<AuthDisableWorkloadProfileResponse, TrellisClientError>
pub async fn auth_disable_workload_profile( &self, input: &AuthDisableWorkloadProfileRequest, ) -> Result<AuthDisableWorkloadProfileResponse, TrellisClientError>
Call Auth.DisableWorkloadProfile.
Sourcepub async fn auth_get_installed_contract(
&self,
input: &AuthGetInstalledContractRequest,
) -> Result<AuthGetInstalledContractResponse, TrellisClientError>
pub async fn auth_get_installed_contract( &self, input: &AuthGetInstalledContractRequest, ) -> Result<AuthGetInstalledContractResponse, TrellisClientError>
Call Auth.GetInstalledContract.
Sourcepub async fn auth_get_login_portal_default(
&self,
) -> Result<AuthGetLoginPortalDefaultResponse, TrellisClientError>
pub async fn auth_get_login_portal_default( &self, ) -> Result<AuthGetLoginPortalDefaultResponse, TrellisClientError>
Call Auth.GetLoginPortalDefault.
Sourcepub async fn auth_get_workload_activation_status(
&self,
input: &AuthGetWorkloadActivationStatusRequest,
) -> Result<AuthGetWorkloadActivationStatusResponse, TrellisClientError>
pub async fn auth_get_workload_activation_status( &self, input: &AuthGetWorkloadActivationStatusRequest, ) -> Result<AuthGetWorkloadActivationStatusResponse, TrellisClientError>
Call Auth.GetWorkloadActivationStatus.
Sourcepub async fn auth_get_workload_connect_info(
&self,
input: &AuthGetWorkloadConnectInfoRequest,
) -> Result<AuthGetWorkloadConnectInfoResponse, TrellisClientError>
pub async fn auth_get_workload_connect_info( &self, input: &AuthGetWorkloadConnectInfoRequest, ) -> Result<AuthGetWorkloadConnectInfoResponse, TrellisClientError>
Call Auth.GetWorkloadConnectInfo.
Sourcepub async fn auth_get_workload_portal_default(
&self,
) -> Result<AuthGetWorkloadPortalDefaultResponse, TrellisClientError>
pub async fn auth_get_workload_portal_default( &self, ) -> Result<AuthGetWorkloadPortalDefaultResponse, TrellisClientError>
Call Auth.GetWorkloadPortalDefault.
Sourcepub async fn auth_health(
&self,
) -> Result<AuthHealthResponse, TrellisClientError>
pub async fn auth_health( &self, ) -> Result<AuthHealthResponse, TrellisClientError>
Call Auth.Health.
Sourcepub async fn auth_install_service(
&self,
input: &AuthInstallServiceRequest,
) -> Result<AuthInstallServiceResponse, TrellisClientError>
pub async fn auth_install_service( &self, input: &AuthInstallServiceRequest, ) -> Result<AuthInstallServiceResponse, TrellisClientError>
Call Auth.InstallService.
Sourcepub async fn auth_kick_connection(
&self,
input: &AuthKickConnectionRequest,
) -> Result<AuthKickConnectionResponse, TrellisClientError>
pub async fn auth_kick_connection( &self, input: &AuthKickConnectionRequest, ) -> Result<AuthKickConnectionResponse, TrellisClientError>
Call Auth.KickConnection.
Sourcepub async fn auth_list_approvals(
&self,
input: &AuthListApprovalsRequest,
) -> Result<AuthListApprovalsResponse, TrellisClientError>
pub async fn auth_list_approvals( &self, input: &AuthListApprovalsRequest, ) -> Result<AuthListApprovalsResponse, TrellisClientError>
Call Auth.ListApprovals.
Sourcepub async fn auth_list_connections(
&self,
input: &AuthListConnectionsRequest,
) -> Result<AuthListConnectionsResponse, TrellisClientError>
pub async fn auth_list_connections( &self, input: &AuthListConnectionsRequest, ) -> Result<AuthListConnectionsResponse, TrellisClientError>
Call Auth.ListConnections.
Sourcepub async fn auth_list_installed_contracts(
&self,
input: &AuthListInstalledContractsRequest,
) -> Result<AuthListInstalledContractsResponse, TrellisClientError>
pub async fn auth_list_installed_contracts( &self, input: &AuthListInstalledContractsRequest, ) -> Result<AuthListInstalledContractsResponse, TrellisClientError>
Call Auth.ListInstalledContracts.
Sourcepub async fn auth_list_login_portal_selections(
&self,
) -> Result<AuthListLoginPortalSelectionsResponse, TrellisClientError>
pub async fn auth_list_login_portal_selections( &self, ) -> Result<AuthListLoginPortalSelectionsResponse, TrellisClientError>
Call Auth.ListLoginPortalSelections.
Sourcepub async fn auth_list_portals(
&self,
) -> Result<AuthListPortalsResponse, TrellisClientError>
pub async fn auth_list_portals( &self, ) -> Result<AuthListPortalsResponse, TrellisClientError>
Call Auth.ListPortals.
Sourcepub async fn auth_list_services(
&self,
) -> Result<AuthListServicesResponse, TrellisClientError>
pub async fn auth_list_services( &self, ) -> Result<AuthListServicesResponse, TrellisClientError>
Call Auth.ListServices.
Sourcepub async fn auth_list_sessions(
&self,
input: &AuthListSessionsRequest,
) -> Result<AuthListSessionsResponse, TrellisClientError>
pub async fn auth_list_sessions( &self, input: &AuthListSessionsRequest, ) -> Result<AuthListSessionsResponse, TrellisClientError>
Call Auth.ListSessions.
Sourcepub async fn auth_list_users(
&self,
) -> Result<AuthListUsersResponse, TrellisClientError>
pub async fn auth_list_users( &self, ) -> Result<AuthListUsersResponse, TrellisClientError>
Call Auth.ListUsers.
Sourcepub async fn auth_list_workload_activation_reviews(
&self,
input: &AuthListWorkloadActivationReviewsRequest,
) -> Result<AuthListWorkloadActivationReviewsResponse, TrellisClientError>
pub async fn auth_list_workload_activation_reviews( &self, input: &AuthListWorkloadActivationReviewsRequest, ) -> Result<AuthListWorkloadActivationReviewsResponse, TrellisClientError>
Call Auth.ListWorkloadActivationReviews.
Sourcepub async fn auth_list_workload_activations(
&self,
input: &AuthListWorkloadActivationsRequest,
) -> Result<AuthListWorkloadActivationsResponse, TrellisClientError>
pub async fn auth_list_workload_activations( &self, input: &AuthListWorkloadActivationsRequest, ) -> Result<AuthListWorkloadActivationsResponse, TrellisClientError>
Call Auth.ListWorkloadActivations.
Sourcepub async fn auth_list_workload_instances(
&self,
input: &AuthListWorkloadInstancesRequest,
) -> Result<AuthListWorkloadInstancesResponse, TrellisClientError>
pub async fn auth_list_workload_instances( &self, input: &AuthListWorkloadInstancesRequest, ) -> Result<AuthListWorkloadInstancesResponse, TrellisClientError>
Call Auth.ListWorkloadInstances.
Sourcepub async fn auth_list_workload_portal_selections(
&self,
) -> Result<AuthListWorkloadPortalSelectionsResponse, TrellisClientError>
pub async fn auth_list_workload_portal_selections( &self, ) -> Result<AuthListWorkloadPortalSelectionsResponse, TrellisClientError>
Call Auth.ListWorkloadPortalSelections.
Sourcepub async fn auth_list_workload_profiles(
&self,
input: &AuthListWorkloadProfilesRequest,
) -> Result<AuthListWorkloadProfilesResponse, TrellisClientError>
pub async fn auth_list_workload_profiles( &self, input: &AuthListWorkloadProfilesRequest, ) -> Result<AuthListWorkloadProfilesResponse, TrellisClientError>
Call Auth.ListWorkloadProfiles.
Sourcepub async fn auth_logout(
&self,
) -> Result<AuthLogoutResponse, TrellisClientError>
pub async fn auth_logout( &self, ) -> Result<AuthLogoutResponse, TrellisClientError>
Call Auth.Logout.
Sourcepub async fn auth_me(&self) -> Result<AuthMeResponse, TrellisClientError>
pub async fn auth_me(&self) -> Result<AuthMeResponse, TrellisClientError>
Call Auth.Me.
Sourcepub async fn auth_provision_workload_instance(
&self,
input: &AuthProvisionWorkloadInstanceRequest,
) -> Result<AuthProvisionWorkloadInstanceResponse, TrellisClientError>
pub async fn auth_provision_workload_instance( &self, input: &AuthProvisionWorkloadInstanceRequest, ) -> Result<AuthProvisionWorkloadInstanceResponse, TrellisClientError>
Call Auth.ProvisionWorkloadInstance.
Sourcepub async fn auth_renew_binding_token(
&self,
) -> Result<AuthRenewBindingTokenResponse, TrellisClientError>
pub async fn auth_renew_binding_token( &self, ) -> Result<AuthRenewBindingTokenResponse, TrellisClientError>
Call Auth.RenewBindingToken.
Sourcepub async fn auth_revoke_approval(
&self,
input: &AuthRevokeApprovalRequest,
) -> Result<AuthRevokeApprovalResponse, TrellisClientError>
pub async fn auth_revoke_approval( &self, input: &AuthRevokeApprovalRequest, ) -> Result<AuthRevokeApprovalResponse, TrellisClientError>
Call Auth.RevokeApproval.
Sourcepub async fn auth_revoke_session(
&self,
input: &AuthRevokeSessionRequest,
) -> Result<AuthRevokeSessionResponse, TrellisClientError>
pub async fn auth_revoke_session( &self, input: &AuthRevokeSessionRequest, ) -> Result<AuthRevokeSessionResponse, TrellisClientError>
Call Auth.RevokeSession.
Sourcepub async fn auth_revoke_workload_activation(
&self,
input: &AuthRevokeWorkloadActivationRequest,
) -> Result<AuthRevokeWorkloadActivationResponse, TrellisClientError>
pub async fn auth_revoke_workload_activation( &self, input: &AuthRevokeWorkloadActivationRequest, ) -> Result<AuthRevokeWorkloadActivationResponse, TrellisClientError>
Call Auth.RevokeWorkloadActivation.
Sourcepub async fn auth_set_login_portal_default(
&self,
input: &AuthSetLoginPortalDefaultRequest,
) -> Result<AuthSetLoginPortalDefaultResponse, TrellisClientError>
pub async fn auth_set_login_portal_default( &self, input: &AuthSetLoginPortalDefaultRequest, ) -> Result<AuthSetLoginPortalDefaultResponse, TrellisClientError>
Call Auth.SetLoginPortalDefault.
Sourcepub async fn auth_set_login_portal_selection(
&self,
input: &AuthSetLoginPortalSelectionRequest,
) -> Result<AuthSetLoginPortalSelectionResponse, TrellisClientError>
pub async fn auth_set_login_portal_selection( &self, input: &AuthSetLoginPortalSelectionRequest, ) -> Result<AuthSetLoginPortalSelectionResponse, TrellisClientError>
Call Auth.SetLoginPortalSelection.
Sourcepub async fn auth_set_workload_portal_default(
&self,
input: &AuthSetWorkloadPortalDefaultRequest,
) -> Result<AuthSetWorkloadPortalDefaultResponse, TrellisClientError>
pub async fn auth_set_workload_portal_default( &self, input: &AuthSetWorkloadPortalDefaultRequest, ) -> Result<AuthSetWorkloadPortalDefaultResponse, TrellisClientError>
Call Auth.SetWorkloadPortalDefault.
Sourcepub async fn auth_set_workload_portal_selection(
&self,
input: &AuthSetWorkloadPortalSelectionRequest,
) -> Result<AuthSetWorkloadPortalSelectionResponse, TrellisClientError>
pub async fn auth_set_workload_portal_selection( &self, input: &AuthSetWorkloadPortalSelectionRequest, ) -> Result<AuthSetWorkloadPortalSelectionResponse, TrellisClientError>
Call Auth.SetWorkloadPortalSelection.
Sourcepub async fn auth_update_user(
&self,
input: &AuthUpdateUserRequest,
) -> Result<AuthUpdateUserResponse, TrellisClientError>
pub async fn auth_update_user( &self, input: &AuthUpdateUserRequest, ) -> Result<AuthUpdateUserResponse, TrellisClientError>
Call Auth.UpdateUser.
Sourcepub async fn auth_upgrade_service_contract(
&self,
input: &AuthUpgradeServiceContractRequest,
) -> Result<AuthUpgradeServiceContractResponse, TrellisClientError>
pub async fn auth_upgrade_service_contract( &self, input: &AuthUpgradeServiceContractRequest, ) -> Result<AuthUpgradeServiceContractResponse, TrellisClientError>
Call Auth.UpgradeServiceContract.
Sourcepub async fn auth_validate_request(
&self,
input: &AuthValidateRequestRequest,
) -> Result<AuthValidateRequestResponse, TrellisClientError>
pub async fn auth_validate_request( &self, input: &AuthValidateRequestRequest, ) -> Result<AuthValidateRequestResponse, TrellisClientError>
Call Auth.ValidateRequest.
Sourcepub async fn publish_auth_connect(
&self,
event: &AuthConnectEvent,
) -> Result<(), TrellisClientError>
pub async fn publish_auth_connect( &self, event: &AuthConnectEvent, ) -> Result<(), TrellisClientError>
Publish Auth.Connect.
Sourcepub async fn publish_auth_connection_kicked(
&self,
event: &AuthConnectionKickedEvent,
) -> Result<(), TrellisClientError>
pub async fn publish_auth_connection_kicked( &self, event: &AuthConnectionKickedEvent, ) -> Result<(), TrellisClientError>
Publish Auth.ConnectionKicked.
Sourcepub async fn publish_auth_disconnect(
&self,
event: &AuthDisconnectEvent,
) -> Result<(), TrellisClientError>
pub async fn publish_auth_disconnect( &self, event: &AuthDisconnectEvent, ) -> Result<(), TrellisClientError>
Publish Auth.Disconnect.
Sourcepub async fn publish_auth_session_revoked(
&self,
event: &AuthSessionRevokedEvent,
) -> Result<(), TrellisClientError>
pub async fn publish_auth_session_revoked( &self, event: &AuthSessionRevokedEvent, ) -> Result<(), TrellisClientError>
Publish Auth.SessionRevoked.
Sourcepub async fn publish_auth_workload_activation_review_requested(
&self,
event: &AuthWorkloadActivationReviewRequestedEvent,
) -> Result<(), TrellisClientError>
pub async fn publish_auth_workload_activation_review_requested( &self, event: &AuthWorkloadActivationReviewRequestedEvent, ) -> Result<(), TrellisClientError>
Publish Auth.WorkloadActivationReviewRequested.