Skip to content

Commit b5b629b

Browse files
Add Terraform support for Native Dashboard for v1 endpoint (GoogleCloudPlatform#17403)
1 parent 5b92f9d commit b5b629b

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

mmv1/products/chronicle/NativeDashboard.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description: A configuration for a native dashboard within a Google SecOps (Chro
1717
references:
1818
guides:
1919
'Google SecOps Guides': 'https://cloud.google.com/chronicle/docs/secops/secops-overview'
20-
api: 'https://cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.nativeDashboards'
20+
api: 'https://cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.nativeDashboards'
2121
base_url: projects/{{project}}/locations/{{location}}/instances/{{instance}}/nativeDashboards
2222
self_link: 'projects/{{project}}/locations/{{location}}/instances/{{instance}}/nativeDashboards/{{dashboard_id}}'
2323
create_url: projects/{{project}}/locations/{{location}}/instances/{{instance}}/nativeDashboards
@@ -28,11 +28,9 @@ import_format:
2828
update_mask: true
2929
update_verb: PATCH
3030

31-
min_version: 'beta'
3231
examples:
3332
- name: chronicle_nativedashboard_basic
3433
primary_resource_id: my_basic_dashboard
35-
min_version: 'beta'
3634
ignore_read_extra:
3735
- "last_viewed_time"
3836
vars:

mmv1/templates/terraform/examples/chronicle_nativedashboard_basic.tf.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
resource "google_chronicle_native_dashboard" "my_basic_dashboard" {
2-
provider = google-beta
32
location = "us"
43
instance = "{{index $.TestEnvVars "chronicle_id"}}"
54
display_name = "{{index $.Vars "dashboard_name"}}"

mmv1/third_party/terraform/services/chronicle/resource_chronicle_native_dashboard_test.go.tmpl renamed to mmv1/third_party/terraform/services/chronicle/resource_chronicle_native_dashboard_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package chronicle_test
22

3-
{{- if ne $.TargetVersionName "ga" }}
4-
53
import (
64
"testing"
75

@@ -121,5 +119,3 @@ resource "google_chronicle_native_dashboard" "my_dashboard" {
121119
}
122120
`, context)
123121
}
124-
125-
{{- end }}

0 commit comments

Comments
 (0)