lib/fastly/models/backend_response.rb in fastly-8.1.0 vs lib/fastly/models/backend_response.rb in fastly-8.2.0
- old
+ new
@@ -98,10 +98,22 @@
attr_accessor :ssl_hostname
# Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
attr_accessor :ssl_sni_hostname
+ # Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
+ attr_accessor :tcp_keepalive_enable
+
+ # Interval in seconds between subsequent keepalive probes.
+ attr_accessor :tcp_keepalive_interval
+
+ # Number of unacknowledged probes to send before considering the connection dead.
+ attr_accessor :tcp_keepalive_probes
+
+ # Interval in seconds between the last data packet sent and the first keepalive probe.
+ attr_accessor :tcp_keepalive_time
+
# Whether or not to require TLS for connections to this backend.
attr_accessor :use_ssl
# Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.
attr_accessor :weight
@@ -152,10 +164,14 @@
:'ssl_ciphers' => :'ssl_ciphers',
:'ssl_client_cert' => :'ssl_client_cert',
:'ssl_client_key' => :'ssl_client_key',
:'ssl_hostname' => :'ssl_hostname',
:'ssl_sni_hostname' => :'ssl_sni_hostname',
+ :'tcp_keepalive_enable' => :'tcp_keepalive_enable',
+ :'tcp_keepalive_interval' => :'tcp_keepalive_interval',
+ :'tcp_keepalive_probes' => :'tcp_keepalive_probes',
+ :'tcp_keepalive_time' => :'tcp_keepalive_time',
:'use_ssl' => :'use_ssl',
:'weight' => :'weight',
:'created_at' => :'created_at',
:'deleted_at' => :'deleted_at',
:'updated_at' => :'updated_at',
@@ -200,10 +216,14 @@
:'ssl_ciphers' => :'String',
:'ssl_client_cert' => :'String',
:'ssl_client_key' => :'String',
:'ssl_hostname' => :'String',
:'ssl_sni_hostname' => :'String',
+ :'tcp_keepalive_enable' => :'Boolean',
+ :'tcp_keepalive_interval' => :'Integer',
+ :'tcp_keepalive_probes' => :'Integer',
+ :'tcp_keepalive_time' => :'Integer',
:'use_ssl' => :'Boolean',
:'weight' => :'Integer',
:'created_at' => :'Time',
:'deleted_at' => :'Time',
:'updated_at' => :'Time',
@@ -234,10 +254,13 @@
:'ssl_ciphers',
:'ssl_client_cert',
:'ssl_client_key',
:'ssl_hostname',
:'ssl_sni_hostname',
+ :'tcp_keepalive_interval',
+ :'tcp_keepalive_probes',
+ :'tcp_keepalive_time',
:'created_at',
:'deleted_at',
:'updated_at',
])
end
@@ -383,10 +406,26 @@
if attributes.key?(:'ssl_sni_hostname')
self.ssl_sni_hostname = attributes[:'ssl_sni_hostname']
end
+ if attributes.key?(:'tcp_keepalive_enable')
+ self.tcp_keepalive_enable = attributes[:'tcp_keepalive_enable']
+ end
+
+ if attributes.key?(:'tcp_keepalive_interval')
+ self.tcp_keepalive_interval = attributes[:'tcp_keepalive_interval']
+ end
+
+ if attributes.key?(:'tcp_keepalive_probes')
+ self.tcp_keepalive_probes = attributes[:'tcp_keepalive_probes']
+ end
+
+ if attributes.key?(:'tcp_keepalive_time')
+ self.tcp_keepalive_time = attributes[:'tcp_keepalive_time']
+ end
+
if attributes.key?(:'use_ssl')
self.use_ssl = attributes[:'use_ssl']
end
if attributes.key?(:'weight')
@@ -480,10 +519,14 @@
ssl_ciphers == o.ssl_ciphers &&
ssl_client_cert == o.ssl_client_cert &&
ssl_client_key == o.ssl_client_key &&
ssl_hostname == o.ssl_hostname &&
ssl_sni_hostname == o.ssl_sni_hostname &&
+ tcp_keepalive_enable == o.tcp_keepalive_enable &&
+ tcp_keepalive_interval == o.tcp_keepalive_interval &&
+ tcp_keepalive_probes == o.tcp_keepalive_probes &&
+ tcp_keepalive_time == o.tcp_keepalive_time &&
use_ssl == o.use_ssl &&
weight == o.weight &&
created_at == o.created_at &&
deleted_at == o.deleted_at &&
updated_at == o.updated_at &&
@@ -499,10 +542,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, healthcheck, hostname, ipv4, ipv6, keepalive_time, max_conn, max_tls_version, min_tls_version, name, override_host, port, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, use_ssl, weight, created_at, deleted_at, updated_at, service_id, version, locked].hash
+ [address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, healthcheck, hostname, ipv4, ipv6, keepalive_time, max_conn, max_tls_version, min_tls_version, name, override_host, port, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, tcp_keepalive_enable, tcp_keepalive_interval, tcp_keepalive_probes, tcp_keepalive_time, use_ssl, weight, created_at, deleted_at, updated_at, service_id, version, locked].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself