def change_merged(self, *args, **kwargs): """Called whenever a new patch is merged into a project's master branch. Expected arguments based on the gerrit hook with the same name: 'change', 'change_url', 'project', 'branch', 'topic', 'submitter', 'commit', 'commit_message' (The last one will be computed by the local hook script)""" raise exc.UnavailableActionError()
def patchset_created(self, *args, **kwargs): """Called whenever a new patch is submitted. Expected arguments based on the gerrit hook with the same name: 'change', 'is_draft', 'change_url', 'project', 'branch', 'topic', 'uploader', 'commit', 'patchset', 'commit_message' (The last one will be computed by the local hook script)""" raise exc.UnavailableActionError()
def update(self, uid, **kwargs): f = self.check_forbidden_fields(**kwargs) if f: msg = u'[%s] fields %s cannot be updated' raise exc.UnavailableActionError( msg % (self.plugin.service_name, ', '.join(f))) g_client = self.plugin.get_client() return g_client.update_account(id=uid, no_email_confirmation=True, **kwargs)
def get(self, node_id=None, **kwargs): """lists one or several nodes depending on filtering with node's id or kwargs""" raise exc.UnavailableActionError()
def get_update_info(self, id): """fetches relevant info on an image update possibly still in progress""" raise exc.UnavailableActionError()
def propose_test_scripts(self, **kwargs): """creates a review for template tests scripts on a project""" raise exc.UnavailableActionError()
def get(self, provider_name=None, image_name=None, **kwargs): """lists one or several images depending on filtering options""" raise exc.UnavailableActionError()
def start_update(self, provider_name, image_name): """updates (rebuild) the image image_name on provider provider_name""" raise exc.UnavailableActionError()
def delete(self, *args, **kwargs): """Deletion operation""" raise exc.UnavailableActionError()
def propose_test_definition(self, **kwargs): """creates a review adding tests in the zuul pipelines for a project""" raise exc.UnavailableActionError()
def _generic_hook(*args, **kwargs): msg = "[%s] undefined hook %s" % (self.plugin.service_name, hook) raise exc.UnavailableActionError(msg)
def get(self, *args, **kwargs): """Fetching operation""" raise exc.UnavailableActionError()
def stop(self, job_name, job_id): """stop a running job""" raise exc.UnavailableActionError()
def run(self, job_name, job_parameters): """run a job""" raise exc.UnavailableActionError()
def get_job_logs(self, job_name, job_id): """get logs of a finished job""" raise exc.UnavailableActionError()
def get_job_status(self, job_name, job_id): """get parameters used to run a job""" raise exc.UnavailableActionError()
def get_job(self, job_name, **kwargs): """lists one or several jobs depending on filtering with kwargs""" raise exc.UnavailableActionError()
def create(self, *args, **kwargs): """Creation operation""" raise exc.UnavailableActionError()
def hold(self, node_id): """prevents node node_id from being deleted after a completed job""" raise exc.UnavailableActionError()
def update(self, *args, **kwargs): """Update operation""" raise exc.UnavailableActionError()
def delete(self, node_id): """schedules node node_id for deletion""" raise exc.UnavailableActionError()
def add_authorized_key(self, node_id, public_key, user=None): """adds public_key as an authorized key on user's account on node_id""" raise exc.UnavailableActionError()
def trigger(self, **kwargs): """Trigger a replication""" raise exc.UnavailableActionError()