#[non_exhaustive]pub struct Network {
pub forwarded_ports: Vec<String>,
pub instance_tag: String,
pub name: String,
pub subnetwork_name: String,
pub session_affinity: bool,
/* private fields */
}
Expand description
Extra network settings. Only applicable in the App Engine flexible environment.
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.forwarded_ports: Vec<String>
List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.
instance_tag: String
Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
name: String
Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.
Defaults to default
.
subnetwork_name: String
Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.
If a subnetwork name is specified, a network name will also be required unless it is for the default network.
- If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
- If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
- If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.
If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.
session_affinity: bool
Enable session affinity. Only applicable in the App Engine flexible environment.
Implementations§
Source§impl Network
impl Network
pub fn new() -> Self
Sourcepub fn set_forwarded_ports<T, V>(self, v: T) -> Self
pub fn set_forwarded_ports<T, V>(self, v: T) -> Self
Sets the value of forwarded_ports.
Sourcepub fn set_instance_tag<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_tag<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_tag.
Sourcepub fn set_subnetwork_name<T: Into<String>>(self, v: T) -> Self
pub fn set_subnetwork_name<T: Into<String>>(self, v: T) -> Self
Sets the value of subnetwork_name.
Sourcepub fn set_session_affinity<T: Into<bool>>(self, v: T) -> Self
pub fn set_session_affinity<T: Into<bool>>(self, v: T) -> Self
Sets the value of session_affinity.