pub struct CustomerGateway {
pub name: String,
pub ip_address: String,
pub wireguard_public_key: String,
pub display_name: String,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
pub wireguard_port: i32,
}Expand description
The far end of a site-to-site VPN tunnel. A different device, or the same device with a new address, key or port, is a new customer gateway.
Fields§
§name: StringThe customer gateway’s resource name.
ip_address: StringThe device’s public IPv4 address. Not an address of a private, shared,
loopback, link-local, multicast or reserved range, nor one the platform
gives out as floating IPs. An IPsec connection needs it. A WireGuard
connection doesn’t: without it, the device has to start the tunnel and
keep it alive. At least one of ip_address and wireguard_public_key
is set.
wireguard_public_key: StringThe device’s WireGuard public key as WireGuard writes it: 32 bytes in standard base64, 44 characters. A WireGuard connection needs it.
display_name: StringA name of your choosing for the device, at most 63 characters.
create_time: Option<Timestamp>When the customer gateway was created.
creator: StringThe principal that created the customer gateway, by its full name on
iam: //iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
wireguard_port: i32The UDP port the device’s WireGuard listens on, 1 to 65535: its
ListenPort. Only with wireguard_public_key and ip_address; none
of them can be added later. With it, the VPN gateway starts the tunnel
too, also after it moves to another host. Without it, only the device
starts it: after a move, the tunnel is down until the device’s
next handshake, about 15 seconds after it sends traffic that gets no
answer, otherwise up to about 2 minutes. 0 or unset: not set.
Trait Implementations§
Source§impl Clone for CustomerGateway
impl Clone for CustomerGateway
Source§impl Debug for CustomerGateway
impl Debug for CustomerGateway
Source§impl Default for CustomerGateway
impl Default for CustomerGateway
Source§impl<'de> Deserialize<'de> for CustomerGateway
impl<'de> Deserialize<'de> for CustomerGateway
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 Message for CustomerGateway
impl Message for CustomerGateway
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.