Skip to content

Commit

Permalink
Update bridge and upstream provider (#155)
Browse files Browse the repository at this point in the history
* Update terraform-provider-bigip to v1.13.0
* Update pulumi-terraform-bridge to v3.19.3
  • Loading branch information
jkodroff authored Mar 17, 2022
1 parent fa46525 commit 4a1d491
Show file tree
Hide file tree
Showing 44 changed files with 1,855 additions and 568 deletions.
191 changes: 147 additions & 44 deletions provider/cmd/pulumi-resource-f5bigip/schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.16
require (
github.com/F5Networks/terraform-provider-bigip v1.3.3
github.com/hashicorp/terraform-plugin-sdk v1.7.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.3
github.com/pulumi/pulumi/sdk/v3 v3.25.0
)

replace github.com/F5Networks/terraform-provider-bigip => github.com/pulumi/terraform-provider-bigip v1.1.1-0.20211208150443-f20e1eb510de
replace github.com/F5Networks/terraform-provider-bigip => github.com/pulumi/terraform-provider-bigip v1.1.1-0.20220302180104-0b3a482e5983
16 changes: 8 additions & 8 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5y
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/f5devcentral/go-bigip v0.0.0-20211208144806-c9b2472e4619 h1:enrCfLqoEhSUxMre+eA8Pb9xJpQsoiV6NHQY0gGgNrc=
github.com/f5devcentral/go-bigip v0.0.0-20211208144806-c9b2472e4619/go.mod h1:JZj/iVxDmEnGPyEwuNj7x0fuH2CtUBbD2J48MMp/SE8=
github.com/f5devcentral/go-bigip/f5teem v0.0.0-20211208144806-c9b2472e4619 h1:JUI4NZjKP2wRoGkBhkxxFBvA1mASxQx+iC5ispqTBow=
github.com/f5devcentral/go-bigip/f5teem v0.0.0-20211208144806-c9b2472e4619/go.mod h1:r7o5I22EvO+fps2u10bz4ZUlTlNHopQSWzVcW19hK3U=
github.com/f5devcentral/go-bigip v0.0.0-20220302174144-f3febbee09dd h1:7D1aPpFX/62+GmwB/1KDIa+vt5/FycUIYXz/tT1TnFE=
github.com/f5devcentral/go-bigip v0.0.0-20220302174144-f3febbee09dd/go.mod h1:JZj/iVxDmEnGPyEwuNj7x0fuH2CtUBbD2J48MMp/SE8=
github.com/f5devcentral/go-bigip/f5teem v0.0.0-20220302174144-f3febbee09dd h1:jDLWC4FF15tC0Lbi/dPrJGW3O2zV5/XtWJ92GB2Kxo4=
github.com/f5devcentral/go-bigip/f5teem v0.0.0-20220302174144-f3febbee09dd/go.mod h1:r7o5I22EvO+fps2u10bz4ZUlTlNHopQSWzVcW19hK3U=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
Expand Down Expand Up @@ -707,16 +707,16 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1 h1:7+LsVefmG8Y5izt2jH0VXP0mdQZySyLFGxGzLmzGfWU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1/go.mod h1:6EGCAEu5ihEn03RMva5Cw+2yVgdu+h0DBVWpZ8/d2Bo=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.3 h1:Fnc9Md/COROUkqqHbNLFH1DQZyFDIfmZwHNheTFZlDc=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.3/go.mod h1:6EGCAEu5ihEn03RMva5Cw+2yVgdu+h0DBVWpZ8/d2Bo=
github.com/pulumi/pulumi/pkg/v3 v3.25.1-0.20220226222616-301efa60653c h1:zkvrK+mXnjlJSlVAnGtATf2HrhEzAenvlovCseIP1jU=
github.com/pulumi/pulumi/pkg/v3 v3.25.1-0.20220226222616-301efa60653c/go.mod h1:O4MS08knSlZrfbUjoHw2C7mZJlspNuHRDxovnm3Bk8g=
github.com/pulumi/pulumi/sdk/v3 v3.25.0 h1:ZLO5sXjtEcPJKveX8cL7YzNIvGM+/lxQ6uhgLGkNl2w=
github.com/pulumi/pulumi/sdk/v3 v3.25.0/go.mod h1:VsxW+TGv2VBLe/MeqsAr9r0zKzK/gbAhFT9QxYr24cY=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-provider-bigip v1.1.1-0.20211208150443-f20e1eb510de h1:EkSEzVmx620MIhtGgyBfYuqCviIxs21HviZ16j/+hcE=
github.com/pulumi/terraform-provider-bigip v1.1.1-0.20211208150443-f20e1eb510de/go.mod h1:1BxK+m4wSSZbR0ptcZTJGmq2qJZZzfPIINj3thKHX5I=
github.com/pulumi/terraform-provider-bigip v1.1.1-0.20220302180104-0b3a482e5983 h1:MRulDKX35KzUflei/QwcJh5XOldPeccuvcct0dh1m7k=
github.com/pulumi/terraform-provider-bigip v1.1.1-0.20220302180104-0b3a482e5983/go.mod h1:Y0upoTfvjhb2T0TIzgTztSwjr3HQjSdDy5idWdpOrG8=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8=
Expand Down
37 changes: 22 additions & 15 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,28 @@ func Provider() tfbridge.ProviderInfo {
"bigip_sys_provision": {Tok: makeResource(sysMod, "Provision")},
"bigip_sys_snmp": {Tok: makeResource(sysMod, "Snmp")},
"bigip_sys_snmp_traps": {Tok: makeResource(sysMod, "SnmpTraps")},
"bigip_sys_bigiplicense": {Tok: makeResource(sysMod, "BigIpLicense")},
"bigip_ssl_certificate": {Tok: makeResource(sslMod, "Certificate")},
"bigip_ssl_key": {Tok: makeResource(sslMod, "Key")},
"bigip_as3": {Tok: makeResource(mainMod, "As3")},
"bigip_do": {Tok: makeResource(mainMod, "Do")},
"bigip_bigiq_as3": {Tok: makeResource(mainMod, "BigIqAs3")},
"bigip_command": {Tok: makeResource(mainMod, "Command")},
"bigip_common_license_manage_bigiq": {Tok: makeResource(mainMod, "CommonLicenseManageBigIq")},
"bigip_event_service_discovery": {Tok: makeResource(mainMod, "EventServiceDiscovery")},
"bigip_ipsec_policy": {Tok: makeResource(mainMod, "IpsecPolicy")},
"bigip_net_tunnel": {Tok: makeResource(mainMod, "NetTunnel")},
"bigip_net_ike_peer": {Tok: makeResource(mainMod, "NetIkePeer")},
"bigip_traffic_selector": {Tok: makeResource(mainMod, "TrafficSelector")},
"bigip_fast_template": {Tok: makeResource(mainMod, "FastTemplate")},
"bigip_fast_application": {Tok: makeResource(mainMod, "FastApplication")},
"bigip_sys_bigiplicense": {
Tok: makeResource(sysMod, "BigIpLicense"),
// No upstream docs for this resource exist:
Docs: &tfbridge.DocInfo{
Markdown: []byte(" "),
},
},
"bigip_ssl_certificate": {Tok: makeResource(sslMod, "Certificate")},
"bigip_ssl_key": {Tok: makeResource(sslMod, "Key")},
"bigip_as3": {Tok: makeResource(mainMod, "As3")},
"bigip_do": {Tok: makeResource(mainMod, "Do")},
"bigip_bigiq_as3": {Tok: makeResource(mainMod, "BigIqAs3")},
"bigip_command": {Tok: makeResource(mainMod, "Command")},
"bigip_common_license_manage_bigiq": {Tok: makeResource(mainMod, "CommonLicenseManageBigIq")},
"bigip_event_service_discovery": {Tok: makeResource(mainMod, "EventServiceDiscovery")},
"bigip_ipsec_policy": {Tok: makeResource(mainMod, "IpsecPolicy")},
"bigip_net_tunnel": {Tok: makeResource(mainMod, "NetTunnel")},
"bigip_net_ike_peer": {Tok: makeResource(mainMod, "NetIkePeer")},
"bigip_traffic_selector": {Tok: makeResource(mainMod, "TrafficSelector")},
"bigip_fast_template": {Tok: makeResource(mainMod, "FastTemplate")},
"bigip_fast_application": {Tok: makeResource(mainMod, "FastApplication")},
"bigip_ipsec_profile": {Tok: makeResource(mainMod, "IpsecProfile")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"bigip_ltm_datagroup": {Tok: makeDataSource(ltmMod, "getDataGroup")},
Expand Down
26 changes: 22 additions & 4 deletions sdk/dotnet/As3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,20 @@ public partial class As3 : Pulumi.CustomResource
/// Path/Filename of Declarative AS3 JSON which is a json file used with builtin ```file``` function
/// </summary>
[Output("as3Json")]
public Output<string> As3Json { get; private set; } = null!;
public Output<string?> As3Json { get; private set; } = null!;

/// <summary>
/// Set True if you want to ignore metadata changes during update. By default it is set to false
/// </summary>
[Output("ignoreMetadata")]
public Output<bool?> IgnoreMetadata { get; private set; } = null!;

/// <summary>
/// ID of AS3 post declaration async task
/// </summary>
[Output("taskId")]
public Output<string> TaskId { get; private set; } = null!;

/// <summary>
/// If there are multiple tenants on a BIG-IP, this attribute helps the user to set a particular tenant to which he want to reflect the changes. Other tenants will neither be created nor be modified.
/// </summary>
Expand All @@ -528,7 +534,7 @@ public partial class As3 : Pulumi.CustomResource
/// <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 As3(string name, As3Args args, CustomResourceOptions? options = null)
public As3(string name, As3Args? args = null, CustomResourceOptions? options = null)
: base("f5bigip:index/as3:As3", name, args ?? new As3Args(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -575,15 +581,21 @@ public sealed class As3Args : Pulumi.ResourceArgs
/// <summary>
/// Path/Filename of Declarative AS3 JSON which is a json file used with builtin ```file``` function
/// </summary>
[Input("as3Json", required: true)]
public Input<string> As3Json { get; set; } = null!;
[Input("as3Json")]
public Input<string>? As3Json { get; set; }

/// <summary>
/// Set True if you want to ignore metadata changes during update. By default it is set to false
/// </summary>
[Input("ignoreMetadata")]
public Input<bool>? IgnoreMetadata { get; set; }

/// <summary>
/// ID of AS3 post declaration async task
/// </summary>
[Input("taskId")]
public Input<string>? TaskId { get; set; }

/// <summary>
/// If there are multiple tenants on a BIG-IP, this attribute helps the user to set a particular tenant to which he want to reflect the changes. Other tenants will neither be created nor be modified.
/// </summary>
Expand Down Expand Up @@ -627,6 +639,12 @@ public sealed class As3State : Pulumi.ResourceArgs
[Input("ignoreMetadata")]
public Input<bool>? IgnoreMetadata { get; set; }

/// <summary>
/// ID of AS3 post declaration async task
/// </summary>
[Input("taskId")]
public Input<string>? TaskId { get; set; }

/// <summary>
/// If there are multiple tenants on a BIG-IP, this attribute helps the user to set a particular tenant to which he want to reflect the changes. Other tenants will neither be created nor be modified.
/// </summary>
Expand Down
168 changes: 168 additions & 0 deletions sdk/dotnet/IpsecProfile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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;

namespace Pulumi.F5BigIP
{
/// <summary>
/// `f5bigip.IpsecProfile` Manage IPSec Profiles on a BIG-IP
///
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using F5BigIP = Pulumi.F5BigIP;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var azurevWANProfile = new F5BigIP.IpsecProfile("azurevWANProfile", new F5BigIP.IpsecProfileArgs
/// {
/// Description = "mytestipsecprofile",
/// Name = "/Common/Mytestipsecprofile",
/// TrafficSelector = "test-trafficselector",
/// });
/// }
///
/// }
/// ```
/// </summary>
[F5BigIPResourceType("f5bigip:index/ipsecProfile:IpsecProfile")]
public partial class IpsecProfile : Pulumi.CustomResource
{
/// <summary>
/// Specifies descriptive text that identifies the IPsec interface tunnel profile.
/// </summary>
[Output("description")]
public Output<string> Description { get; private set; } = null!;

/// <summary>
/// Displays the name of the IPsec interface tunnel profile,it should be "full path".The full path is the combination of the partition + name of the IPSec profile.(For example `/Common/test-profile`)
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// Specifies the profile from which this profile inherits settings. The default is the system-supplied `/Common/ipsec` profile
/// </summary>
[Output("parentProfile")]
public Output<string?> ParentProfile { get; private set; } = null!;

/// <summary>
/// Specifies the traffic selector for the IPsec interface tunnel to which the profile is applied
/// </summary>
[Output("trafficSelector")]
public Output<string> TrafficSelector { get; private set; } = null!;


/// <summary>
/// Create a IpsecProfile 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 IpsecProfile(string name, IpsecProfileArgs args, CustomResourceOptions? options = null)
: base("f5bigip:index/ipsecProfile:IpsecProfile", name, args ?? new IpsecProfileArgs(), MakeResourceOptions(options, ""))
{
}

private IpsecProfile(string name, Input<string> id, IpsecProfileState? state = null, CustomResourceOptions? options = null)
: base("f5bigip:index/ipsecProfile:IpsecProfile", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
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 IpsecProfile 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 IpsecProfile Get(string name, Input<string> id, IpsecProfileState? state = null, CustomResourceOptions? options = null)
{
return new IpsecProfile(name, id, state, options);
}
}

public sealed class IpsecProfileArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Specifies descriptive text that identifies the IPsec interface tunnel profile.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Displays the name of the IPsec interface tunnel profile,it should be "full path".The full path is the combination of the partition + name of the IPSec profile.(For example `/Common/test-profile`)
/// </summary>
[Input("name", required: true)]
public Input<string> Name { get; set; } = null!;

/// <summary>
/// Specifies the profile from which this profile inherits settings. The default is the system-supplied `/Common/ipsec` profile
/// </summary>
[Input("parentProfile")]
public Input<string>? ParentProfile { get; set; }

/// <summary>
/// Specifies the traffic selector for the IPsec interface tunnel to which the profile is applied
/// </summary>
[Input("trafficSelector")]
public Input<string>? TrafficSelector { get; set; }

public IpsecProfileArgs()
{
}
}

public sealed class IpsecProfileState : Pulumi.ResourceArgs
{
/// <summary>
/// Specifies descriptive text that identifies the IPsec interface tunnel profile.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Displays the name of the IPsec interface tunnel profile,it should be "full path".The full path is the combination of the partition + name of the IPSec profile.(For example `/Common/test-profile`)
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// Specifies the profile from which this profile inherits settings. The default is the system-supplied `/Common/ipsec` profile
/// </summary>
[Input("parentProfile")]
public Input<string>? ParentProfile { get; set; }

/// <summary>
/// Specifies the traffic selector for the IPsec interface tunnel to which the profile is applied
/// </summary>
[Input("trafficSelector")]
public Input<string>? TrafficSelector { get; set; }

public IpsecProfileState()
{
}
}
}
Loading

0 comments on commit 4a1d491

Please sign in to comment.