'Sets a version to be the default. Blocks until finished.'

def set_default_version(self, project_id, model_name, version_name):

    full_version_name = 'projects/{}/models/{}/versions/{}'.format(project_id, model_name, version_name)
    request = self._cloudml.projects().models().versions().setDefault(name=full_version_name, body={})
    try:
        response = request.execute()
        logging.info('Successfully    set    version:    {}    to    default'.format(response))
        return response
    except errors.HttpError as e:
        logging.error('Something    went    wrong:    {}'.format(e))
        raise
