Skip to content

Commit

Permalink
healthcare API: use new request body for notificationConfigs when pat…
Browse files Browse the repository at this point in the history
…ching HL7v2 store (#1736)

notificationConfig{} was deprecated in favor of notificationConfigs[].
  • Loading branch information
noerog committed Apr 22, 2020
1 parent 2c80c99 commit 0270a10
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions healthcare/hl7v2/patchHl7v2Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ const main = (
const name = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}/hl7V2Stores/${hl7v2StoreId}`;
const request = {
name,
updateMask: 'notificationConfig',
updateMask: 'notificationConfigs',
resource: {
notificationConfig: {
pubsubTopic: `projects/${projectId}/topics/${pubsubTopic}`,
},
notificationConfigs: [
{
pubsubTopic: `projects/${projectId}/topics/${pubsubTopic}`,
}
]
},
};

Expand Down

0 comments on commit 0270a10

Please sign in to comment.