@@ -455,6 +455,11 @@ timeout period. Defaults to 60 seconds.`,
455
455
Computed : true ,
456
456
Description : `The last update timestamp of a Cloud Function.` ,
457
457
},
458
+ "url" : {
459
+ Type : schema .TypeString ,
460
+ Computed : true ,
461
+ Description : `Output only. The deployed url for the function.` ,
462
+ },
458
463
"project" : {
459
464
Type : schema .TypeString ,
460
465
Optional : true ,
@@ -657,6 +662,9 @@ func resourceCloudfunctions2functionRead(d *schema.ResourceData, meta interface{
657
662
if err := d .Set ("environment" , flattenCloudfunctions2functionEnvironment (res ["environment" ], d , config )); err != nil {
658
663
return fmt .Errorf ("Error reading function: %s" , err )
659
664
}
665
+ if err := d .Set ("url" , flattenCloudfunctions2functionUrl (res ["url" ], d , config )); err != nil {
666
+ return fmt .Errorf ("Error reading function: %s" , err )
667
+ }
660
668
if err := d .Set ("state" , flattenCloudfunctions2functionState (res ["state" ], d , config )); err != nil {
661
669
return fmt .Errorf ("Error reading function: %s" , err )
662
670
}
@@ -880,6 +888,10 @@ func flattenCloudfunctions2functionEnvironment(v interface{}, d *schema.Resource
880
888
return v
881
889
}
882
890
891
+ func flattenCloudfunctions2functionUrl (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
892
+ return v
893
+ }
894
+
883
895
func flattenCloudfunctions2functionState (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
884
896
return v
885
897
}
0 commit comments