Skip to content

Commit 46dacd2

Browse files
modular-magicianc2thorn
authored andcommitted
Change datastream stream merge and append_only to conflicts with (#11292) (#7835)
[upstream:5d82d77abdda75a8711933f9f71bee8a0ebb3f94] Signed-off-by: Modular Magician <[email protected]>
1 parent bfd6a99 commit 46dacd2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.changelog/11292.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
datastream: removed a breaking change in `google_datastream_stream` that made one of `destination_config.0.bigquery_destination_config.0.merge` or `destination_config.0.bigquery_destination_config.0.append_only` required
3+
```

google-beta/services/datastream/resource_datastream_stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ historical state of the data.`,
158158
Elem: &schema.Resource{
159159
Schema: map[string]*schema.Schema{},
160160
},
161-
ExactlyOneOf: []string{"destination_config.0.bigquery_destination_config.0.merge", "destination_config.0.bigquery_destination_config.0.append_only"},
161+
ConflictsWith: []string{"destination_config.0.bigquery_destination_config.0.merge"},
162162
},
163163
"data_freshness": {
164164
Type: schema.TypeString,
@@ -179,7 +179,7 @@ in the source database. With Merge mode, no historical record of the change even
179179
Elem: &schema.Resource{
180180
Schema: map[string]*schema.Schema{},
181181
},
182-
ExactlyOneOf: []string{"destination_config.0.bigquery_destination_config.0.merge", "destination_config.0.bigquery_destination_config.0.append_only"},
182+
ConflictsWith: []string{"destination_config.0.bigquery_destination_config.0.append_only"},
183183
},
184184
"single_target_dataset": {
185185
Type: schema.TypeList,

google-beta/services/datastream/resource_datastream_stream_generated_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,6 @@ resource "google_datastream_stream" "default" {
710710
kms_key_name = "%{bigquery_destination_table_kms_key_name}"
711711
}
712712
}
713-
merge {}
714713
}
715714
}
716715

website/docs/r/datastream_stream.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,6 @@ resource "google_datastream_stream" "default" {
756756
kms_key_name = "bigquery-kms-name"
757757
}
758758
}
759-
merge {}
760759
}
761760
}
762761

0 commit comments

Comments
 (0)