From 67e99493a0840c644c434e5dbf57077430527107 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. --- builtin/providers/google/resource_pubsub_subscription.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builtin/providers/google/resource_pubsub_subscription.go b/builtin/providers/google/resource_pubsub_subscription.go index 432d48ee2f..6afd7c5cd9 100644 --- a/builtin/providers/google/resource_pubsub_subscription.go +++ b/builtin/providers/google/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 }