pub struct PamAccessConnectorRotationAttemptsApiClient {
configuration: Arc<Configuration>,
}Fields§
§configuration: Arc<Configuration>Implementations§
Source§impl PamAccessConnectorRotationAttemptsApiClient
impl PamAccessConnectorRotationAttemptsApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Trait Implementations§
Source§impl PamAccessConnectorRotationAttemptsApi for PamAccessConnectorRotationAttemptsApiClient
impl PamAccessConnectorRotationAttemptsApi for PamAccessConnectorRotationAttemptsApiClient
Source§fn failure<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_failed_request_model: ReportRotationFailedRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn failure<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_failed_request_model: ReportRotationFailedRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Reports a failed rotation attempt (spec RecordRotationFailed). Never forward raw target-system error output as ErrorCode/Detail – it can echo credentials. Send a bounded error code plus an optional short detail instead. Either field exceeding its documented length is rejected as a 400, so cap them before sending – a rejected report leaves the failure unrecorded until the job times out. The single reason the two combine into is truncated rather than rejected.
Source§fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationCipherResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationCipherResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Returns the cipher for this access connector’s claimed, executing attempt only – never a general cipher read. Data is returned exactly as stored: opaque ciphertext the server never decrypts.
Source§fn put_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
submit_cipher_update_request_model: SubmitCipherUpdateRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
submit_cipher_update_request_model: SubmitCipherUpdateRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Writes the rotated secret back to the cipher (spec AcceptCipherUpdate) via an atomic capability check. 409 means the claim/attempt no longer holds, or LastKnownRevisionDate no longer matches the cipher’s current revision (a concurrent user edit won) – audited as write_rejected. 404 means the attempt id is unknown (no audit).
Source§fn success<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_succeeded_request_model: ReportRotationSucceededRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn success<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
report_rotation_succeeded_request_model: ReportRotationSucceededRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Reports a successful rotation (spec RecordRotationSucceeded). Requires the attempt to already have a written cipher (the VerifiedBeforeSuccess backstop); otherwise the report is treated as stale (409, audited as report_rejected).
Auto Trait Implementations§
impl !RefUnwindSafe for PamAccessConnectorRotationAttemptsApiClient
impl !UnwindSafe for PamAccessConnectorRotationAttemptsApiClient
impl Freeze for PamAccessConnectorRotationAttemptsApiClient
impl Send for PamAccessConnectorRotationAttemptsApiClient
impl Sync for PamAccessConnectorRotationAttemptsApiClient
impl Unpin for PamAccessConnectorRotationAttemptsApiClient
impl UnsafeUnpin for PamAccessConnectorRotationAttemptsApiClient
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more