Bridge what Dokploy v0.30 added, and let the docs through
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`.
This commit is contained in:
Generated
+352
@@ -0,0 +1,352 @@
|
||||
// *** 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 cron job Dokploy runs on a schedule.
|
||||
///
|
||||
/// `ScheduleType` selects where the command runs:
|
||||
///
|
||||
/// * `Application` — inside a running application container; set `ApplicationId`.
|
||||
/// * `Compose` — inside one service of a Compose stack; set `ComposeId` and `ServiceName`.
|
||||
/// * `Server` — on a remote server; set `ServerId`.
|
||||
/// * `dokploy-server` — on the Dokploy host itself.
|
||||
///
|
||||
/// > A schedule targeting an application runs inside its container, so the container has to be running when the cron fires.
|
||||
/// </summary>
|
||||
[DokployResourceType("dokploy:index/schedule:Schedule")]
|
||||
public partial class Schedule : global::Pulumi.CustomResource
|
||||
{
|
||||
/// <summary>
|
||||
/// Docker service name the schedule targets. Derived by Dokploy when omitted.
|
||||
/// </summary>
|
||||
[Output("appName")]
|
||||
public Output<string> AppName { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Application this schedule belongs to.
|
||||
/// </summary>
|
||||
[Output("applicationId")]
|
||||
public Output<string?> ApplicationId { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Command to run.
|
||||
/// </summary>
|
||||
[Output("command")]
|
||||
public Output<string> Command { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Compose stack this schedule belongs to.
|
||||
/// </summary>
|
||||
[Output("composeId")]
|
||||
public Output<string?> ComposeId { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// RFC 3339 timestamp of when the schedule was created.
|
||||
/// </summary>
|
||||
[Output("createdAt")]
|
||||
public Output<string> CreatedAt { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Standard five-field cron expression, for example `0 3 * * *`.
|
||||
/// </summary>
|
||||
[Output("cronExpression")]
|
||||
public Output<string> CronExpression { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Output("description")]
|
||||
public Output<string?> Description { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the schedule is active.
|
||||
/// </summary>
|
||||
[Output("enabled")]
|
||||
public Output<bool> Enabled { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Display name of the schedule.
|
||||
/// </summary>
|
||||
[Output("name")]
|
||||
public Output<string> Name { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Where the command runs. Valid values: `Application`, `Compose`, `Server`, `dokploy-server`. Defaults to `Application`.
|
||||
/// </summary>
|
||||
[Output("scheduleType")]
|
||||
public Output<string> ScheduleType { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Multi-line script to run instead of a single command.
|
||||
/// </summary>
|
||||
[Output("script")]
|
||||
public Output<string?> Script { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Server this schedule runs on.
|
||||
/// </summary>
|
||||
[Output("serverId")]
|
||||
public Output<string?> ServerId { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Service inside a Compose stack to run the command in.
|
||||
/// </summary>
|
||||
[Output("serviceName")]
|
||||
public Output<string?> ServiceName { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Shell used to interpret the command. Valid values: `Bash`, `Sh`. Defaults to `Bash`.
|
||||
/// </summary>
|
||||
[Output("shellType")]
|
||||
public Output<string> ShellType { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// IANA timezone the cron expression is evaluated in, for example `Europe/Berlin`.
|
||||
/// </summary>
|
||||
[Output("timezone")]
|
||||
public Output<string?> Timezone { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Schedule 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 Schedule(string name, ScheduleArgs args, CustomResourceOptions? options = null)
|
||||
: base("dokploy:index/schedule:Schedule", name, args ?? new ScheduleArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Schedule(string name, Input<string> id, ScheduleState? state = null, CustomResourceOptions? options = null)
|
||||
: base("dokploy:index/schedule:Schedule", 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 Schedule 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 Schedule Get(string name, Input<string> id, ScheduleState? state = null, CustomResourceOptions? options = null)
|
||||
{
|
||||
return new Schedule(name, id, state, options);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ScheduleArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Docker service name the schedule targets. Derived by Dokploy when omitted.
|
||||
/// </summary>
|
||||
[Input("appName")]
|
||||
public Input<string>? AppName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application this schedule belongs to.
|
||||
/// </summary>
|
||||
[Input("applicationId")]
|
||||
public Input<string>? ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Command to run.
|
||||
/// </summary>
|
||||
[Input("command", required: true)]
|
||||
public Input<string> Command { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Compose stack this schedule belongs to.
|
||||
/// </summary>
|
||||
[Input("composeId")]
|
||||
public Input<string>? ComposeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Standard five-field cron expression, for example `0 3 * * *`.
|
||||
/// </summary>
|
||||
[Input("cronExpression", required: true)]
|
||||
public Input<string> CronExpression { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Input("description")]
|
||||
public Input<string>? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the schedule is active.
|
||||
/// </summary>
|
||||
[Input("enabled")]
|
||||
public Input<bool>? Enabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Display name of the schedule.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Where the command runs. Valid values: `Application`, `Compose`, `Server`, `dokploy-server`. Defaults to `Application`.
|
||||
/// </summary>
|
||||
[Input("scheduleType")]
|
||||
public Input<string>? ScheduleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Multi-line script to run instead of a single command.
|
||||
/// </summary>
|
||||
[Input("script")]
|
||||
public Input<string>? Script { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Server this schedule runs on.
|
||||
/// </summary>
|
||||
[Input("serverId")]
|
||||
public Input<string>? ServerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Service inside a Compose stack to run the command in.
|
||||
/// </summary>
|
||||
[Input("serviceName")]
|
||||
public Input<string>? ServiceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Shell used to interpret the command. Valid values: `Bash`, `Sh`. Defaults to `Bash`.
|
||||
/// </summary>
|
||||
[Input("shellType")]
|
||||
public Input<string>? ShellType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IANA timezone the cron expression is evaluated in, for example `Europe/Berlin`.
|
||||
/// </summary>
|
||||
[Input("timezone")]
|
||||
public Input<string>? Timezone { get; set; }
|
||||
|
||||
public ScheduleArgs()
|
||||
{
|
||||
}
|
||||
public static new ScheduleArgs Empty => new ScheduleArgs();
|
||||
}
|
||||
|
||||
public sealed class ScheduleState : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Docker service name the schedule targets. Derived by Dokploy when omitted.
|
||||
/// </summary>
|
||||
[Input("appName")]
|
||||
public Input<string>? AppName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application this schedule belongs to.
|
||||
/// </summary>
|
||||
[Input("applicationId")]
|
||||
public Input<string>? ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Command to run.
|
||||
/// </summary>
|
||||
[Input("command")]
|
||||
public Input<string>? Command { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compose stack this schedule belongs to.
|
||||
/// </summary>
|
||||
[Input("composeId")]
|
||||
public Input<string>? ComposeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// RFC 3339 timestamp of when the schedule was created.
|
||||
/// </summary>
|
||||
[Input("createdAt")]
|
||||
public Input<string>? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Standard five-field cron expression, for example `0 3 * * *`.
|
||||
/// </summary>
|
||||
[Input("cronExpression")]
|
||||
public Input<string>? CronExpression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Input("description")]
|
||||
public Input<string>? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the schedule is active.
|
||||
/// </summary>
|
||||
[Input("enabled")]
|
||||
public Input<bool>? Enabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Display name of the schedule.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Where the command runs. Valid values: `Application`, `Compose`, `Server`, `dokploy-server`. Defaults to `Application`.
|
||||
/// </summary>
|
||||
[Input("scheduleType")]
|
||||
public Input<string>? ScheduleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Multi-line script to run instead of a single command.
|
||||
/// </summary>
|
||||
[Input("script")]
|
||||
public Input<string>? Script { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Server this schedule runs on.
|
||||
/// </summary>
|
||||
[Input("serverId")]
|
||||
public Input<string>? ServerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Service inside a Compose stack to run the command in.
|
||||
/// </summary>
|
||||
[Input("serviceName")]
|
||||
public Input<string>? ServiceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Shell used to interpret the command. Valid values: `Bash`, `Sh`. Defaults to `Bash`.
|
||||
/// </summary>
|
||||
[Input("shellType")]
|
||||
public Input<string>? ShellType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IANA timezone the cron expression is evaluated in, for example `Europe/Berlin`.
|
||||
/// </summary>
|
||||
[Input("timezone")]
|
||||
public Input<string>? Timezone { get; set; }
|
||||
|
||||
public ScheduleState()
|
||||
{
|
||||
}
|
||||
public static new ScheduleState Empty => new ScheduleState();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user