pub struct HostVirtualNicManager { /* private fields */ }Expand description
The VirtualNicManager managed object describes the special Virtual NIC configuration of the host.
Implementations§
Source§impl HostVirtualNicManager
impl HostVirtualNicManager
pub fn new(client: Arc<dyn VimClient>, mo_id: &str) -> Self
Sourcepub async fn deselect_vnic_for_nic_type(
&self,
nic_type: &str,
device: &str,
) -> Result<()>
pub async fn deselect_vnic_for_nic_type( &self, nic_type: &str, device: &str, ) -> Result<()>
Deselect the VirtualNic to be a special type.
Required privileges: Host.Config.Network
§Parameters:
§nic_type
The type of VirtualNic that would be deselected
§device
The device that uniquely identifies the VirtualNic.
§Errors:
InvalidArgument: if nicType is invalid, device represents a nonexistent or invalid VirtualNic, or the VirtualNic is not selected
HostConfigFault: for any other failure.
Sourcepub async fn query_net_config(
&self,
nic_type: &str,
) -> Result<Option<VirtualNicManagerNetConfig>>
pub async fn query_net_config( &self, nic_type: &str, ) -> Result<Option<VirtualNicManagerNetConfig>>
Sourcepub async fn select_vnic_for_nic_type(
&self,
nic_type: &str,
device: &str,
) -> Result<()>
pub async fn select_vnic_for_nic_type( &self, nic_type: &str, device: &str, ) -> Result<()>
Select the NicType of the VirtualNic.
Selecting a device automatically deselects the previous selection if VirtualNicManagerNetConfig.multiSelectAllowed is false for the specified nicType. Else, the device is added to the list of selected nics.
Required privileges: Host.Config.Network
§Parameters:
§nic_type
The type of VirtualNic that would be selected
§device
The device that uniquely identifies the VirtualNic.
§Errors:
InvalidArgument: if nicType is invalid, or device represents a nonexistent or invalid VirtualNic
HostConfigFault: for any other failure.
Sourcepub async fn set_custom_value(&self, key: &str, value: &str) -> Result<()>
pub async fn set_custom_value(&self, key: &str, value: &str) -> Result<()>
Assigns a value to a custom field.
The setCustomValue method requires whichever updatePrivilege is defined as one of the CustomFieldDef.fieldInstancePrivileges for the CustomFieldDef whose value is being changed.
§Parameters:
§key
The name of the field whose value is to be updated.
§value
Value to be assigned to the custom field.
Sourcepub async fn available_field(&self) -> Result<Option<Vec<CustomFieldDef>>>
pub async fn available_field(&self) -> Result<Option<Vec<CustomFieldDef>>>
List of custom field definitions that are valid for the object’s type.
The fields are sorted by CustomFieldDef.name.
Required privileges: System.View
Sourcepub async fn info(&self) -> Result<HostVirtualNicManagerInfo>
pub async fn info(&self) -> Result<HostVirtualNicManagerInfo>
Network configuration.
Trait Implementations§
Source§impl Clone for HostVirtualNicManager
impl Clone for HostVirtualNicManager
Source§fn clone(&self) -> HostVirtualNicManager
fn clone(&self) -> HostVirtualNicManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more