@@ -194,14 +194,6 @@ Please refer to the field 'effective_labels' for all of the labels present on th
194
194
Optional : true ,
195
195
Description : `The number of CPU's in the VM instance.` ,
196
196
},
197
- "machine_type" : {
198
- Type : schema .TypeString ,
199
- Computed : true ,
200
- Optional : true ,
201
- Description : `Machine type of the VM instance.
202
- E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd".
203
- 'cpu_count' must match the number of vCPUs in the machine type.` ,
204
- },
205
197
},
206
198
},
207
199
},
@@ -1188,8 +1180,6 @@ func flattenAlloydbInstanceMachineConfig(v interface{}, d *schema.ResourceData,
1188
1180
transformed := make (map [string ]interface {})
1189
1181
transformed ["cpu_count" ] =
1190
1182
flattenAlloydbInstanceMachineConfigCpuCount (original ["cpuCount" ], d , config )
1191
- transformed ["machine_type" ] =
1192
- flattenAlloydbInstanceMachineConfigMachineType (original ["machineType" ], d , config )
1193
1183
return []interface {}{transformed }
1194
1184
}
1195
1185
func flattenAlloydbInstanceMachineConfigCpuCount (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
@@ -1209,10 +1199,6 @@ func flattenAlloydbInstanceMachineConfigCpuCount(v interface{}, d *schema.Resour
1209
1199
return v // let terraform core handle it otherwise
1210
1200
}
1211
1201
1212
- func flattenAlloydbInstanceMachineConfigMachineType (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1213
- return v
1214
- }
1215
-
1216
1202
func flattenAlloydbInstanceClientConnectionConfig (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1217
1203
if v == nil {
1218
1204
return nil
@@ -1556,24 +1542,13 @@ func expandAlloydbInstanceMachineConfig(v interface{}, d tpgresource.TerraformRe
1556
1542
transformed ["cpuCount" ] = transformedCpuCount
1557
1543
}
1558
1544
1559
- transformedMachineType , err := expandAlloydbInstanceMachineConfigMachineType (original ["machine_type" ], d , config )
1560
- if err != nil {
1561
- return nil , err
1562
- } else if val := reflect .ValueOf (transformedMachineType ); val .IsValid () && ! tpgresource .IsEmptyValue (val ) {
1563
- transformed ["machineType" ] = transformedMachineType
1564
- }
1565
-
1566
1545
return transformed , nil
1567
1546
}
1568
1547
1569
1548
func expandAlloydbInstanceMachineConfigCpuCount (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
1570
1549
return v , nil
1571
1550
}
1572
1551
1573
- func expandAlloydbInstanceMachineConfigMachineType (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
1574
- return v , nil
1575
- }
1576
-
1577
1552
func expandAlloydbInstanceClientConnectionConfig (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
1578
1553
l := v .([]interface {})
1579
1554
if len (l ) == 0 || l [0 ] == nil {
0 commit comments