From 9aaceef4110253d1032726702df048739b99781b Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Wed, 15 Sep 2021 00:03:21 +0200 Subject: [PATCH] wip on api --- .../default_modules/royal_render/api.py | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/openpype/modules/default_modules/royal_render/api.py b/openpype/modules/default_modules/royal_render/api.py index 7eda976caf..02a4dd3e48 100644 --- a/openpype/modules/default_modules/royal_render/api.py +++ b/openpype/modules/default_modules/royal_render/api.py @@ -1,12 +1,26 @@ # -*- coding: utf-8 -*- +"""Wrapper around Royal Render API.""" from .rr_job import RRJob, SubmitFile 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 - def add_job(self, job): - ... \ No newline at end of file + def send_job_file(self, submit_file): + # type: (str) -> None + ...