def create_blueprint(self, name, application):
        offline = 'true'
        for vm in application.get('vms', []):
            if vm.get('dynamicMetadata', {}).get('state') != 'STOPPED':
                offline = 'false'
                break
        request = { 'blueprintName': name,
                    'applicationId': application['id'],
                    'isOffline': offline }
        response = self._make_request('POST', '/blueprints', request)
        blueprint = response.entity
        blueprint.update(blueprint.pop('appMetadata'))
        return blueprint
Create a new blueprint ``name`` based on ``application``.
dataset/ETHPy150Open ravello/testmill/lib/testmill/ravello.py/RavelloClient.create_blueprint