18 resources and 5 data sources mapped into the dokploy:index module, with SDKs generated for TypeScript, Python, Go and .NET.
167 lines
6.1 KiB
C#
Generated
167 lines
6.1 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/port:Port")]
|
|
public partial class Port : global::Pulumi.CustomResource
|
|
{
|
|
/// <summary>
|
|
/// Application this port belongs to.
|
|
/// </summary>
|
|
[Output("applicationId")]
|
|
public Output<string> ApplicationId { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Transport protocol. Valid values: `Tcp`, `Udp`.
|
|
/// </summary>
|
|
[Output("protocol")]
|
|
public Output<string> Protocol { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Docker Swarm publish mode. `Host` binds directly to the node; `Ingress` uses the swarm routing mesh. Valid values: `Ingress`, `Host`.
|
|
/// </summary>
|
|
[Output("publishMode")]
|
|
public Output<string> PublishMode { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Port exposed on the host.
|
|
/// </summary>
|
|
[Output("publishedPort")]
|
|
public Output<int> PublishedPort { get; private set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Port the container listens on.
|
|
/// </summary>
|
|
[Output("targetPort")]
|
|
public Output<int> TargetPort { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a Port 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 Port(string name, PortArgs args, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/port:Port", name, args ?? new PortArgs(), MakeResourceOptions(options, ""))
|
|
{
|
|
}
|
|
|
|
private Port(string name, Input<string> id, PortState? state = null, CustomResourceOptions? options = null)
|
|
: base("dokploy:index/port:Port", 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 Port 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 Port Get(string name, Input<string> id, PortState? state = null, CustomResourceOptions? options = null)
|
|
{
|
|
return new Port(name, id, state, options);
|
|
}
|
|
}
|
|
|
|
public sealed class PortArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this port belongs to.
|
|
/// </summary>
|
|
[Input("applicationId", required: true)]
|
|
public Input<string> ApplicationId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Transport protocol. Valid values: `Tcp`, `Udp`.
|
|
/// </summary>
|
|
[Input("protocol", required: true)]
|
|
public Input<string> Protocol { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Docker Swarm publish mode. `Host` binds directly to the node; `Ingress` uses the swarm routing mesh. Valid values: `Ingress`, `Host`.
|
|
/// </summary>
|
|
[Input("publishMode")]
|
|
public Input<string>? PublishMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Port exposed on the host.
|
|
/// </summary>
|
|
[Input("publishedPort", required: true)]
|
|
public Input<int> PublishedPort { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Port the container listens on.
|
|
/// </summary>
|
|
[Input("targetPort", required: true)]
|
|
public Input<int> TargetPort { get; set; } = null!;
|
|
|
|
public PortArgs()
|
|
{
|
|
}
|
|
public static new PortArgs Empty => new PortArgs();
|
|
}
|
|
|
|
public sealed class PortState : global::Pulumi.ResourceArgs
|
|
{
|
|
/// <summary>
|
|
/// Application this port belongs to.
|
|
/// </summary>
|
|
[Input("applicationId")]
|
|
public Input<string>? ApplicationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Transport protocol. Valid values: `Tcp`, `Udp`.
|
|
/// </summary>
|
|
[Input("protocol")]
|
|
public Input<string>? Protocol { get; set; }
|
|
|
|
/// <summary>
|
|
/// Docker Swarm publish mode. `Host` binds directly to the node; `Ingress` uses the swarm routing mesh. Valid values: `Ingress`, `Host`.
|
|
/// </summary>
|
|
[Input("publishMode")]
|
|
public Input<string>? PublishMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Port exposed on the host.
|
|
/// </summary>
|
|
[Input("publishedPort")]
|
|
public Input<int>? PublishedPort { get; set; }
|
|
|
|
/// <summary>
|
|
/// Port the container listens on.
|
|
/// </summary>
|
|
[Input("targetPort")]
|
|
public Input<int>? TargetPort { get; set; }
|
|
|
|
public PortState()
|
|
{
|
|
}
|
|
public static new PortState Empty => new PortState();
|
|
}
|
|
}
|