Skip to content

Commit 596b810

Browse files
Register disk provisioning fields in DatabaseInstance metadata (#13779) (#22570)
[upstream:5332a4648204ddd08d0901ffeb797d2a45939714] Signed-off-by: Modular Magician <[email protected]>
1 parent a4a67eb commit 596b810

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

google/services/sql/resource_sql_database_instance.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,8 @@ is set to true. Defaults to ZONAL.`,
419419
Description: `Enables Dataplex Integration.`,
420420
},
421421
"disk_size": {
422-
Type: schema.TypeInt,
423-
Optional: true,
424-
// Default is likely 10gb, but it is undocumented and may change.
422+
Type: schema.TypeInt,
423+
Optional: true,
425424
Computed: true,
426425
Description: `The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB for PD_SSD, PD_HDD and 20GB for HYPERDISK_BALANCED.`,
427426
},
@@ -431,7 +430,7 @@ is set to true. Defaults to ZONAL.`,
431430
Computed: true,
432431
ForceNew: true,
433432
DiffSuppressFunc: caseDiffDashSuppress,
434-
Description: `The type of supported data disk is tier dependent and can be PD_SSD or PD_HDD or HyperDisk_Balanced `,
433+
Description: `The type of supported data disk is tier dependent and can be PD_SSD or PD_HDD or HYPERDISK_BALANCED.`,
435434
},
436435
"ip_configuration": {
437436
Type: schema.TypeList,

google/services/sql/resource_sql_database_instance_meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ fields:
7979
- field: 'settings.disk_autoresize'
8080
- field: 'settings.disk_autoresize_limit'
8181
- field: 'settings.disk_size'
82+
- field: 'settings.data_disk_provisioned_iops'
83+
- field: 'settings.data_disk_provisioned_throughput'
8284
- field: 'settings.disk_type'
8385
- field: 'settings.edition'
8486
- field: 'settings.enable_dataplex_integration'

0 commit comments

Comments
 (0)