mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-25 03:01:47 -04:00
vendor: Updating Gophercloud for OpenStack provider
This commit is contained in:
@@ -74,6 +74,9 @@ type CreateOpts struct {
|
||||
// current specification supports LBMethodRoundRobin and
|
||||
// LBMethodLeastConnections as valid values for this attribute.
|
||||
LBMethod string
|
||||
|
||||
// The provider of the pool
|
||||
Provider string
|
||||
}
|
||||
|
||||
// Create accepts a CreateOpts struct and uses the values to create a new
|
||||
@@ -85,6 +88,7 @@ func Create(c *gophercloud.ServiceClient, opts CreateOpts) CreateResult {
|
||||
Protocol string `json:"protocol"`
|
||||
SubnetID string `json:"subnet_id"`
|
||||
LBMethod string `json:"lb_method"`
|
||||
Provider string `json:"provider,omitempty"`
|
||||
}
|
||||
type request struct {
|
||||
Pool pool `json:"pool"`
|
||||
@@ -96,6 +100,7 @@ func Create(c *gophercloud.ServiceClient, opts CreateOpts) CreateResult {
|
||||
Protocol: opts.Protocol,
|
||||
SubnetID: opts.SubnetID,
|
||||
LBMethod: opts.LBMethod,
|
||||
Provider: opts.Provider,
|
||||
}}
|
||||
|
||||
var res CreateResult
|
||||
|
||||
Reference in New Issue
Block a user