Delete VIPs
diff --git a/rackspace/lb/v1/vips/results.go b/rackspace/lb/v1/vips/results.go
index aa5ef37..678b2af 100644
--- a/rackspace/lb/v1/vips/results.go
+++ b/rackspace/lb/v1/vips/results.go
@@ -9,12 +9,32 @@
// VIP represents a Virtual IP API resource.
type VIP struct {
- Address string `json:"address,omitempty"`
- ID int `json:"id,omitempty"`
- Type string `json:"type,omitempty"`
- Version string `json:"ipVersion,omitempty" mapstructure:"ipVersion"`
+ Address string `json:"address,omitempty"`
+ ID int `json:"id,omitempty"`
+ Type Type `json:"type,omitempty"`
+ Version Version `json:"ipVersion,omitempty" mapstructure:"ipVersion"`
}
+// Version represents the version of a VIP.
+type Version string
+
+// Convenient constants to use for type
+const (
+ IPV4 Version = "IPV4"
+ IPV6 Version = "IPV6"
+)
+
+// Type represents the type of a VIP.
+type Type string
+
+const (
+ // PUBLIC indicates a VIP type that is routable on the public Internet.
+ PUBLIC Type = "PUBLIC"
+
+ // PRIVATE indicates a VIP type that is routable only on ServiceNet.
+ PRIVATE Type = "SERVICENET"
+)
+
// VIPPage is the page returned by a pager when traversing over a collection
// of VIPs.
type VIPPage struct {
@@ -58,6 +78,12 @@
return resp, err
}
+// CreateResult represents the result of a create operation.
type CreateResult struct {
commonResult
}
+
+// DeleteResult represents the result of a delete operation.
+type DeleteResult struct {
+ gophercloud.ErrResult
+}