Skip to content

Commit

Permalink
add update_mask_fields to healthcare_hl7_v2_store parser_config (#5122)…
Browse files Browse the repository at this point in the history
… (#9900)

* add update_mask_fields to healthcare_hl7_v2_store parser_config

* make parser_config default from api

* add tests

* make test changes beta-only

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Aug 24, 2021
1 parent 29b6ea9 commit 6ac4ff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/5122.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
healthcare: fixed bug where changes to `google_healthcare_hl7_v2_store.parser_config` subfields would error with '...parser_config.version field is immutable...`
```
5 changes: 4 additions & 1 deletion google/resource_healthcare_hl7_v2_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Fields/functions available for filtering are:
},
"parser_config": {
Type: schema.TypeList,
Computed: true,
Optional: true,
Description: `A nested object resource`,
MaxItems: 1,
Expand Down Expand Up @@ -348,7 +349,9 @@ func resourceHealthcareHl7V2StoreUpdate(d *schema.ResourceData, meta interface{}
updateMask := []string{}

if d.HasChange("parser_config") {
updateMask = append(updateMask, "parserConfig")
updateMask = append(updateMask, "parser_config.allow_null_header",
"parser_config.segment_terminator",
"parser_config.schema")
}

if d.HasChange("labels") {
Expand Down

0 comments on commit 6ac4ff3

Please sign in to comment.