class Google::Apis::ComputeBeta::BackendService

A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.

Attributes

backends[RW]

The list of backends that serve this BackendService. Corresponds to the JSON property `backends` @return [Array<Google::Apis::ComputeBeta::Backend>]

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

description[RW]

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]

enable_cdn[RW]

If true, enable Cloud CDN for this BackendService. Corresponds to the JSON property `enableCDN` @return [Boolean]

enable_cdn?[RW]

If true, enable Cloud CDN for this BackendService. Corresponds to the JSON property `enableCDN` @return [Boolean]

fingerprint[RW]

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. Corresponds to the JSON property `fingerprint` @return [String]

health_checks[RW]

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. Corresponds to the JSON property `healthChecks` @return [Array<String>]

id[RW]
Output Only

The unique identifier for the resource. This identifier is

defined by the server. Corresponds to the JSON property `id` @return [String]

kind[RW]
Output Only

Type of resource. Always compute#backendService for backend

services. Corresponds to the JSON property `kind` @return [String]

name[RW]

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]*)? 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. Corresponds to the JSON property `name` @return [String]

port[RW]

Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. Corresponds to the JSON property `port` @return [Fixnum]

port_name[RW]

Name of backend port. The same name should appear in the instance groups referenced by this service. Required. Corresponds to the JSON property `portName` @return [String]

protocol[RW]

The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. Corresponds to the JSON property `protocol` @return [String]

region[RW]
Output Only

URL of the region where the regional backend service resides.

This field is not applicable to global backend services. Corresponds to the JSON property `region` @return [String]

timeout_sec[RW]

How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. Corresponds to the JSON property `timeoutSec` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/compute_beta/classes.rb, line 1117
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_beta/classes.rb, line 1122
def update!(**args)
  @backends = args[:backends] if args.key?(:backends)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @health_checks = args[:health_checks] if args.key?(:health_checks)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @port = args[:port] if args.key?(:port)
  @port_name = args[:port_name] if args.key?(:port_name)
  @protocol = args[:protocol] if args.key?(:protocol)
  @region = args[:region] if args.key?(:region)
  @self_link = args[:self_link] if args.key?(:self_link)
  @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
end