From 601625de624d56365d6e1d18b8d75d03af4f45aa Mon Sep 17 00:00:00 2001
From: Rimantas Ragainis <rimantas.ragainis@gmail.com>
Date: Wed, 20 Nov 2019 21:03:04 +0000
Subject: [PATCH] Update instance.yaml

Signed-off-by: Modular Magician <magic-modules@google.com>
---
 plugins/modules/gcp_compute_instance.py       |  5 ++++
 .../gcp_compute_instance/tasks/autogen.yml    | 25 +++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/plugins/modules/gcp_compute_instance.py b/plugins/modules/gcp_compute_instance.py
index 286dfaa..d1a79ba 100644
--- a/plugins/modules/gcp_compute_instance.py
+++ b/plugins/modules/gcp_compute_instance.py
@@ -577,6 +577,11 @@ EXAMPLES = '''
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'
diff --git a/tests/integration/targets/gcp_compute_instance/tasks/autogen.yml b/tests/integration/targets/gcp_compute_instance/tasks/autogen.yml
index 64eb3c9..1e3c259 100644
--- a/tests/integration/targets/gcp_compute_instance/tasks/autogen.yml
+++ b/tests/integration/targets/gcp_compute_instance/tasks/autogen.yml
@@ -49,6 +49,11 @@
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'
@@ -74,6 +79,11 @@
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'
@@ -119,6 +129,11 @@
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'
@@ -149,6 +164,11 @@
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'
@@ -194,6 +214,11 @@
     - auto_delete: 'true'
       boot: 'true'
       source: "{{ disk }}"
+    - auto_delete: 'true'
+      interface: NVME
+      type: SCRATCH
+      initialize_params:
+        disk_type: local-ssd
     metadata:
       startup-script-url: gs:://graphite-playground/bootstrap.sh
       cost-center: '12345'