Source code for pygobbler.approve_probation

from typing import Optional

from . import _utils as ut


[docs] def approve_probation(project: str, asset: str, version: str, staging: str, url: str, spoof: Optional[str] = None): """ Approve a probational upload of a version of a project's asset. Args: project: The name of the project. asset: The name of the asset of the ``project``. version: The name of the version of the ``asset`` to approve. staging: Path to the staging directory. url: URL to the Gobbler REST API. spoof: String containing the name of a user on whose behalf this request is being made. This should only be used if the Gobbler service allows spoofing by the current user. If ``None``, no spoofing is performed. """ ut.dump_request(staging, url, "approve_probation", { "project": project, "asset": asset, "version": version }, spoof=spoof)