Skip to content

Commit 4f33ceb

Browse files
Dawid212BBBmau
authored andcommitted
Add Labels field to StoragePool (GoogleCloudPlatform#14346)
1 parent bf4ef92 commit 4f33ceb

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

mmv1/products/compute/StoragePool.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ properties:
277277
- "STANDARD"
278278
- "ADVANCED"
279279
default_from_api: true
280+
- name: "labels"
281+
type: KeyValueLabels
282+
description: |
283+
Labels to apply to this storage pool. These can be later modified by the setLabels method.
280284
virtual_fields:
281285
- name: "deletion_protection"
282286
type: Boolean

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ resource "google_compute_storage_pool" "{{$.PrimaryResourceId}}" {
99

1010
zone = "us-central1-a"
1111

12+
labels = {
13+
environment = "test"
14+
purpose = "storage-pool-testing"
15+
team = "infrastructure"
16+
cost_center = "engineering"
17+
}
18+
1219
deletion_protection = false
1320
}
1421

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ resource "google_compute_storage_pool" "{{$.PrimaryResourceId}}" {
1212

1313
storage_pool_type = data.google_compute_storage_pool_types.balanced.self_link
1414

15+
labels = {
16+
environment = "test"
17+
purpose = "storage-pool-testing"
18+
team = "infrastructure"
19+
cost_center = "engineering"
20+
}
21+
1522
deletion_protection = false
1623

1724
zone = "us-central1-a"

0 commit comments

Comments
 (0)