Update desktopvirtualization API to 2024-04-03#28771
Update desktopvirtualization API to 2024-04-03#28771sreallymatt merged 4 commits intohashicorp:mainfrom
2024-04-03#28771Conversation
2024-04-032024-04-03
sreallymatt
left a comment
There was a problem hiding this comment.
Thanks for this PR @sinbai, I've left a few comments inline if you wouldn't mind taking a look!
| state.ApplicationGroupName = id.ApplicationGroupName | ||
| state.ResourceGroupName = id.ResourceGroupName | ||
| state.Location = location.NormalizeNilable(model.Location) | ||
| state.Location = location.NormalizeNilable(&model.Location) |
There was a problem hiding this comment.
| state.Location = location.NormalizeNilable(&model.Location) | |
| state.Location = location.Normalize(model.Location) |
|
|
||
| if model := resp.Model; model != nil { | ||
| d.Set("location", location.NormalizeNilable(model.Location)) | ||
| d.Set("location", location.NormalizeNilable(&model.Location)) |
There was a problem hiding this comment.
| d.Set("location", location.NormalizeNilable(&model.Location)) | |
| d.Set("location", location.Normalize(model.Location)) |
|
|
||
| if model := resp.Model; model != nil { | ||
| d.Set("location", location.NormalizeNilable(model.Location)) | ||
| d.Set("location", location.NormalizeNilable(&model.Location)) |
There was a problem hiding this comment.
| d.Set("location", location.NormalizeNilable(&model.Location)) | |
| d.Set("location", location.Normalize(model.Location)) |
|
|
||
| if model := resp.Model; model != nil { | ||
| d.Set("location", location.NormalizeNilable(model.Location)) | ||
| d.Set("location", location.NormalizeNilable(&model.Location)) |
There was a problem hiding this comment.
| d.Set("location", location.NormalizeNilable(&model.Location)) | |
| d.Set("location", location.Normalize(model.Location)) |
|
|
||
| hostPoolStr := hostPoolId.ID() | ||
| if scalingPlanHostPoolAssociationExists(model.Properties, hostPoolStr) { | ||
| if scalingPlanHostPoolAssociationExists(&model.Properties, hostPoolStr) { |
There was a problem hiding this comment.
Could we update scalingPlanHostPoolAssociationExists to accept a value rather than a pointer instead of passing the address here?
| if model := scalingPlan.Model; model != nil { | ||
| hostPoolId := id.HostPool.ID() | ||
| exists := scalingPlanHostPoolAssociationExists(model.Properties, hostPoolId) | ||
| exists := scalingPlanHostPoolAssociationExists(&model.Properties, hostPoolId) |
There was a problem hiding this comment.
Same comment as above regarding updating scalingPlanHostPoolAssociationExists
| } | ||
| model := *existing.Model | ||
| if !scalingPlanHostPoolAssociationExists(model.Properties, id.HostPool.ID()) { | ||
| if !scalingPlanHostPoolAssociationExists(&model.Properties, id.HostPool.ID()) { |
There was a problem hiding this comment.
Same comment as above regarding updating scalingPlanHostPoolAssociationExists
| d.Set("schedule", flattenScalingPlanSchedule(props.Schedules)) | ||
| d.Set("host_pool", flattenScalingHostpoolReference(props.HostPoolReferences)) | ||
| } | ||
| d.Set("location", location.NormalizeNilable(&model.Location)) |
There was a problem hiding this comment.
| d.Set("location", location.NormalizeNilable(&model.Location)) | |
| d.Set("location", location.Normalize(model.Location)) |
| } | ||
|
|
||
| state.Location = location.NormalizeNilable(model.Location) | ||
| state.Location = location.NormalizeNilable(&model.Location) |
There was a problem hiding this comment.
| state.Location = location.NormalizeNilable(&model.Location) | |
| state.Location = location.Normalize(model.Location) |
|
|
||
| if model := resp.Model; model != nil { | ||
| d.Set("location", location.NormalizeNilable(model.Location)) | ||
| d.Set("location", location.NormalizeNilable(&model.Location)) |
There was a problem hiding this comment.
| d.Set("location", location.NormalizeNilable(&model.Location)) | |
| d.Set("location", location.Normalize(model.Location)) |
Hi @sreallymatt thanks for your detailed feedback. I have updated the code. Could you please take another look? |
sreallymatt
left a comment
There was a problem hiding this comment.
Thanks @sinbai, LGTM!
* Update CHANGELOG.md for #28840 * Update CHANGELOG.md #28808 * Update CHANGELOG.md #27962 * Update CHANGELOG.md for #28859 * Update for #28825 * Update CHANGELOG.md for #28864 * Update CHANGELOG.md #28539 * Update CHANGELOG.md #28685 * Update CHANGELOG.md for #28818 * Update for #28857 #28799 #28856 * Update for #28122 * Update for #28248 #27805 * Update for #28853 * Update for #28316 #28494 #28696 * Update for #28754 * Update CHANGELOG.md #28771 * Update CHANGELOG.md #28842 * Update for #28879 * Update for #28199 * Update CHANGELOG.md #28862 * prep for release v4.21.0 --------- Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Wodans Son <20408400+WodansSon@users.noreply.github.com> Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: Wyatt Fry <wyattfry@gmail.com>
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
Update
desktopvirtualizationAPI to 2024-04-03.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
desktopvirtualization- update api to 2024-04-03This is a (please select all that apply):