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`.
338 lines
14 KiB
Python
Generated
338 lines
14 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__ = ['ProjectArgs', 'Project']
|
|
|
|
@pulumi.input_type
|
|
class ProjectArgs:
|
|
def __init__(__self__, *,
|
|
description: pulumi.Input[Optional[_builtins.str]] = None,
|
|
env: pulumi.Input[Optional[_builtins.str]] = None,
|
|
name: pulumi.Input[Optional[_builtins.str]] = None):
|
|
"""
|
|
The set of arguments for constructing a Project resource.
|
|
|
|
:param pulumi.Input[_builtins.str] description: Free-form description.
|
|
:param pulumi.Input[_builtins.str] env: Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
:param pulumi.Input[_builtins.str] name: Display name of the project.
|
|
"""
|
|
if description is not None:
|
|
pulumi.set(__self__, "description", description)
|
|
if env is not None:
|
|
pulumi.set(__self__, "env", env)
|
|
if name is not None:
|
|
pulumi.set(__self__, "name", name)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def description(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Free-form description.
|
|
"""
|
|
return pulumi.get(self, "description")
|
|
|
|
@description.setter
|
|
def description(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "description", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def env(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
"""
|
|
return pulumi.get(self, "env")
|
|
|
|
@env.setter
|
|
def env(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "env", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Display name of the project.
|
|
"""
|
|
return pulumi.get(self, "name")
|
|
|
|
@name.setter
|
|
def name(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "name", value)
|
|
|
|
|
|
@pulumi.input_type
|
|
class _ProjectState:
|
|
def __init__(__self__, *,
|
|
created_at: pulumi.Input[Optional[_builtins.str]] = None,
|
|
default_environment_id: pulumi.Input[Optional[_builtins.str]] = None,
|
|
description: pulumi.Input[Optional[_builtins.str]] = None,
|
|
env: pulumi.Input[Optional[_builtins.str]] = None,
|
|
name: pulumi.Input[Optional[_builtins.str]] = None,
|
|
organization_id: pulumi.Input[Optional[_builtins.str]] = None):
|
|
"""
|
|
Input properties used for looking up and filtering Project resources.
|
|
|
|
:param pulumi.Input[_builtins.str] created_at: RFC 3339 timestamp of when the project was created.
|
|
:param pulumi.Input[_builtins.str] default_environment_id: ID of the `production` environment that Dokploy creates automatically with the project.
|
|
:param pulumi.Input[_builtins.str] description: Free-form description.
|
|
:param pulumi.Input[_builtins.str] env: Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
:param pulumi.Input[_builtins.str] name: Display name of the project.
|
|
:param pulumi.Input[_builtins.str] organization_id: Organization that owns the project.
|
|
"""
|
|
if created_at is not None:
|
|
pulumi.set(__self__, "created_at", created_at)
|
|
if default_environment_id is not None:
|
|
pulumi.set(__self__, "default_environment_id", default_environment_id)
|
|
if description is not None:
|
|
pulumi.set(__self__, "description", description)
|
|
if env is not None:
|
|
pulumi.set(__self__, "env", env)
|
|
if name is not None:
|
|
pulumi.set(__self__, "name", name)
|
|
if organization_id is not None:
|
|
pulumi.set(__self__, "organization_id", organization_id)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="createdAt")
|
|
def created_at(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
RFC 3339 timestamp of when the project was created.
|
|
"""
|
|
return pulumi.get(self, "created_at")
|
|
|
|
@created_at.setter
|
|
def created_at(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "created_at", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="defaultEnvironmentId")
|
|
def default_environment_id(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
ID of the `production` environment that Dokploy creates automatically with the project.
|
|
"""
|
|
return pulumi.get(self, "default_environment_id")
|
|
|
|
@default_environment_id.setter
|
|
def default_environment_id(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "default_environment_id", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def description(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Free-form description.
|
|
"""
|
|
return pulumi.get(self, "description")
|
|
|
|
@description.setter
|
|
def description(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "description", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def env(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
"""
|
|
return pulumi.get(self, "env")
|
|
|
|
@env.setter
|
|
def env(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "env", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Display name of the project.
|
|
"""
|
|
return pulumi.get(self, "name")
|
|
|
|
@name.setter
|
|
def name(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "name", value)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="organizationId")
|
|
def organization_id(self) -> pulumi.Input[Optional[_builtins.str]]:
|
|
"""
|
|
Organization that owns the project.
|
|
"""
|
|
return pulumi.get(self, "organization_id")
|
|
|
|
@organization_id.setter
|
|
def organization_id(self, value: pulumi.Input[Optional[_builtins.str]]):
|
|
pulumi.set(self, "organization_id", value)
|
|
|
|
|
|
@pulumi.type_token("dokploy:index/project:Project")
|
|
class Project(pulumi.CustomResource):
|
|
@overload
|
|
def __init__(__self__,
|
|
resource_name: str,
|
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
description: pulumi.Input[Optional[_builtins.str]] = None,
|
|
env: pulumi.Input[Optional[_builtins.str]] = None,
|
|
name: pulumi.Input[Optional[_builtins.str]] = None,
|
|
__props__=None):
|
|
"""
|
|
A Dokploy project: the top-level container for environments and services.
|
|
|
|
Creating a project automatically creates a default `production` environment. Its ID is exposed as `default_environment_id`, so services can be attached without declaring a separate `Environment` resource.
|
|
|
|
|
|
:param str resource_name: The name of the resource.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
:param pulumi.Input[_builtins.str] description: Free-form description.
|
|
:param pulumi.Input[_builtins.str] env: Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
:param pulumi.Input[_builtins.str] name: Display name of the project.
|
|
"""
|
|
...
|
|
@overload
|
|
def __init__(__self__,
|
|
resource_name: str,
|
|
args: Optional[ProjectArgs] = None,
|
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
"""
|
|
A Dokploy project: the top-level container for environments and services.
|
|
|
|
Creating a project automatically creates a default `production` environment. Its ID is exposed as `default_environment_id`, so services can be attached without declaring a separate `Environment` resource.
|
|
|
|
|
|
:param str resource_name: The name of the resource.
|
|
:param ProjectArgs args: The arguments to use to populate this resource's properties.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
"""
|
|
...
|
|
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
resource_args, opts = _utilities.get_resource_args_opts(ProjectArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
if resource_args is not None:
|
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
else:
|
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
|
|
def _internal_init(__self__,
|
|
resource_name: str,
|
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
description: pulumi.Input[Optional[_builtins.str]] = None,
|
|
env: pulumi.Input[Optional[_builtins.str]] = None,
|
|
name: pulumi.Input[Optional[_builtins.str]] = None,
|
|
__props__=None):
|
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
if opts.id is None:
|
|
if __props__ is not None:
|
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
__props__ = ProjectArgs.__new__(ProjectArgs)
|
|
|
|
__props__.__dict__["description"] = description
|
|
__props__.__dict__["env"] = env
|
|
__props__.__dict__["name"] = name
|
|
__props__.__dict__["created_at"] = None
|
|
__props__.__dict__["default_environment_id"] = None
|
|
__props__.__dict__["organization_id"] = None
|
|
super(Project, __self__).__init__(
|
|
'dokploy:index/project:Project',
|
|
resource_name,
|
|
__props__,
|
|
opts)
|
|
|
|
@staticmethod
|
|
def get(resource_name: str,
|
|
id: pulumi.Input[str],
|
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
created_at: pulumi.Input[Optional[_builtins.str]] = None,
|
|
default_environment_id: pulumi.Input[Optional[_builtins.str]] = None,
|
|
description: pulumi.Input[Optional[_builtins.str]] = None,
|
|
env: pulumi.Input[Optional[_builtins.str]] = None,
|
|
name: pulumi.Input[Optional[_builtins.str]] = None,
|
|
organization_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'Project':
|
|
"""
|
|
Get an existing Project resource's state with the given name, id, and optional extra
|
|
properties used to qualify the lookup.
|
|
|
|
:param str resource_name: The unique name of the resulting resource.
|
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
:param pulumi.Input[_builtins.str] created_at: RFC 3339 timestamp of when the project was created.
|
|
:param pulumi.Input[_builtins.str] default_environment_id: ID of the `production` environment that Dokploy creates automatically with the project.
|
|
:param pulumi.Input[_builtins.str] description: Free-form description.
|
|
:param pulumi.Input[_builtins.str] env: Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
:param pulumi.Input[_builtins.str] name: Display name of the project.
|
|
:param pulumi.Input[_builtins.str] organization_id: Organization that owns the project.
|
|
"""
|
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
|
|
__props__ = _ProjectState.__new__(_ProjectState)
|
|
|
|
__props__.__dict__["created_at"] = created_at
|
|
__props__.__dict__["default_environment_id"] = default_environment_id
|
|
__props__.__dict__["description"] = description
|
|
__props__.__dict__["env"] = env
|
|
__props__.__dict__["name"] = name
|
|
__props__.__dict__["organization_id"] = organization_id
|
|
return Project(resource_name, opts=opts, __props__=__props__)
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="createdAt")
|
|
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
RFC 3339 timestamp of when the project was created.
|
|
"""
|
|
return pulumi.get(self, "created_at")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="defaultEnvironmentId")
|
|
def default_environment_id(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
ID of the `production` environment that Dokploy creates automatically with the project.
|
|
"""
|
|
return pulumi.get(self, "default_environment_id")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
"""
|
|
Free-form description.
|
|
"""
|
|
return pulumi.get(self, "description")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def env(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
|
|
"""
|
|
return pulumi.get(self, "env")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter
|
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
Display name of the project.
|
|
"""
|
|
return pulumi.get(self, "name")
|
|
|
|
@_builtins.property
|
|
@pulumi.getter(name="organizationId")
|
|
def organization_id(self) -> pulumi.Output[_builtins.str]:
|
|
"""
|
|
Organization that owns the project.
|
|
"""
|
|
return pulumi.get(self, "organization_id")
|
|
|