Files
pulumi-dokploy/sdk/python/pulumi_dokploy/get_projects.py
T
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

72 lines
2.4 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__ = [
'GetProjectsResult',
'AwaitableGetProjectsResult',
'get_projects',
'get_projects_output',
]
@pulumi.output_type
class GetProjectsResult:
"""
A collection of values returned by getProjects.
"""
def __init__(__self__, projects=None):
if projects and not isinstance(projects, list):
raise TypeError("Expected argument 'projects' to be a list")
pulumi.set(__self__, "projects", projects)
@_builtins.property
@pulumi.getter
def projects(self) -> Sequence['outputs.GetProjectsProjectResult']:
"""
All visible projects.
"""
return pulumi.get(self, "projects")
class AwaitableGetProjectsResult(GetProjectsResult):
# pylint: disable=using-constant-test
def __await__(self):
if False:
yield self
return GetProjectsResult(
projects=self.projects)
def get_projects(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectsResult:
"""
List every Dokploy project the API token can see.
"""
__args__ = dict()
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
__ret__ = pulumi.runtime.invoke('dokploy:index/getProjects:getProjects', __args__, opts=opts, typ=GetProjectsResult).value
return AwaitableGetProjectsResult(
projects=pulumi.get(__ret__, 'projects'))
def get_projects_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectsResult]:
"""
List every Dokploy project the API token can see.
"""
__args__ = dict()
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
__ret__ = pulumi.runtime.invoke_output('dokploy:index/getProjects:getProjects', __args__, opts=opts, typ=GetProjectsResult)
return __ret__.apply(lambda __response__: GetProjectsResult(
projects=pulumi.get(__response__, 'projects')))