|
| 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 | +public data class IntellijHttpClientActionV233 private constructor( |
| 32 | + /** |
| 33 | + * HTTP file paths |
| 34 | + */ |
| 35 | + public val files: List<String>, |
| 36 | + /** |
| 37 | + * Number of milliseconds for socket read |
| 38 | + */ |
| 39 | + public val socketTimeout: Int? = null, |
| 40 | + /** |
| 41 | + * Number of milliseconds for connection |
| 42 | + */ |
| 43 | + public val connectTimeout: Int? = null, |
| 44 | + /** |
| 45 | + * Allow insecure SSL connections |
| 46 | + */ |
| 47 | + public val insecure: Boolean? = null, |
| 48 | + /** |
| 49 | + * Name of the environment in config file |
| 50 | + */ |
| 51 | + public val env: String? = null, |
| 52 | + /** |
| 53 | + * Name of the public environment file |
| 54 | + */ |
| 55 | + public val envFile: String? = null, |
| 56 | + /** |
| 57 | + * Public environment variables ('key=value') |
| 58 | + */ |
| 59 | + public val envVariables: List<String>? = null, |
| 60 | + /** |
| 61 | + * Name of the private environment file |
| 62 | + */ |
| 63 | + public val privateEnvFile: String? = null, |
| 64 | + /** |
| 65 | + * Private environment variables ('key=value') |
| 66 | + */ |
| 67 | + public val privateEnvVariables: List<String>? = null, |
| 68 | + /** |
| 69 | + * Proxy setting in format 'scheme://login:password@host:port' |
| 70 | + */ |
| 71 | + public val proxy: String? = null, |
| 72 | + /** |
| 73 | + * Enables Docker mode. Treat 'localhost' as 'host.docker.internal' |
| 74 | + */ |
| 75 | + public val dockerMode: Boolean? = null, |
| 76 | + /** |
| 77 | + * Logging level. One of 'BASIC' (default), 'HEADERS', or 'VERBOSE' |
| 78 | + */ |
| 79 | + public val logLevel: IntellijHttpClientActionV233.LogLevel? = null, |
| 80 | + /** |
| 81 | + * Creates report about execution in JUnit XML Format. Puts it in folder 'reports' in the |
| 82 | + * current directory |
| 83 | + */ |
| 84 | + public val report: Boolean? = null, |
| 85 | + /** |
| 86 | + * Type-unsafe map where you can put any inputs that are not yet supported by the binding |
| 87 | + */ |
| 88 | + public val _customInputs: Map<String, String> = mapOf(), |
| 89 | + /** |
| 90 | + * Allows overriding action's version, for example to use a specific minor version, or a newer |
| 91 | + * version that the binding doesn't yet know about |
| 92 | + */ |
| 93 | + public val _customVersion: String? = null, |
| 94 | +) : RegularAction<Action.Outputs>("madhead", "intellij-http-client-action", _customVersion ?: |
| 95 | + "v233") { |
| 96 | + public constructor( |
| 97 | + vararg pleaseUseNamedArguments: Unit, |
| 98 | + files: List<String>, |
| 99 | + socketTimeout: Int? = null, |
| 100 | + connectTimeout: Int? = null, |
| 101 | + insecure: Boolean? = null, |
| 102 | + env: String? = null, |
| 103 | + envFile: String? = null, |
| 104 | + envVariables: List<String>? = null, |
| 105 | + privateEnvFile: String? = null, |
| 106 | + privateEnvVariables: List<String>? = null, |
| 107 | + proxy: String? = null, |
| 108 | + dockerMode: Boolean? = null, |
| 109 | + logLevel: IntellijHttpClientActionV233.LogLevel? = null, |
| 110 | + report: Boolean? = null, |
| 111 | + _customInputs: Map<String, String> = mapOf(), |
| 112 | + _customVersion: String? = null, |
| 113 | + ) : this(files=files, socketTimeout=socketTimeout, connectTimeout=connectTimeout, |
| 114 | + insecure=insecure, env=env, envFile=envFile, envVariables=envVariables, |
| 115 | + privateEnvFile=privateEnvFile, privateEnvVariables=privateEnvVariables, proxy=proxy, |
| 116 | + dockerMode=dockerMode, logLevel=logLevel, report=report, _customInputs=_customInputs, |
| 117 | + _customVersion=_customVersion) |
| 118 | + |
| 119 | + @Suppress("SpreadOperator") |
| 120 | + override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf( |
| 121 | + *listOfNotNull( |
| 122 | + "files" to files.joinToString(" "), |
| 123 | + socketTimeout?.let { "socket_timeout" to it.toString() }, |
| 124 | + connectTimeout?.let { "connect_timeout" to it.toString() }, |
| 125 | + insecure?.let { "insecure" to it.toString() }, |
| 126 | + env?.let { "env" to it }, |
| 127 | + envFile?.let { "env_file" to it }, |
| 128 | + envVariables?.let { "env_variables" to it.joinToString("\n") }, |
| 129 | + privateEnvFile?.let { "private_env_file" to it }, |
| 130 | + privateEnvVariables?.let { "private_env_variables" to it.joinToString("\n") }, |
| 131 | + proxy?.let { "proxy" to it }, |
| 132 | + dockerMode?.let { "docker_mode" to it.toString() }, |
| 133 | + logLevel?.let { "log_level" to it.stringValue }, |
| 134 | + report?.let { "report" to it.toString() }, |
| 135 | + *_customInputs.toList().toTypedArray(), |
| 136 | + ).toTypedArray() |
| 137 | + ) |
| 138 | + |
| 139 | + override fun buildOutputObject(stepId: String): Action.Outputs = Outputs(stepId) |
| 140 | + |
| 141 | + public sealed class LogLevel( |
| 142 | + public val stringValue: String, |
| 143 | + ) { |
| 144 | + public object Basic : IntellijHttpClientActionV233.LogLevel("BASIC") |
| 145 | + |
| 146 | + public object Headers : IntellijHttpClientActionV233.LogLevel("HEADERS") |
| 147 | + |
| 148 | + public object Verbose : IntellijHttpClientActionV233.LogLevel("VERBOSE") |
| 149 | + |
| 150 | + public class Custom( |
| 151 | + customStringValue: String, |
| 152 | + ) : IntellijHttpClientActionV233.LogLevel(customStringValue) |
| 153 | + } |
| 154 | +} |
0 commit comments