Skip to content

Commit

Permalink
bump sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed May 13, 2021
1 parent dc69d54 commit f3cf973
Show file tree
Hide file tree
Showing 29 changed files with 801 additions and 262 deletions.
143 changes: 121 additions & 22 deletions provider/cmd/pulumi-resource-proxmoxve/schema.json

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ namespace Pulumi.Proxmoxve
public static class Config
{
private static readonly Pulumi.Config __config = new Pulumi.Config("proxmoxve");
/// <summary>
/// API TokenID e.g. root@pam!mytesttoken
/// </summary>
public static string? PmApiTokenId { get; set; } = __config.Get("pmApiTokenId");

/// <summary>
/// The secret uuid corresponding to a TokenID
/// </summary>
public static string? PmApiTokenSecret { get; set; } = __config.Get("pmApiTokenSecret");

/// <summary>
/// https://host.fqdn:8006/api2/json
/// </summary>
Expand All @@ -21,10 +31,19 @@ public static class Config
/// </summary>
public static bool? PmDangerouslyIgnoreUnknownAttributes { get; set; } = __config.GetBoolean("pmDangerouslyIgnoreUnknownAttributes");

/// <summary>
/// Enable provider logging to get proxmox API logs
/// </summary>
public static bool? PmLogEnable { get; set; } = __config.GetBoolean("pmLogEnable");

/// <summary>
/// Write logs to this specific file
/// </summary>
public static string? PmLogFile { get; set; } = __config.Get("pmLogFile");

/// <summary>
/// Configure the logging level to display; trace, debug, info, warn, etc
/// </summary>
public static ImmutableDictionary<string, object>? PmLogLevels { get; set; } = __config.GetObject<ImmutableDictionary<string, object>>("pmLogLevels");

/// <summary>
Expand All @@ -35,16 +54,21 @@ public static class Config
public static int? PmParallel { get; set; } = __config.GetInt32("pmParallel");

/// <summary>
/// secret
/// Password to authenticate into proxmox
/// </summary>
public static string? PmPassword { get; set; } = __config.Get("pmPassword");

public static int? PmTimeout { get; set; } = __config.GetInt32("pmTimeout");

/// <summary>
/// By default, every TLS connection is verified to be secure. This option allows terraform to proceed and operate on
/// servers considered insecure. For example if you're connecting to a remote host and you do not have the CA cert that
/// issued the proxmox api url's certificate.
/// </summary>
public static bool? PmTlsInsecure { get; set; } = __config.GetBoolean("pmTlsInsecure");

/// <summary>
/// username, maywith with @pam
/// Username e.g. myuser or myuser@pam
/// </summary>
public static string? PmUser { get; set; } = __config.Get("pmUser");

Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/LXCContainerMountpointArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public sealed class LXCContainerMountpointArgs : Pulumi.ResourceArgs
[Input("backup")]
public Input<bool>? Backup { get; set; }

[Input("file")]
public Input<string>? File { get; set; }

[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/LXCContainerMountpointGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public sealed class LXCContainerMountpointGetArgs : Pulumi.ResourceArgs
[Input("backup")]
public Input<bool>? Backup { get; set; }

[Input("file")]
public Input<string>? File { get; set; }

[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

Expand Down
8 changes: 4 additions & 4 deletions sdk/dotnet/Inputs/QemuVMDiskArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Pulumi.Proxmoxve.Inputs
public sealed class QemuVMDiskArgs : Pulumi.ResourceArgs
{
[Input("backup")]
public Input<bool>? Backup { get; set; }
public Input<int>? Backup { get; set; }

[Input("cache")]
public Input<string>? Cache { get; set; }
Expand All @@ -28,7 +28,7 @@ public sealed class QemuVMDiskArgs : Pulumi.ResourceArgs
public Input<string>? Format { get; set; }

[Input("iothread")]
public Input<bool>? Iothread { get; set; }
public Input<int>? Iothread { get; set; }

[Input("mbps")]
public Input<int>? Mbps { get; set; }
Expand All @@ -49,7 +49,7 @@ public sealed class QemuVMDiskArgs : Pulumi.ResourceArgs
public Input<string>? Media { get; set; }

[Input("replicate")]
public Input<bool>? Replicate { get; set; }
public Input<int>? Replicate { get; set; }

[Input("size", required: true)]
public Input<string> Size { get; set; } = null!;
Expand All @@ -58,7 +58,7 @@ public sealed class QemuVMDiskArgs : Pulumi.ResourceArgs
public Input<int>? Slot { get; set; }

[Input("ssd")]
public Input<bool>? Ssd { get; set; }
public Input<int>? Ssd { get; set; }

[Input("storage", required: true)]
public Input<string> Storage { get; set; } = null!;
Expand Down
8 changes: 4 additions & 4 deletions sdk/dotnet/Inputs/QemuVMDiskGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Pulumi.Proxmoxve.Inputs
public sealed class QemuVMDiskGetArgs : Pulumi.ResourceArgs
{
[Input("backup")]
public Input<bool>? Backup { get; set; }
public Input<int>? Backup { get; set; }

[Input("cache")]
public Input<string>? Cache { get; set; }
Expand All @@ -28,7 +28,7 @@ public sealed class QemuVMDiskGetArgs : Pulumi.ResourceArgs
public Input<string>? Format { get; set; }

[Input("iothread")]
public Input<bool>? Iothread { get; set; }
public Input<int>? Iothread { get; set; }

[Input("mbps")]
public Input<int>? Mbps { get; set; }
Expand All @@ -49,7 +49,7 @@ public sealed class QemuVMDiskGetArgs : Pulumi.ResourceArgs
public Input<string>? Media { get; set; }

[Input("replicate")]
public Input<bool>? Replicate { get; set; }
public Input<int>? Replicate { get; set; }

[Input("size", required: true)]
public Input<string> Size { get; set; } = null!;
Expand All @@ -58,7 +58,7 @@ public sealed class QemuVMDiskGetArgs : Pulumi.ResourceArgs
public Input<int>? Slot { get; set; }

[Input("ssd")]
public Input<bool>? Ssd { get; set; }
public Input<int>? Ssd { get; set; }

[Input("storage", required: true)]
public Input<string> Storage { get; set; } = null!;
Expand Down
9 changes: 9 additions & 0 deletions sdk/dotnet/LXCContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public partial class LXCContainer : Pulumi.CustomResource
[Output("swap")]
public Output<int?> Swap { get; private set; } = null!;

[Output("tags")]
public Output<string?> Tags { get; private set; } = null!;

[Output("targetNode")]
public Output<string> TargetNode { get; private set; } = null!;

Expand Down Expand Up @@ -274,6 +277,9 @@ public InputList<Inputs.LXCContainerNetworkArgs> Networks
[Input("swap")]
public Input<int>? Swap { get; set; }

[Input("tags")]
public Input<string>? Tags { get; set; }

[Input("targetNode", required: true)]
public Input<string> TargetNode { get; set; } = null!;

Expand Down Expand Up @@ -410,6 +416,9 @@ public InputList<Inputs.LXCContainerNetworkGetArgs> Networks
[Input("swap")]
public Input<int>? Swap { get; set; }

[Input("tags")]
public Input<string>? Tags { get; set; }

[Input("targetNode")]
public Input<string>? TargetNode { get; set; }

Expand Down
4 changes: 4 additions & 0 deletions sdk/dotnet/Outputs/LXCContainerMountpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public sealed class LXCContainerMountpoint
{
public readonly bool? Acl;
public readonly bool? Backup;
public readonly string? File;
public readonly string Key;
public readonly string Mp;
public readonly bool? Quota;
Expand All @@ -31,6 +32,8 @@ private LXCContainerMountpoint(

bool? backup,

string? file,

string key,

string mp,
Expand All @@ -51,6 +54,7 @@ private LXCContainerMountpoint(
{
Acl = acl;
Backup = backup;
File = file;
Key = key;
Mp = mp;
Quota = quota;
Expand Down
16 changes: 8 additions & 8 deletions sdk/dotnet/Outputs/QemuVMDisk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ namespace Pulumi.Proxmoxve.Outputs
[OutputType]
public sealed class QemuVMDisk
{
public readonly bool? Backup;
public readonly int? Backup;
public readonly string? Cache;
public readonly string? Discard;
public readonly string? File;
public readonly string? Format;
public readonly bool? Iothread;
public readonly int? Iothread;
public readonly int? Mbps;
public readonly int? MbpsRd;
public readonly int? MbpsRdMax;
public readonly int? MbpsWr;
public readonly int? MbpsWrMax;
public readonly string? Media;
public readonly bool? Replicate;
public readonly int? Replicate;
public readonly string Size;
public readonly int? Slot;
public readonly bool? Ssd;
public readonly int? Ssd;
public readonly string Storage;
public readonly string? StorageType;
public readonly string Type;
public readonly string? Volume;

[OutputConstructor]
private QemuVMDisk(
bool? backup,
int? backup,

string? cache,

Expand All @@ -46,7 +46,7 @@ private QemuVMDisk(

string? format,

bool? iothread,
int? iothread,

int? mbps,

Expand All @@ -60,13 +60,13 @@ private QemuVMDisk(

string? media,

bool? replicate,
int? replicate,

string size,

int? slot,

bool? ssd,
int? ssd,

string storage,

Expand Down
39 changes: 33 additions & 6 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?

public sealed class ProviderArgs : Pulumi.ResourceArgs
{
/// <summary>
/// API TokenID e.g. root@pam!mytesttoken
/// </summary>
[Input("pmApiTokenId")]
public Input<string>? PmApiTokenId { get; set; }

/// <summary>
/// The secret uuid corresponding to a TokenID
/// </summary>
[Input("pmApiTokenSecret")]
public Input<string>? PmApiTokenSecret { get; set; }

/// <summary>
/// https://host.fqdn:8006/api2/json
/// </summary>
Expand All @@ -59,14 +71,24 @@ public sealed class ProviderArgs : Pulumi.ResourceArgs
[Input("pmDangerouslyIgnoreUnknownAttributes", json: true)]
public Input<bool>? PmDangerouslyIgnoreUnknownAttributes { get; set; }

/// <summary>
/// Enable provider logging to get proxmox API logs
/// </summary>
[Input("pmLogEnable", json: true)]
public Input<bool>? PmLogEnable { get; set; }

/// <summary>
/// Write logs to this specific file
/// </summary>
[Input("pmLogFile")]
public Input<string>? PmLogFile { get; set; }

[Input("pmLogLevels", json: true)]
private InputMap<object>? _pmLogLevels;

/// <summary>
/// Configure the logging level to display; trace, debug, info, warn, etc
/// </summary>
public InputMap<object> PmLogLevels
{
get => _pmLogLevels ?? (_pmLogLevels = new InputMap<object>());
Expand All @@ -83,22 +105,27 @@ public InputMap<object> PmLogLevels
public Input<int>? PmParallel { get; set; }

/// <summary>
/// secret
/// Password to authenticate into proxmox
/// </summary>
[Input("pmPassword", required: true)]
public Input<string> PmPassword { get; set; } = null!;
[Input("pmPassword")]
public Input<string>? PmPassword { get; set; }

[Input("pmTimeout", json: true)]
public Input<int>? PmTimeout { get; set; }

/// <summary>
/// By default, every TLS connection is verified to be secure. This option allows terraform to proceed and operate on
/// servers considered insecure. For example if you're connecting to a remote host and you do not have the CA cert that
/// issued the proxmox api url's certificate.
/// </summary>
[Input("pmTlsInsecure", json: true)]
public Input<bool>? PmTlsInsecure { get; set; }

/// <summary>
/// username, maywith with @pam
/// Username e.g. myuser or myuser@pam
/// </summary>
[Input("pmUser", required: true)]
public Input<string> PmUser { get; set; } = null!;
[Input("pmUser")]
public Input<string>? PmUser { get; set; }

public ProviderArgs()
{
Expand Down
Loading

0 comments on commit f3cf973

Please sign in to comment.