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`.
164 lines
6.1 KiB
C#
Generated
164 lines
6.1 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 Traefik redirect rule attached to an application.
|
|
/// </summary>
|
|
[DokployResourceType("dokploy:index/redirect:Redirect")]
|
|
public partial class Redirect : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Output("applicationId")]
|
|
public Output<string> ApplicationId { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the redirect was created.
|
|
/// </summary>
|
|
[Output("createdAt")]
|
|
public Output<string> CreatedAt { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Output("permanent")]
|
|
public Output<bool> Permanent { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Output("regex")]
|
|
public Output<string> Regex { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Output("replacement")]
|
|
public Output<string> Replacement { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Redirect 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 Redirect(string name, RedirectArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/redirect:Redirect", name, args ?? new RedirectArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Redirect(string name, Input<string> id, RedirectState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/redirect:Redirect", 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}",
|
|
};
|
|
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 Redirect 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 Redirect Get(string name, Input<string> id, RedirectState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Redirect(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class RedirectArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Input("applicationId", required: true)]
|
|
public Input<string> ApplicationId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Input("permanent")]
|
|
public Input<bool>? Permanent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Input("regex", required: true)]
|
|
public Input<string> Regex { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Input("replacement", required: true)]
|
|
public Input<string> Replacement { get; set; } = null!;
|
|
|
|
public RedirectArgs()
|
|
{
|
|
}
|
|
public static new RedirectArgs Empty => new RedirectArgs();
|
|
}
|
|
|
|
public sealed class RedirectState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Input("applicationId")]
|
|
public Input<string>? ApplicationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the redirect was created.
|
|
/// </summary>
|
|
[Input("createdAt")]
|
|
public Input<string>? CreatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Input("permanent")]
|
|
public Input<bool>? Permanent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Input("regex")]
|
|
public Input<string>? Regex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Input("replacement")]
|
|
public Input<string>? Replacement { get; set; }
|
|
|
|
public RedirectState()
|
|
{
|
|
}
|
|
public static new RedirectState Empty => new RedirectState();
|
|
}
|
|
}
|