#[non_exhaustive]pub struct NetworkEndpointGroupAppEngine {
pub service: Option<String>,
pub url_mask: Option<String>,
pub version: Option<String>,
/* private fields */
}global-network-endpoint-groups or network-endpoint-groups or region-network-endpoint-groups only.Expand description
Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present.
Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
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.service: Option<String>Optional serving service.
The service name is case-sensitive and must be 1-63 characters long.
Example value: default, my-service.
url_mask: Option<String>An URL mask is one of the main components of the Cloud Function.
A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services.
For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 can be backed by the same Serverless NEG with URL mask<service>-dot-appname.appspot.com/<version>. The URL mask will parse them to { service = “foo1”, version = “v1” } and { service = “foo1”, version = “v2” } respectively.
version: Option<String>Optional serving version.
The version name is case-sensitive and must be 1-100 characters long.
Example value: v1, v2.
Implementations§
Source§impl NetworkEndpointGroupAppEngine
impl NetworkEndpointGroupAppEngine
pub fn new() -> Self
Sourcepub fn set_service<T>(self, v: T) -> Self
pub fn set_service<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_service<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_service<T>(self, v: Option<T>) -> Self
Sourcepub fn set_url_mask<T>(self, v: T) -> Self
pub fn set_url_mask<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_url_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_url_mask<T>(self, v: Option<T>) -> Self
Sourcepub fn set_version<T>(self, v: T) -> Self
pub fn set_version<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for NetworkEndpointGroupAppEngine
impl Clone for NetworkEndpointGroupAppEngine
Source§fn clone(&self) -> NetworkEndpointGroupAppEngine
fn clone(&self) -> NetworkEndpointGroupAppEngine
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for NetworkEndpointGroupAppEngine
impl Default for NetworkEndpointGroupAppEngine
Source§fn default() -> NetworkEndpointGroupAppEngine
fn default() -> NetworkEndpointGroupAppEngine
Source§impl PartialEq for NetworkEndpointGroupAppEngine
impl PartialEq for NetworkEndpointGroupAppEngine
Source§fn eq(&self, other: &NetworkEndpointGroupAppEngine) -> bool
fn eq(&self, other: &NetworkEndpointGroupAppEngine) -> bool
self and other values to be equal, and is used by ==.