18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
160 lines
6.6 KiB
Python
Generated
160 lines
6.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
|
|
|
|
__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:
|
|
return pulumi.get(self, "app_name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="applicationStatus")
|
|
def application_status(self) -> _builtins.str:
|
|
return pulumi.get(self, "application_status")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="buildType")
|
|
def build_type(self) -> _builtins.str:
|
|
return pulumi.get(self, "build_type")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="createdAt")
|
|
def created_at(self) -> _builtins.str:
|
|
return pulumi.get(self, "created_at")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def description(self) -> _builtins.str:
|
|
return pulumi.get(self, "description")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="environmentId")
|
|
def environment_id(self) -> _builtins.str:
|
|
return pulumi.get(self, "environment_id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def id(self) -> _builtins.str:
|
|
return pulumi.get(self, "id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> _builtins.str:
|
|
return pulumi.get(self, "name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="sourceType")
|
|
def source_type(self) -> _builtins.str:
|
|
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:
|
|
"""
|
|
Use this data source to access information about an existing resource.
|
|
"""
|
|
__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: Optional[pulumi.Input[_builtins.str]] = None,
|
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationResult]:
|
|
"""
|
|
Use this data source to access information about an existing resource.
|
|
"""
|
|
__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')))
|