#[non_exhaustive]pub struct ExternalVpnGateway {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub interfaces: Vec<ExternalVpnGatewayInterface>,
pub kind: Option<String>,
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
pub name: Option<String>,
pub redundancy_type: Option<RedundancyType>,
pub self_link: Option<String>,
/* private fields */
}external-vpn-gateways only.Expand description
Represents an external VPN gateway.
External VPN gateway is the on-premises VPN gateway(s) or another cloud provider’s VPN gateway that connects to your Google Cloud VPN gateway.
To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud provider’s VPN gateway, you must create a external VPN gateway resource with information about the other gateway.
For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel pair to a peer VPN.
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.creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
interfaces: Vec<ExternalVpnGatewayInterface>A list of interfaces for this external VPN gateway.
If your peer-side gateway is an on-premises gateway and non-AWS cloud providers’ gateway, at most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS virtual private gateway, four interfaces should be provided for an external VPN gateway.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways.
label_fingerprint: Option<Bytes>A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway.
labels: HashMap<String, String>Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035. Label values may be empty.
name: Option<String>Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
redundancy_type: Option<RedundancyType>Indicates the user-supplied redundancy type of this external VPN gateway.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
Implementations§
Source§impl ExternalVpnGateway
impl ExternalVpnGateway
pub fn new() -> Self
Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = ExternalVpnGateway::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = ExternalVpnGateway::new().set_or_clear_creation_timestamp(Some("example"));
let x = ExternalVpnGateway::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
let x = ExternalVpnGateway::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = ExternalVpnGateway::new().set_or_clear_description(Some("example"));
let x = ExternalVpnGateway::new().set_or_clear_description(None::<String>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_interfaces<T, V>(self, v: T) -> Self
pub fn set_interfaces<T, V>(self, v: T) -> Self
Sets the value of interfaces.
§Example
use google_cloud_compute_v1::model::ExternalVpnGatewayInterface;
let x = ExternalVpnGateway::new()
.set_interfaces([
ExternalVpnGatewayInterface::default()/* use setters */,
ExternalVpnGatewayInterface::default()/* use (different) setters */,
]);Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_label_fingerprint<T>(self, v: T) -> Self
pub fn set_label_fingerprint<T>(self, v: T) -> Self
Sets the value of label_fingerprint.
§Example
let x = ExternalVpnGateway::new().set_label_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of label_fingerprint.
§Example
let x = ExternalVpnGateway::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = ExternalVpnGateway::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_redundancy_type<T>(self, v: T) -> Selfwhere
T: Into<RedundancyType>,
pub fn set_redundancy_type<T>(self, v: T) -> Selfwhere
T: Into<RedundancyType>,
Sets the value of redundancy_type.
§Example
use google_cloud_compute_v1::model::external_vpn_gateway::RedundancyType;
let x0 = ExternalVpnGateway::new().set_redundancy_type(RedundancyType::SingleIpInternallyRedundant);
let x1 = ExternalVpnGateway::new().set_redundancy_type(RedundancyType::TwoIpsRedundancy);Sourcepub fn set_or_clear_redundancy_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<RedundancyType>,
pub fn set_or_clear_redundancy_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<RedundancyType>,
Sets or clears the value of redundancy_type.
§Example
use google_cloud_compute_v1::model::external_vpn_gateway::RedundancyType;
let x0 = ExternalVpnGateway::new().set_or_clear_redundancy_type(Some(RedundancyType::SingleIpInternallyRedundant));
let x1 = ExternalVpnGateway::new().set_or_clear_redundancy_type(Some(RedundancyType::TwoIpsRedundancy));
let x_none = ExternalVpnGateway::new().set_or_clear_redundancy_type(None::<RedundancyType>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ExternalVpnGateway
impl Clone for ExternalVpnGateway
Source§fn clone(&self) -> ExternalVpnGateway
fn clone(&self) -> ExternalVpnGateway
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more