Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-vsphere to v2.5.0 #336

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions provider/cmd/pulumi-resource-vsphere/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ require (
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/google/wire v0.5.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
Expand Down Expand Up @@ -218,7 +218,7 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.8.3 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
Expand All @@ -227,7 +227,7 @@ require (
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/vmware/govmomi v0.30.7 // indirect
github.com/vmware/govmomi v0.31.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
Expand Down
10 changes: 6 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1481,8 +1481,9 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
Expand Down Expand Up @@ -2324,8 +2325,9 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F
github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY=
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
Expand Down Expand Up @@ -2373,8 +2375,8 @@ github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/vmware/govmomi v0.30.7 h1:YO8CcDpLJzmq6PK5/CBQbXyV21iCMh8SbdXt+xNkXp8=
github.com/vmware/govmomi v0.30.7/go.mod h1:epgoslm97rLECMV4D+08ORzUBEU7boFSepKjt7AYVGg=
github.com/vmware/govmomi v0.31.0 h1:+NC7le8yeXj7f4YUC841jgdWsehN7A3ivqLxm79eKyo=
github.com/vmware/govmomi v0.31.0/go.mod h1:JA63Pg0SgQcSjk+LuPzjh3rJdcWBo/ZNCIwbb1qf2/0=
github.com/vultr/govultr/v2 v2.17.2/go.mod h1:ZFOKGWmgjytfyjeyAdhQlSWwTjh2ig+X49cAp50dzXI=
github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI=
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/VnicIpv4Args.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Pulumi.VSphere.Inputs
public sealed class VnicIpv4Args : global::Pulumi.ResourceArgs
{
/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
[Input("dhcp")]
public Input<bool>? Dhcp { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/VnicIpv4GetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Pulumi.VSphere.Inputs
public sealed class VnicIpv4GetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
[Input("dhcp")]
public Input<bool>? Dhcp { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/VnicIpv6Args.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public InputList<string> Addresses
public Input<bool>? Autoconfig { get; set; }

/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
[Input("dhcp")]
public Input<bool>? Dhcp { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Inputs/VnicIpv6GetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public InputList<string> Addresses
public Input<bool>? Autoconfig { get; set; }

/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
[Input("dhcp")]
public Input<bool>? Dhcp { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/VnicIpv4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pulumi.VSphere.Outputs
public sealed class VnicIpv4
{
/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
public readonly bool? Dhcp;
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Outputs/VnicIpv6.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed class VnicIpv6
/// </summary>
public readonly bool? Autoconfig;
/// <summary>
/// Use DHCP to configure the interface's IPv4 stack.
/// Use DHCP to configure the interface's IPv6 stack.
/// </summary>
public readonly bool? Dhcp;
/// <summary>
Expand Down
86 changes: 74 additions & 12 deletions sdk/dotnet/Vnic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,68 @@ namespace Pulumi.VSphere
///
/// });
/// ```
/// ### Create a vnic attached to a portgroup using the default TCP/IP stack
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var dc = VSphere.GetDatacenter.Invoke(new()
/// {
/// Name = "mydc",
/// });
///
/// var h1 = VSphere.GetHost.Invoke(new()
/// {
/// Name = "esxi1.host.test",
/// DatacenterId = dc.Apply(getDatacenterResult =&gt; getDatacenterResult.Id),
/// });
///
/// var hvs1 = new VSphere.HostVirtualSwitch("hvs1", new()
/// {
/// HostSystemId = h1.Apply(getHostResult =&gt; getHostResult.Id),
/// NetworkAdapters = new[]
/// {
/// "vmnic3",
/// "vmnic4",
/// },
/// ActiveNics = new[]
/// {
/// "vmnic3",
/// },
/// StandbyNics = new[]
/// {
/// "vmnic4",
/// },
/// });
///
/// var p1 = new VSphere.HostPortGroup("p1", new()
/// {
/// VirtualSwitchName = hvs1.Name,
/// HostSystemId = h1.Apply(getHostResult =&gt; getHostResult.Id),
/// });
///
/// var v1 = new VSphere.Vnic("v1", new()
/// {
/// Host = h1.Apply(getHostResult =&gt; getHostResult.Id),
/// Portgroup = p1.Name,
/// Ipv4 = new VSphere.Inputs.VnicIpv4Args
/// {
/// Dhcp = true,
/// },
/// Services = new[]
/// {
/// "vsan",
/// "management",
/// },
/// });
///
/// });
/// ```
/// ## Importing
///
/// An existing vNic can be [imported][docs-import] into this resource
Expand Down Expand Up @@ -113,13 +175,13 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output<string> Host { get; private set; } = null!;

/// <summary>
/// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
/// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
/// </summary>
[Output("ipv4")]
public Output<Outputs.VnicIpv4?> Ipv4 { get; private set; } = null!;

/// <summary>
/// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
/// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
/// </summary>
[Output("ipv6")]
public Output<Outputs.VnicIpv6?> Ipv6 { get; private set; } = null!;
Expand All @@ -137,7 +199,7 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output<int> Mtu { get; private set; } = null!;

/// <summary>
/// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
/// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
/// </summary>
[Output("netstack")]
public Output<string?> Netstack { get; private set; } = null!;
Expand All @@ -149,7 +211,7 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output<string?> Portgroup { get; private set; } = null!;

/// <summary>
/// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
/// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
/// </summary>
[Output("services")]
public Output<ImmutableArray<string>> Services { get; private set; } = null!;
Expand Down Expand Up @@ -219,13 +281,13 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
public Input<string> Host { get; set; } = null!;

/// <summary>
/// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
/// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
/// </summary>
[Input("ipv4")]
public Input<Inputs.VnicIpv4Args>? Ipv4 { get; set; }

/// <summary>
/// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
/// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
/// </summary>
[Input("ipv6")]
public Input<Inputs.VnicIpv6Args>? Ipv6 { get; set; }
Expand All @@ -243,7 +305,7 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
public Input<int>? Mtu { get; set; }

/// <summary>
/// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
/// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
/// </summary>
[Input("netstack")]
public Input<string>? Netstack { get; set; }
Expand All @@ -258,7 +320,7 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
private InputList<string>? _services;

/// <summary>
/// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
/// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
/// </summary>
public InputList<string> Services
{
Expand Down Expand Up @@ -293,13 +355,13 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
public Input<string>? Host { get; set; }

/// <summary>
/// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
/// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
/// </summary>
[Input("ipv4")]
public Input<Inputs.VnicIpv4GetArgs>? Ipv4 { get; set; }

/// <summary>
/// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
/// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
/// </summary>
[Input("ipv6")]
public Input<Inputs.VnicIpv6GetArgs>? Ipv6 { get; set; }
Expand All @@ -317,7 +379,7 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
public Input<int>? Mtu { get; set; }

/// <summary>
/// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
/// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
/// </summary>
[Input("netstack")]
public Input<string>? Netstack { get; set; }
Expand All @@ -332,7 +394,7 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
private InputList<string>? _services;

/// <summary>
/// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
/// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
/// </summary>
public InputList<string> Services
{
Expand Down
16 changes: 8 additions & 8 deletions sdk/go/vsphere/pulumiTypes.go

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

Loading
Loading