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>,
}Expand description
The far end of a site-to-site VPN tunnel. A different device, or the same device with a new address or key, 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.
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.