// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Immutable; namespace Maxvojtkov.Dokploy { public static class Config { [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Double underscore prefix used to avoid conflicts with variable names.")] private sealed class __Value { private readonly Func _getter; private T _value = default!; private bool _set; public __Value(Func getter) { _getter = getter; } public T Get() => _set ? _value : _getter(); public void Set(T value) { _value = value; _set = true; } } private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("dokploy"); private static readonly __Value _apiKey = new __Value(() => __config.Get("apiKey") ?? Utilities.GetEnv("DOKPLOY_API_KEY")); /// /// API token generated in Dokploy under *Settings > Profile > API/CLI*. May also be set with the `DOKPLOY_API_KEY` environment variable. /// public static string? ApiKey { get => _apiKey.Get(); set => _apiKey.Set(value); } private static readonly __Value _host = new __Value(() => __config.Get("host") ?? Utilities.GetEnv("DOKPLOY_HOST")); /// /// Base URL of the Dokploy instance, for example `https://dokploy.example.com`. A trailing `/api` is optional. May also be set with the `DOKPLOY_HOST` environment variable. /// public static string? Host { get => _host.Get(); set => _host.Set(value); } private static readonly __Value _insecureSkipVerify = new __Value(() => __config.GetBoolean("insecureSkipVerify")); /// /// Skip TLS certificate verification. Only use this for instances behind a self-signed certificate. Defaults to `False`. /// public static bool? InsecureSkipVerify { get => _insecureSkipVerify.Get(); set => _insecureSkipVerify.Set(value); } private static readonly __Value _timeoutSeconds = new __Value(() => __config.GetInt32("timeoutSeconds") ?? Utilities.GetEnvInt32("DOKPLOY_TIMEOUT_SECONDS")); /// /// Per-request timeout in seconds. Defaults to `60`. May also be set with the `DOKPLOY_TIMEOUT_SECONDS` environment variable. /// public static int? TimeoutSeconds { get => _timeoutSeconds.Get(); set => _timeoutSeconds.Set(value); } } }