All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.main.kotlin.com.gabrielfeo.develocity.api.model.GradleDeprecationOwner.kt Maven / Gradle / Ivy

/**
 *
 * 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.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 * 
 *
 * @param type The type of the deprecation owner:   * `plugin` - The owner of the deprecation is a plugin.   * `script` - The owner of the deprecation is a script.   * `task` - The owner of the deprecation is a task.   * `unknown` - Unknown deprecation owner type when none of the other options match. 
 * @param location The location of the deprecation usage. Can be a plugin id, task path, script file path, script URI. `null` if the owner type is unknown.
 */


data class GradleDeprecationOwner (

    /* The type of the deprecation owner:   * `plugin` - The owner of the deprecation is a plugin.   * `script` - The owner of the deprecation is a script.   * `task` - The owner of the deprecation is a task.   * `unknown` - Unknown deprecation owner type when none of the other options match.  */
    @Json(name = "type")
    val type: GradleDeprecationOwner.Type,

    /* The location of the deprecation usage. Can be a plugin id, task path, script file path, script URI. `null` if the owner type is unknown. */
    @Json(name = "location")
    val location: kotlin.String? = null

) {

    /**
     * The type of the deprecation owner:   * `plugin` - The owner of the deprecation is a plugin.   * `script` - The owner of the deprecation is a script.   * `task` - The owner of the deprecation is a task.   * `unknown` - Unknown deprecation owner type when none of the other options match. 
     *
     * Values: plugin,script,task,unknown
     */
    @JsonClass(generateAdapter = false)
    enum class Type(val value: kotlin.String) {
        @Json(name = "plugin") plugin("plugin"),
        @Json(name = "script") script("script"),
        @Json(name = "task") task("task"),
        @Json(name = "unknown") unknown("unknown");
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy