@@ -651,6 +651,11 @@ create the disk. Provide this when creating the disk.`,
651
651
DiffSuppressFunc : tpgresource .CompareSelfLinkOrResourceName ,
652
652
Description : `A reference to the zone where the disk resides.` ,
653
653
},
654
+ "disk_id" : {
655
+ Type : schema .TypeString ,
656
+ Computed : true ,
657
+ Description : `The unique identifier for the resource. This identifier is defined by the server.` ,
658
+ },
654
659
"creation_timestamp" : {
655
660
Type : schema .TypeString ,
656
661
Computed : true ,
@@ -1026,6 +1031,9 @@ func resourceComputeDiskRead(d *schema.ResourceData, meta interface{}) error {
1026
1031
if err := d .Set ("source_disk_id" , flattenComputeDiskSourceDiskId (res ["sourceDiskId" ], d , config )); err != nil {
1027
1032
return fmt .Errorf ("Error reading Disk: %s" , err )
1028
1033
}
1034
+ if err := d .Set ("disk_id" , flattenComputeDiskDiskId (res ["id" ], d , config )); err != nil {
1035
+ return fmt .Errorf ("Error reading Disk: %s" , err )
1036
+ }
1029
1037
if err := d .Set ("type" , flattenComputeDiskType (res ["type" ], d , config )); err != nil {
1030
1038
return fmt .Errorf ("Error reading Disk: %s" , err )
1031
1039
}
@@ -1524,6 +1532,10 @@ func flattenComputeDiskSourceDiskId(v interface{}, d *schema.ResourceData, confi
1524
1532
return v
1525
1533
}
1526
1534
1535
+ func flattenComputeDiskDiskId (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1536
+ return v
1537
+ }
1538
+
1527
1539
func flattenComputeDiskType (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
1528
1540
if v == nil {
1529
1541
return v
0 commit comments