/usr/lib/rads/venv/lib/python3.13/site-packages/rads/__pycache__
NameSizeModeActions
color.cpython-313.pyc30580644editdlrm
semaphore.cpython-313.pyc65810644editdlrm
ssh.cpython-313.pyc63040644editdlrm
vz.cpython-313.pyc228960644editdlrm
_email.cpython-313.pyc42890644editdlrm
_fsquota.cpython-313.pyc99810644editdlrm
_globals.cpython-313.pyc28050644editdlrm
_input.cpython-313.pyc39860644editdlrm
_locking.cpython-313.pyc31160644editdlrm
_logging.cpython-313.pyc97870644editdlrm
_sa.cpython-313.pyc45630644editdlrm
_tickets.cpython-313.pyc22030644editdlrm
_users.cpython-313.pyc253780644editdlrm
_yaml.cpython-313.pyc29140644editdlrm
__init__.cpython-313.pyc37450644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/rads/__pycache__/semaphore.cpython-313.pyc (6581B)
j,SrSSKrSSKr"SS5rg)Ansible Semaphore APINc\rSrSrSrS\S\4SjrSS\S\S\4S jjr SS\S \S\4S jjr SS\S \S\4S jjr SS\S\4S jjr S\S\4Sjr S\S\4SjrS\S\4SjrSS\S\S\4SjjrSrg)AnsibleSemaphoreAPIrbase_urltokencJXlX lSUR3SS.Ulg)NzBearer zapplication/json) Authorizationz Content-Type)rrheaders)selfrrs A/usr/lib/rads/venv/lib/python3.13/site-packages/rads/semaphore.py__init__AnsibleSemaphoreAPI.__init__ s&  &tzzl3.  endpointtimeoutreturncURSU3n[R"X0RUS9nUR 5 UR 5$)zHTTP GET request to the Ansible Semaphore API Args: endpoint (str): API endpoint to access. timeout (int): request timeout. Defaults to 30. Returns: dict: API response /r r)rrequestsgetr raise_for_statusjsonr rrurlresponses r rAnsibleSemaphoreAPI.getsDq +<<\\7K!!#}}rdatacURSU3n[R"X@RX#S9nUR 5 UR 5$)zHTTP POST request to the Ansible Semaphore API Args: endpoint (str): API endpoint to access. data (dict): data to serialize as JSON and send with the request. timeout (int): request timeout. Defaults to 30. Returns: dict: API response rr rr)rrpostr rrr rrrrrs r r"AnsibleSemaphoreAPI.post!sIq +== D  !!#}}rcURSU3n[R"X@RX#S9nUR 5 UR 5$)zHTTP PUT request to the Ansible Semaphore API Args: endpoint (str): API endpoint to access. data (dict): data to serialize as JSON and send with the request. timeout (int): request timeout. Defaults to 30. Returns: dict: API response rr!)rrputr rrr#s r r&AnsibleSemaphoreAPI.put3sIq +<< D  !!#}}rcURSU3n[R"X0RUS9nUR 5 UR 5$)zHTTP DELETE request to the Ansible Semaphore API Args: endpoint (str): API endpoint to access. timeout (int): request timeout. Defaults to 30. Returns: dict: API response rr)rrdeleter rrrs r r)AnsibleSemaphoreAPI.deleteEsDq +??3 gN!!#}}r project_id template_datac0SUS3nURX25$)zCreates a template in the specified project. Args: project_id (int): The ID of the project where the template will be created. template_data (dict): The data for the new template. Returns: dict: The created template's details. project/z /templates)r")r r+r,rs r create_template#AnsibleSemaphoreAPI.create_templateTs!j\4yy11r template_idc UURSS5URSS5URSS5URSS5URSS5URSS5S .nURS US 3U5$) zRuns a task using the specified template and options. Args: project_id (int): The ID of the project where the task will be ran. template_id (int): The ID of the template to run. Returns: dict: The response from the API. debugFdry_rundiffplaybook environmentlimit)r1r3r4r5r6r8r9r.z/tasks)rr")r r+r1kwargs task_datas r run_taskAnsibleSemaphoreAPI.run_taskbs~'ZZ/zz)U3JJvu- :r2!::mR8ZZ, yy8Jrs r get_taskAnsibleSemaphoreAPI.get_taskxs%zl'';xx!!r poll_intervalc URX5nUSnUS;aO-[SUSUSUS35 [R"U5 MJ[SUSUS35 U$) aPolls a task for its status until completion. Args: project_id (int): The ID of the project where the task was run. task_id (int): The ID of the task to poll. poll_interval (int): The interval in seconds between status checks. Returns: dict: The final task status. status)successerrorzTask z is z. Waiting for z seconds before next check...z completed with .)r@printtimesleep)r r+r>rB task_statusrDs r wait_for_task!AnsibleSemaphoreAPI.wait_for_tasks-- rZs ZZr