Files
pulumi-dokploy/sdk/dotnet/GetProject.cs
T
max-voitcov 73386ba0ff
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped
Bridge what Dokploy v0.30 added, and let the docs through
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`.
2026-08-26 00:46:32 +03:00

129 lines
4.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
{
public static class GetProject
{
/// <summary>
/// Look up an existing Dokploy project by ID, including its environments.
/// </summary>
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetProjectResult>("dokploy:index/getProject:getProject", args ?? new GetProjectArgs(), options.WithDefaults());
/// <summary>
/// Look up an existing Dokploy project by ID, including its environments.
/// </summary>
public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetProjectResult>("dokploy:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults());
/// <summary>
/// Look up an existing Dokploy project by ID, including its environments.
/// </summary>
public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options)
=> global::Pulumi.Deployment.Instance.Invoke<GetProjectResult>("dokploy:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults());
}
public sealed class GetProjectArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// Project identifier.
/// </summary>
[Input("id", required: true)]
public string Id { get; set; } = null!;
public GetProjectArgs()
{
}
public static new GetProjectArgs Empty => new GetProjectArgs();
}
public sealed class GetProjectInvokeArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// Project identifier.
/// </summary>
[Input("id", required: true)]
public Input<string> Id { get; set; } = null!;
public GetProjectInvokeArgs()
{
}
public static new GetProjectInvokeArgs Empty => new GetProjectInvokeArgs();
}
[OutputType]
public sealed class GetProjectResult
{
/// <summary>
/// Creation timestamp.
/// </summary>
public readonly string CreatedAt;
/// <summary>
/// ID of the project's default environment.
/// </summary>
public readonly string DefaultEnvironmentId;
/// <summary>
/// Project description.
/// </summary>
public readonly string Description;
/// <summary>
/// Project-wide environment variables.
/// </summary>
public readonly string Env;
/// <summary>
/// Every environment in the project.
/// </summary>
public readonly ImmutableArray<Outputs.GetProjectEnvironmentResult> Environments;
/// <summary>
/// Project identifier.
/// </summary>
public readonly string Id;
/// <summary>
/// Project name.
/// </summary>
public readonly string Name;
/// <summary>
/// Owning organization.
/// </summary>
public readonly string OrganizationId;
[OutputConstructor]
private GetProjectResult(
string createdAt,
string defaultEnvironmentId,
string description,
string env,
ImmutableArray<Outputs.GetProjectEnvironmentResult> environments,
string id,
string name,
string organizationId)
{
CreatedAt = createdAt;
DefaultEnvironmentId = defaultEnvironmentId;
Description = description;
Env = env;
Environments = environments;
Id = id;
Name = name;
OrganizationId = organizationId;
}
}
}