def get_all_ips(instance):
    """ Returns the public and private ip addresses of an GCP Compute instance
    """
    ip_list = []
    try:
        ip_list.append(instance['networkInterfaces'][0]['accessConfigs'][0]
            ['natIP'])
    except Exception as e:
        pass
    ip_list.append(instance['networkInterfaces'][0]['networkIP'])
    return ip_list
