@@ -37,6 +37,7 @@ references:
37
37
docs :
38
38
base_url : ' projects/{{project}}/zones/{{zone}}/disks'
39
39
has_self_link : true
40
+ immutable : true
40
41
timeouts :
41
42
insert_minutes : 20
42
43
update_minutes : 20
@@ -62,7 +63,6 @@ custom_code:
62
63
update_encoder : ' templates/terraform/update_encoder/hyper_disk.go.tmpl'
63
64
decoder : ' templates/terraform/decoders/disk.tmpl'
64
65
pre_delete : ' templates/terraform/pre_delete/detach_disk.tmpl'
65
- raw_resource_config_validation : ' templates/terraform/validation/compute_disk.go.tmpl'
66
66
custom_diff :
67
67
- ' customdiff.ForceNewIfChange("size", IsDiskShrinkage)'
68
68
- ' hyperDiskIopsUpdateDiffSuppress'
@@ -72,11 +72,6 @@ examples:
72
72
primary_resource_name : ' fmt.Sprintf("tf-test-test-disk%s", context["random_suffix"])'
73
73
vars :
74
74
disk_name : ' test-disk'
75
- - name : ' disk_basic_wo'
76
- primary_resource_id : ' default'
77
- primary_resource_name : ' fmt.Sprintf("tf-test-test-disk%s", context["random_suffix"])'
78
- vars :
79
- disk_name : ' test-disk'
80
75
- name : ' disk_async'
81
76
primary_resource_id : ' primary'
82
77
primary_resource_name : ' fmt.Sprintf("tf-test-test-disk%s", context["random_suffix"])'
@@ -173,62 +168,21 @@ properties:
173
168
If you do not provide an encryption key when creating the disk, then
174
169
the disk will be encrypted using an automatically generated key and
175
170
you do not need to provide a key to use the disk later.
171
+ immutable : true
176
172
properties :
177
173
- name : ' rawKey'
178
174
type : String
179
175
description : |
180
176
Specifies a 256-bit customer-supplied encryption key, encoded in
181
177
RFC 4648 base64 to either encrypt or decrypt this resource.
182
178
sensitive : true
183
- immutable : true
184
- custom_flatten : ' templates/terraform/custom_flatten/compute_key_flatten.go.tmpl'
185
- conflicts :
186
- - ' disk_encryption_key.0.rawKeyWo'
187
- - name : ' rawKeyWoVersion'
188
- type : Integer
189
- description : |
190
- Triggers update of write-only rawKey
191
- immutable : true
192
- default_value : 0
193
- ignore_read : true
194
- - name : ' rawKeyWo'
195
- type : String
196
- description : |
197
- Specifies a 256-bit customer-supplied encryption key, encoded in
198
- RFC 4648 base64 to either encrypt or decrypt this resource.
199
- write_only : true
200
- required_with :
201
- - ' disk_encryption_key.0.rawKeyWoVersion'
202
- conflicts :
203
- - ' disk_encryption_key.0.rawKey'
204
- - name : ' rsaEncryptedKeyWoVersion'
205
- type : Integer
206
- description : |
207
- Triggers update of write-only rsaEncryptedKey
208
- immutable : true
209
- default_value : 0
210
- ignore_read : true
211
179
- name : ' rsaEncryptedKey'
212
180
type : String
213
- immutable : true
214
- custom_flatten : ' templates/terraform/custom_flatten/compute_rsa_key_flatten.go.tmpl'
215
181
description : |
216
182
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
217
183
customer-supplied encryption key to either encrypt or decrypt
218
184
this resource. You can provide either the rawKey or the rsaEncryptedKey.
219
185
sensitive : true
220
- conflicts :
221
- - ' disk_encryption_key.0.rsaEncryptedKeyWo'
222
- - name : ' rsaEncryptedKeyWo'
223
- type : String
224
- description : |
225
- Specifies a 256-bit customer-supplied encryption key, encoded in
226
- RFC 4648 base64 to either encrypt or decrypt this resource.
227
- write_only : true
228
- required_with :
229
- - ' disk_encryption_key.0.rsaEncryptedKeyWoVersion'
230
- conflicts :
231
- - ' disk_encryption_key.0.rsaEncryptedKey'
232
186
- name : ' sha256'
233
187
type : String
234
188
description : |
@@ -237,7 +191,6 @@ properties:
237
191
output : true
238
192
- name : ' kmsKeySelfLink'
239
193
type : String
240
- immutable : true
241
194
description : |
242
195
The self link of the encryption key used to encrypt the disk. Also called KmsKeyName
243
196
in the cloud console. Your project's Compute Engine System service account
@@ -248,7 +201,6 @@ properties:
248
201
diff_suppress_func : ' tpgresource.CompareSelfLinkRelativePaths'
249
202
- name : ' kmsKeyServiceAccount'
250
203
type : String
251
- immutable : true
252
204
description : |
253
205
The service account used for the encryption request for the given KMS key.
254
206
If absent, the Compute Engine Service Agent service account is used.
0 commit comments