Skip to content

Commit

Permalink
fix: prepare for upstream release 0.58.1
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed May 30, 2024
1 parent e4ee524 commit 343c6e4
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 52 deletions.
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-proxmoxve/schema-embed.json

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions provider/cmd/pulumi-resource-proxmoxve/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1241,8 +1241,7 @@
},
"fileFormat": {
"type": "string",
"description": "The file format (defaults to `qcow2`).\n",
"willReplaceOnChanges": true
"description": "The file format (defaults to `qcow2`).\n"
},
"fileId": {
"type": "string",
Expand Down Expand Up @@ -1765,10 +1764,7 @@
"description": "Makes the USB device a USB3 device for the VM\n(defaults to `false`).\n"
}
},
"type": "object",
"required": [
"host"
]
"type": "object"
},
"proxmoxve:VM/VirtualMachineVga:VirtualMachineVga": {
"properties": {
Expand Down Expand Up @@ -5365,8 +5361,7 @@
"items": {
"$ref": "#/types/proxmoxve:VM/VirtualMachineDisk:VirtualMachineDisk"
},
"description": "A disk (multiple blocks supported).\n",
"willReplaceOnChanges": true
"description": "A disk (multiple blocks supported).\n"
},
"efiDisk": {
"$ref": "#/types/proxmoxve:VM/VirtualMachineEfiDisk:VirtualMachineEfiDisk",
Expand Down Expand Up @@ -5604,8 +5599,7 @@
"items": {
"$ref": "#/types/proxmoxve:VM/VirtualMachineDisk:VirtualMachineDisk"
},
"description": "A disk (multiple blocks supported).\n",
"willReplaceOnChanges": true
"description": "A disk (multiple blocks supported).\n"
},
"efiDisk": {
"$ref": "#/types/proxmoxve:VM/VirtualMachineEfiDisk:VirtualMachineEfiDisk",
Expand Down
4 changes: 0 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,6 @@ github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnweb
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/bpg/terraform-provider-proxmox v0.58.0 h1:kf+8TaOMmzYa/wyT6sp9SZnY8gjqtEqlpxocX7GGyvM=
github.com/bpg/terraform-provider-proxmox v0.58.0/go.mod h1:TbkotqC1St7ibNvhdUnwiGJGVDwIqzNhOjXcXB60GFw=
github.com/bpg/terraform-provider-proxmox v0.58.1 h1:Gm9KHXZt4HEqSiYc66qg53/cIx8qLIftgtL/K8bdrXE=
github.com/bpg/terraform-provider-proxmox v0.58.1/go.mod h1:JPZ4+3j0/sO/1niU4xb0Y4xnstlYF7HLTn0hZiujYyM=
github.com/brianvoe/gofakeit/v7 v7.0.3 h1:tGCt+eYfhTMWE1ko5G2EO1f/yE44yNpIwUb4h32O0wo=
Expand Down Expand Up @@ -3269,8 +3267,6 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d h1:N0hmiNbwsSNwHBAvR3QB5w25pUwH4tK0Y/RltD1j1h4=
golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
golang.org/x/exp v0.0.0-20240529005216-23cca8864a10 h1:vpzMC/iZhYFAjJzHU0Cfuq+w1vLLsF2vLkDrPjzKYck=
golang.org/x/exp v0.0.0-20240529005216-23cca8864a10/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Vm/Inputs/VirtualMachineUsbArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public sealed class VirtualMachineUsbArgs : global::Pulumi.ResourceArgs
/// <summary>
/// The USB device ID. Use either this or `mapping`.
/// </summary>
[Input("host", required: true)]
public Input<string> Host { get; set; } = null!;
[Input("host")]
public Input<string>? Host { get; set; }

/// <summary>
/// The resource mapping name of the device, for
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Vm/Inputs/VirtualMachineUsbGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public sealed class VirtualMachineUsbGetArgs : global::Pulumi.ResourceArgs
/// <summary>
/// The USB device ID. Use either this or `mapping`.
/// </summary>
[Input("host", required: true)]
public Input<string> Host { get; set; } = null!;
[Input("host")]
public Input<string>? Host { get; set; }

/// <summary>
/// The resource mapping name of the device, for
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Vm/Outputs/VirtualMachineUsb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class VirtualMachineUsb
/// <summary>
/// The USB device ID. Use either this or `mapping`.
/// </summary>
public readonly string Host;
public readonly string? Host;
/// <summary>
/// The resource mapping name of the device, for
/// example usbdevice. Use either this or `id`.
Expand All @@ -30,7 +30,7 @@ public sealed class VirtualMachineUsb

[OutputConstructor]
private VirtualMachineUsb(
string host,
string? host,

string? mapping,

Expand Down
8 changes: 4 additions & 4 deletions sdk/go/proxmoxve/vm/pulumiTypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
Expand All @@ -21,15 +20,15 @@ public final class VirtualMachineUsbArgs extends com.pulumi.resources.ResourceAr
* The USB device ID. Use either this or `mapping`.
*
*/
@Import(name="host", required=true)
private Output<String> host;
@Import(name="host")
private @Nullable Output<String> host;

/**
* @return The USB device ID. Use either this or `mapping`.
*
*/
public Output<String> host() {
return this.host;
public Optional<Output<String>> host() {
return Optional.ofNullable(this.host);
}

/**
Expand Down Expand Up @@ -98,7 +97,7 @@ public Builder(VirtualMachineUsbArgs defaults) {
* @return builder
*
*/
public Builder host(Output<String> host) {
public Builder host(@Nullable Output<String> host) {
$.host = host;
return this;
}
Expand Down Expand Up @@ -160,9 +159,6 @@ public Builder usb3(Boolean usb3) {
}

public VirtualMachineUsbArgs build() {
if ($.host == null) {
throw new MissingRequiredPropertyException("VirtualMachineUsbArgs", "host");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package io.muehlbachler.pulumi.proxmoxve.VM.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
Expand All @@ -17,7 +16,7 @@ public final class VirtualMachineUsb {
* @return The USB device ID. Use either this or `mapping`.
*
*/
private String host;
private @Nullable String host;
/**
* @return The resource mapping name of the device, for
* example usbdevice. Use either this or `id`.
Expand All @@ -36,8 +35,8 @@ private VirtualMachineUsb() {}
* @return The USB device ID. Use either this or `mapping`.
*
*/
public String host() {
return this.host;
public Optional<String> host() {
return Optional.ofNullable(this.host);
}
/**
* @return The resource mapping name of the device, for
Expand Down Expand Up @@ -65,7 +64,7 @@ public static Builder builder(VirtualMachineUsb defaults) {
}
@CustomType.Builder
public static final class Builder {
private String host;
private @Nullable String host;
private @Nullable String mapping;
private @Nullable Boolean usb3;
public Builder() {}
Expand All @@ -77,10 +76,8 @@ public Builder(VirtualMachineUsb defaults) {
}

@CustomType.Setter
public Builder host(String host) {
if (host == null) {
throw new MissingRequiredPropertyException("VirtualMachineUsb", "host");
}
public Builder host(@Nullable String host) {

this.host = host;
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/types/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ export namespace VM {
/**
* The USB device ID. Use either this or `mapping`.
*/
host: pulumi.Input<string>;
host?: pulumi.Input<string>;
/**
* The resource mapping name of the device, for
* example usbdevice. Use either this or `id`.
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/types/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ export namespace VM {
/**
* The USB device ID. Use either this or `mapping`.
*/
host: string;
host?: string;
/**
* The resource mapping name of the device, for
* example usbdevice. Use either this or `id`.
Expand Down
9 changes: 5 additions & 4 deletions sdk/python/pulumi_proxmoxve/vm/_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,7 +2293,7 @@ def version(self, value: Optional[pulumi.Input[str]]):
@pulumi.input_type
class VirtualMachineUsbArgs:
def __init__(__self__, *,
host: pulumi.Input[str],
host: Optional[pulumi.Input[str]] = None,
mapping: Optional[pulumi.Input[str]] = None,
usb3: Optional[pulumi.Input[bool]] = None):
"""
Expand All @@ -2303,22 +2303,23 @@ def __init__(__self__, *,
:param pulumi.Input[bool] usb3: Makes the USB device a USB3 device for the VM
(defaults to `false`).
"""
pulumi.set(__self__, "host", host)
if host is not None:
pulumi.set(__self__, "host", host)
if mapping is not None:
pulumi.set(__self__, "mapping", mapping)
if usb3 is not None:
pulumi.set(__self__, "usb3", usb3)

@property
@pulumi.getter
def host(self) -> pulumi.Input[str]:
def host(self) -> Optional[pulumi.Input[str]]:
"""
The USB device ID. Use either this or `mapping`.
"""
return pulumi.get(self, "host")

@host.setter
def host(self, value: pulumi.Input[str]):
def host(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "host", value)

@property
Expand Down
7 changes: 4 additions & 3 deletions sdk/python/pulumi_proxmoxve/vm/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ def version(self) -> Optional[str]:
@pulumi.output_type
class VirtualMachineUsb(dict):
def __init__(__self__, *,
host: str,
host: Optional[str] = None,
mapping: Optional[str] = None,
usb3: Optional[bool] = None):
"""
Expand All @@ -2060,15 +2060,16 @@ def __init__(__self__, *,
:param bool usb3: Makes the USB device a USB3 device for the VM
(defaults to `false`).
"""
pulumi.set(__self__, "host", host)
if host is not None:
pulumi.set(__self__, "host", host)
if mapping is not None:
pulumi.set(__self__, "mapping", mapping)
if usb3 is not None:
pulumi.set(__self__, "usb3", usb3)

@property
@pulumi.getter
def host(self) -> str:
def host(self) -> Optional[str]:
"""
The USB device ID. Use either this or `mapping`.
"""
Expand Down

0 comments on commit 343c6e4

Please sign in to comment.