Backport openstack/blockstorage/extensions/quotasets/
Change-Id: I4ab546714af9bfce738d3d0cfa6f86ed7f889d1d
Related-PROD: PROD-34272
diff --git a/openstack/blockstorage/extensions/quotasets/doc.go b/openstack/blockstorage/extensions/quotasets/doc.go
new file mode 100644
index 0000000..109f78f
--- /dev/null
+++ b/openstack/blockstorage/extensions/quotasets/doc.go
@@ -0,0 +1,42 @@
+/*
+Package quotasets enables retrieving and managing Block Storage quotas.
+
+Example to Get a Quota Set
+
+ quotaset, err := quotasets.Get(blockStorageClient, "project-id").Extract()
+ if err != nil {
+ panic(err)
+ }
+
+ fmt.Printf("%+v\n", quotaset)
+
+Example to Get Quota Set Usage
+
+ quotaset, err := quotasets.GetUsage(blockStorageClient, "project-id").Extract()
+ if err != nil {
+ panic(err)
+ }
+
+ fmt.Printf("%+v\n", quotaset)
+
+Example to Update a Quota Set
+
+ updateOpts := quotasets.UpdateOpts{
+ Volumes: gophercloud.IntToPointer(100),
+ }
+
+ quotaset, err := quotasets.Update(blockStorageClient, "project-id", updateOpts).Extract()
+ if err != nil {
+ panic(err)
+ }
+
+ fmt.Printf("%+v\n", quotaset)
+
+Example to Delete a Quota Set
+
+ err := quotasets.Delete(blockStorageClient, "project-id").ExtractErr()
+ if err != nil {
+ panic(err)
+ }
+*/
+package quotasets