Struct google_compute1::BackendService
source · pub struct BackendService {Show 21 fields
pub connection_draining: Option<ConnectionDraining>,
pub protocol: Option<String>,
pub description: Option<String>,
pub cdn_policy: Option<BackendServiceCdnPolicy>,
pub load_balancing_scheme: Option<String>,
pub fingerprint: Option<String>,
pub port_name: Option<String>,
pub health_checks: Option<Vec<String>>,
pub creation_timestamp: Option<String>,
pub port: Option<i32>,
pub name: Option<String>,
pub kind: Option<String>,
pub timeout_sec: Option<i32>,
pub enable_cdn: Option<bool>,
pub region: Option<String>,
pub affinity_cookie_ttl_sec: Option<i32>,
pub session_affinity: Option<String>,
pub backends: Option<Vec<Backend>>,
pub id: Option<String>,
pub iap: Option<BackendServiceIAP>,
pub self_link: Option<String>,
}Expand description
A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) (== resource_for beta.backendService ==)
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get backend services (response)
- get health backend services (none)
- insert backend services (request)
- insert region backend services (request)
- list backend services (none)
- update backend services (request)
- get region backend services (response)
- aggregated list backend services (none)
- delete backend services (none)
- patch backend services (request)
- patch region backend services (request)
- update region backend services (request)
Fields§
§connection_draining: Option<ConnectionDraining>no description provided
protocol: Option<String>The protocol this BackendService uses to communicate with backends.
Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
cdn_policy: Option<BackendServiceCdnPolicy>Cloud CDN configuration for this BackendService.
load_balancing_scheme: Option<String>Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other. Possible values are INTERNAL and EXTERNAL.
fingerprint: Option<String>Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
port_name: Option<String>Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
When the load balancing scheme is INTERNAL, this field is not used.
health_checks: Option<Vec<String>>The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required for Compute Engine backend services. A health check must not be specified for App Engine backend and Cloud Function backend.
For internal load balancing, a URL to a HealthCheck resource must be specified instead.
creation_timestamp: Option<String>[Output Only] Creation timestamp in RFC3339 text format.
port: Option<i32>Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
This cannot be used for internal load balancing.
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 with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? 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.
kind: Option<String>[Output Only] Type of resource. Always compute#backendService for backend services.
timeout_sec: Option<i32>How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
enable_cdn: Option<bool>If true, enable Cloud CDN for this BackendService.
When the load balancing scheme is INTERNAL, this field is not used.
region: Option<String>[Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
When the load balancing scheme is INTERNAL, this field is not used.
session_affinity: Option<String>Type of session affinity to use. The default is NONE.
When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
When the protocol is UDP, this field is not used.
backends: Option<Vec<Backend>>The list of backends that serve this BackendService.
id: Option<String>[Output Only] The unique identifier for the resource. This identifier is defined by the server.
iap: Option<BackendServiceIAP>no description provided
self_link: Option<String>[Output Only] Server-defined URL for the resource.
Trait Implementations§
source§impl Clone for BackendService
impl Clone for BackendService
source§fn clone(&self) -> BackendService
fn clone(&self) -> BackendService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BackendService
impl Debug for BackendService
source§impl Default for BackendService
impl Default for BackendService
source§fn default() -> BackendService
fn default() -> BackendService
source§impl<'de> Deserialize<'de> for BackendService
impl<'de> Deserialize<'de> for BackendService
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for BackendService
impl Serialize for BackendService
impl RequestValue for BackendService
impl Resource for BackendService
impl ResponseResult for BackendService
Auto Trait Implementations§
impl Freeze for BackendService
impl RefUnwindSafe for BackendService
impl Send for BackendService
impl Sync for BackendService
impl Unpin for BackendService
impl UnwindSafe for BackendService
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more