override suspend fun createProject()

in teamcity-rest-client-impl/src/main/kotlin/org/jetbrains/teamcity/rest/coroutines/implementation.kt [1254:1267]


    override suspend fun createProject(id: ProjectId, name: String): Project {
        val projectXmlDescription = xml {
            element("newProjectDescription") {
                attribute("name", name)
                attribute("id", id.stringId)
                element("parentProject") {
                    attribute("locator", "id:${this@ProjectImpl.id.stringId}")
                }
            }
        }

        val projectBean = instance.service.createProject(projectXmlDescription.toApplicationXmlBody())
        return ProjectImpl(projectBean, true, instance)
    }