|
| 1 | +// This file was generated using 'wrapper-generator' module. Don't change it by hand, your changes will |
| 2 | +// be overwritten with the next wrapper code regeneration. Instead, consider introducing changes to the |
| 3 | +// generator itself. |
| 4 | +package it.krzeminski.githubactions.actions.madhead |
| 5 | + |
| 6 | +import it.krzeminski.githubactions.actions.Action |
| 7 | +import java.util.LinkedHashMap |
| 8 | +import kotlin.Boolean |
| 9 | +import kotlin.Int |
| 10 | +import kotlin.String |
| 11 | +import kotlin.Suppress |
| 12 | +import kotlin.collections.List |
| 13 | +import kotlin.collections.Map |
| 14 | +import kotlin.collections.toList |
| 15 | +import kotlin.collections.toTypedArray |
| 16 | + |
| 17 | +/** |
| 18 | + * Action: intellij-http-client-action |
| 19 | + * |
| 20 | + * IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI |
| 21 | + * |
| 22 | + * [Action on GitHub](https://github.com/madhead/intellij-http-client-action) |
| 23 | + */ |
| 24 | +public data class IntellijHttpClientActionV231( |
| 25 | + /** |
| 26 | + * HTTP file paths |
| 27 | + */ |
| 28 | + public val files: List<String>, |
| 29 | + /** |
| 30 | + * Number of milliseconds for socket read |
| 31 | + */ |
| 32 | + public val socketTimeout: Int? = null, |
| 33 | + /** |
| 34 | + * Number of milliseconds for connection |
| 35 | + */ |
| 36 | + public val connectTimeout: Int? = null, |
| 37 | + /** |
| 38 | + * Allow insecure SSL connections |
| 39 | + */ |
| 40 | + public val insecure: Boolean? = null, |
| 41 | + /** |
| 42 | + * Name of the environment in config file |
| 43 | + */ |
| 44 | + public val env: String? = null, |
| 45 | + /** |
| 46 | + * Name of the public environment file |
| 47 | + */ |
| 48 | + public val envFile: String? = null, |
| 49 | + /** |
| 50 | + * Public environment variables ('key=value') |
| 51 | + */ |
| 52 | + public val envVariables: List<String>? = null, |
| 53 | + /** |
| 54 | + * Name of the private environment file |
| 55 | + */ |
| 56 | + public val privateEnvFile: String? = null, |
| 57 | + /** |
| 58 | + * Private environment variables ('key=value') |
| 59 | + */ |
| 60 | + public val privateEnvVariables: List<String>? = null, |
| 61 | + /** |
| 62 | + * Enables Docker mode. Treat 'localhost' as 'host.docker.internal' |
| 63 | + */ |
| 64 | + public val dockerMode: Boolean? = null, |
| 65 | + /** |
| 66 | + * Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE' |
| 67 | + */ |
| 68 | + public val logLevel: IntellijHttpClientActionV231.LogLevel? = null, |
| 69 | + /** |
| 70 | + * Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the |
| 71 | + * current directory |
| 72 | + */ |
| 73 | + public val report: Boolean? = null, |
| 74 | + /** |
| 75 | + * Type-unsafe map where you can put any inputs that are not yet supported by the wrapper |
| 76 | + */ |
| 77 | + public val _customInputs: Map<String, String> = mapOf(), |
| 78 | + /** |
| 79 | + * Allows overriding action's version, for example to use a specific minor version, or a newer |
| 80 | + * version that the wrapper doesn't yet know about |
| 81 | + */ |
| 82 | + public val _customVersion: String? = null, |
| 83 | +) : Action("madhead", "intellij-http-client-action", _customVersion ?: "v231") { |
| 84 | + @Suppress("SpreadOperator") |
| 85 | + public override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf( |
| 86 | + *listOfNotNull( |
| 87 | + "files" to files.joinToString(" "), |
| 88 | + socketTimeout?.let { "socket_timeout" to it.toString() }, |
| 89 | + connectTimeout?.let { "connect_timeout" to it.toString() }, |
| 90 | + insecure?.let { "insecure" to it.toString() }, |
| 91 | + env?.let { "env" to it }, |
| 92 | + envFile?.let { "env_file" to it }, |
| 93 | + envVariables?.let { "env_variables" to it.joinToString("\n") }, |
| 94 | + privateEnvFile?.let { "private_env_file" to it }, |
| 95 | + privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") }, |
| 96 | + dockerMode?.let { "docker_mode" to it.toString() }, |
| 97 | + logLevel?.let { "log_level" to it.stringValue }, |
| 98 | + report?.let { "report" to it.toString() }, |
| 99 | + *_customInputs.toList().toTypedArray(), |
| 100 | + ).toTypedArray() |
| 101 | + ) |
| 102 | + |
| 103 | + public sealed class LogLevel( |
| 104 | + public val stringValue: String, |
| 105 | + ) { |
| 106 | + public object Basic : IntellijHttpClientActionV231.LogLevel("BASIC") |
| 107 | + |
| 108 | + public object Headers : IntellijHttpClientActionV231.LogLevel("HEADERS") |
| 109 | + |
| 110 | + public object Verbose : IntellijHttpClientActionV231.LogLevel("VERBOSE") |
| 111 | + |
| 112 | + public class Custom( |
| 113 | + customStringValue: String, |
| 114 | + ) : IntellijHttpClientActionV231.LogLevel(customStringValue) |
| 115 | + } |
| 116 | +} |
0 commit comments