class Google::Apis::ComputeBeta::BackendService
A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Attributes
The list of backends that serve this BackendService. Corresponds to the JSON property `backends` @return [Array<Google::Apis::ComputeBeta::Backend>]
- Output Only
-
Creation timestamp in RFC3339 text format.
Corresponds to the JSON property `creationTimestamp` @return [String]
An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]
If true, enable Cloud CDN for this BackendService. Corresponds to the JSON property `enableCDN` @return [Boolean]
If true, enable Cloud CDN for this BackendService. Corresponds to the JSON property `enableCDN` @return [Boolean]
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]
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>]
- Output Only
-
The unique identifier for the resource. This identifier is
defined by the server. Corresponds to the JSON property `id` @return [String]
- Output Only
-
Type of resource. Always compute#backendService for backend
services. Corresponds to the JSON property `kind` @return [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]*)? 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]
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]
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]
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]
- 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]
- Output Only
-
Server-defined URL for the resource.
Corresponds to the JSON property `selfLink` @return [String]
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
# File generated/google/apis/compute_beta/classes.rb, line 1117 def initialize(**args) update!(**args) end
Public Instance Methods
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