// *** 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 GetEnvironment { public static Task InvokeAsync(GetEnvironmentArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentArgs(), options.WithDefaults()); public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOutputOptions options) => global::Pulumi.Deployment.Instance.Invoke("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); } public sealed class GetEnvironmentArgs : global::Pulumi.InvokeArgs { [Input("id", required: true)] public string Id { get; set; } = null!; public GetEnvironmentArgs() { } public static new GetEnvironmentArgs Empty => new GetEnvironmentArgs(); } public sealed class GetEnvironmentInvokeArgs : global::Pulumi.InvokeArgs { [Input("id", required: true)] public Input Id { get; set; } = null!; public GetEnvironmentInvokeArgs() { } public static new GetEnvironmentInvokeArgs Empty => new GetEnvironmentInvokeArgs(); } [OutputType] public sealed class GetEnvironmentResult { public readonly string CreatedAt; public readonly string Description; public readonly string Env; public readonly string Id; public readonly bool IsDefault; public readonly string Name; public readonly string ProjectId; [OutputConstructor] private GetEnvironmentResult( string createdAt, string description, string env, string id, bool isDefault, string name, string projectId) { CreatedAt = createdAt; Description = description; Env = env; Id = id; IsDefault = isDefault; Name = name; ProjectId = projectId; } } }