Six new resources from terraform-provider-dokploy v0.2.0 -- Network, DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`, `icon`) and Application. Verified with `pulumi up` against a live v0.30.2 instance: create, preview-clean, and destroy. The upstream provider also now refuses a volume Mount with no `volumeName`, which Dokploy would otherwise turn into an anonymous Docker volume recreated on every deploy. That surfaces here at preview time, before anything exists. Two things made that fix nearly invisible to Pulumi users, so this commit fixes the second one: the bridge resolves the upstream `docs/` through the Go module cache, where a locally `replace`d dependency never lands, so tfgen was emitting every resource with no description at all. UpstreamRepoPath now points at the checkout and all 445 inputs carry documentation -- with names rendered per language, so Python readers see `volume_name` where TypeScript readers see `volumeName`.
208 lines
7.3 KiB
C#
Generated
208 lines
7.3 KiB
C#
Generated
// *** 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.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
using Pulumi.Serialization;
|
|
using Pulumi;
|
|
|
|
namespace Maxvojtkov.Dokploy
|
|
{
|
|
/// <summary>
|
|
/// A TLS certificate uploaded to Dokploy, for domains that use `CertificateType = "custom"`.
|
|
///
|
|
/// > The private key is stored in Terraform state. Use a state backend with encryption at rest.
|
|
/// </summary>
|
|
[DokployResourceType("dokploy:index/certificate:Certificate")]
|
|
public partial class Certificate : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// Whether Dokploy should renew this certificate automatically.
|
|
/// </summary>
|
|
[Output("autoRenew")]
|
|
public Output<bool> AutoRenew { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded certificate chain.
|
|
/// </summary>
|
|
[Output("certificateData")]
|
|
public Output<string> CertificateData { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Path where Dokploy writes the certificate on disk.
|
|
/// </summary>
|
|
[Output("certificatePath")]
|
|
public Output<string> CertificatePath { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Display name of the certificate.
|
|
/// </summary>
|
|
[Output("name")]
|
|
public Output<string> Name { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
[Output("privateKey")]
|
|
public Output<string> PrivateKey { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Server this certificate is installed on.
|
|
/// </summary>
|
|
[Output("serverId")]
|
|
public Output<string?> ServerId { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Certificate resource with the given unique name, arguments, and options.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resource</param>
|
|
/// <param name="args">The arguments used to populate this resource's properties</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public Certificate(string name, CertificateArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/certificate:Certificate", name, args ?? new CertificateArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Certificate(string name, Input<string> id, CertificateState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/certificate:Certificate", name, state, MakeResourceOptions(options, id))
|
|
{
|
|
}
|
|
|
|
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
|
{
|
|
var defaultOptions = new CustomResourceOptions
|
|
{
|
|
Version = Utilities.Version,
|
|
PluginDownloadURL = "https://gitea.coolify.vojtkov.dev/usr_unknown/pulumi-dokploy/releases/download/v${VERSION}",
|
|
AdditionalSecretOutputs =
|
|
{
|
|
"privateKey",
|
|
},
|
|
};
|
|
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
|
// Override the ID if one was specified for consistency with other language SDKs.
|
|
merged.Id = id ?? merged.Id;
|
|
return merged;
|
|
}
|
|
/// <summary>
|
|
/// Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
/// properties used to qualify the lookup.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resulting resource.</param>
|
|
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
|
/// <param name="state">Any extra arguments used during the lookup.</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public static Certificate Get(string name, Input<string> id, CertificateState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Certificate(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class CertificateArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Whether Dokploy should renew this certificate automatically.
|
|
/// </summary>
|
|
[Input("autoRenew")]
|
|
public Input<bool>? AutoRenew { get; set; }
|
|
|
|
/// <summary>
|
|
/// PEM-encoded certificate chain.
|
|
/// </summary>
|
|
[Input("certificateData", required: true)]
|
|
public Input<string> CertificateData { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Display name of the certificate.
|
|
/// </summary>
|
|
[Input("name")]
|
|
public Input<string>? Name { get; set; }
|
|
|
|
[Input("privateKey", required: true)]
|
|
private Input<string>? _privateKey;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
public Input<string>? PrivateKey
|
|
{
|
|
get => _privateKey;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Server this certificate is installed on.
|
|
/// </summary>
|
|
[Input("serverId")]
|
|
public Input<string>? ServerId { get; set; }
|
|
|
|
public CertificateArgs()
|
|
{
|
|
}
|
|
public static new CertificateArgs Empty => new CertificateArgs();
|
|
}
|
|
|
|
public sealed class CertificateState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Whether Dokploy should renew this certificate automatically.
|
|
/// </summary>
|
|
[Input("autoRenew")]
|
|
public Input<bool>? AutoRenew { get; set; }
|
|
|
|
/// <summary>
|
|
/// PEM-encoded certificate chain.
|
|
/// </summary>
|
|
[Input("certificateData")]
|
|
public Input<string>? CertificateData { get; set; }
|
|
|
|
/// <summary>
|
|
/// Path where Dokploy writes the certificate on disk.
|
|
/// </summary>
|
|
[Input("certificatePath")]
|
|
public Input<string>? CertificatePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Display name of the certificate.
|
|
/// </summary>
|
|
[Input("name")]
|
|
public Input<string>? Name { get; set; }
|
|
|
|
[Input("privateKey")]
|
|
private Input<string>? _privateKey;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
public Input<string>? PrivateKey
|
|
{
|
|
get => _privateKey;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Server this certificate is installed on.
|
|
/// </summary>
|
|
[Input("serverId")]
|
|
public Input<string>? ServerId { get; set; }
|
|
|
|
public CertificateState()
|
|
{
|
|
}
|
|
public static new CertificateState Empty => new CertificateState();
|
|
}
|
|
}
|