Skip to main content

Actions

Struct Actions 

Source
pub struct Actions {
    pub oem: Option<OemActions>,
    pub assign_replica_target: Option<Action<VolumeAssignReplicaTargetAction, ()>>,
    pub change_raid_layout: Option<Action<VolumeChangeRAIDLayoutAction, ()>>,
    pub check_consistency: Option<Action<VolumeCheckConsistencyAction, ()>>,
    pub create_replica_target: Option<Action<VolumeCreateReplicaTargetAction, ()>>,
    pub force_enable: Option<Action<VolumeForceEnableAction, ()>>,
    pub initialize: Option<Action<VolumeInitializeAction, ()>>,
    pub remove_replica_relationship: Option<Action<VolumeRemoveReplicaRelationshipAction, ()>>,
    pub resume_replication: Option<Action<VolumeResumeReplicationAction, ()>>,
    pub reverse_replication_relationship: Option<Action<VolumeReverseReplicationRelationshipAction, ()>>,
    pub split_replication: Option<Action<VolumeSplitReplicationAction, ()>>,
    pub suspend_replication: Option<Action<VolumeSuspendReplicationAction, ()>>,
}

Fields§

§oem: Option<OemActions>§assign_replica_target: Option<Action<VolumeAssignReplicaTargetAction, ()>>§change_raid_layout: Option<Action<VolumeChangeRAIDLayoutAction, ()>>§check_consistency: Option<Action<VolumeCheckConsistencyAction, ()>>§create_replica_target: Option<Action<VolumeCreateReplicaTargetAction, ()>>§force_enable: Option<Action<VolumeForceEnableAction, ()>>§initialize: Option<Action<VolumeInitializeAction, ()>>§remove_replica_relationship: Option<Action<VolumeRemoveReplicaRelationshipAction, ()>>§resume_replication: Option<Action<VolumeResumeReplicationAction, ()>>§reverse_replication_relationship: Option<Action<VolumeReverseReplicationRelationshipAction, ()>>§split_replication: Option<Action<VolumeSplitReplicationAction, ()>>§suspend_replication: Option<Action<VolumeSuspendReplicationAction, ()>>

Implementations§

Source§

impl Actions

Source

pub async fn assign_replica_target<B: Bmc>( &self, bmc: &B, replica_update_mode: Option<ReplicaUpdateMode>, target_volume: Option<String>, replica_type: Option<ReplicaType>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to establish a replication relationship by assigning an existing volume to serve as a target replica for an existing source volume.

This action shall be used to establish a replication relationship by assigning an existing volume to serve as a target replica for an existing source volume.

§Errors
Source

pub async fn change_raid_layout<B: Bmc>( &self, bmc: &B, t: &VolumeChangeRAIDLayoutAction, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Request system change the RAID layout of the volume.

This action shall request the system to change the RAID layout of the volume. Depending on the combination of the submitted parameters, this could be changing the RAID type, changing the span count, changing the number of drives used by the volume, or another configuration change supported by the system. Note that usage of this action while online may potentially cause data loss if the available capacity is reduced.

§Errors
Source

pub async fn check_consistency<B: Bmc>( &self, bmc: &B, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to force a check of the Volume’s parity or redundant data to ensure it matches calculated values.

This defines the name of the custom action supported on this resource.

§Errors
Source

pub async fn create_replica_target<B: Bmc>( &self, bmc: &B, t: &VolumeCreateReplicaTargetAction, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to create a new volume resource to provide expanded data protection through a replica relationship with the specified source volume.

This action shall be used to create a new volume resource to provide expanded data protection through a replica relationship with the specified source volume.

§Errors
Source

pub async fn force_enable<B: Bmc>( &self, bmc: &B, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Request system force the volume to an enabled state regardless of data loss.

This action shall request the system to force the volume to enabled state regardless of data loss scenarios.

§Errors
Source

pub async fn initialize<B: Bmc>( &self, bmc: &B, initialize_method: Option<InitializeMethod>, initialize_type: Option<InitializeType>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to prepare the contents of the volume for use by the system. If InitializeMethod is not specified in the request body, but the property InitializeMethod is specified, the property InitializeMethod value should be used. If neither is specified, the InitializeMethod should be Foreground.

This defines the name of the custom action supported on this resource. If InitializeMethod is not specified in the request body, but the property InitializeMethod is specified, the property InitializeMethod value should be used. If neither is specified, the InitializeMethod should be Foreground.

§Errors
Source

pub async fn remove_replica_relationship<B: Bmc>( &self, bmc: &B, target_volume: Option<String>, delete_target_volume: Option<Boolean>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to disable data synchronization between a source and target volume, remove the replication relationship, and optionally delete the target volume.

This action shall be used to disable data synchronization between a source and target volume, remove the replication relationship, and optionally delete the target volume.

§Errors
Source

pub async fn resume_replication<B: Bmc>( &self, bmc: &B, target_volume: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to resume the active data synchronization between a source and target volume, without otherwise altering the replication relationship.

This action shall be used to resume the active data synchronization between a source and target volume, without otherwise altering the replication relationship.

§Errors
Source

pub async fn reverse_replication_relationship<B: Bmc>( &self, bmc: &B, target_volume: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to reverse the replication relationship between a source and target volume.

This action shall be used to reverse the replication relationship between a source and target volume.

§Errors
Source

pub async fn split_replication<B: Bmc>( &self, bmc: &B, target_volume: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to split the replication relationship and suspend data synchronization between a source and target volume.

This action shall be used to split the replication relationship and suspend data synchronization between a source and target volume.

§Errors
Source

pub async fn suspend_replication<B: Bmc>( &self, bmc: &B, target_volume: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action is used to suspend active data synchronization between a source and target volume, without otherwise altering the replication relationship.

This action shall be used to suspend active data synchronization between a source and target volume, without otherwise altering the replication relationship.

§Errors

Trait Implementations§

Source§

impl Debug for Actions

Source§

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

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

impl<'de> Deserialize<'de> for Actions

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Send for Actions

SAFETY: All generated data types are Send

Source§

impl Sync for Actions

SAFETY: All generated data types are Sync

Auto Trait Implementations§

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,