18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
161 lines
5.9 KiB
C#
Generated
161 lines
5.9 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/redirect:Redirect")]
|
|
public partial class Redirect : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Output("applicationId")]
|
|
public Output<string> ApplicationId { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the redirect was created.
|
|
/// </summary>
|
|
[Output("createdAt")]
|
|
public Output<string> CreatedAt { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Output("permanent")]
|
|
public Output<bool> Permanent { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Output("regex")]
|
|
public Output<string> Regex { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Output("replacement")]
|
|
public Output<string> Replacement { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Redirect 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 Redirect(string name, RedirectArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/redirect:Redirect", name, args ?? new RedirectArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Redirect(string name, Input<string> id, RedirectState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/redirect:Redirect", 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 Redirect 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 Redirect Get(string name, Input<string> id, RedirectState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Redirect(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class RedirectArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Input("applicationId", required: true)]
|
|
public Input<string> ApplicationId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Input("permanent")]
|
|
public Input<bool>? Permanent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Input("regex", required: true)]
|
|
public Input<string> Regex { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Input("replacement", required: true)]
|
|
public Input<string> Replacement { get; set; } = null!;
|
|
|
|
public RedirectArgs()
|
|
{
|
|
}
|
|
public static new RedirectArgs Empty => new RedirectArgs();
|
|
}
|
|
|
|
public sealed class RedirectState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this redirect belongs to.
|
|
/// </summary>
|
|
[Input("applicationId")]
|
|
public Input<string>? ApplicationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// RFC 3339 timestamp of when the redirect was created.
|
|
/// </summary>
|
|
[Input("createdAt")]
|
|
public Input<string>? CreatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Issue a permanent (301) redirect instead of a temporary (302) one.
|
|
/// </summary>
|
|
[Input("permanent")]
|
|
public Input<bool>? Permanent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Regular expression matched against the incoming URL.
|
|
/// </summary>
|
|
[Input("regex")]
|
|
public Input<string>? Regex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Replacement URL, which may reference capture groups such as `${1}`.
|
|
/// </summary>
|
|
[Input("replacement")]
|
|
public Input<string>? Replacement { get; set; }
|
|
|
|
public RedirectState()
|
|
{
|
|
}
|
|
public static new RedirectState Empty => new RedirectState();
|
|
}
|
|
}
|