Files
pulumi-dokploy/sdk/dotnet/Project.cs
Max Vojtkov a44ebd4432
Some checks failed
build / build (push) Has been cancelled
release / plugin (push) Failing after 3m46s
release / sdks (push) Has been skipped
Resolve the plugin and SDKs from Gitea
PluginDownloadURL moves off github:// to a templated Gitea release URL.
Pulumi interpolates ${VERSION}, then appends
pulumi-resource-dokploy-v<version>-<os>-<arch>.tar.gz -- which is what
the GoReleaser archive template already produces. Schema, bridge
metadata and all four SDKs regenerated to carry it.

Releases publish to this instance's npm, PyPI, NuGet and Go registries
using the GITEA_TOKEN that Gitea injects, so no secrets need
configuring.

The Go SDK keeps its github.com module path, which is exactly why it
goes to Gitea's Go registry: pointing GOPROXY there is what makes that
path resolve at all. Verified locally by serving the module zip from a
file proxy and building a consumer against it -- note zip -D, without
which go get rejects the archive's directory entries.
2026-08-09 12:37:19 +03:00

167 lines
6.1 KiB
C#
Generated

// *** 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
{
/// <summary>
/// RFC 3339 timestamp of when the project was created.
/// </summary>
[Output("createdAt")]
public Output<string> CreatedAt { get; private set; } = null!;
/// <summary>
/// ID of the `Production` environment that Dokploy creates automatically with the project.
/// </summary>
[Output("defaultEnvironmentId")]
public Output<string> DefaultEnvironmentId { get; private set; } = null!;
/// <summary>
/// Free-form description.
/// </summary>
[Output("description")]
public Output<string?> Description { get; private set; } = null!;
/// <summary>
/// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
/// </summary>
[Output("env")]
public Output<string> Env { get; private set; } = null!;
/// <summary>
/// Display name of the project.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;
/// <summary>
/// Organization that owns the project.
/// </summary>
[Output("organizationId")]
public Output<string> OrganizationId { get; private set; } = null!;
/// <summary>
/// Create a Project resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
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<string> id, ProjectState? state = null, CustomResourceOptions? options = null)
: base("dokploy:index/project:Project", name, state, MakeResourceOptions(options, id))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? 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;
}
/// <summary>
/// Get an existing Project resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static Project Get(string name, Input<string> id, ProjectState? state = null, CustomResourceOptions? options = null)
{
return new Project(name, id, state, options);
}
}
public sealed class ProjectArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Free-form description.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }
/// <summary>
/// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
/// </summary>
[Input("env")]
public Input<string>? Env { get; set; }
/// <summary>
/// Display name of the project.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
public ProjectArgs()
{
}
public static new ProjectArgs Empty => new ProjectArgs();
}
public sealed class ProjectState : global::Pulumi.ResourceArgs
{
/// <summary>
/// RFC 3339 timestamp of when the project was created.
/// </summary>
[Input("createdAt")]
public Input<string>? CreatedAt { get; set; }
/// <summary>
/// ID of the `Production` environment that Dokploy creates automatically with the project.
/// </summary>
[Input("defaultEnvironmentId")]
public Input<string>? DefaultEnvironmentId { get; set; }
/// <summary>
/// Free-form description.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }
/// <summary>
/// Project-wide environment variables in `KEY=value` format, one per line. These are shared with every service in the project.
/// </summary>
[Input("env")]
public Input<string>? Env { get; set; }
/// <summary>
/// Display name of the project.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }
/// <summary>
/// Organization that owns the project.
/// </summary>
[Input("organizationId")]
public Input<string>? OrganizationId { get; set; }
public ProjectState()
{
}
public static new ProjectState Empty => new ProjectState();
}
}