Bridge terraform-provider-dokploy into a Pulumi provider
18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
137
sdk/python/pulumi_dokploy/get_environment.py
generated
Normal file
137
sdk/python/pulumi_dokploy/get_environment.py
generated
Normal file
@@ -0,0 +1,137 @@
|
||||
# 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:
|
||||
return pulumi.get(self, "created_at")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def description(self) -> _builtins.str:
|
||||
return pulumi.get(self, "description")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def env(self) -> _builtins.str:
|
||||
return pulumi.get(self, "env")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def id(self) -> _builtins.str:
|
||||
return pulumi.get(self, "id")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter(name="isDefault")
|
||||
def is_default(self) -> _builtins.bool:
|
||||
return pulumi.get(self, "is_default")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def name(self) -> _builtins.str:
|
||||
return pulumi.get(self, "name")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter(name="projectId")
|
||||
def project_id(self) -> _builtins.str:
|
||||
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:
|
||||
"""
|
||||
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/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: Optional[pulumi.Input[_builtins.str]] = None,
|
||||
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentResult]:
|
||||
"""
|
||||
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/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')))
|
||||
Reference in New Issue
Block a user