Skip to content

Commit 013d96b

Browse files
Promote Gemini Data Sharing With Google Setting Binding from google-beta to google (#13121) (#9437)
[upstream:3b38b67a8d98d720fb2651ad87aa34bb9c51e99e] Signed-off-by: Modular Magician <[email protected]>
1 parent 1ec88b0 commit 013d96b

4 files changed

+15
-15
lines changed

Diff for: .changelog/13121.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```release-note:new-resource
2+
`google_gemini_data_sharing_with_google_setting_binding` (GA)
3+
```
4+
```release-note:bug
5+
gemini: fixed permadiff on `product` field in `google_gemini_data_sharing_with_google_setting_binding` resource (Beta)
6+
```
7+
```release-note:note
8+
gemini: removed unsupported value `GEMINI_CODE_ASSIST` for field `product` in `google_gemini_data_sharing_with_google_setting_binding` resource (Beta)
9+
```

Diff for: google-beta/services/gemini/resource_gemini_data_sharing_with_google_setting_binding.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ Please refer to the field 'effective_labels' for all of the labels present on th
9292
},
9393
"product": {
9494
Type: schema.TypeString,
95+
Computed: true,
9596
Optional: true,
96-
ValidateFunc: verify.ValidateEnum([]string{"GEMINI_CLOUD_ASSIST", "GEMINI_CODE_ASSIST", ""}),
97-
Description: `Product type of the setting binding. Possible values: ["GEMINI_CLOUD_ASSIST", "GEMINI_CODE_ASSIST"]`,
97+
ValidateFunc: verify.ValidateEnum([]string{"GEMINI_CLOUD_ASSIST", ""}),
98+
Description: `Product type of the setting binding. Possible values: ["GEMINI_CLOUD_ASSIST"]`,
9899
},
99100
"create_time": {
100101
Type: schema.TypeString,

Diff for: google-beta/services/gemini/resource_gemini_data_sharing_with_google_setting_binding_test.go

+2-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccGeminiDataSharingWithGoogleSettingBinding_update(t *testing.T) {
2222

2323
acctest.VcrTest(t, resource.TestCase{
2424
PreCheck: func() { acctest.AccTestPreCheck(t) },
25-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
25+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
2626
Steps: []resource.TestStep{
2727
{
2828
Config: testAccGeminiDataSharingWithGoogleSettingBinding_basic(context),
@@ -54,19 +54,16 @@ func TestAccGeminiDataSharingWithGoogleSettingBinding_update(t *testing.T) {
5454
func testAccGeminiDataSharingWithGoogleSettingBinding_basic(context map[string]interface{}) string {
5555
return acctest.Nprintf(`
5656
data "google_project" "project" {
57-
provider = google-beta
5857
}
5958
6059
resource "google_gemini_data_sharing_with_google_setting" "basic" {
61-
provider = google-beta
6260
data_sharing_with_google_setting_id = "%{data_sharing_with_google_setting_id}"
6361
location = "global"
6462
labels = {"my_key" = "my_value"}
6563
enable_preview_data_sharing = true
6664
}
6765
6866
resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding" {
69-
provider = google-beta
7067
data_sharing_with_google_setting_id = google_gemini_data_sharing_with_google_setting.basic.data_sharing_with_google_setting_id
7168
setting_binding_id = "%{setting_binding_id}"
7269
location = "global"
@@ -78,25 +75,22 @@ resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding
7875
func testAccGeminiDataSharingWithGoogleSettingBinding_update(context map[string]interface{}) string {
7976
return acctest.Nprintf(`
8077
data "google_project" "project" {
81-
provider = google-beta
8278
}
8379
8480
resource "google_gemini_data_sharing_with_google_setting" "basic" {
85-
provider = google-beta
8681
data_sharing_with_google_setting_id = "%{data_sharing_with_google_setting_id}"
8782
location = "global"
8883
labels = {"my_key" = "my_value"}
8984
enable_preview_data_sharing = true
9085
}
9186
9287
resource "google_gemini_data_sharing_with_google_setting_binding" "basic_binding" {
93-
provider = google-beta
9488
data_sharing_with_google_setting_id = google_gemini_data_sharing_with_google_setting.basic.data_sharing_with_google_setting_id
9589
setting_binding_id = "%{setting_binding_id}"
9690
location = "global"
9791
target = "projects/${data.google_project.project.number}"
9892
labels = {"my_key" = "my_value"}
99-
product = "GEMINI_CODE_ASSIST"
93+
product = "GEMINI_CLOUD_ASSIST"
10094
}
10195
`, context)
10296
}

Diff for: website/docs/r/gemini_data_sharing_with_google_setting_binding.html.markdown

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ description: |-
2323

2424
The resource for managing DataSharingWithGoogle setting bindings for Admin Control.
2525

26-
~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
27-
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.
2826

2927
To get more information about DataSharingWithGoogleSettingBinding, see:
3028
* How-to Guides
@@ -35,15 +33,13 @@ To get more information about DataSharingWithGoogleSettingBinding, see:
3533

3634
```hcl
3735
resource "google_gemini_data_sharing_with_google_setting" "basic" {
38-
provider = google-beta
3936
data_sharing_with_google_setting_id = "ls-tf1"
4037
location = "global"
4138
labels = {"my_key": "my_value"}
4239
enable_preview_data_sharing = true
4340
}
4441
4542
resource "google_gemini_data_sharing_with_google_setting_binding" "example" {
46-
provider = google-beta
4743
data_sharing_with_google_setting_id = google_gemini_data_sharing_with_google_setting.basic.data_sharing_with_google_setting_id
4844
setting_binding_id = "ls-tf1b1"
4945
location = "global"
@@ -75,7 +71,7 @@ The following arguments are supported:
7571
* `product` -
7672
(Optional)
7773
Product type of the setting binding.
78-
Possible values are: `GEMINI_CLOUD_ASSIST`, `GEMINI_CODE_ASSIST`.
74+
Possible values are: `GEMINI_CLOUD_ASSIST`.
7975

8076
* `labels` -
8177
(Optional)

0 commit comments

Comments
 (0)