#[non_exhaustive]pub struct ExternalAddress {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub internal_ip: String,
pub external_ip: String,
pub state: State,
pub uid: String,
pub description: String,
/* private fields */
}Expand description
Represents an allocated external IP address and its corresponding internal IP address in a private cloud.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of this external IP address.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address
create_time: Option<Timestamp>Output only. Creation time of this resource.
update_time: Option<Timestamp>Output only. Last update time of this resource.
internal_ip: StringThe internal IP address of a workload VM.
external_ip: StringOutput only. The external IP address of a workload VM.
state: StateOutput only. The state of the resource.
uid: StringOutput only. System-generated unique identifier for the resource.
description: StringUser-provided description for this resource.
Implementations§
Source§impl ExternalAddress
impl ExternalAddress
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_internal_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_internal_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of internal_ip.
Sourcepub fn set_external_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_external_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of external_ip.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Trait Implementations§
Source§impl Clone for ExternalAddress
impl Clone for ExternalAddress
Source§fn clone(&self) -> ExternalAddress
fn clone(&self) -> ExternalAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more