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`.
72 lines
2.6 KiB
Python
Generated
72 lines
2.6 KiB
Python
Generated
# coding=utf-8
|
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import builtins as _builtins
|
|
import warnings
|
|
import sys
|
|
import pulumi
|
|
import pulumi.runtime
|
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
if sys.version_info >= (3, 11):
|
|
from typing import NotRequired, TypedDict, TypeAlias
|
|
else:
|
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
from . import _utilities
|
|
from . import outputs
|
|
|
|
__all__ = [
|
|
'GetServersResult',
|
|
'AwaitableGetServersResult',
|
|
'get_servers',
|
|
'get_servers_output',
|
|
]
|
|
|
|
@pulumi.output_type
|
|
class GetServersResult:
|
|
"""
|
|
A collection of values returned by getServers.
|
|
"""
|
|
def __init__(__self__, servers=None):
|
|
if servers and not isinstance(servers, list):
|
|
raise TypeError("Expected argument 'servers' to be a list")
|
|
pulumi.set(__self__, "servers", servers)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def servers(self) -> Sequence['outputs.GetServersServerResult']:
|
|
"""
|
|
All registered servers.
|
|
"""
|
|
return pulumi.get(self, "servers")
|
|
|
|
|
|
class AwaitableGetServersResult(GetServersResult):
|
|
# pylint: disable=using-constant-test
|
|
def __await__(self):
|
|
if False:
|
|
yield self
|
|
return GetServersResult(
|
|
servers=self.servers)
|
|
|
|
|
|
def get_servers(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServersResult:
|
|
"""
|
|
List the remote servers registered with Dokploy. Use a server's `id` as the `server_id` of an application, stack, or database to deploy it away from the Dokploy host.
|
|
"""
|
|
__args__ = dict()
|
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke('dokploy:index/getServers:getServers', __args__, opts=opts, typ=GetServersResult).value
|
|
|
|
return AwaitableGetServersResult(
|
|
servers=pulumi.get(__ret__, 'servers'))
|
|
def get_servers_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServersResult]:
|
|
"""
|
|
List the remote servers registered with Dokploy. Use a server's `id` as the `server_id` of an application, stack, or database to deploy it away from the Dokploy host.
|
|
"""
|
|
__args__ = dict()
|
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke_output('dokploy:index/getServers:getServers', __args__, opts=opts, typ=GetServersResult)
|
|
return __ret__.apply(lambda __response__: GetServersResult(
|
|
servers=pulumi.get(__response__, 'servers')))
|