18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
69 lines
2.4 KiB
Python
Generated
69 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']:
|
|
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:
|
|
"""
|
|
Use this data source to access information about an existing resource.
|
|
"""
|
|
__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]:
|
|
"""
|
|
Use this data source to access information about an existing resource.
|
|
"""
|
|
__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')))
|