@classmethod
def all(cls, client):
    """
        Get all networks.

        :param client: client instance
        :type client: :class:`~pylxd.client.Client`
        :rtype: list[:class:`Network`]
        """
    response = client.api.networks.get()
    networks = []
    for url in response.json()['metadata']:
        name = url.split('/')[-1]
        networks.append(cls(client, name=name))
    return networks
