  def Instances(self,
                refresh: bool = True) -> Dict[str, 'GoogleComputeInstance']:
    """Get all instances in the project.

    Args:
      refresh (boolean): Optional. Returns refreshed result if True.

    Returns:
      Dict[str, GoogleComputeInstance]: Dictionary mapping instance IDs
          (str) to their respective GoogleComputeInstance object.
    """
    if not refresh and self._instances:
      return self._instances
    self._instances = self.ListInstances()
    return self._instances
Get all instances in the project.

Args:
refresh (boolean): Optional. Returns refreshed result if True.

Returns:
Dict[str, GoogleComputeInstance]: Dictionary mapping instance IDs
(str) to their respective GoogleComputeInstance object.
libcloudforensics/providers/gcp/internal/compute.py