Skip to content

Commit

Permalink
[chore] update api create pool
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Jun 20, 2024
1 parent d70813c commit 8946bbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions vngcloud/services/loadbalancer/v2/irequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type ICreatePoolRequest interface {
WithHealthMonitor(pmonitor IHealthMonitorRequest) ICreatePoolRequest
WithMembers(pmembers ...IMemberRequest) ICreatePoolRequest
WithLoadBalancerId(plbId string) ICreatePoolRequest
WithAlgorithm(palgorithm PoolAlgorithm) ICreatePoolRequest
ToMap() map[string]interface{}
GetLoadBalancerId() string
ParseUserAgent() string
Expand Down
5 changes: 5 additions & 0 deletions vngcloud/services/loadbalancer/v2/pool_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ func (s *CreatePoolRequest) ToMap() map[string]interface{} {
}
}

func (s *CreatePoolRequest) WithAlgorithm(palgorithm PoolAlgorithm) ICreatePoolRequest {
s.Algorithm = palgorithm
return s
}

func (s *HealthMonitor) ToRequestBody() interface{} {
return s
}
Expand Down

0 comments on commit 8946bbe

Please sign in to comment.