pub struct LinkPublicIpRequest {
pub allow_relink: Option<bool>,
pub dry_run: Option<bool>,
pub nic_id: Option<String>,
pub private_ip: Option<String>,
pub public_ip: Option<String>,
pub public_ip_id: Option<String>,
pub vm_id: Option<String>,
}
Fields§
§allow_relink: Option<bool>
If true, allows the public IP to be associated with the VM or NIC that you specify even if it is already associated with another VM or NIC. If false, prevents the public IP from being associated with the VM or NIC that you specify if it is already associated with another VM or NIC. (By default, true in the public Cloud, false in a Net.)
dry_run: Option<bool>
If true, checks whether you have the required permissions to perform the action.
nic_id: Option<String>
(Net only) The ID of the NIC. This parameter is required if the VM has more than one NIC attached. Otherwise, you need to specify the VmId
parameter instead. You cannot specify both parameters at the same time.
private_ip: Option<String>
(Net only) The primary or secondary private IP of the specified NIC. By default, the primary private IP.
public_ip: Option<String>
The public IP. This parameter is required unless you use the PublicIpId
parameter.
public_ip_id: Option<String>
The allocation ID of the public IP. This parameter is required unless you use the PublicIp
parameter.
vm_id: Option<String>
The ID of the VM.
- In the public Cloud, this parameter is required.
- In a Net, this parameter is required if the VM has only one NIC. Otherwise, you need to specify the NicId
parameter instead. You cannot specify both parameters at the same time.
Implementations§
Source§impl LinkPublicIpRequest
impl LinkPublicIpRequest
pub fn new() -> LinkPublicIpRequest
Trait Implementations§
Source§impl Clone for LinkPublicIpRequest
impl Clone for LinkPublicIpRequest
Source§fn clone(&self) -> LinkPublicIpRequest
fn clone(&self) -> LinkPublicIpRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LinkPublicIpRequest
impl Debug for LinkPublicIpRequest
Source§impl Default for LinkPublicIpRequest
impl Default for LinkPublicIpRequest
Source§fn default() -> LinkPublicIpRequest
fn default() -> LinkPublicIpRequest
Source§impl<'de> Deserialize<'de> for LinkPublicIpRequest
impl<'de> Deserialize<'de> for LinkPublicIpRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LinkPublicIpRequest
impl PartialEq for LinkPublicIpRequest
Source§impl Serialize for LinkPublicIpRequest
impl Serialize for LinkPublicIpRequest
impl StructuralPartialEq for LinkPublicIpRequest
Auto Trait Implementations§
impl Freeze for LinkPublicIpRequest
impl RefUnwindSafe for LinkPublicIpRequest
impl Send for LinkPublicIpRequest
impl Sync for LinkPublicIpRequest
impl Unpin for LinkPublicIpRequest
impl UnwindSafe for LinkPublicIpRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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