From f3c0c30e30ee588701040563f028a856fc90b369 Mon Sep 17 00:00:00 2001 From: Daniel Schierbeck Date: Fri, 5 May 2017 14:31:59 +0200 Subject: [PATCH] Add `path` to `google_pubsub_subscription` The path is used to globally identify a subscription. --- resource_pubsub_subscription.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resource_pubsub_subscription.go b/resource_pubsub_subscription.go index 432d48ee..6afd7c5c 100644 --- a/resource_pubsub_subscription.go +++ b/resource_pubsub_subscription.go @@ -38,6 +38,11 @@ func resourcePubsubSubscription() *schema.Resource { ForceNew: true, }, + "path": &schema.Schema{ + Type: schema.TypeString, + Computed: true, + }, + "push_config": &schema.Schema{ Type: schema.TypeList, Optional: true, @@ -113,6 +118,7 @@ func resourcePubsubSubscriptionCreate(d *schema.ResourceData, meta interface{}) } d.SetId(res.Name) + d.Set("path", name) return nil }