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`.
193 lines
7.1 KiB
Python
Generated
193 lines
7.1 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
|
|
|
|
__all__ = [
|
|
'GetApplicationResult',
|
|
'AwaitableGetApplicationResult',
|
|
'get_application',
|
|
'get_application_output',
|
|
]
|
|
|
|
@pulumi.output_type
|
|
class GetApplicationResult:
|
|
"""
|
|
A collection of values returned by getApplication.
|
|
"""
|
|
def __init__(__self__, app_name=None, application_status=None, build_type=None, created_at=None, description=None, environment_id=None, id=None, name=None, source_type=None):
|
|
if app_name and not isinstance(app_name, str):
|
|
raise TypeError("Expected argument 'app_name' to be a str")
|
|
pulumi.set(__self__, "app_name", app_name)
|
|
if application_status and not isinstance(application_status, str):
|
|
raise TypeError("Expected argument 'application_status' to be a str")
|
|
pulumi.set(__self__, "application_status", application_status)
|
|
if build_type and not isinstance(build_type, str):
|
|
raise TypeError("Expected argument 'build_type' to be a str")
|
|
pulumi.set(__self__, "build_type", build_type)
|
|
if created_at and not isinstance(created_at, str):
|
|
raise TypeError("Expected argument 'created_at' to be a str")
|
|
pulumi.set(__self__, "created_at", created_at)
|
|
if description and not isinstance(description, str):
|
|
raise TypeError("Expected argument 'description' to be a str")
|
|
pulumi.set(__self__, "description", description)
|
|
if environment_id and not isinstance(environment_id, str):
|
|
raise TypeError("Expected argument 'environment_id' to be a str")
|
|
pulumi.set(__self__, "environment_id", environment_id)
|
|
if id and not isinstance(id, str):
|
|
raise TypeError("Expected argument 'id' to be a str")
|
|
pulumi.set(__self__, "id", id)
|
|
if name and not isinstance(name, str):
|
|
raise TypeError("Expected argument 'name' to be a str")
|
|
pulumi.set(__self__, "name", name)
|
|
if source_type and not isinstance(source_type, str):
|
|
raise TypeError("Expected argument 'source_type' to be a str")
|
|
pulumi.set(__self__, "source_type", source_type)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="appName")
|
|
def app_name(self) -> _builtins.str:
|
|
"""
|
|
Docker service name.
|
|
"""
|
|
return pulumi.get(self, "app_name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="applicationStatus")
|
|
def application_status(self) -> _builtins.str:
|
|
"""
|
|
Current status.
|
|
"""
|
|
return pulumi.get(self, "application_status")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="buildType")
|
|
def build_type(self) -> _builtins.str:
|
|
"""
|
|
Build strategy.
|
|
"""
|
|
return pulumi.get(self, "build_type")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="createdAt")
|
|
def created_at(self) -> _builtins.str:
|
|
"""
|
|
Creation timestamp.
|
|
"""
|
|
return pulumi.get(self, "created_at")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def description(self) -> _builtins.str:
|
|
"""
|
|
Application description.
|
|
"""
|
|
return pulumi.get(self, "description")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="environmentId")
|
|
def environment_id(self) -> _builtins.str:
|
|
"""
|
|
Owning environment.
|
|
"""
|
|
return pulumi.get(self, "environment_id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def id(self) -> _builtins.str:
|
|
"""
|
|
Application identifier.
|
|
"""
|
|
return pulumi.get(self, "id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> _builtins.str:
|
|
"""
|
|
Application name.
|
|
"""
|
|
return pulumi.get(self, "name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="sourceType")
|
|
def source_type(self) -> _builtins.str:
|
|
"""
|
|
Source of the code or image.
|
|
"""
|
|
return pulumi.get(self, "source_type")
|
|
|
|
|
|
class AwaitableGetApplicationResult(GetApplicationResult):
|
|
# pylint: disable=using-constant-test
|
|
def __await__(self):
|
|
if False:
|
|
yield self
|
|
return GetApplicationResult(
|
|
app_name=self.app_name,
|
|
application_status=self.application_status,
|
|
build_type=self.build_type,
|
|
created_at=self.created_at,
|
|
description=self.description,
|
|
environment_id=self.environment_id,
|
|
id=self.id,
|
|
name=self.name,
|
|
source_type=self.source_type)
|
|
|
|
|
|
def get_application(id: Optional[_builtins.str] = None,
|
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationResult:
|
|
"""
|
|
Look up an existing application by ID.
|
|
|
|
|
|
:param _builtins.str id: Application identifier.
|
|
"""
|
|
__args__ = dict()
|
|
__args__['id'] = id
|
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke('dokploy:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult).value
|
|
|
|
return AwaitableGetApplicationResult(
|
|
app_name=pulumi.get(__ret__, 'app_name'),
|
|
application_status=pulumi.get(__ret__, 'application_status'),
|
|
build_type=pulumi.get(__ret__, 'build_type'),
|
|
created_at=pulumi.get(__ret__, 'created_at'),
|
|
description=pulumi.get(__ret__, 'description'),
|
|
environment_id=pulumi.get(__ret__, 'environment_id'),
|
|
id=pulumi.get(__ret__, 'id'),
|
|
name=pulumi.get(__ret__, 'name'),
|
|
source_type=pulumi.get(__ret__, 'source_type'))
|
|
def get_application_output(id: pulumi.Input[Optional[_builtins.str]] = None,
|
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationResult]:
|
|
"""
|
|
Look up an existing application by ID.
|
|
|
|
|
|
:param _builtins.str id: Application identifier.
|
|
"""
|
|
__args__ = dict()
|
|
__args__['id'] = id
|
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke_output('dokploy:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult)
|
|
return __ret__.apply(lambda __response__: GetApplicationResult(
|
|
app_name=pulumi.get(__response__, 'app_name'),
|
|
application_status=pulumi.get(__response__, 'application_status'),
|
|
build_type=pulumi.get(__response__, 'build_type'),
|
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
description=pulumi.get(__response__, 'description'),
|
|
environment_id=pulumi.get(__response__, 'environment_id'),
|
|
id=pulumi.get(__response__, 'id'),
|
|
name=pulumi.get(__response__, 'name'),
|
|
source_type=pulumi.get(__response__, 'source_type')))
|