Skip to content

Commit 46d7678

Browse files
committed
Adding Labels to Interconnect Attachments
1 parent 0fcf74e commit 46d7678

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

mmv1/products/compute/InterconnectAttachment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -332,3 +332,10 @@ properties:
332332
gives Google Cloud Support more debugging visibility.
333333
immutable: true
334334
ignore_read: true
335+
- name: 'labels'
336+
type: KeyValueLabels
337+
update_url: 'projects/{{project}}/regions/{{region}}/interconnectAttachments/{{name}}/setLabels'
338+
update_verb: 'POST'
339+
description: |
340+
Labels for this resource. These can only be added or modified by the setLabels
341+
method. Each label key/value pair must comply with RFC1035. Label values may be empty.

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

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ resource "google_compute_interconnect_attachment" "{{$.PrimaryResourceId}}" {
44
type = "PARTNER"
55
router = google_compute_router.foobar.id
66
mtu = 1500
7+
labels = { mykey = "myvalue" }
78
}
89

910
resource "google_compute_router" "foobar" {

0 commit comments

Comments
 (0)