Fill out information about the gateway

def load_info(self, client, info):
        """Fill out information about the gateway"""
        if 'identity' in info:
            info['stages'] = client.get_stages(restApiId=info['identity'])['item']
            info['resources'] = client.get_resources(restApiId=info['identity'])['items']
            for resource in info['resources']:
                for method in resource.get('resourceMethods', {}):
                    resource['resourceMethods'][method] = client.get_method(restApiId=info['identity'], resourceId=resource['id'], httpMethod=method)
                    for status_code, options in resource['resourceMethods'][method]['methodResponses'].items():
                        options.update(client.get_method_response(restApiId=info['identity'], resourceId=resource['id'], httpMethod=method, statusCode=status_code))

            info['deployment'] = client.get_deployments(restApiId=info['identity'])['items']
        else:
            for key in ('stages', 'resources', 'deployment'):
                info[key] = []

        info['api_keys'] = client.get_api_keys()['items']
        info['domains'] = client.get_domain_names()['items']
        for domain in info['domains']:
            domain['mappings'] = client.get_base_path_mappings(domainName=domain['domainName']).get('items', [])