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`.
165 lines
5.7 KiB
Python
Generated
165 lines
5.7 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__ = [
|
|
'GetEnvironmentResult',
|
|
'AwaitableGetEnvironmentResult',
|
|
'get_environment',
|
|
'get_environment_output',
|
|
]
|
|
|
|
@pulumi.output_type
|
|
class GetEnvironmentResult:
|
|
"""
|
|
A collection of values returned by getEnvironment.
|
|
"""
|
|
def __init__(__self__, created_at=None, description=None, env=None, id=None, is_default=None, name=None, project_id=None):
|
|
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 env and not isinstance(env, str):
|
|
raise TypeError("Expected argument 'env' to be a str")
|
|
pulumi.set(__self__, "env", env)
|
|
if id and not isinstance(id, str):
|
|
raise TypeError("Expected argument 'id' to be a str")
|
|
pulumi.set(__self__, "id", id)
|
|
if is_default and not isinstance(is_default, bool):
|
|
raise TypeError("Expected argument 'is_default' to be a bool")
|
|
pulumi.set(__self__, "is_default", is_default)
|
|
if name and not isinstance(name, str):
|
|
raise TypeError("Expected argument 'name' to be a str")
|
|
pulumi.set(__self__, "name", name)
|
|
if project_id and not isinstance(project_id, str):
|
|
raise TypeError("Expected argument 'project_id' to be a str")
|
|
pulumi.set(__self__, "project_id", project_id)
|
|
|
|
@_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:
|
|
"""
|
|
Environment description.
|
|
"""
|
|
return pulumi.get(self, "description")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def env(self) -> _builtins.str:
|
|
"""
|
|
Environment-wide variables.
|
|
"""
|
|
return pulumi.get(self, "env")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def id(self) -> _builtins.str:
|
|
"""
|
|
Environment identifier.
|
|
"""
|
|
return pulumi.get(self, "id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="isDefault")
|
|
def is_default(self) -> _builtins.bool:
|
|
"""
|
|
Whether this is the project's default environment.
|
|
"""
|
|
return pulumi.get(self, "is_default")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> _builtins.str:
|
|
"""
|
|
Environment name.
|
|
"""
|
|
return pulumi.get(self, "name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="projectId")
|
|
def project_id(self) -> _builtins.str:
|
|
"""
|
|
Owning project.
|
|
"""
|
|
return pulumi.get(self, "project_id")
|
|
|
|
|
|
class AwaitableGetEnvironmentResult(GetEnvironmentResult):
|
|
# pylint: disable=using-constant-test
|
|
def __await__(self):
|
|
if False:
|
|
yield self
|
|
return GetEnvironmentResult(
|
|
created_at=self.created_at,
|
|
description=self.description,
|
|
env=self.env,
|
|
id=self.id,
|
|
is_default=self.is_default,
|
|
name=self.name,
|
|
project_id=self.project_id)
|
|
|
|
|
|
def get_environment(id: Optional[_builtins.str] = None,
|
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentResult:
|
|
"""
|
|
Look up an existing environment by ID.
|
|
|
|
|
|
:param _builtins.str id: Environment identifier.
|
|
"""
|
|
__args__ = dict()
|
|
__args__['id'] = id
|
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke('dokploy:index/getEnvironment:getEnvironment', __args__, opts=opts, typ=GetEnvironmentResult).value
|
|
|
|
return AwaitableGetEnvironmentResult(
|
|
created_at=pulumi.get(__ret__, 'created_at'),
|
|
description=pulumi.get(__ret__, 'description'),
|
|
env=pulumi.get(__ret__, 'env'),
|
|
id=pulumi.get(__ret__, 'id'),
|
|
is_default=pulumi.get(__ret__, 'is_default'),
|
|
name=pulumi.get(__ret__, 'name'),
|
|
project_id=pulumi.get(__ret__, 'project_id'))
|
|
def get_environment_output(id: pulumi.Input[Optional[_builtins.str]] = None,
|
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentResult]:
|
|
"""
|
|
Look up an existing environment by ID.
|
|
|
|
|
|
:param _builtins.str id: Environment identifier.
|
|
"""
|
|
__args__ = dict()
|
|
__args__['id'] = id
|
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
__ret__ = pulumi.runtime.invoke_output('dokploy:index/getEnvironment:getEnvironment', __args__, opts=opts, typ=GetEnvironmentResult)
|
|
return __ret__.apply(lambda __response__: GetEnvironmentResult(
|
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
description=pulumi.get(__response__, 'description'),
|
|
env=pulumi.get(__response__, 'env'),
|
|
id=pulumi.get(__response__, 'id'),
|
|
is_default=pulumi.get(__response__, 'is_default'),
|
|
name=pulumi.get(__response__, 'name'),
|
|
project_id=pulumi.get(__response__, 'project_id')))
|