Update `go-cloudstack` dependency
This commit is contained in:
parent
62639620e1
commit
640152e310
|
@ -1336,8 +1336,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/xanzy/go-cloudstack/cloudstack",
|
"ImportPath": "github.com/xanzy/go-cloudstack/cloudstack",
|
||||||
"Comment": "2.0.0-2-gcfbfb48",
|
"Comment": "2.0.0-6-g5686bcd",
|
||||||
"Rev": "cfbfb481e04c131cb89df1c6141b082f2714bc29"
|
"Rev": "5686bcde5af20565d8c7a3f66b5441430ac54186"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "github.com/xanzy/ssh-agent",
|
"ImportPath": "github.com/xanzy/ssh-agent",
|
||||||
|
|
|
@ -2008,12 +2008,12 @@ func (s *LoadBalancerService) ListLoadBalancerRuleInstances(p *ListLoadBalancerR
|
||||||
|
|
||||||
type ListLoadBalancerRuleInstancesResponse struct {
|
type ListLoadBalancerRuleInstancesResponse struct {
|
||||||
Count int `json:"count"`
|
Count int `json:"count"`
|
||||||
LoadBalancerRuleInstances []*LoadBalancerRuleInstance `json:"loadbalancerruleinstance"`
|
LoadBalancerRuleInstances []*LoadBalancerRuleInstance `json:"lbrulevmidip"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoadBalancerRuleInstance struct {
|
type LoadBalancerRuleInstance struct {
|
||||||
Lbvmipaddresses []string `json:"lbvmipaddresses,omitempty"`
|
Lbvmipaddresses []string `json:"lbvmipaddresses,omitempty"`
|
||||||
Loadbalancerruleinstance string `json:"loadbalancerruleinstance,omitempty"`
|
Loadbalancerruleinstance *VirtualMachine `json:"loadbalancerruleinstance,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateLoadBalancerRuleParams struct {
|
type UpdateLoadBalancerRuleParams struct {
|
||||||
|
|
|
@ -411,6 +411,26 @@ func WithProject(project string) OptionFunc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VPCIDSetter is an interface that every type that can set a vpc ID must implement
|
||||||
|
type VPCIDSetter interface {
|
||||||
|
SetVpcid(string)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithVPCID takes a vpc ID and sets the `vpcid` parameter
|
||||||
|
func WithVPCID(id string) OptionFunc {
|
||||||
|
return func(cs *CloudStackClient, p interface{}) error {
|
||||||
|
vs, ok := p.(VPCIDSetter)
|
||||||
|
|
||||||
|
if !ok || id == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
vs.SetVpcid(id)
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type APIDiscoveryService struct {
|
type APIDiscoveryService struct {
|
||||||
cs *CloudStackClient
|
cs *CloudStackClient
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue