#[non_exhaustive]pub struct TargetVpnGateway {Show 13 fields
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub forwarding_rules: Vec<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
pub name: Option<String>,
pub network: Option<String>,
pub region: Option<String>,
pub self_link: Option<String>,
pub status: Option<Status>,
pub tunnels: Vec<String>,
/* private fields */
}target-vpn-gateways only.Expand description
Represents a Target VPN Gateway resource.
The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, read thethe Cloud VPN Overview.
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.
forwarding_rules: Vec<String>[Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created usingcompute.forwardingRules.insert and associated with a VPN gateway.
id: Option<u64>[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways.
label_fingerprint: Option<Bytes>A fingerprint for the labels being applied to this TargetVpnGateway, 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 a TargetVpnGateway.
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.
network: Option<String>URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
region: Option<String>[Output Only] URL of the region where the target VPN gateway resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
self_link: Option<String>[Output Only] Server-defined URL for the resource.
status: Option<Status>[Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING.
tunnels: Vec<String>[Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway.
Implementations§
Source§impl TargetVpnGateway
impl TargetVpnGateway
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 = TargetVpnGateway::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 = TargetVpnGateway::new().set_or_clear_creation_timestamp(Some("example"));
let x = TargetVpnGateway::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 = TargetVpnGateway::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 = TargetVpnGateway::new().set_or_clear_description(Some("example"));
let x = TargetVpnGateway::new().set_or_clear_description(None::<String>);Sourcepub fn set_forwarding_rules<T, V>(self, v: T) -> Self
pub fn set_forwarding_rules<T, V>(self, v: T) -> Self
Sets the value of forwarding_rules.
§Example
let x = TargetVpnGateway::new().set_forwarding_rules(["a", "b", "c"]);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_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 = TargetVpnGateway::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 = TargetVpnGateway::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = TargetVpnGateway::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_network<T>(self, v: T) -> Self
pub fn set_network<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_network<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_network<T>(self, v: Option<T>) -> Self
Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::target_vpn_gateway::Status;
let x0 = TargetVpnGateway::new().set_or_clear_status(Some(Status::Deleting));
let x1 = TargetVpnGateway::new().set_or_clear_status(Some(Status::Failed));
let x2 = TargetVpnGateway::new().set_or_clear_status(Some(Status::Ready));
let x_none = TargetVpnGateway::new().set_or_clear_status(None::<Status>);Sourcepub fn set_tunnels<T, V>(self, v: T) -> Self
pub fn set_tunnels<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TargetVpnGateway
impl Clone for TargetVpnGateway
Source§fn clone(&self) -> TargetVpnGateway
fn clone(&self) -> TargetVpnGateway
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more