  def GetRegionDisk(
      self,
      disk_name: str,
      region: Optional[str] = None) -> 'GoogleRegionComputeDisk':
    """Get regional disk in project.

    Regional disks API resource: https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks#resource:-disk  # pylint: disable=line-too-long

    Args:
      disk_name: Name or ID of the regional disk to get.
      region: Compute region.

    Returns:
      Regional disk object.

    Raises:
      ResourceNotFoundError: When the specified disk cannot be found in project.
    """
    disks = self.RegionDisks()
    if re.match(RESOURCE_ID_REGEX, disk_name):
      disk = disks.get(disk_name)
    else:
      disk = self._FindResourceByName(disks, disk_name, region=region)
    if not disk:
      raise errors.ResourceNotFoundError(
          f'Disk {disk_name} was not found in project '
          f'{self.project_id}', __name__)
    return disk
Get regional disk in project.

Regional disks API resource: https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks#resource:-disk  # pylint: disable=line-too-long

Args:
disk_name: Name or ID of the regional disk to get.
region: Compute region.

Returns:
Regional disk object.

Raises:
ResourceNotFoundError: When the specified disk cannot be found in project.
libcloudforensics/providers/gcp/internal/compute.py