org.octopusden.octopus.releasemanagementservice.legacy.LegacyRelengClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legacy-releng-client Show documentation
Show all versions of legacy-releng-client Show documentation
Octopus module: legacy-releng-client
The newest version!
package org.octopusden.octopus.releasemanagementservice.legacy
import feign.Param
import feign.QueryMap
import feign.RequestLine
import org.octopusden.octopus.releasemanagementservice.client.common.dto.BuildDTO
import org.octopusden.octopus.releasemanagementservice.client.common.dto.BuildFilterDTO
import org.octopusden.octopus.releasemanagementservice.client.common.dto.ComponentDTO
import org.octopusden.octopus.releasemanagementservice.client.common.dto.ShortBuildDTO
interface LegacyRelengClient {
@RequestLine("GET rest/release-engineering/3/component/{component}/builds")
fun getBuilds(@Param("component") component: String, @QueryMap filter: BuildFilterDTO): Collection
@RequestLine("GET rest/release-engineering/3/component/{component}/version/{version}/build")
fun getBuild(@Param("component") component: String, @Param("version") version: String): BuildDTO
@RequestLine("GET rest/release-engineering/3/component-management")
fun getComponents(): Collection
@RequestLine("GET rest/release-engineering/3/component-management/{component}")
fun getComponent(@Param("component") component: String): ComponentDTO
@RequestLine("PUT rest/release-engineering/3/component-management/{component}")
fun updateComponent(@Param("component") component: String, dto: ComponentDTO): ComponentDTO
}