Skip to main content

VirtualMachineDefinedProfileSpec

Struct VirtualMachineDefinedProfileSpec 

Source
pub struct VirtualMachineDefinedProfileSpec {
    pub profile_id: String,
    pub replication_spec: Option<ReplicationSpec>,
    pub profile_data: Option<VirtualMachineProfileRawData>,
    pub profile_params: Option<Vec<KeyValue>>,
}
Expand description

Policy specification that carries a pre-defined Storage Policy to be associated with a Virtual Machine Home or a Virtual Disk object.

Such a pre-defined policy can be either be vSphere Storage Administrator defined or may come from a set of pre-defined policies from Storage Vendor.

Neither the association nor the policy data is persisted in Virtual Machine configuration. This data is managed by the an extension of Virtual Center (Storage Policy Based Management).

§How to access

  • ComputeResource::configuration_ex→ClusterConfigInfoEx.vsan_config_info?→VsanConfigInfoEx.perfsvc_config?.profile?→VirtualMachineDefinedProfileSpec
  • ComputeResource::configuration_ex→ClusterConfigInfoEx.vsan_config_info?→VsanConfigInfoEx.iscsi_config?→VsanIscsiTargetServiceSpec.home_object_storage_policy?→VirtualMachineDefinedProfileSpec
  • ClusterComputeResource::action_history.action→StoragePlacementAction.relocate_spec.profile?[*]→VirtualMachineDefinedProfileSpec
  • ClusterComputeResource::action_history.action→StorageMigrationAction.relocate_spec.profile?[*]→VirtualMachineDefinedProfileSpec
  • ClusterComputeResource::action_history.action→PlacementAction.relocate_spec?.profile?[*]→VirtualMachineDefinedProfileSpec
  • ClusterComputeResource::action_history.action→ClusterClusterInitialPlacementAction.config_spec?.vm_profile?[*]→VirtualMachineDefinedProfileSpec
  • ClusterComputeResource::recommendation.action?[*]→StoragePlacementAction.relocate_spec.profile?[*]→VirtualMachineDefinedProfileSpec
  • Folder::create_vm_task(config).vm_profile?[*]→VirtualMachineDefinedProfileSpec
  • Folder::create_vm_task(config).device_change?[*].profile?[*]→VirtualMachineDefinedProfileSpec
  • Folder::create_cluster_ex(spec).vsan_config?→VsanConfigInfoEx.perfsvc_config?.profile?→VirtualMachineDefinedProfileSpec

(10 of 100 paths)

Fields§

§profile_id: String

Storage Policy Profile identification - Should be pbm.profileId but for implementation reasons, could not be.

§replication_spec: Option<ReplicationSpec>

Specification containing replication related parameters, sent to the Replication Data Service provider.

§profile_data: Option<VirtualMachineProfileRawData>

Profile data sent to the Storage Backend by vSphere.

This data is provided by the SPBM component of the vSphere platform. This field should not be set by Virtual Center users.

§profile_params: Option<Vec<KeyValue>>

Parameterized Storage Profiles Extra configuration that is not expressed as a capability in the Profile definition.

Trait Implementations§

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> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
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<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
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> ErasedDestructor for T
where T: 'static,