Adding missign comments to LBaaS ext
diff --git a/openstack/networking/v2/extensions/lbaas/monitors/requests.go b/openstack/networking/v2/extensions/lbaas/monitors/requests.go
index 9f63fc5..fca7199 100644
--- a/openstack/networking/v2/extensions/lbaas/monitors/requests.go
+++ b/openstack/networking/v2/extensions/lbaas/monitors/requests.go
@@ -20,8 +20,8 @@
Delay int `q:"delay"`
Timeout int `q:"timeout"`
MaxRetries int `q:"max_retries"`
- HttpMethod string `q:"http_method"`
- UrlPath string `q:"url_path"`
+ HTTPMethod string `q:"http_method"`
+ URLPath string `q:"url_path"`
ExpectedCodes string `q:"expected_codes"`
AdminStateUp *bool `q:"admin_state_up"`
Status string `q:"status"`
@@ -49,6 +49,7 @@
})
}
+// Constants that represent approved monitoring types.
const (
TypePING = "PING"
TypeTCP = "TCP"
diff --git a/openstack/networking/v2/extensions/lbaas/vips/requests.go b/openstack/networking/v2/extensions/lbaas/vips/requests.go
index 8fadebf..ce4d9e4 100644
--- a/openstack/networking/v2/extensions/lbaas/vips/requests.go
+++ b/openstack/networking/v2/extensions/lbaas/vips/requests.go
@@ -8,6 +8,8 @@
"github.com/rackspace/gophercloud/pagination"
)
+// AdminState gives users a solid type to work with for create and update
+// operations. It is recommended that users use the `Up` and `Down` enums.
type AdminState *bool
// Convenience vars for AdminStateUp values.
@@ -15,9 +17,8 @@
iTrue = true
iFalse = false
- Nothing AdminState
- Up AdminState = &iTrue
- Down AdminState = &iFalse
+ Up AdminState = &iTrue
+ Down AdminState = &iFalse
)
// ListOpts allows the filtering and sorting of paginated collections through