Bridge terraform-provider-dokploy into a Pulumi provider
18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
172
sdk/dotnet/Environment.cs
generated
Normal file
172
sdk/dotnet/Environment.cs
generated
Normal file
@@ -0,0 +1,172 @@
|
||||
// *** 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/environment:Environment")]
|
||||
public partial class Environment : global::Pulumi.CustomResource
|
||||
{
|
||||
/// <summary>
|
||||
/// RFC 3339 timestamp of when the environment was created.
|
||||
/// </summary>
|
||||
[Output("createdAt")]
|
||||
public Output<string> CreatedAt { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Output("description")]
|
||||
public Output<string?> Description { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Environment-wide variables in `KEY=value` format, one per line. These are merged into every service in this environment.
|
||||
/// </summary>
|
||||
[Output("env")]
|
||||
public Output<string> Env { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this is the project's default environment.
|
||||
/// </summary>
|
||||
[Output("isDefault")]
|
||||
public Output<bool> IsDefault { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Environment name, for example `Staging`.
|
||||
/// </summary>
|
||||
[Output("name")]
|
||||
public Output<string> Name { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Project this environment belongs to.
|
||||
/// </summary>
|
||||
[Output("projectId")]
|
||||
public Output<string> ProjectId { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Environment 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 Environment(string name, EnvironmentArgs args, CustomResourceOptions? options = null)
|
||||
: base("dokploy:index/environment:Environment", name, args ?? new EnvironmentArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Environment(string name, Input<string> id, EnvironmentState? state = null, CustomResourceOptions? options = null)
|
||||
: base("dokploy:index/environment:Environment", name, state, MakeResourceOptions(options, id))
|
||||
{
|
||||
}
|
||||
|
||||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
||||
{
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
PluginDownloadURL = "github://api.github.com/maxvojtkov/pulumi-dokploy",
|
||||
};
|
||||
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 Environment 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 Environment Get(string name, Input<string> id, EnvironmentState? state = null, CustomResourceOptions? options = null)
|
||||
{
|
||||
return new Environment(name, id, state, options);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class EnvironmentArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Input("description")]
|
||||
public Input<string>? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Environment-wide variables in `KEY=value` format, one per line. These are merged into every service in this environment.
|
||||
/// </summary>
|
||||
[Input("env")]
|
||||
public Input<string>? Env { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Environment name, for example `Staging`.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Project this environment belongs to.
|
||||
/// </summary>
|
||||
[Input("projectId", required: true)]
|
||||
public Input<string> ProjectId { get; set; } = null!;
|
||||
|
||||
public EnvironmentArgs()
|
||||
{
|
||||
}
|
||||
public static new EnvironmentArgs Empty => new EnvironmentArgs();
|
||||
}
|
||||
|
||||
public sealed class EnvironmentState : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// RFC 3339 timestamp of when the environment was created.
|
||||
/// </summary>
|
||||
[Input("createdAt")]
|
||||
public Input<string>? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Free-form description.
|
||||
/// </summary>
|
||||
[Input("description")]
|
||||
public Input<string>? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Environment-wide variables in `KEY=value` format, one per line. These are merged into every service in this environment.
|
||||
/// </summary>
|
||||
[Input("env")]
|
||||
public Input<string>? Env { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether this is the project's default environment.
|
||||
/// </summary>
|
||||
[Input("isDefault")]
|
||||
public Input<bool>? IsDefault { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Environment name, for example `Staging`.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Project this environment belongs to.
|
||||
/// </summary>
|
||||
[Input("projectId")]
|
||||
public Input<string>? ProjectId { get; set; }
|
||||
|
||||
public EnvironmentState()
|
||||
{
|
||||
}
|
||||
public static new EnvironmentState Empty => new EnvironmentState();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user