Skip to content

Commit 2861556

Browse files
Harsh ThakurRealHarshThakur
Harsh Thakur
authored andcommitted
add lb options
Signed-off-by: Harsh Thakur <[email protected]>
1 parent 7c63f90 commit 2861556

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

loadbalancer.go

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type LoadBalancer struct {
4444
ReservedIPName string `json:"reserved_ip_name,omitempty"`
4545
ReservedIP string `json:"reserved_ip,omitempty"`
4646
MaxConcurrentRequests int `json:"max_concurrent_requests,omitempty"`
47+
Options *LoadBalancerOptions `json:"options,omitempty"`
4748
}
4849

4950
// LoadBalancerConfig represents a load balancer to be created
@@ -61,6 +62,13 @@ type LoadBalancerConfig struct {
6162
FirewallID string `json:"firewall_id,omitempty"`
6263
FirewallRules string `json:"firewall_rule,omitempty"`
6364
MaxConcurrentRequests *int `json:"max_concurrent_requests,omitempty"`
65+
LoadBalancerOptions *LoadBalancerOptions `json:"options,omitempty"`
66+
}
67+
68+
// LoadBalancerOptions are additional loadbalancer options
69+
type LoadBalancerOptions struct {
70+
ServerTimeout string `json:"server_timeout,omitempty"`
71+
ClientTimeout string `json:"client_timeout,omitempty"`
6472
}
6573

6674
// LoadBalancerUpdateConfig represents a load balancer to be updated
@@ -75,6 +83,7 @@ type LoadBalancerUpdateConfig struct {
7583
EnableProxyProtocol string `json:"enable_proxy_protocol,omitempty"`
7684
FirewallID string `json:"firewall_id,omitempty"`
7785
MaxConcurrentRequests *int `json:"max_concurrent_requests,omitempty"`
86+
LoadBalancerOptions *LoadBalancerOptions `json:"options,omitempty"`
7887
}
7988

8089
// ListLoadBalancers returns all load balancers owned by the calling API account

0 commit comments

Comments
 (0)