Major rework of logic around compute resource and its subresources

This commit is contained in:
Sergey Shubin svs1370
2021-02-11 00:48:07 +03:00
parent 4f617334be
commit ce84733848
11 changed files with 2167 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ func makeQuotaRecord(arg_list []interface{}) (QuotaRecord, int) {
return quota, 1
}
func flattenQuota(quota QuotaRecord) []interface{} {
func parseQuota(quota QuotaRecord) []interface{} {
quota_map := make(map[string]interface{})
quota_map["cpu"] = quota.Cpu
@@ -80,7 +80,7 @@ func flattenQuota(quota QuotaRecord) []interface{} {
result := make([]interface{}, 1)
result[0] = quota_map
return result
return result // this result will be used to d.Set("quota,") of dataSourceResgroup schema
}
func quotaRgSubresourceSchema() map[string]*schema.Schema {