src.main.kotlin.com.gabrielfeo.develocity.api.model.GradleConfigurationCacheResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of develocity-api-kotlin Show documentation
Show all versions of develocity-api-kotlin Show documentation
A library to use the Develocity API in Kotlin
The newest version!
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.gabrielfeo.develocity.api.model
import com.gabrielfeo.develocity.api.model.GradleConfigurationCacheLoadResult
import com.gabrielfeo.develocity.api.model.GradleConfigurationCacheStoreResult
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* The configuration cache result of a Gradle build.
*
* @param outcome The outcome of the configuration cache operation: * `HIT` - There was a configuration cache hit. * `MISS` - There was a configuration cache miss. * `FAILED` - There was a configuration cache related failure.
* @param entrySize The size of the configuration entry in bytes. `null` in case of certain failures or if the entry size was not captured.
* @param store
* @param load
* @param missReasons The reasons why the configuration cache cannot be reused. `null` if there was no configuration cache hit.
*/
data class GradleConfigurationCacheResult (
/* The outcome of the configuration cache operation: * `HIT` - There was a configuration cache hit. * `MISS` - There was a configuration cache miss. * `FAILED` - There was a configuration cache related failure. */
@Json(name = "outcome")
val outcome: GradleConfigurationCacheResult.Outcome,
/* The size of the configuration entry in bytes. `null` in case of certain failures or if the entry size was not captured. */
@Json(name = "entrySize")
val entrySize: kotlin.Long? = null,
@Json(name = "store")
val store: GradleConfigurationCacheStoreResult? = null,
@Json(name = "load")
val load: GradleConfigurationCacheLoadResult? = null,
/* The reasons why the configuration cache cannot be reused. `null` if there was no configuration cache hit. */
@Json(name = "missReasons")
val missReasons: kotlin.collections.List? = null
) {
/**
* The outcome of the configuration cache operation: * `HIT` - There was a configuration cache hit. * `MISS` - There was a configuration cache miss. * `FAILED` - There was a configuration cache related failure.
*
* Values: hit,miss,failed
*/
@JsonClass(generateAdapter = false)
enum class Outcome(val value: kotlin.String) {
@Json(name = "HIT") hit("HIT"),
@Json(name = "MISS") miss("MISS"),
@Json(name = "FAILED") failed("FAILED");
}
}