#[non_exhaustive]pub struct UrlMapsValidateRequest {
pub load_balancing_schemes: Vec<LoadBalancingSchemes>,
pub resource: Option<UrlMap>,
/* private fields */
}url-maps only.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.load_balancing_schemes: Vec<LoadBalancingSchemes>Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for global external Application Load Balancers and regional external Application Load Balancers. Use EXTERNAL for classic Application Load Balancers.
Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to Choosing a load balancer.
If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn’t reference any backends),EXTERNAL will be used as the default type.
If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
resource: Option<UrlMap>Content of the UrlMap to be validated.
Implementations§
Source§impl UrlMapsValidateRequest
impl UrlMapsValidateRequest
pub fn new() -> Self
Sourcepub fn set_load_balancing_schemes<T, V>(self, v: T) -> Self
pub fn set_load_balancing_schemes<T, V>(self, v: T) -> Self
Sets the value of load_balancing_schemes.
§Example
use google_cloud_compute_v1::model::url_maps_validate_request::LoadBalancingSchemes;
let x = UrlMapsValidateRequest::new().set_load_balancing_schemes([
LoadBalancingSchemes::ExternalManaged,
LoadBalancingSchemes::LoadBalancingSchemeUnspecified,
]);Sourcepub fn set_resource<T>(self, v: T) -> Self
pub fn set_resource<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_resource<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_resource<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for UrlMapsValidateRequest
impl Clone for UrlMapsValidateRequest
Source§fn clone(&self) -> UrlMapsValidateRequest
fn clone(&self) -> UrlMapsValidateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more