lib/fastly/models/backend.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/backend.rb in fastly-4.0.0

- old
+ new

@@ -44,10 +44,13 @@ attr_accessor :ipv4 # IPv6 address of the backend. May be used as an alternative to `address` to set the backend location. attr_accessor :ipv6 + # How long to keep a persistent connection to the backend between requests. + attr_accessor :keepalive_time + # Maximum number of concurrent connections this backend will accept. attr_accessor :max_conn # Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated. attr_accessor :max_tls_version @@ -112,10 +115,11 @@ :'first_byte_timeout' => :'first_byte_timeout', :'healthcheck' => :'healthcheck', :'hostname' => :'hostname', :'ipv4' => :'ipv4', :'ipv6' => :'ipv6', + :'keepalive_time' => :'keepalive_time', :'max_conn' => :'max_conn', :'max_tls_version' => :'max_tls_version', :'min_tls_version' => :'min_tls_version', :'name' => :'name', :'override_host' => :'override_host', @@ -152,10 +156,11 @@ :'first_byte_timeout' => :'Integer', :'healthcheck' => :'String', :'hostname' => :'String', :'ipv4' => :'String', :'ipv6' => :'String', + :'keepalive_time' => :'Integer', :'max_conn' => :'Integer', :'max_tls_version' => :'String', :'min_tls_version' => :'String', :'name' => :'String', :'override_host' => :'String', @@ -182,10 +187,11 @@ :'comment', :'healthcheck', :'hostname', :'ipv4', :'ipv6', + :'keepalive_time', :'max_tls_version', :'min_tls_version', :'override_host', :'shield', :'ssl_ca_cert', @@ -255,10 +261,14 @@ if attributes.key?(:'ipv6') self.ipv6 = attributes[:'ipv6'] end + if attributes.key?(:'keepalive_time') + self.keepalive_time = attributes[:'keepalive_time'] + end + if attributes.key?(:'max_conn') self.max_conn = attributes[:'max_conn'] end if attributes.key?(:'max_tls_version') @@ -359,10 +369,11 @@ first_byte_timeout == o.first_byte_timeout && healthcheck == o.healthcheck && hostname == o.hostname && ipv4 == o.ipv4 && ipv6 == o.ipv6 && + keepalive_time == o.keepalive_time && max_conn == o.max_conn && max_tls_version == o.max_tls_version && min_tls_version == o.min_tls_version && name == o.name && override_host == o.override_host && @@ -388,10 +399,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, max_conn, max_tls_version, min_tls_version, name, override_host, port, request_condition, 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].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, 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].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself