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