Skip to content

Commit d792fa9

Browse files
authored
Promote DNS Threat Detector to GA. (#16010)
1 parent 20d08e8 commit d792fa9

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

mmv1/products/networksecurity/DnsThreatDetector.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
name: "DnsThreatDetector"
1616
description: |
1717
DNS Armor is a fully-managed service that provides DNS-layer security for your Google Cloud workloads.
18-
min_version: "beta"
1918
references:
2019
guides:
2120
"DNS Threat Detector": "https://cloud.google.com/dns/docs/threat-detection"
@@ -37,7 +36,6 @@ timeouts:
3736
custom_code:
3837
examples:
3938
- name: "network_security_dns_threat_detector_basic"
40-
min_version: "beta"
4139
primary_resource_id: "default"
4240
vars:
4341
resource_name: "my-threat-detector"

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
resource "google_compute_network" "foobar" {
2-
provider = google-beta
3-
42
name = "{{index $.Vars "vpc_name"}}"
53
auto_create_subnetworks = false
64
}
75

86
resource "google_network_security_dns_threat_detector" "{{$.PrimaryResourceId}}" {
9-
provider = google-beta
10-
117
name = "{{index $.Vars "resource_name"}}"
128
location = "global"
139
threat_detector_provider = "INFOBLOX"

mmv1/third_party/terraform/services/networksecurity/resource_network_security_dns_threat_detector_test.go.tmpl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package networksecurity_test
2-
{{- if ne $.TargetVersionName "ga" }}
32

43
import (
54
"fmt"
@@ -22,7 +21,7 @@ func TestAccNetworkSecurityDnsThreatDetector_update(t *testing.T) {
2221

2322
acctest.VcrTest(t, resource.TestCase{
2423
PreCheck: func() { acctest.AccTestPreCheck(t) },
25-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
24+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
2625
CheckDestroy: testAccCheckNetworkSecurityDnsThreatDetectorDestroyProducer(t),
2726
Steps: []resource.TestStep{
2827
{
@@ -50,8 +49,6 @@ func TestAccNetworkSecurityDnsThreatDetector_update(t *testing.T) {
5049
func testAccNetworkSecurityDnsThreatDetector_basic(name string) string {
5150
return fmt.Sprintf(`
5251
resource "google_network_security_dns_threat_detector" "foobar" {
53-
provider = google-beta
54-
5552
name = "%s"
5653
location = "global"
5754
threat_detector_provider = "INFOBLOX"
@@ -65,15 +62,11 @@ resource "google_network_security_dns_threat_detector" "foobar" {
6562
func testAccNetworkSecurityDnsThreatDetector_update(name, vpcName string) string {
6663
return fmt.Sprintf(`
6764
resource "google_compute_network" "foobar" {
68-
provider = google-beta
69-
7065
name = "%s"
7166
auto_create_subnetworks = false
7267
}
7368

7469
resource "google_network_security_dns_threat_detector" "foobar" {
75-
provider = google-beta
76-
7770
name = "%s"
7871
location = "global"
7972
threat_detector_provider = "INFOBLOX"
@@ -123,4 +116,3 @@ func testAccCheckNetworkSecurityDnsThreatDetectorDestroyProducer(t *testing.T) f
123116
return nil
124117
}
125118
}
126-
{{- end }}

0 commit comments

Comments
 (0)