|
| 1 | +// This file was generated using action-binding-generator. Don't change it by hand, otherwise your |
| 2 | +// changes will be overwritten with the next binding code regeneration. |
| 3 | +// See https://github.com/typesafegithub/github-workflows-kt for more info. |
| 4 | +@file:Suppress( |
| 5 | + "DataClassPrivateConstructor", |
| 6 | + "UNUSED_PARAMETER", |
| 7 | +) |
| 8 | + |
| 9 | +package io.github.typesafegithub.workflows.actions.madhead |
| 10 | + |
| 11 | +import io.github.typesafegithub.workflows.domain.actions.Action |
| 12 | +import io.github.typesafegithub.workflows.domain.actions.RegularAction |
| 13 | +import java.util.LinkedHashMap |
| 14 | +import kotlin.Boolean |
| 15 | +import kotlin.Int |
| 16 | +import kotlin.String |
| 17 | +import kotlin.Suppress |
| 18 | +import kotlin.Unit |
| 19 | +import kotlin.collections.List |
| 20 | +import kotlin.collections.Map |
| 21 | +import kotlin.collections.toList |
| 22 | +import kotlin.collections.toTypedArray |
| 23 | + |
| 24 | +/** |
| 25 | + * Action: intellij-http-client-action |
| 26 | + * |
| 27 | + * IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI |
| 28 | + * |
| 29 | + * [Action on GitHub](https://github.com/madhead/intellij-http-client-action) |
| 30 | + * |
| 31 | + * @param files HTTP file paths |
| 32 | + * @param socketTimeout Number of milliseconds for socket read |
| 33 | + * @param connectTimeout Number of milliseconds for connection |
| 34 | + * @param insecure Allow insecure SSL connections |
| 35 | + * @param env Name of the environment in config file |
| 36 | + * @param envFile Name of the public environment file |
| 37 | + * @param envVariables Public environment variables ('key=value') |
| 38 | + * @param privateEnvFile Name of the private environment file |
| 39 | + * @param privateEnvVariables Private environment variables ('key=value') |
| 40 | + * @param proxy Proxy setting in format 'scheme://login:password@host:port' |
| 41 | + * @param dockerMode Enables Docker mode. Treat 'localhost' as 'host.docker.internal' |
| 42 | + * @param logLevel Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE' |
| 43 | + * @param report Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in |
| 44 | + * the current directory |
| 45 | + * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by |
| 46 | + * the binding |
| 47 | + * @param _customVersion Allows overriding action's version, for example to use a specific minor |
| 48 | + * version, or a newer version that the binding doesn't yet know about |
| 49 | + */ |
| 50 | +public data class IntellijHttpClientActionV241 private constructor( |
| 51 | + /** |
| 52 | + * HTTP file paths |
| 53 | + */ |
| 54 | + public val files: List<String>, |
| 55 | + /** |
| 56 | + * Number of milliseconds for socket read |
| 57 | + */ |
| 58 | + public val socketTimeout: Int? = null, |
| 59 | + /** |
| 60 | + * Number of milliseconds for connection |
| 61 | + */ |
| 62 | + public val connectTimeout: Int? = null, |
| 63 | + /** |
| 64 | + * Allow insecure SSL connections |
| 65 | + */ |
| 66 | + public val insecure: Boolean? = null, |
| 67 | + /** |
| 68 | + * Name of the environment in config file |
| 69 | + */ |
| 70 | + public val env: String? = null, |
| 71 | + /** |
| 72 | + * Name of the public environment file |
| 73 | + */ |
| 74 | + public val envFile: String? = null, |
| 75 | + /** |
| 76 | + * Public environment variables ('key=value') |
| 77 | + */ |
| 78 | + public val envVariables: List<String>? = null, |
| 79 | + /** |
| 80 | + * Name of the private environment file |
| 81 | + */ |
| 82 | + public val privateEnvFile: String? = null, |
| 83 | + /** |
| 84 | + * Private environment variables ('key=value') |
| 85 | + */ |
| 86 | + public val privateEnvVariables: List<String>? = null, |
| 87 | + /** |
| 88 | + * Proxy setting in format 'scheme://login:password@host:port' |
| 89 | + */ |
| 90 | + public val proxy: String? = null, |
| 91 | + /** |
| 92 | + * Enables Docker mode. Treat 'localhost' as 'host.docker.internal' |
| 93 | + */ |
| 94 | + public val dockerMode: Boolean? = null, |
| 95 | + /** |
| 96 | + * Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE' |
| 97 | + */ |
| 98 | + public val logLevel: IntellijHttpClientActionV241.LogLevel? = null, |
| 99 | + /** |
| 100 | + * Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the |
| 101 | + * current directory |
| 102 | + */ |
| 103 | + public val report: Boolean? = null, |
| 104 | + /** |
| 105 | + * Type-unsafe map where you can put any inputs that are not yet supported by the binding |
| 106 | + */ |
| 107 | + public val _customInputs: Map<String, String> = mapOf(), |
| 108 | + /** |
| 109 | + * Allows overriding action's version, for example to use a specific minor version, or a newer |
| 110 | + * version that the binding doesn't yet know about |
| 111 | + */ |
| 112 | + public val _customVersion: String? = null, |
| 113 | +) : RegularAction<Action.Outputs>("madhead", "intellij-http-client-action", _customVersion ?: |
| 114 | + "v241") { |
| 115 | + public constructor( |
| 116 | + vararg pleaseUseNamedArguments: Unit, |
| 117 | + files: List<String>, |
| 118 | + socketTimeout: Int? = null, |
| 119 | + connectTimeout: Int? = null, |
| 120 | + insecure: Boolean? = null, |
| 121 | + env: String? = null, |
| 122 | + envFile: String? = null, |
| 123 | + envVariables: List<String>? = null, |
| 124 | + privateEnvFile: String? = null, |
| 125 | + privateEnvVariables: List<String>? = null, |
| 126 | + proxy: String? = null, |
| 127 | + dockerMode: Boolean? = null, |
| 128 | + logLevel: IntellijHttpClientActionV241.LogLevel? = null, |
| 129 | + report: Boolean? = null, |
| 130 | + _customInputs: Map<String, String> = mapOf(), |
| 131 | + _customVersion: String? = null, |
| 132 | + ) : this(files=files, socketTimeout=socketTimeout, connectTimeout=connectTimeout, |
| 133 | + insecure=insecure, env=env, envFile=envFile, envVariables=envVariables, |
| 134 | + privateEnvFile=privateEnvFile, privateEnvVariables=privateEnvVariables, proxy=proxy, |
| 135 | + dockerMode=dockerMode, logLevel=logLevel, report=report, _customInputs=_customInputs, |
| 136 | + _customVersion=_customVersion) |
| 137 | + |
| 138 | + @Suppress("SpreadOperator") |
| 139 | + override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf( |
| 140 | + *listOfNotNull( |
| 141 | + "files" to files.joinToString(" "), |
| 142 | + socketTimeout?.let { "socket_timeout" to it.toString() }, |
| 143 | + connectTimeout?.let { "connect_timeout" to it.toString() }, |
| 144 | + insecure?.let { "insecure" to it.toString() }, |
| 145 | + env?.let { "env" to it }, |
| 146 | + envFile?.let { "env_file" to it }, |
| 147 | + envVariables?.let { "env_variables" to it.joinToString("\n") }, |
| 148 | + privateEnvFile?.let { "private_env_file" to it }, |
| 149 | + privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") }, |
| 150 | + proxy?.let { "proxy" to it }, |
| 151 | + dockerMode?.let { "docker_mode" to it.toString() }, |
| 152 | + logLevel?.let { "log_level" to it.stringValue }, |
| 153 | + report?.let { "report" to it.toString() }, |
| 154 | + *_customInputs.toList().toTypedArray(), |
| 155 | + ).toTypedArray() |
| 156 | + ) |
| 157 | + |
| 158 | + override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) |
| 159 | + |
| 160 | + public sealed class LogLevel( |
| 161 | + public val stringValue: String, |
| 162 | + ) { |
| 163 | + public object Basic : IntellijHttpClientActionV241.LogLevel("BASIC") |
| 164 | + |
| 165 | + public object Headers : IntellijHttpClientActionV241.LogLevel("HEADERS") |
| 166 | + |
| 167 | + public object Verbose : IntellijHttpClientActionV241.LogLevel("VERBOSE") |
| 168 | + |
| 169 | + public class Custom( |
| 170 | + customStringValue: String, |
| 171 | + ) : IntellijHttpClientActionV241.LogLevel(customStringValue) |
| 172 | + } |
| 173 | +} |
0 commit comments