@@ -17,7 +17,7 @@ func QuotaSetsUsage() *schema.Table {
1717 Name : "openstack_blockstorage_quotasets_usage" ,
1818 Resolver : fetchQuotaSetsUsage ,
1919 Transform : transformers .TransformWithStruct (
20- & QuotaUsageSet {},
20+ & quotasets. QuotaUsageSet {},
2121 transformers .WithNameTransformer (transform .TagNameTransformer ), // use cq-name tags to translate name
2222 transformers .WithSkipFields ("Volumes" , "Snapshots" , "Gigabytes" , "PerVolumeGigabytes" , "Backups" , "BackupGigabytes" , "Groups" ),
2323 ),
@@ -243,49 +243,3 @@ func fetchQuotaSetsUsage(ctx context.Context, meta schema.ClientMeta, parent *sc
243243 }
244244 return nil
245245}
246-
247- type QuotaUsageSet struct {
248- ID string `json:"id"`
249- Volumes struct {
250- InUse int `json:"in_use" cq-name:"volumes_in_use"`
251- Allocated int `json:"allocated" cq-name:"volumes_allocated"`
252- Reserved int `json:"reserved" cq-name:"volumes_reserved"`
253- Limit int `json:"limit" cq-name:"volumes_limit"`
254- } `json:"volumes"`
255- Snapshots struct {
256- InUse int `json:"in_use" cq-name:"snapshots_in_use"`
257- Allocated int `json:"allocated" cq-name:"snapshots_allocated"`
258- Reserved int `json:"reserved" cq-name:"snapshots_reserved"`
259- Limit int `json:"limit" cq-name:"snapshots_limit"`
260- } `json:"snapshots"`
261- Gigabytes struct {
262- InUse int `json:"in_use" cq-name:"gigabytes_in_use"`
263- Allocated int `json:"allocated" cq-name:"gigabytes_allocated"`
264- Reserved int `json:"reserved" cq-name:"gigabytes_reserved"`
265- Limit int `json:"limit" cq-name:"gigabytes_limit"`
266- } `json:"gigabytes"`
267- PerVolumeGigabytes struct {
268- InUse int `json:"in_use" cq-name:"per_volume_gigabytes_in_use"`
269- Allocated int `json:"allocated" cq-name:"per_volume_gigabytes_allocated"`
270- Reserved int `json:"reserved" cq-name:"per_volume_gigabytes_reserved"`
271- Limit int `json:"limit" cq-name:"per_volume_gigabytes_limit"`
272- } `json:"per_volume_gigabytes"`
273- Backups struct {
274- InUse int `json:"in_use" cq-name:"backups_in_use"`
275- Allocated int `json:"allocated" cq-name:"backups_allocated"`
276- Reserved int `json:"reserved" cq-name:"backups_reserved"`
277- Limit int `json:"limit" cq-name:"backups_limit"`
278- } `json:"backups"`
279- BackupGigabytes struct {
280- InUse int `json:"in_use" cq-name:"backup_gigabytes_in_use"`
281- Allocated int `json:"allocated" cq-name:"backup_gigabytes_allocated"`
282- Reserved int `json:"reserved" cq-name:"backup_gigabytes_reserved"`
283- Limit int `json:"limit" cq-name:"backup_gigabytes_limit"`
284- } `json:"backup_gigabytes"`
285- Groups struct {
286- InUse int `json:"in_use" cq-name:"groups_in_use"`
287- Allocated int `json:"allocated" cq-name:"groups_allocated"`
288- Reserved int `json:"reserved" cq-name:"groups_reserved"`
289- Limit int `json:"limit" cq-name:"groups_limit"`
290- } `json:"groups"`
291- }
0 commit comments