diff --git a/products/compute/api.yaml b/products/compute/api.yaml index 52feb0bc6973..1aa0ca2db047 100644 --- a/products/compute/api.yaml +++ b/products/compute/api.yaml @@ -7786,6 +7786,14 @@ objects: values: - :RESTART_NODE_ON_ANY_SERVER - :RESTART_NODE_ON_MINIMAL_SERVERS + - !ruby/object:Api::Type::Enum + name: 'cpuOvercommitType' + description: | + CPU overcommit. + min_version: beta + values: + - :ENABLED + - :DISABLED - !ruby/object:Api::Resource name: 'PacketMirroring' min_version: beta diff --git a/third_party/terraform/tests/resource_compute_instance_test.go.erb b/third_party/terraform/tests/resource_compute_instance_test.go.erb index 7e630acf51ba..b2ba5eb7f155 100644 --- a/third_party/terraform/tests/resource_compute_instance_test.go.erb +++ b/third_party/terraform/tests/resource_compute_instance_test.go.erb @@ -4343,10 +4343,6 @@ resource "google_compute_instance" "foobar" { } } -data "google_compute_node_types" "central1a" { - zone = "us-central1-a" -} - resource "google_compute_node_template" "nodetmpl" { name = "%s" region = "us-central1" @@ -4355,7 +4351,11 @@ resource "google_compute_node_template" "nodetmpl" { tfacc = "test" } - node_type = data.google_compute_node_types.central1a.names[1] + node_type = "n1-node-96-624" + +<% unless version == 'ga' -%> + cpu_overcommit_type = "ENABLED" +<% end -%> } resource "google_compute_node_group" "nodes" { @@ -4415,10 +4415,6 @@ resource "google_compute_instance" "foobar" { } } -data "google_compute_node_types" "central1a" { - zone = "us-central1-a" -} - resource "google_compute_node_template" "nodetmpl" { name = "%s" region = "us-central1" @@ -4427,7 +4423,11 @@ resource "google_compute_node_template" "nodetmpl" { tfacc = "test" } - node_type = data.google_compute_node_types.central1a.names[1] + node_type = "n1-node-96-624" + +<% unless version == 'ga' -%> + cpu_overcommit_type = "ENABLED" +<% end -%> } resource "google_compute_node_group" "nodes" {