Skip to content

Commit

Permalink
Support new machine types for regional commitment (#7915) (#14593)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 12, 2023
1 parent eb23928 commit 4cebdda
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .changelog/7915.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
compute: added support for additional machine types in `google_compute_region_commitment`
```
16 changes: 8 additions & 8 deletions google/resource_compute_region_commitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.`,
},
},
"type": {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
ValidateFunc: verify.ValidateEnum([]string{"MEMORY_OPTIMIZED", "ACCELERATOR_OPTIMIZED", ""}),
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
Description: `The type of commitment, which affects the discount rate and the eligible resources.
Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized
machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to
accelerator optimized machines. Possible values: ["MEMORY_OPTIMIZED", "ACCELERATOR_OPTIMIZED"]`,
The type could be one of the following value: 'MEMORY_OPTIMIZED', 'ACCELERATOR_OPTIMIZED',
'GENERAL_PURPOSE_N1', 'GENERAL_PURPOSE_N2', 'GENERAL_PURPOSE_N2D', 'GENERAL_PURPOSE_E2',
'GENERAL_PURPOSE_T2D', 'GENERAL_PURPOSE_C3', 'COMPUTE_OPTIMIZED_C2', 'COMPUTE_OPTIMIZED_C2D' and
'GRAPHICS_OPTIMIZED_G2'`,
},
"commitment_id": {
Type: schema.TypeInt,
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/compute_region_commitment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ The following arguments are supported:
* `type` -
(Optional)
The type of commitment, which affects the discount rate and the eligible resources.
Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized
machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to
accelerator optimized machines.
Possible values are: `MEMORY_OPTIMIZED`, `ACCELERATOR_OPTIMIZED`.
The type could be one of the following value: `MEMORY_OPTIMIZED`, `ACCELERATOR_OPTIMIZED`,
`GENERAL_PURPOSE_N1`, `GENERAL_PURPOSE_N2`, `GENERAL_PURPOSE_N2D`, `GENERAL_PURPOSE_E2`,
`GENERAL_PURPOSE_T2D`, `GENERAL_PURPOSE_C3`, `COMPUTE_OPTIMIZED_C2`, `COMPUTE_OPTIMIZED_C2D` and
`GRAPHICS_OPTIMIZED_G2`

* `category` -
(Optional)
Expand Down

0 comments on commit 4cebdda

Please sign in to comment.