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`.
221 lines
8.5 KiB
TypeScript
Generated
221 lines
8.5 KiB
TypeScript
Generated
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
|
import * as utilities from "./utilities";
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* > 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.
|
|
*/
|
|
export class Network extends pulumi.CustomResource {
|
|
/**
|
|
* Get an existing Network resource's state with the given name, ID, and optional extra
|
|
* properties used to qualify the lookup.
|
|
*
|
|
* @param name The _unique_ name of the resulting resource.
|
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
* @param state Any extra arguments used during the lookup.
|
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
*/
|
|
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NetworkState, opts?: pulumi.CustomResourceOptions): Network {
|
|
return new Network(name, <any>state, { ...opts, id: id });
|
|
}
|
|
|
|
/** @internal */
|
|
public static readonly __pulumiType = 'dokploy:index/network:Network';
|
|
|
|
/**
|
|
* Returns true if the given object is an instance of Network. This is designed to work even
|
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
*/
|
|
public static isInstance(obj: any): obj is Network {
|
|
if (obj === undefined || obj === null) {
|
|
return false;
|
|
}
|
|
return obj['__pulumiType'] === Network.__pulumiType;
|
|
}
|
|
|
|
/**
|
|
* Allow standalone containers to attach to an overlay network.
|
|
*/
|
|
declare public readonly attachable: pulumi.Output<boolean>;
|
|
/**
|
|
* RFC 3339 timestamp of when the network was created.
|
|
*/
|
|
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
/**
|
|
* Network driver. Use `overlay` for multi-node Swarm clusters and `bridge` for a single host. Valid values: `bridge`, `overlay`.
|
|
*/
|
|
declare public readonly driver: pulumi.Output<string>;
|
|
/**
|
|
* Enable IPv4 address allocation.
|
|
*/
|
|
declare public readonly enableIpv4: pulumi.Output<boolean>;
|
|
/**
|
|
* Enable IPv6 address allocation.
|
|
*/
|
|
declare public readonly enableIpv6: pulumi.Output<boolean>;
|
|
/**
|
|
* Isolate the network from external access.
|
|
*/
|
|
declare public readonly internal: pulumi.Output<boolean>;
|
|
/**
|
|
* Custom IP address management, as a JSON object with `subnet`, `gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
|
|
*/
|
|
declare public readonly ipam: pulumi.Output<string | undefined>;
|
|
/**
|
|
* Maximum transmission unit for the network. Leave unset to use Docker's default.
|
|
*/
|
|
declare public readonly mtu: pulumi.Output<number | undefined>;
|
|
/**
|
|
* Name of the Docker network.
|
|
*/
|
|
declare public readonly name: pulumi.Output<string>;
|
|
/**
|
|
* Organization that owns the network.
|
|
*/
|
|
declare public /*out*/ readonly organizationId: pulumi.Output<string>;
|
|
/**
|
|
* Remote server to create the network on. Omit to use the Dokploy host itself.
|
|
*/
|
|
declare public readonly serverId: pulumi.Output<string | undefined>;
|
|
|
|
/**
|
|
* Create a Network resource with the given unique name, arguments, and options.
|
|
*
|
|
* @param name The _unique_ name of the resource.
|
|
* @param args The arguments to use to populate this resource's properties.
|
|
* @param opts A bag of options that control this resource's behavior.
|
|
*/
|
|
constructor(name: string, args?: NetworkArgs, opts?: pulumi.CustomResourceOptions)
|
|
constructor(name: string, argsOrState?: NetworkArgs | NetworkState, opts?: pulumi.CustomResourceOptions) {
|
|
let resourceInputs: pulumi.Inputs = {};
|
|
opts = opts || {};
|
|
if (opts.id) {
|
|
const state = argsOrState as NetworkState | undefined;
|
|
resourceInputs["attachable"] = state?.attachable;
|
|
resourceInputs["createdAt"] = state?.createdAt;
|
|
resourceInputs["driver"] = state?.driver;
|
|
resourceInputs["enableIpv4"] = state?.enableIpv4;
|
|
resourceInputs["enableIpv6"] = state?.enableIpv6;
|
|
resourceInputs["internal"] = state?.internal;
|
|
resourceInputs["ipam"] = state?.ipam;
|
|
resourceInputs["mtu"] = state?.mtu;
|
|
resourceInputs["name"] = state?.name;
|
|
resourceInputs["organizationId"] = state?.organizationId;
|
|
resourceInputs["serverId"] = state?.serverId;
|
|
} else {
|
|
const args = argsOrState as NetworkArgs | undefined;
|
|
resourceInputs["attachable"] = args?.attachable;
|
|
resourceInputs["driver"] = args?.driver;
|
|
resourceInputs["enableIpv4"] = args?.enableIpv4;
|
|
resourceInputs["enableIpv6"] = args?.enableIpv6;
|
|
resourceInputs["internal"] = args?.internal;
|
|
resourceInputs["ipam"] = args?.ipam;
|
|
resourceInputs["mtu"] = args?.mtu;
|
|
resourceInputs["name"] = args?.name;
|
|
resourceInputs["serverId"] = args?.serverId;
|
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
resourceInputs["organizationId"] = undefined /*out*/;
|
|
}
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
super(Network.__pulumiType, name, resourceInputs, opts);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Input properties used for looking up and filtering Network resources.
|
|
*/
|
|
export interface NetworkState {
|
|
/**
|
|
* Allow standalone containers to attach to an overlay network.
|
|
*/
|
|
attachable?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* RFC 3339 timestamp of when the network was created.
|
|
*/
|
|
createdAt?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Network driver. Use `overlay` for multi-node Swarm clusters and `bridge` for a single host. Valid values: `bridge`, `overlay`.
|
|
*/
|
|
driver?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Enable IPv4 address allocation.
|
|
*/
|
|
enableIpv4?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Enable IPv6 address allocation.
|
|
*/
|
|
enableIpv6?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Isolate the network from external access.
|
|
*/
|
|
internal?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Custom IP address management, as a JSON object with `subnet`, `gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
|
|
*/
|
|
ipam?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Maximum transmission unit for the network. Leave unset to use Docker's default.
|
|
*/
|
|
mtu?: pulumi.Input<number | undefined>;
|
|
/**
|
|
* Name of the Docker network.
|
|
*/
|
|
name?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Organization that owns the network.
|
|
*/
|
|
organizationId?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Remote server to create the network on. Omit to use the Dokploy host itself.
|
|
*/
|
|
serverId?: pulumi.Input<string | undefined>;
|
|
}
|
|
|
|
/**
|
|
* The set of arguments for constructing a Network resource.
|
|
*/
|
|
export interface NetworkArgs {
|
|
/**
|
|
* Allow standalone containers to attach to an overlay network.
|
|
*/
|
|
attachable?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Network driver. Use `overlay` for multi-node Swarm clusters and `bridge` for a single host. Valid values: `bridge`, `overlay`.
|
|
*/
|
|
driver?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Enable IPv4 address allocation.
|
|
*/
|
|
enableIpv4?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Enable IPv6 address allocation.
|
|
*/
|
|
enableIpv6?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Isolate the network from external access.
|
|
*/
|
|
internal?: pulumi.Input<boolean | undefined>;
|
|
/**
|
|
* Custom IP address management, as a JSON object with `subnet`, `gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet.
|
|
*/
|
|
ipam?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Maximum transmission unit for the network. Leave unset to use Docker's default.
|
|
*/
|
|
mtu?: pulumi.Input<number | undefined>;
|
|
/**
|
|
* Name of the Docker network.
|
|
*/
|
|
name?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* Remote server to create the network on. Omit to use the Dokploy host itself.
|
|
*/
|
|
serverId?: pulumi.Input<string | undefined>;
|
|
}
|