Warning
This library is deprecated. This version is no longer maintained in libseqera. Please use the version in the Wave project instead, which is actively maintained as a sub-project of Wave.
API models and DTOs for the Wave container service.
Add this dependency to your build.gradle:
dependencies {
implementation 'io.seqera:wave-api:0.16.0'
}The Wave API models provide type-safe data structures for REST API communication:
@Inject
WaveClient waveClient
def request = new SubmitContainerTokenRequest(
containerImage: 'ubuntu:latest',
containerConfig: new ContainerConfig(
env: ['FOO=bar'],
workingDir: '/workspace'
)
)
def response = waveClient.submitContainerToken(request)
println "Container token: ${response.containerToken}"./gradlew :wave-api:test