Exclude unused attributes from compute and RG schemas

This commit is contained in:
Sergey Shubin svs1370
2021-03-12 10:33:08 +03:00
parent 0179a1ef45
commit 32947819f6
4 changed files with 22 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ func resourceResgroupCreate(d *schema.ResourceData, m interface{}) error {
if set_quota {
url_values.Add("maxCPUCapacity", fmt.Sprintf("%d", quota_record.Cpu))
url_values.Add("maxVDiskCapacity", fmt.Sprintf("%d", quota_record.Disk))
url_values.Add("maxMemoryCapacity", fmt.Sprintf("%d", quota_record.Ram))
url_values.Add("maxMemoryCapacity", fmt.Sprintf("%f", quota_record.Ram)) // RAM quota is float; this may change in the future
url_values.Add("maxNetworkPeerTransfer", fmt.Sprintf("%d", quota_record.ExtTraffic))
url_values.Add("maxNumPublicIP", fmt.Sprintf("%d", quota_record.ExtIPs))
// url_values.Add("???", fmt.Sprintf("%d", quota_record.GpuUnits))
@@ -353,6 +353,7 @@ func resourceResgroup() *schema.Resource {
Description: "Current status of this resource group.",
},
/*
"vins": {
Type: schema.TypeList, // this is a list of ints
Computed: true,
@@ -371,6 +372,7 @@ func resourceResgroup() *schema.Resource {
},
Description: "List of computes deployed in this resource group.",
},
*/
},
}
}