src/sasctl/_services/model_repository.py
def create_project(cls, project, repository, **kwargs):
        """Create a model project in the given model repository.

        Parameters
        ----------
        project : str or dict
            The name or id of the model project, or a dictionary representation
            of the project.
        repository : str or dict
            The name or id of the model repository, or a dictionary
            representation of the repository.

        Returns
        -------
        RestObj

        """
        if isinstance(project, str):
            project = {'name': project}

        repository = cls.get_repository(repository)

        project['repositoryId'] = repository['id']
        project['folderId'] = repository['folderId']

        project.update(kwargs)
        return cls.post('/projects', json=project,
                        headers={
                            'Content-Type':
                                'application/vnd.sas.models.project+json'})
Create a model project in the given model repository.

        Parameters
        ----------
        project : str or dict
            The name or id of the model project, or a dictionary representation
            of the project.
        repository : str or dict
            The name or id of the model repository, or a dictionary
            representation of the repository.

        Returns
        -------
        RestObj

        
Create a model project in the given model repository.
Parameters

project : str or dict
The name or id of the model project, or a dictionary representation
of the project.
repository : str or dict
The name or id of the model repository, or a dictionary
representation of the repository.

Returns


Create a model project in the given model repository . Parameters project : str or dict The name or id of the model project or a dictionary representation of the project . repository : str or dict The name or id of the model repository or a dictionary representation of the repository . Returns
def create_project(cls, project, repository, **kwargs):
        if isinstance(project, str):
            project = {'name': project}
        repository = cls.get_repository(repository)
        project['repositoryId'] = repository['id']
        project['folderId'] = repository['folderId']
        project.update(kwargs)
        return cls.post('/projects', json=project,
                        headers={
                            'Content-Type':
                                'application/vnd.sas.models.project+json'})
def create_project ( cls , project , repository , ** kwargs ) : if isinstance ( project , str ) : project = { 'name' : project } repository = cls . get_repository ( repository ) project [ 'repositoryId' ] = repository [ 'id' ] project [ 'folderId' ] = repository [ 'folderId' ] project . update ( kwargs ) return cls . post ( '/projects' , json = project , headers = { 'Content-Type' : 'application/vnd.sas.models.project+json' } )
Create a model project in the given model repository.
Create a model project in the given model repository .
"""Create a model project in the given model repository.

        Parameters
        ----------
        project : str or dict
            The name or id of the model project, or a dictionary representation
            of the project.
        repository : str or dict
            The name or id of the model repository, or a dictionary
            representation of the repository.

        Returns
        -------
        RestObj

        """
cls
project
repository