[docs]defto_post_payload(self)->dict:# TODO: the validating has to be fixed# currently it expects all file locally,# probably it just needs to be reduced# mantik.config.validate.ProjectValidator(# mlproject_path=self.mlflow_mlproject_file_path,# config=self.backend_config,# mlflow_parameters=self.mlflow_parameters,# entry_point=self.entry_point,# ).validate()ifisinstance(self.backend_config,dict):config=self.backend_configelse:config=mantik.config.read.read_config(self.backend_config)return{"name":self.name,"experimentRepositoryId":str(self.experiment_repository_id),"codeRepositoryId":str(self.code_repository_id),"branch":self.branch,"commit":self.commit,"dataRepositoryId":str(self.data_repository_id)ifself.data_repository_idisnotNoneelseNone,"dataBranch":self.data_branchifself.data_branchelseNone,"dataCommit":self.data_commitifself.data_commitelseNone,"connectionId":str(self.connection_id),"computeBudgetAccount":self.compute_budget_account,"mlflowMlprojectFilePath":self.mlflow_mlproject_file_path,"entryPoint":self.entry_point,"mlflowParameters":self.mlflow_parameters,"backendConfig":config,}