// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; using Pulumi; namespace Maxvojtkov.Dokploy { [DokployResourceType("dokploy:index/project:Project")] public partial class Project : global::Pulumi.CustomResource { /// /// RFC 3339 timestamp of when the project was created. /// [Output("createdAt")] public Output CreatedAt { get; private set; } = null!; /// /// ID of the `Production` environment that Dokploy creates automatically with the project. /// [Output("defaultEnvironmentId")] public Output DefaultEnvironmentId { get; private set; } = null!; /// /// Free-form description. /// [Output("description")] public Output Description { get; private set; } = null!; /// /// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project. /// [Output("env")] public Output Env { get; private set; } = null!; /// /// Display name of the project. /// [Output("name")] public Output Name { get; private set; } = null!; /// /// Organization that owns the project. /// [Output("organizationId")] public Output OrganizationId { get; private set; } = null!; /// /// Create a Project resource with the given unique name, arguments, and options. /// /// /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Project(string name, ProjectArgs? args = null, CustomResourceOptions? options = null) : base("dokploy:index/project:Project", name, args ?? new ProjectArgs(), MakeResourceOptions(options, "")) { } private Project(string name, Input id, ProjectState? state = null, CustomResourceOptions? options = null) : base("dokploy:index/project:Project", name, state, MakeResourceOptions(options, id)) { } private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, PluginDownloadURL = "https://gitea.coolify.vojtkov.dev/usr_unknown/pulumi-dokploy/releases/download/v${VERSION}", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; } /// /// Get an existing Project resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// /// The unique name of the resulting resource. /// The unique provider ID of the resource to lookup. /// Any extra arguments used during the lookup. /// A bag of options that control this resource's behavior public static Project Get(string name, Input id, ProjectState? state = null, CustomResourceOptions? options = null) { return new Project(name, id, state, options); } } public sealed class ProjectArgs : global::Pulumi.ResourceArgs { /// /// Free-form description. /// [Input("description")] public Input? Description { get; set; } /// /// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project. /// [Input("env")] public Input? Env { get; set; } /// /// Display name of the project. /// [Input("name")] public Input? Name { get; set; } public ProjectArgs() { } public static new ProjectArgs Empty => new ProjectArgs(); } public sealed class ProjectState : global::Pulumi.ResourceArgs { /// /// RFC 3339 timestamp of when the project was created. /// [Input("createdAt")] public Input? CreatedAt { get; set; } /// /// ID of the `Production` environment that Dokploy creates automatically with the project. /// [Input("defaultEnvironmentId")] public Input? DefaultEnvironmentId { get; set; } /// /// Free-form description. /// [Input("description")] public Input? Description { get; set; } /// /// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project. /// [Input("env")] public Input? Env { get; set; } /// /// Display name of the project. /// [Input("name")] public Input? Name { get; set; } /// /// Organization that owns the project. /// [Input("organizationId")] public Input? OrganizationId { get; set; } public ProjectState() { } public static new ProjectState Empty => new ProjectState(); } }