[][src]Struct google_compute1::BackendService

pub struct BackendService {
    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 security_policy: Option<String>,
    pub fingerprint: Option<String>,
    pub port_name: Option<String>,
    pub health_checks: Option<Vec<String>>,
    pub session_affinity: Option<String>,
    pub creation_timestamp: Option<String>,
    pub id: Option<String>,
    pub name: Option<String>,
    pub kind: Option<String>,
    pub custom_request_headers: Option<Vec<String>>,
    pub enable_cdn: Option<bool>,
    pub region: Option<String>,
    pub affinity_cookie_ttl_sec: Option<i32>,
    pub port: Option<i32>,
    pub timeout_sec: Option<i32>,
    pub backends: Option<Vec<Backend>>,
    pub iap: Option<BackendServiceIAP>,
    pub self_link: Option<String>,
}

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).

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.

security_policy: Option<String>

[Output Only] The resource URL for the security policy associated with this backend service.

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, otherwise the request will fail with error 412 conditionNotMet.

To see the latest fingerprint, make a get() request to retrieve a 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.

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.

creation_timestamp: Option<String>

[Output Only] Creation timestamp in RFC3339 text format.

id: Option<String>

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

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]([-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.

kind: Option<String>

[Output Only] Type of resource. Always compute#backendService for backend services.

custom_request_headers: Option<Vec<String>>

Headers that the HTTP/S load balancer should add to proxied requests.

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. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

affinity_cookie_ttl_sec: Option<i32>

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.

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.

timeout_sec: Option<i32>

How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.

backends: Option<Vec<Backend>>

The list of backends that serve this BackendService.

iap: Option<BackendServiceIAP>

no description provided

self_link: Option<String>

[Output Only] Server-defined URL for the resource.

Trait Implementations

impl Resource for BackendService[src]

impl ResponseResult for BackendService[src]

impl RequestValue for BackendService[src]

impl Default for BackendService[src]

impl Clone for BackendService[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for BackendService[src]

impl Serialize for BackendService[src]

impl<'de> Deserialize<'de> for BackendService[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]