Files
max-voitcov 73386ba0ff
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped
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`.
2026-08-26 00:46:32 +03:00

270 lines
9.9 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 Docker network managed by Dokploy.
///
/// Attach services to it with `NetworkIds` on `dokploy.Application`, `dokploy.Compose` and the database resources. Every service also joins the shared `dokploy-network` unless `DetachDokployNetwork` is set.
///
/// &gt; Docker networks are immutable. Dokploy has no update endpoint, so changing any attribute replaces the network — which detaches the services currently using it until they redeploy.
/// </summary>
[DokployResourceType("dokploy:index/network:Network")]
public partial class Network : global::Pulumi.CustomResource
{
/// <summary>
/// Allow standalone containers to attach to an overlay network.
/// </summary>
[Output("attachable")]
public Output<bool> Attachable { get; private set; } = null!;
/// <summary>
/// RFC 3339 timestamp of when the network was created.
/// </summary>
[Output("createdAt")]
public Output<string> CreatedAt { get; private set; } = null!;
/// <summary>
/// Network driver. Use `Overlay` for multi-node Swarm clusters and `Bridge` for a single host. Valid values: `Bridge`, `Overlay`.
/// </summary>
[Output("driver")]
public Output<string> Driver { get; private set; } = null!;
/// <summary>
/// Enable IPv4 address allocation.
/// </summary>
[Output("enableIpv4")]
public Output<bool> EnableIpv4 { get; private set; } = null!;
/// <summary>
/// Enable IPv6 address allocation.
/// </summary>
[Output("enableIpv6")]
public Output<bool> EnableIpv6 { get; private set; } = null!;
/// <summary>
/// Isolate the network from external access.
/// </summary>
[Output("internal")]
public Output<bool> Internal { get; private set; } = null!;
/// <summary>
/// Custom IP address management, as a JSON object with `Subnet`, `Gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
/// </summary>
[Output("ipam")]
public Output<string?> Ipam { get; private set; } = null!;
/// <summary>
/// Maximum transmission unit for the network. Leave unset to use Docker's default.
/// </summary>
[Output("mtu")]
public Output<int?> Mtu { get; private set; } = null!;
/// <summary>
/// Name of the Docker network.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;
/// <summary>
/// Organization that owns the network.
/// </summary>
[Output("organizationId")]
public Output<string> OrganizationId { get; private set; } = null!;
/// <summary>
/// Remote server to create the network on. Omit to use the Dokploy host itself.
/// </summary>
[Output("serverId")]
public Output<string?> ServerId { get; private set; } = null!;
/// <summary>
/// Create a Network 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 Network(string name, NetworkArgs? args = null, CustomResourceOptions? options = null)
: base("dokploy:index/network:Network", name, args ?? new NetworkArgs(), MakeResourceOptions(options, ""))
{
}
private Network(string name, Input<string> id, NetworkState? state = null, CustomResourceOptions? options = null)
: base("dokploy:index/network:Network", 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 Network 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 Network Get(string name, Input<string> id, NetworkState? state = null, CustomResourceOptions? options = null)
{
return new Network(name, id, state, options);
}
}
public sealed class NetworkArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Allow standalone containers to attach to an overlay network.
/// </summary>
[Input("attachable")]
public Input<bool>? Attachable { get; set; }
/// <summary>
/// Network driver. Use `Overlay` for multi-node Swarm clusters and `Bridge` for a single host. Valid values: `Bridge`, `Overlay`.
/// </summary>
[Input("driver")]
public Input<string>? Driver { get; set; }
/// <summary>
/// Enable IPv4 address allocation.
/// </summary>
[Input("enableIpv4")]
public Input<bool>? EnableIpv4 { get; set; }
/// <summary>
/// Enable IPv6 address allocation.
/// </summary>
[Input("enableIpv6")]
public Input<bool>? EnableIpv6 { get; set; }
/// <summary>
/// Isolate the network from external access.
/// </summary>
[Input("internal")]
public Input<bool>? Internal { get; set; }
/// <summary>
/// Custom IP address management, as a JSON object with `Subnet`, `Gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
/// </summary>
[Input("ipam")]
public Input<string>? Ipam { get; set; }
/// <summary>
/// Maximum transmission unit for the network. Leave unset to use Docker's default.
/// </summary>
[Input("mtu")]
public Input<int>? Mtu { get; set; }
/// <summary>
/// Name of the Docker network.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
/// <summary>
/// Remote server to create the network on. Omit to use the Dokploy host itself.
/// </summary>
[Input("serverId")]
public Input<string>? ServerId { get; set; }
public NetworkArgs()
{
}
public static new NetworkArgs Empty => new NetworkArgs();
}
public sealed class NetworkState : global::Pulumi.ResourceArgs
{
/// <summary>
/// Allow standalone containers to attach to an overlay network.
/// </summary>
[Input("attachable")]
public Input<bool>? Attachable { get; set; }
/// <summary>
/// RFC 3339 timestamp of when the network was created.
/// </summary>
[Input("createdAt")]
public Input<string>? CreatedAt { get; set; }
/// <summary>
/// Network driver. Use `Overlay` for multi-node Swarm clusters and `Bridge` for a single host. Valid values: `Bridge`, `Overlay`.
/// </summary>
[Input("driver")]
public Input<string>? Driver { get; set; }
/// <summary>
/// Enable IPv4 address allocation.
/// </summary>
[Input("enableIpv4")]
public Input<bool>? EnableIpv4 { get; set; }
/// <summary>
/// Enable IPv6 address allocation.
/// </summary>
[Input("enableIpv6")]
public Input<bool>? EnableIpv6 { get; set; }
/// <summary>
/// Isolate the network from external access.
/// </summary>
[Input("internal")]
public Input<bool>? Internal { get; set; }
/// <summary>
/// Custom IP address management, as a JSON object with `Subnet`, `Gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
/// </summary>
[Input("ipam")]
public Input<string>? Ipam { get; set; }
/// <summary>
/// Maximum transmission unit for the network. Leave unset to use Docker's default.
/// </summary>
[Input("mtu")]
public Input<int>? Mtu { get; set; }
/// <summary>
/// Name of the Docker network.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
/// <summary>
/// Organization that owns the network.
/// </summary>
[Input("organizationId")]
public Input<string>? OrganizationId { get; set; }
/// <summary>
/// Remote server to create the network on. Omit to use the Dokploy host itself.
/// </summary>
[Input("serverId")]
public Input<string>? ServerId { get; set; }
public NetworkState()
{
}
public static new NetworkState Empty => new NetworkState();
}
}