Add path to google_pubsub_subscription

The path is used to globally identify a subscription.
This commit is contained in:
Daniel Schierbeck 2017-05-05 14:31:59 +02:00
parent 522e33f62b
commit f3c0c30e30

View File

@ -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
}