mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
wip on api
This commit is contained in:
parent
594daa27d5
commit
9aaceef411
1 changed files with 18 additions and 4 deletions
|
|
@ -1,12 +1,26 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
"""Wrapper around Royal Render API."""
|
||||||
from .rr_job import RRJob, SubmitFile
|
from .rr_job import RRJob, SubmitFile
|
||||||
|
|
||||||
|
|
||||||
class Api:
|
class Api:
|
||||||
|
|
||||||
def create_submission(self, jobs, submitter_attributes):
|
def create_submission(self, jobs, submitter_attributes, file_name=None):
|
||||||
""""""
|
# type: (list, list, str) -> SubmitFile
|
||||||
|
"""Create jobs submission file.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
jobs (list): List of :class:`RRJob`
|
||||||
|
submitter_attributes (list): List of submitter attributes
|
||||||
|
:class:`SubmitterParameter` for whole submission batch.
|
||||||
|
file_name (str), optional): File path to write data to.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
str: XML data of job submission files.
|
||||||
|
|
||||||
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def add_job(self, job):
|
def send_job_file(self, submit_file):
|
||||||
...
|
# type: (str) -> None
|
||||||
|
...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue