  def GetNetwork(self, network_name: str) -> Dict[str, Any]:
    """Get selected network API object in specified project.

    Args:
      network_name: Name of the network.

    Returns:
      The selected network API resource:
      https://cloud.google.com/compute/docs/reference/rest/v1/networks  # pylint: disable=line-too-long

    Raises:
      HttpError if getting network object for the given machine-type name fails.
    """
    networks_client = self.GceApi().networks() # pylint: disable=no-member
    params = {
        'project': self.project_id,
        'network': network_name,
    }
    # Safe to unpack, response is not paged.
    return common.ExecuteRequest(networks_client, 'get', params)[0]
Get selected network API object in specified project.

Args:
network_name: Name of the network.

Returns:
The selected network API resource:
https://cloud.google.com/compute/docs/reference/rest/v1/networks  # pylint: disable=line-too-long

Raises:
HttpError if getting network object for the given machine-type name fails.
libcloudforensics/providers/gcp/internal/compute.py