pub struct HyperClient { /* private fields */ }Implementations§
Source§impl HyperClient
impl HyperClient
pub fn new(config: HyperClientConfig) -> Self
pub async fn health(&self) -> Result<HealthResponse, HyperClientError>
pub async fn ui_state(&self) -> Result<UiState, HyperClientError>
pub async fn vm_create( &self, request: &CreateVmRequest, idempotency_key: Option<&str>, ) -> Result<OperationRecord, HyperClientError>
pub async fn vm_start( &self, vm_id: &str, idempotency_key: Option<&str>, ) -> Result<OperationRecord, HyperClientError>
pub async fn vm_stop( &self, vm_id: &str, idempotency_key: Option<&str>, ) -> Result<OperationRecord, HyperClientError>
pub async fn vm_destroy( &self, vm_id: &str, idempotency_key: Option<&str>, ) -> Result<OperationRecord, HyperClientError>
pub async fn operations_list( &self, ) -> Result<OperationsPageResponse, HyperClientError>
pub async fn operation_status( &self, operation_id: &str, ) -> Result<OperationRecord, HyperClientError>
pub async fn auth_bootstrap( &self, request: &BootstrapAuthRequest, ) -> Result<TokenResponse, HyperClientError>
pub async fn auth_rotate(&self) -> Result<TokenResponse, HyperClientError>
pub async fn auth_service_token( &self, request: &ServiceTokenRequest, ) -> Result<TokenResponse, HyperClientError>
pub async fn service_ping( &self, ) -> Result<ServicePingResponse, HyperClientError>
pub async fn cyber_session_create( &self, request: &CyberSessionCreateRequest, ) -> Result<CyberSessionResponse, HyperClientError>
pub async fn cyber_sample_ingest( &self, session_id: &str, request: &CyberIngestRequest, ) -> Result<CyberArtifactResponse, HyperClientError>
pub async fn cyber_artifact_pin( &self, session_id: &str, sample_id: &str, ) -> Result<CyberArtifactActionResponse, HyperClientError>
pub async fn cyber_artifact_unpin( &self, session_id: &str, sample_id: &str, ) -> Result<CyberArtifactActionResponse, HyperClientError>
pub async fn cyber_artifact_delete( &self, session_id: &str, sample_id: &str, ) -> Result<CyberArtifactActionResponse, HyperClientError>
pub async fn vault_prepare_operation( &self, request: &PrepareOperationRequest, ) -> Result<PrepareOperationResponse, HyperClientError>
pub async fn system_safety(&self) -> Result<SystemSafety, HyperClientError>
pub async fn operations_failed( &self, ) -> Result<DlqPageResponse, HyperClientError>
pub async fn image_cache_status( &self, ) -> Result<ImageCacheStatus, HyperClientError>
pub async fn snapshot_create( &self, vm_id: &str, request: &SnapshotCreateRequest, ) -> Result<SnapshotResponse, HyperClientError>
pub async fn snapshot_list( &self, vm_id: &str, ) -> Result<SnapshotPageResponse, HyperClientError>
pub async fn snapshot_restore( &self, snapshot_id: &str, request: &SnapshotRestoreRequest, ) -> Result<SnapshotResponse, HyperClientError>
pub async fn snapshot_clone( &self, snapshot_id: &str, request: &SnapshotCloneRequest, ) -> Result<SnapshotResponse, HyperClientError>
Auto Trait Implementations§
impl Freeze for HyperClient
impl !RefUnwindSafe for HyperClient
impl Send for HyperClient
impl Sync for HyperClient
impl Unpin for HyperClient
impl UnsafeUnpin for HyperClient
impl !UnwindSafe for HyperClient
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