Bridge terraform-provider-dokploy into a Pulumi provider
18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
76
sdk/dotnet/Config/Config.cs
generated
Normal file
76
sdk/dotnet/Config/Config.cs
generated
Normal file
@@ -0,0 +1,76 @@
|
||||
// *** 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<T>
|
||||
{
|
||||
private readonly Func<T> _getter;
|
||||
private T _value = default!;
|
||||
private bool _set;
|
||||
|
||||
public __Value(Func<T> 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<string?> _apiKey = new __Value<string?>(() => __config.Get("apiKey") ?? Utilities.GetEnv("DOKPLOY_API_KEY"));
|
||||
/// <summary>
|
||||
/// API token generated in Dokploy under *Settings > Profile > API/CLI*. May also be set with the `DOKPLOY_API_KEY` environment variable.
|
||||
/// </summary>
|
||||
public static string? ApiKey
|
||||
{
|
||||
get => _apiKey.Get();
|
||||
set => _apiKey.Set(value);
|
||||
}
|
||||
|
||||
private static readonly __Value<string?> _host = new __Value<string?>(() => __config.Get("host") ?? Utilities.GetEnv("DOKPLOY_HOST"));
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public static string? Host
|
||||
{
|
||||
get => _host.Get();
|
||||
set => _host.Set(value);
|
||||
}
|
||||
|
||||
private static readonly __Value<bool?> _insecureSkipVerify = new __Value<bool?>(() => __config.GetBoolean("insecureSkipVerify"));
|
||||
/// <summary>
|
||||
/// Skip TLS certificate verification. Only use this for instances behind a self-signed certificate. Defaults to `False`.
|
||||
/// </summary>
|
||||
public static bool? InsecureSkipVerify
|
||||
{
|
||||
get => _insecureSkipVerify.Get();
|
||||
set => _insecureSkipVerify.Set(value);
|
||||
}
|
||||
|
||||
private static readonly __Value<int?> _timeoutSeconds = new __Value<int?>(() => __config.GetInt32("timeoutSeconds") ?? Utilities.GetEnvInt32("DOKPLOY_TIMEOUT_SECONDS"));
|
||||
/// <summary>
|
||||
/// Per-request timeout in seconds. Defaults to `60`. May also be set with the `DOKPLOY_TIMEOUT_SECONDS` environment variable.
|
||||
/// </summary>
|
||||
public static int? TimeoutSeconds
|
||||
{
|
||||
get => _timeoutSeconds.Get();
|
||||
set => _timeoutSeconds.Set(value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user