@classmethod
def all(cls, client):
    """Get all profiles."""
    response = client.api.profiles.get()
    profiles = []
    for url in response.json()['metadata']:
        name = url.split('/')[-1]
        profiles.append(cls(client, name=name))
    return profiles
