Struct googapis::google::cloud::compute::v1::AccessConfig [−][src]
pub struct AccessConfig {
pub external_ipv6: Option<String>,
pub external_ipv6_prefix_length: Option<i32>,
pub kind: Option<String>,
pub name: Option<String>,
pub nat_i_p: Option<String>,
pub network_tier: Option<String>,
pub public_ptr_domain_name: Option<String>,
pub set_public_ptr: Option<bool>,
pub type: Option<String>,
}
Expand description
An access configuration attached to an instance’s network interface. Only one access config per instance is supported.
Fields
external_ipv6: Option<String>
[Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
external_ipv6_prefix_length: Option<i32>
[Output Only] The prefix length of the external IPv6 range.
kind: Option<String>
[Output Only] Type of the resource. Always compute#accessConfig for access configs.
name: Option<String>
The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.
nat_i_p: Option<String>
An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
network_tier: Option<String>
This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. Check the NetworkTier enum for the list of possible values.
public_ptr_domain_name: Option<String>
The DNS domain name for the public PTR record. You can set this field only if the setPublicPtr
field is enabled.
set_public_ptr: Option<bool>
Specifies whether a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name.
type: Option<String>
The type of configuration. The default and only option is ONE_TO_ONE_NAT. Check the Type enum for the list of possible values.
Implementations
Returns the value of nat_i_p
, or the default value if nat_i_p
is unset.
Returns the value of public_ptr_domain_name
, or the default value if public_ptr_domain_name
is unset.
Returns the value of external_ipv6_prefix_length
, or the default value if external_ipv6_prefix_length
is unset.
Returns the value of network_tier
, or the default value if network_tier
is unset.
Returns the value of set_public_ptr
, or the default value if set_public_ptr
is unset.
Returns the value of external_ipv6
, or the default value if external_ipv6
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AccessConfig
impl Send for AccessConfig
impl Sync for AccessConfig
impl Unpin for AccessConfig
impl UnwindSafe for AccessConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more