18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
197 lines
6.6 KiB
C#
Generated
197 lines
6.6 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/sshKey:SshKey")]
|
|
public partial class SshKey : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the key 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>
|
|
/// RFC 3339 timestamp of when the key was last used, if ever.
|
|
/// </summary>
|
|
[Output("lastUsedAt")]
|
|
public Output<string> LastUsedAt { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Display name of the key pair.
|
|
/// </summary>
|
|
[Output("name")]
|
|
public Output<string> Name { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
[Output("privateKey")]
|
|
public Output<string> PrivateKey { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// OpenSSH-formatted public key.
|
|
/// </summary>
|
|
[Output("publicKey")]
|
|
public Output<string> PublicKey { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a SshKey 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 SshKey(string name, SshKeyArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/sshKey:SshKey", name, args ?? new SshKeyArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private SshKey(string name, Input<string> id, SshKeyState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/sshKey:SshKey", 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",
|
|
AdditionalSecretOutputs =
|
|
{
|
|
"privateKey",
|
|
},
|
|
};
|
|
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 SshKey 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 SshKey Get(string name, Input<string> id, SshKeyState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new SshKey(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class SshKeyArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Free-form description.
|
|
/// </summary>
|
|
[Input("description")]
|
|
public Input<string>? Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Display name of the key pair.
|
|
/// </summary>
|
|
[Input("name")]
|
|
public Input<string>? Name { get; set; }
|
|
|
|
[Input("privateKey", required: true)]
|
|
private Input<string>? _privateKey;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
public Input<string>? PrivateKey
|
|
{
|
|
get => _privateKey;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// OpenSSH-formatted public key.
|
|
/// </summary>
|
|
[Input("publicKey", required: true)]
|
|
public Input<string> PublicKey { get; set; } = null!;
|
|
|
|
public SshKeyArgs()
|
|
{
|
|
}
|
|
public static new SshKeyArgs Empty => new SshKeyArgs();
|
|
}
|
|
|
|
public sealed class SshKeyState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the key 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>
|
|
/// RFC 3339 timestamp of when the key was last used, if ever.
|
|
/// </summary>
|
|
[Input("lastUsedAt")]
|
|
public Input<string>? LastUsedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Display name of the key pair.
|
|
/// </summary>
|
|
[Input("name")]
|
|
public Input<string>? Name { get; set; }
|
|
|
|
[Input("privateKey")]
|
|
private Input<string>? _privateKey;
|
|
|
|
/// <summary>
|
|
/// PEM-encoded private key.
|
|
/// </summary>
|
|
public Input<string>? PrivateKey
|
|
{
|
|
get => _privateKey;
|
|
set
|
|
{
|
|
var emptySecret = Output.CreateSecret(0);
|
|
_privateKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// OpenSSH-formatted public key.
|
|
/// </summary>
|
|
[Input("publicKey")]
|
|
public Input<string>? PublicKey { get; set; }
|
|
|
|
public SshKeyState()
|
|
{
|
|
}
|
|
public static new SshKeyState Empty => new SshKeyState();
|
|
}
|
|
}
|