lib/fastly/api/backend_api.rb in fastly-8.1.0 vs lib/fastly/api/backend_api.rb in fastly-8.2.0
- old
+ new
@@ -48,10 +48,14 @@
# @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
# @option opts [String] :ssl_client_cert Client certificate attached to origin.
# @option opts [String] :ssl_client_key Client key attached to origin.
# @option opts [String] :ssl_hostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.
# @option opts [String] :ssl_sni_hostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
# @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
# @option opts [Integer] :weight 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.
# @return [BackendResponse]
def create_backend(opts = {})
data, _status_code, _headers = create_backend_with_http_info(opts)
@@ -89,10 +93,14 @@
# @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
# @option opts [String] :ssl_client_cert Client certificate attached to origin.
# @option opts [String] :ssl_client_key Client key attached to origin.
# @option opts [String] :ssl_hostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.
# @option opts [String] :ssl_sni_hostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
# @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
# @option opts [Integer] :weight 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.
# @return [Array<(BackendResponse, Integer, Hash)>] BackendResponse data, response status code and response headers
def create_backend_with_http_info(opts = {})
if @api_client.config.debugging
@@ -159,10 +167,14 @@
form_params['ssl_ciphers'] = opts[:'ssl_ciphers'] if !opts[:'ssl_ciphers'].nil?
form_params['ssl_client_cert'] = opts[:'ssl_client_cert'] if !opts[:'ssl_client_cert'].nil?
form_params['ssl_client_key'] = opts[:'ssl_client_key'] if !opts[:'ssl_client_key'].nil?
form_params['ssl_hostname'] = opts[:'ssl_hostname'] if !opts[:'ssl_hostname'].nil?
form_params['ssl_sni_hostname'] = opts[:'ssl_sni_hostname'] if !opts[:'ssl_sni_hostname'].nil?
+ form_params['tcp_keepalive_enable'] = opts[:'tcp_keepalive_enable'] if !opts[:'tcp_keepalive_enable'].nil?
+ form_params['tcp_keepalive_interval'] = opts[:'tcp_keepalive_interval'] if !opts[:'tcp_keepalive_interval'].nil?
+ form_params['tcp_keepalive_probes'] = opts[:'tcp_keepalive_probes'] if !opts[:'tcp_keepalive_probes'].nil?
+ form_params['tcp_keepalive_time'] = opts[:'tcp_keepalive_time'] if !opts[:'tcp_keepalive_time'].nil?
form_params['use_ssl'] = opts[:'use_ssl'] if !opts[:'use_ssl'].nil?
form_params['weight'] = opts[:'weight'] if !opts[:'weight'].nil?
# http body (model)
post_body = opts[:debug_body]
@@ -446,10 +458,14 @@
# @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
# @option opts [String] :ssl_client_cert Client certificate attached to origin.
# @option opts [String] :ssl_client_key Client key attached to origin.
# @option opts [String] :ssl_hostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.
# @option opts [String] :ssl_sni_hostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
# @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
# @option opts [Integer] :weight 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.
# @return [BackendResponse]
def update_backend(opts = {})
data, _status_code, _headers = update_backend_with_http_info(opts)
@@ -488,10 +504,14 @@
# @option opts [String] :ssl_ciphers List of [OpenSSL ciphers](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
# @option opts [String] :ssl_client_cert Client certificate attached to origin.
# @option opts [String] :ssl_client_key Client key attached to origin.
# @option opts [String] :ssl_hostname Use `ssl_cert_hostname` and `ssl_sni_hostname` to configure certificate validation.
# @option opts [String] :ssl_sni_hostname Overrides `ssl_hostname`, but only for SNI in the handshake. Does not affect cert validation at all.
+ # @option opts [Boolean] :tcp_keepalive_enable Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.
+ # @option opts [Integer] :tcp_keepalive_interval Interval in seconds between subsequent keepalive probes.
+ # @option opts [Integer] :tcp_keepalive_probes Number of unacknowledged probes to send before considering the connection dead.
+ # @option opts [Integer] :tcp_keepalive_time Interval in seconds between the last data packet sent and the first keepalive probe.
# @option opts [Boolean] :use_ssl Whether or not to require TLS for connections to this backend.
# @option opts [Integer] :weight 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.
# @return [Array<(BackendResponse, Integer, Hash)>] BackendResponse data, response status code and response headers
def update_backend_with_http_info(opts = {})
if @api_client.config.debugging
@@ -563,9 +583,13 @@
form_params['ssl_ciphers'] = opts[:'ssl_ciphers'] if !opts[:'ssl_ciphers'].nil?
form_params['ssl_client_cert'] = opts[:'ssl_client_cert'] if !opts[:'ssl_client_cert'].nil?
form_params['ssl_client_key'] = opts[:'ssl_client_key'] if !opts[:'ssl_client_key'].nil?
form_params['ssl_hostname'] = opts[:'ssl_hostname'] if !opts[:'ssl_hostname'].nil?
form_params['ssl_sni_hostname'] = opts[:'ssl_sni_hostname'] if !opts[:'ssl_sni_hostname'].nil?
+ form_params['tcp_keepalive_enable'] = opts[:'tcp_keepalive_enable'] if !opts[:'tcp_keepalive_enable'].nil?
+ form_params['tcp_keepalive_interval'] = opts[:'tcp_keepalive_interval'] if !opts[:'tcp_keepalive_interval'].nil?
+ form_params['tcp_keepalive_probes'] = opts[:'tcp_keepalive_probes'] if !opts[:'tcp_keepalive_probes'].nil?
+ form_params['tcp_keepalive_time'] = opts[:'tcp_keepalive_time'] if !opts[:'tcp_keepalive_time'].nil?
form_params['use_ssl'] = opts[:'use_ssl'] if !opts[:'use_ssl'].nil?
form_params['weight'] = opts[:'weight'] if !opts[:'weight'].nil?
# http body (model)
post_body = opts[:debug_body]