Struct SyncApiClient

Source
pub struct SyncApiClient<C: Connect> { /* private fields */ }

Implementations§

Source§

impl<C: Connect> SyncApiClient<C>

Source

pub fn new(configuration: Rc<Configuration<C>>) -> SyncApiClient<C>

Trait Implementations§

Source§

impl<C: Connect + 'static> SyncApi for SyncApiClient<C>

Source§

fn create_sync_job( &self, sync_job: SyncJobCreateParams, ) -> Box<dyn Future<Item = CreateResponse, Error = Error>>

Source§

fn create_sync_policy( &self, sync_policy: SyncPolicyCreateParams, ) -> Box<dyn Future<Item = CreateResponse, Error = Error>>

Source§

fn create_sync_reports_rotate_item( &self, sync_reports_rotate_item: Empty, ) -> Box<dyn Future<Item = CreateSyncReportsRotateItemResponse, Error = Error>>

Source§

fn create_sync_rule( &self, sync_rule: SyncRuleCreateParams, ) -> Box<dyn Future<Item = CreateResponse, Error = Error>>

Source§

fn delete_sync_policies( &self, local_only: bool, force: bool, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn delete_sync_policy( &self, sync_policy_id: &str, local_only: bool, force: bool, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn delete_sync_rule( &self, sync_rule_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn delete_sync_rules( &self, _type: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn delete_target_policy( &self, target_policy_id: &str, force: bool, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn get_history_cpu( &self, begin: i32, end: i32, ) -> Box<dyn Future<Item = HistoryFile, Error = Error>>

Source§

fn get_history_file( &self, begin: i32, end: i32, ) -> Box<dyn Future<Item = HistoryFile, Error = Error>>

Source§

fn get_history_network( &self, begin: i32, end: i32, ) -> Box<dyn Future<Item = HistoryFile, Error = Error>>

Source§

fn get_history_worker( &self, begin: i32, end: i32, ) -> Box<dyn Future<Item = HistoryFile, Error = Error>>

Source§

fn get_sync_job( &self, sync_job_id: &str, ) -> Box<dyn Future<Item = SyncJobs, Error = Error>>

Source§

fn get_sync_license( &self, ) -> Box<dyn Future<Item = LicenseLicense, Error = Error>>

Source§

fn get_sync_policy( &self, sync_policy_id: &str, ) -> Box<dyn Future<Item = SyncPolicies, Error = Error>>

Source§

fn get_sync_report( &self, sync_report_id: &str, ) -> Box<dyn Future<Item = SyncReports, Error = Error>>

Source§

fn get_sync_reports( &self, sort: &str, resume: &str, newer_than: i32, policy_name: &str, state: &str, limit: i32, reports_per_policy: i32, dir: &str, ) -> Box<dyn Future<Item = SyncReportsExtended, Error = Error>>

Source§

fn get_sync_rule( &self, sync_rule_id: &str, ) -> Box<dyn Future<Item = SyncRules, Error = Error>>

Source§

fn get_sync_settings( &self, ) -> Box<dyn Future<Item = SyncSettings, Error = Error>>

Source§

fn get_target_policies( &self, sort: &str, target_path: &str, limit: i32, dir: &str, resume: &str, ) -> Box<dyn Future<Item = TargetPoliciesExtended, Error = Error>>

Source§

fn get_target_policy( &self, target_policy_id: &str, ) -> Box<dyn Future<Item = TargetPolicies, Error = Error>>

Source§

fn get_target_report( &self, target_report_id: &str, ) -> Box<dyn Future<Item = TargetReports, Error = Error>>

Source§

fn get_target_reports( &self, sort: &str, resume: &str, newer_than: i32, policy_name: &str, state: &str, limit: i32, reports_per_policy: i32, dir: &str, ) -> Box<dyn Future<Item = TargetReportsExtended, Error = Error>>

Source§

fn list_sync_jobs( &self, sort: &str, state: &str, limit: i32, dir: &str, resume: &str, ) -> Box<dyn Future<Item = SyncJobsExtended, Error = Error>>

Source§

fn list_sync_policies( &self, sort: &str, resume: &str, summary: bool, limit: i32, scope: &str, dir: &str, ) -> Box<dyn Future<Item = SyncPoliciesExtended, Error = Error>>

Source§

fn list_sync_reports_rotate( &self, ) -> Box<dyn Future<Item = SyncReportsRotate, Error = Error>>

Source§

fn list_sync_rules( &self, sort: &str, _type: &str, limit: i32, dir: &str, resume: &str, ) -> Box<dyn Future<Item = SyncRulesExtended, Error = Error>>

Source§

fn update_sync_job( &self, sync_job: SyncJob, sync_job_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn update_sync_policy( &self, sync_policy: SyncPolicy, sync_policy_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn update_sync_rule( &self, sync_rule: SyncRule, sync_rule_id: &str, ) -> Box<dyn Future<Item = (), Error = Error>>

Source§

fn update_sync_settings( &self, sync_settings: SyncSettingsExtended, ) -> Box<dyn Future<Item = (), Error = Error>>

Auto Trait Implementations§

§

impl<C> Freeze for SyncApiClient<C>

§

impl<C> !RefUnwindSafe for SyncApiClient<C>

§

impl<C> !Send for SyncApiClient<C>

§

impl<C> !Sync for SyncApiClient<C>

§

impl<C> Unpin for SyncApiClient<C>

§

impl<C> !UnwindSafe for SyncApiClient<C>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. 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<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

Source§

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

Source§

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