Skip to content

Commit f216647

Browse files
add hyperdisk related fields to sql_database_instance (#13679) (#22398)
[upstream:f0e3b7f051fa30234b3cd14c5daba2f2d8472679] Signed-off-by: Modular Magician <[email protected]>
1 parent fbd4603 commit f216647

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.changelog/13679.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
sql: added `data_disk_provisioned_iops` and `data_disk_provisioned_throughput` fields to `google_sql_database_instance` resource
3+
```

google/services/sql/resource_sql_database_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,15 @@ is set to true. Defaults to ZONAL.`,
423423
Optional: true,
424424
// Default is likely 10gb, but it is undocumented and may change.
425425
Computed: true,
426-
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.`,
426+
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.`,
427427
},
428428
"disk_type": {
429429
Type: schema.TypeString,
430430
Optional: true,
431431
Default: "PD_SSD",
432432
ForceNew: true,
433433
DiffSuppressFunc: caseDiffDashSuppress,
434-
Description: `The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.`,
434+
Description: `The type of data disk: PD_SSD, PD_HDD, or HYPERDISK_BALANCED. Defaults to PD_SSD.`,
435435
},
436436
"ip_configuration": {
437437
Type: schema.TypeList,

website/docs/r/sql_database_instance.html.markdown

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,13 @@ The `settings` block supports:
328328

329329
* `disk_autoresize_limit` - (Optional) The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
330330

331-
* `disk_size` - (Optional) The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB. Note that this value will override the resizing from `disk_autoresize` if that feature is enabled. To avoid this, set `lifecycle.ignore_changes` on this field.
331+
* `disk_size` - (Optional) 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. Note that this value will override the resizing from `disk_autoresize` if that feature is enabled. To avoid this, set `lifecycle.ignore_changes` on this field.
332332

333-
* `disk_type` - (Optional) The type of data disk: PD_SSD or PD_HDD. Defaults to `PD_SSD`.
333+
* `disk_type` - (Optional) The type of data disk: PD_SSD, PD_HDD, or HYPERDISK_BALANCED. Defaults to `PD_SSD`. HYPERDISK_BALANCED is preview.
334+
335+
* `data_disk_provisioned_iops` - (Optional, Beta) Provisioned number of I/O operations per second for the data disk. This field is only used for `HYPERDISK_BALANCED` disk types.
336+
337+
* `data_disk_provisioned_throughput` - (Optional, Beta) Provisioned throughput measured in MiB per second for the data disk. This field is only used for `HYPERDISK_BALANCED` disk types.
334338

335339
* `pricing_plan` - (Optional) Pricing plan for this instance, can only be `PER_USE`.
336340

0 commit comments

Comments
 (0)