lib/fastly/models/backend_response.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/backend_response.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 @@ -128,10 +131,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', @@ -174,10 +178,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', @@ -210,10 +215,11 @@ :'comment', :'healthcheck', :'hostname', :'ipv4', :'ipv6', + :'keepalive_time', :'max_tls_version', :'min_tls_version', :'override_host', :'shield', :'ssl_ca_cert', @@ -224,12 +230,10 @@ :'ssl_hostname', :'ssl_sni_hostname', :'created_at', :'deleted_at', :'updated_at', - :'service_id', - :'version', ]) end # List of class defined in allOf (OpenAPI v3) def self.fastly_all_of @@ -298,10 +302,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') @@ -426,10 +434,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 && @@ -461,10 +470,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, 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, 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 end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself