code: func (vm *VM) getDisks() []*compute.AttachedDisk {
  	if len(vm.Attributes.GetDisk()) == 0 {
  		return nil
  	}
  	disks := make([]*compute.AttachedDisk, len(vm.Attributes.Disk))
  	for i, disk := range vm.Attributes.Disk {
  		disks[i] = &compute.AttachedDisk{
  			// AutoDelete deletes the disk when the instance is deleted.
  			AutoDelete: true,
  			InitializeParams: &compute.AttachedDiskInitializeParams{
  				DiskSizeGb:  disk.Size,
  				DiskType:    disk.Type,
  				SourceImage: disk.Image,
  			},
  		}
  	}
  	// GCE requires the first disk to be the boot disk.
  	disks[0].Boot = true
  	return disks
  }
docs: // getDisks returns a []*compute.AttachedDisk representation of this VM's disks.