  def GetDisk(self, disk_name: str) -> 'GoogleComputeDisk':
    """Gets a disk attached to this virtual machine disk by name.

    Args:
      disk_name (str): The name of the disk to get.

    Returns:
      GoogleComputeDisk: Disk object.

    Raises:
      ResourceNotFoundError: If disk name is not found among those attached to
          the instance.
    """

    for disk in self.GetValue('disks'):
      if disk.get('source', '').split('/')[-1] == disk_name:
        return GoogleCloudCompute(self.project_id).GetDisk(disk_name=disk_name)
    raise errors.ResourceNotFoundError(
        'Disk {0:s} was not found in instance {1:s}'.format(
            disk_name, self.name),
        __name__)
Gets a disk attached to this virtual machine disk by name.

Args:
disk_name (str): The name of the disk to get.

Returns:
GoogleComputeDisk: Disk object.

Raises:
ResourceNotFoundError: If disk name is not found among those attached to
the instance.
libcloudforensics/providers/gcp/internal/compute.py