From 1a228bd0f1a5f29b8f464bf5b6f6dffde2fdcfa7 Mon Sep 17 00:00:00 2001 From: "bot@pulumi.com" Date: Fri, 10 Jan 2025 23:36:09 +0000 Subject: [PATCH 1/2] make tfgen --- patches/0001-Add-shim.patch | 2 +- provider/cmd/pulumi-resource-scm/schema.json | 23 +++++++++++++++++++- provider/go.mod | 2 +- provider/go.sum | 4 ++-- upstream | 2 +- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/patches/0001-Add-shim.patch b/patches/0001-Add-shim.patch index addc061..e70ec40 100644 --- a/patches/0001-Add-shim.patch +++ b/patches/0001-Add-shim.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Add shim diff --git a/scm/shim.go b/scm/shim.go new file mode 100644 -index 0000000..6e4547d +index 0000000..0fabc68 --- /dev/null +++ b/scm/shim.go @@ -0,0 +1,12 @@ diff --git a/provider/cmd/pulumi-resource-scm/schema.json b/provider/cmd/pulumi-resource-scm/schema.json index 64300b8..9201cd4 100644 --- a/provider/cmd/pulumi-resource-scm/schema.json +++ b/provider/cmd/pulumi-resource-scm/schema.json @@ -5278,13 +5278,24 @@ "type": "string", "description": "The PeerIpAddress param.\n" }, + "sameAsPrimary": { + "type": "boolean", + "description": "If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`.\n" + }, "secret": { "type": "string", "description": "The Secret param.\n", "secret": true } }, - "type": "object" + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "sameAsPrimary" + ] + } + } }, "scm:index/ScepProfileAlgorithm:ScepProfileAlgorithm": { "properties": { @@ -23003,6 +23014,10 @@ "type": "string", "description": "The PeerIpAddress param.\n" }, + "sameAsPrimary": { + "type": "boolean", + "description": "If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`.\n" + }, "secret": { "type": "string", "description": "The Secret param.\n", @@ -23013,6 +23028,7 @@ "required": [ "localIpAddress", "peerIpAddress", + "sameAsPrimary", "secret" ], "language": { @@ -23111,6 +23127,10 @@ "type": "string", "description": "The PeerIpAddress param.\n" }, + "sameAsPrimary": { + "type": "boolean", + "description": "If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`.\n" + }, "secret": { "type": "string", "description": "The Secret param.\n", @@ -23121,6 +23141,7 @@ "required": [ "localIpAddress", "peerIpAddress", + "sameAsPrimary", "secret" ], "language": { diff --git a/provider/go.mod b/provider/go.mod index df4afc7..627389f 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -118,7 +118,7 @@ require ( github.com/opentofu/registry-address v0.0.0-20230922120653-901b9ae4061a // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/paloaltonetworks/scm-go v0.10.0 // indirect + github.com/paloaltonetworks/scm-go v0.11.0 // indirect github.com/pgavlin/fx v0.1.6 // indirect github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index eede031..5873415 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -689,8 +689,8 @@ github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS6 github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/paloaltonetworks/scm-go v0.10.0 h1:Lsj2BL4VyEAp+9+DE/EN+02P9Iz5A5V16jySsoZmP9Y= -github.com/paloaltonetworks/scm-go v0.10.0/go.mod h1:8CiN/F+XcDSwup6WutVuV92+Rw+35F8aPDo+QFdoQeA= +github.com/paloaltonetworks/scm-go v0.11.0 h1:Mt9TflvL4hvYjkXPZh3uPvVDzV+d8+ETceExIPsxwjk= +github.com/paloaltonetworks/scm-go v0.11.0/go.mod h1:8CiN/F+XcDSwup6WutVuV92+Rw+35F8aPDo+QFdoQeA= github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU= github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo= diff --git a/upstream b/upstream index 1459faf..328b76b 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 1459fafefbbfb9d4df89989a1314ec03076b2dbc +Subproject commit 328b76b7d303e9c1fb36fda2ad79d6485159d8de From 178a7e5f05bdc9a386bcd16013d3a0fce25b9559 Mon Sep 17 00:00:00 2001 From: "bot@pulumi.com" Date: Fri, 10 Jan 2025 23:38:33 +0000 Subject: [PATCH 2/2] make build_sdks --- .../RemoteNetworkProtocolBgpPeerArgs.cs | 6 +++ .../RemoteNetworkProtocolBgpPeerGetArgs.cs | 6 +++ ...oteNetworkListDataProtocolBgpPeerResult.cs | 7 ++++ .../GetRemoteNetworkProtocolBgpPeerResult.cs | 7 ++++ .../Outputs/RemoteNetworkProtocolBgpPeer.cs | 7 ++++ sdk/go/scm/pulumiTypes.go | 19 ++++++++++ sdk/go/scm/pulumiTypes1.go | 18 +++++++++ .../RemoteNetworkProtocolBgpPeerArgs.java | 38 +++++++++++++++++++ ...tRemoteNetworkListDataProtocolBgpPeer.java | 24 ++++++++++++ .../GetRemoteNetworkProtocolBgpPeer.java | 24 ++++++++++++ .../outputs/RemoteNetworkProtocolBgpPeer.java | 22 +++++++++++ sdk/nodejs/types/input.ts | 4 ++ sdk/nodejs/types/output.ts | 12 ++++++ sdk/python/pulumi_scm/_inputs.py | 20 ++++++++++ sdk/python/pulumi_scm/outputs.py | 36 ++++++++++++++++++ 15 files changed, 250 insertions(+) diff --git a/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerArgs.cs b/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerArgs.cs index 194ad2f..0c2de36 100644 --- a/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerArgs.cs +++ b/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerArgs.cs @@ -24,6 +24,12 @@ public sealed class RemoteNetworkProtocolBgpPeerArgs : global::Pulumi.ResourceAr [Input("peerIpAddress")] public Input? PeerIpAddress { get; set; } + /// + /// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + /// + [Input("sameAsPrimary")] + public Input? SameAsPrimary { get; set; } + [Input("secret")] private Input? _secret; diff --git a/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerGetArgs.cs b/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerGetArgs.cs index b974651..51aba4b 100644 --- a/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerGetArgs.cs +++ b/sdk/dotnet/Inputs/RemoteNetworkProtocolBgpPeerGetArgs.cs @@ -24,6 +24,12 @@ public sealed class RemoteNetworkProtocolBgpPeerGetArgs : global::Pulumi.Resourc [Input("peerIpAddress")] public Input? PeerIpAddress { get; set; } + /// + /// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + /// + [Input("sameAsPrimary")] + public Input? SameAsPrimary { get; set; } + [Input("secret")] private Input? _secret; diff --git a/sdk/dotnet/Outputs/GetRemoteNetworkListDataProtocolBgpPeerResult.cs b/sdk/dotnet/Outputs/GetRemoteNetworkListDataProtocolBgpPeerResult.cs index 02003b4..31fc957 100644 --- a/sdk/dotnet/Outputs/GetRemoteNetworkListDataProtocolBgpPeerResult.cs +++ b/sdk/dotnet/Outputs/GetRemoteNetworkListDataProtocolBgpPeerResult.cs @@ -22,6 +22,10 @@ public sealed class GetRemoteNetworkListDataProtocolBgpPeerResult /// public readonly string PeerIpAddress; /// + /// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + /// + public readonly bool SameAsPrimary; + /// /// The Secret param. /// public readonly string Secret; @@ -32,10 +36,13 @@ private GetRemoteNetworkListDataProtocolBgpPeerResult( string peerIpAddress, + bool sameAsPrimary, + string secret) { LocalIpAddress = localIpAddress; PeerIpAddress = peerIpAddress; + SameAsPrimary = sameAsPrimary; Secret = secret; } } diff --git a/sdk/dotnet/Outputs/GetRemoteNetworkProtocolBgpPeerResult.cs b/sdk/dotnet/Outputs/GetRemoteNetworkProtocolBgpPeerResult.cs index a780a54..1606136 100644 --- a/sdk/dotnet/Outputs/GetRemoteNetworkProtocolBgpPeerResult.cs +++ b/sdk/dotnet/Outputs/GetRemoteNetworkProtocolBgpPeerResult.cs @@ -22,6 +22,10 @@ public sealed class GetRemoteNetworkProtocolBgpPeerResult /// public readonly string PeerIpAddress; /// + /// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + /// + public readonly bool SameAsPrimary; + /// /// The Secret param. /// public readonly string Secret; @@ -32,10 +36,13 @@ private GetRemoteNetworkProtocolBgpPeerResult( string peerIpAddress, + bool sameAsPrimary, + string secret) { LocalIpAddress = localIpAddress; PeerIpAddress = peerIpAddress; + SameAsPrimary = sameAsPrimary; Secret = secret; } } diff --git a/sdk/dotnet/Outputs/RemoteNetworkProtocolBgpPeer.cs b/sdk/dotnet/Outputs/RemoteNetworkProtocolBgpPeer.cs index 0f12ad9..9fe256d 100644 --- a/sdk/dotnet/Outputs/RemoteNetworkProtocolBgpPeer.cs +++ b/sdk/dotnet/Outputs/RemoteNetworkProtocolBgpPeer.cs @@ -22,6 +22,10 @@ public sealed class RemoteNetworkProtocolBgpPeer /// public readonly string? PeerIpAddress; /// + /// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + /// + public readonly bool? SameAsPrimary; + /// /// The Secret param. /// public readonly string? Secret; @@ -32,10 +36,13 @@ private RemoteNetworkProtocolBgpPeer( string? peerIpAddress, + bool? sameAsPrimary, + string? secret) { LocalIpAddress = localIpAddress; PeerIpAddress = peerIpAddress; + SameAsPrimary = sameAsPrimary; Secret = secret; } } diff --git a/sdk/go/scm/pulumiTypes.go b/sdk/go/scm/pulumiTypes.go index 590e7cc..f852d85 100644 --- a/sdk/go/scm/pulumiTypes.go +++ b/sdk/go/scm/pulumiTypes.go @@ -40599,6 +40599,8 @@ type RemoteNetworkProtocolBgpPeer struct { LocalIpAddress *string `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress *string `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary *bool `pulumi:"sameAsPrimary"` // The Secret param. Secret *string `pulumi:"secret"` } @@ -40619,6 +40621,8 @@ type RemoteNetworkProtocolBgpPeerArgs struct { LocalIpAddress pulumi.StringPtrInput `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress pulumi.StringPtrInput `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary pulumi.BoolPtrInput `pulumi:"sameAsPrimary"` // The Secret param. Secret pulumi.StringPtrInput `pulumi:"secret"` } @@ -40710,6 +40714,11 @@ func (o RemoteNetworkProtocolBgpPeerOutput) PeerIpAddress() pulumi.StringPtrOutp return o.ApplyT(func(v RemoteNetworkProtocolBgpPeer) *string { return v.PeerIpAddress }).(pulumi.StringPtrOutput) } +// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. +func (o RemoteNetworkProtocolBgpPeerOutput) SameAsPrimary() pulumi.BoolPtrOutput { + return o.ApplyT(func(v RemoteNetworkProtocolBgpPeer) *bool { return v.SameAsPrimary }).(pulumi.BoolPtrOutput) +} + // The Secret param. func (o RemoteNetworkProtocolBgpPeerOutput) Secret() pulumi.StringPtrOutput { return o.ApplyT(func(v RemoteNetworkProtocolBgpPeer) *string { return v.Secret }).(pulumi.StringPtrOutput) @@ -40759,6 +40768,16 @@ func (o RemoteNetworkProtocolBgpPeerPtrOutput) PeerIpAddress() pulumi.StringPtrO }).(pulumi.StringPtrOutput) } +// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. +func (o RemoteNetworkProtocolBgpPeerPtrOutput) SameAsPrimary() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *RemoteNetworkProtocolBgpPeer) *bool { + if v == nil { + return nil + } + return v.SameAsPrimary + }).(pulumi.BoolPtrOutput) +} + // The Secret param. func (o RemoteNetworkProtocolBgpPeerPtrOutput) Secret() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteNetworkProtocolBgpPeer) *string { diff --git a/sdk/go/scm/pulumiTypes1.go b/sdk/go/scm/pulumiTypes1.go index bf2c5c4..3ec27a1 100644 --- a/sdk/go/scm/pulumiTypes1.go +++ b/sdk/go/scm/pulumiTypes1.go @@ -28742,6 +28742,8 @@ type GetRemoteNetworkListDataProtocolBgpPeer struct { LocalIpAddress string `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress string `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary bool `pulumi:"sameAsPrimary"` // The Secret param. Secret string `pulumi:"secret"` } @@ -28762,6 +28764,8 @@ type GetRemoteNetworkListDataProtocolBgpPeerArgs struct { LocalIpAddress pulumi.StringInput `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress pulumi.StringInput `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary pulumi.BoolInput `pulumi:"sameAsPrimary"` // The Secret param. Secret pulumi.StringInput `pulumi:"secret"` } @@ -28802,6 +28806,11 @@ func (o GetRemoteNetworkListDataProtocolBgpPeerOutput) PeerIpAddress() pulumi.St return o.ApplyT(func(v GetRemoteNetworkListDataProtocolBgpPeer) string { return v.PeerIpAddress }).(pulumi.StringOutput) } +// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. +func (o GetRemoteNetworkListDataProtocolBgpPeerOutput) SameAsPrimary() pulumi.BoolOutput { + return o.ApplyT(func(v GetRemoteNetworkListDataProtocolBgpPeer) bool { return v.SameAsPrimary }).(pulumi.BoolOutput) +} + // The Secret param. func (o GetRemoteNetworkListDataProtocolBgpPeerOutput) Secret() pulumi.StringOutput { return o.ApplyT(func(v GetRemoteNetworkListDataProtocolBgpPeer) string { return v.Secret }).(pulumi.StringOutput) @@ -28997,6 +29006,8 @@ type GetRemoteNetworkProtocolBgpPeer struct { LocalIpAddress string `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress string `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary bool `pulumi:"sameAsPrimary"` // The Secret param. Secret string `pulumi:"secret"` } @@ -29017,6 +29028,8 @@ type GetRemoteNetworkProtocolBgpPeerArgs struct { LocalIpAddress pulumi.StringInput `pulumi:"localIpAddress"` // The PeerIpAddress param. PeerIpAddress pulumi.StringInput `pulumi:"peerIpAddress"` + // If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + SameAsPrimary pulumi.BoolInput `pulumi:"sameAsPrimary"` // The Secret param. Secret pulumi.StringInput `pulumi:"secret"` } @@ -29057,6 +29070,11 @@ func (o GetRemoteNetworkProtocolBgpPeerOutput) PeerIpAddress() pulumi.StringOutp return o.ApplyT(func(v GetRemoteNetworkProtocolBgpPeer) string { return v.PeerIpAddress }).(pulumi.StringOutput) } +// If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. +func (o GetRemoteNetworkProtocolBgpPeerOutput) SameAsPrimary() pulumi.BoolOutput { + return o.ApplyT(func(v GetRemoteNetworkProtocolBgpPeer) bool { return v.SameAsPrimary }).(pulumi.BoolOutput) +} + // The Secret param. func (o GetRemoteNetworkProtocolBgpPeerOutput) Secret() pulumi.StringOutput { return o.ApplyT(func(v GetRemoteNetworkProtocolBgpPeer) string { return v.Secret }).(pulumi.StringOutput) diff --git a/sdk/java/src/main/java/com/pulumi/scm/inputs/RemoteNetworkProtocolBgpPeerArgs.java b/sdk/java/src/main/java/com/pulumi/scm/inputs/RemoteNetworkProtocolBgpPeerArgs.java index 16b3adb..d9fdf52 100644 --- a/sdk/java/src/main/java/com/pulumi/scm/inputs/RemoteNetworkProtocolBgpPeerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/scm/inputs/RemoteNetworkProtocolBgpPeerArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -45,6 +46,21 @@ public Optional> peerIpAddress() { return Optional.ofNullable(this.peerIpAddress); } + /** + * If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + @Import(name="sameAsPrimary") + private @Nullable Output sameAsPrimary; + + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + public Optional> sameAsPrimary() { + return Optional.ofNullable(this.sameAsPrimary); + } + /** * The Secret param. * @@ -65,6 +81,7 @@ private RemoteNetworkProtocolBgpPeerArgs() {} private RemoteNetworkProtocolBgpPeerArgs(RemoteNetworkProtocolBgpPeerArgs $) { this.localIpAddress = $.localIpAddress; this.peerIpAddress = $.peerIpAddress; + this.sameAsPrimary = $.sameAsPrimary; this.secret = $.secret; } @@ -128,6 +145,27 @@ public Builder peerIpAddress(String peerIpAddress) { return peerIpAddress(Output.of(peerIpAddress)); } + /** + * @param sameAsPrimary If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + * @return builder + * + */ + public Builder sameAsPrimary(@Nullable Output sameAsPrimary) { + $.sameAsPrimary = sameAsPrimary; + return this; + } + + /** + * @param sameAsPrimary If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + * @return builder + * + */ + public Builder sameAsPrimary(Boolean sameAsPrimary) { + return sameAsPrimary(Output.of(sameAsPrimary)); + } + /** * @param secret The Secret param. * diff --git a/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkListDataProtocolBgpPeer.java b/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkListDataProtocolBgpPeer.java index d35198f..a2ce03e 100644 --- a/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkListDataProtocolBgpPeer.java +++ b/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkListDataProtocolBgpPeer.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -20,6 +21,11 @@ public final class GetRemoteNetworkListDataProtocolBgpPeer { * */ private String peerIpAddress; + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + private Boolean sameAsPrimary; /** * @return The Secret param. * @@ -41,6 +47,13 @@ public String localIpAddress() { public String peerIpAddress() { return this.peerIpAddress; } + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + public Boolean sameAsPrimary() { + return this.sameAsPrimary; + } /** * @return The Secret param. * @@ -60,12 +73,14 @@ public static Builder builder(GetRemoteNetworkListDataProtocolBgpPeer defaults) public static final class Builder { private String localIpAddress; private String peerIpAddress; + private Boolean sameAsPrimary; private String secret; public Builder() {} public Builder(GetRemoteNetworkListDataProtocolBgpPeer defaults) { Objects.requireNonNull(defaults); this.localIpAddress = defaults.localIpAddress; this.peerIpAddress = defaults.peerIpAddress; + this.sameAsPrimary = defaults.sameAsPrimary; this.secret = defaults.secret; } @@ -86,6 +101,14 @@ public Builder peerIpAddress(String peerIpAddress) { return this; } @CustomType.Setter + public Builder sameAsPrimary(Boolean sameAsPrimary) { + if (sameAsPrimary == null) { + throw new MissingRequiredPropertyException("GetRemoteNetworkListDataProtocolBgpPeer", "sameAsPrimary"); + } + this.sameAsPrimary = sameAsPrimary; + return this; + } + @CustomType.Setter public Builder secret(String secret) { if (secret == null) { throw new MissingRequiredPropertyException("GetRemoteNetworkListDataProtocolBgpPeer", "secret"); @@ -97,6 +120,7 @@ public GetRemoteNetworkListDataProtocolBgpPeer build() { final var _resultValue = new GetRemoteNetworkListDataProtocolBgpPeer(); _resultValue.localIpAddress = localIpAddress; _resultValue.peerIpAddress = peerIpAddress; + _resultValue.sameAsPrimary = sameAsPrimary; _resultValue.secret = secret; return _resultValue; } diff --git a/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkProtocolBgpPeer.java b/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkProtocolBgpPeer.java index 9dec49d..b151547 100644 --- a/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkProtocolBgpPeer.java +++ b/sdk/java/src/main/java/com/pulumi/scm/outputs/GetRemoteNetworkProtocolBgpPeer.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -20,6 +21,11 @@ public final class GetRemoteNetworkProtocolBgpPeer { * */ private String peerIpAddress; + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + private Boolean sameAsPrimary; /** * @return The Secret param. * @@ -41,6 +47,13 @@ public String localIpAddress() { public String peerIpAddress() { return this.peerIpAddress; } + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + public Boolean sameAsPrimary() { + return this.sameAsPrimary; + } /** * @return The Secret param. * @@ -60,12 +73,14 @@ public static Builder builder(GetRemoteNetworkProtocolBgpPeer defaults) { public static final class Builder { private String localIpAddress; private String peerIpAddress; + private Boolean sameAsPrimary; private String secret; public Builder() {} public Builder(GetRemoteNetworkProtocolBgpPeer defaults) { Objects.requireNonNull(defaults); this.localIpAddress = defaults.localIpAddress; this.peerIpAddress = defaults.peerIpAddress; + this.sameAsPrimary = defaults.sameAsPrimary; this.secret = defaults.secret; } @@ -86,6 +101,14 @@ public Builder peerIpAddress(String peerIpAddress) { return this; } @CustomType.Setter + public Builder sameAsPrimary(Boolean sameAsPrimary) { + if (sameAsPrimary == null) { + throw new MissingRequiredPropertyException("GetRemoteNetworkProtocolBgpPeer", "sameAsPrimary"); + } + this.sameAsPrimary = sameAsPrimary; + return this; + } + @CustomType.Setter public Builder secret(String secret) { if (secret == null) { throw new MissingRequiredPropertyException("GetRemoteNetworkProtocolBgpPeer", "secret"); @@ -97,6 +120,7 @@ public GetRemoteNetworkProtocolBgpPeer build() { final var _resultValue = new GetRemoteNetworkProtocolBgpPeer(); _resultValue.localIpAddress = localIpAddress; _resultValue.peerIpAddress = peerIpAddress; + _resultValue.sameAsPrimary = sameAsPrimary; _resultValue.secret = secret; return _resultValue; } diff --git a/sdk/java/src/main/java/com/pulumi/scm/outputs/RemoteNetworkProtocolBgpPeer.java b/sdk/java/src/main/java/com/pulumi/scm/outputs/RemoteNetworkProtocolBgpPeer.java index fde3826..4afc406 100644 --- a/sdk/java/src/main/java/com/pulumi/scm/outputs/RemoteNetworkProtocolBgpPeer.java +++ b/sdk/java/src/main/java/com/pulumi/scm/outputs/RemoteNetworkProtocolBgpPeer.java @@ -4,6 +4,7 @@ package com.pulumi.scm.outputs; import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -21,6 +22,11 @@ public final class RemoteNetworkProtocolBgpPeer { * */ private @Nullable String peerIpAddress; + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + private @Nullable Boolean sameAsPrimary; /** * @return The Secret param. * @@ -42,6 +48,13 @@ public Optional localIpAddress() { public Optional peerIpAddress() { return Optional.ofNullable(this.peerIpAddress); } + /** + * @return If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + * + */ + public Optional sameAsPrimary() { + return Optional.ofNullable(this.sameAsPrimary); + } /** * @return The Secret param. * @@ -61,12 +74,14 @@ public static Builder builder(RemoteNetworkProtocolBgpPeer defaults) { public static final class Builder { private @Nullable String localIpAddress; private @Nullable String peerIpAddress; + private @Nullable Boolean sameAsPrimary; private @Nullable String secret; public Builder() {} public Builder(RemoteNetworkProtocolBgpPeer defaults) { Objects.requireNonNull(defaults); this.localIpAddress = defaults.localIpAddress; this.peerIpAddress = defaults.peerIpAddress; + this.sameAsPrimary = defaults.sameAsPrimary; this.secret = defaults.secret; } @@ -83,6 +98,12 @@ public Builder peerIpAddress(@Nullable String peerIpAddress) { return this; } @CustomType.Setter + public Builder sameAsPrimary(@Nullable Boolean sameAsPrimary) { + + this.sameAsPrimary = sameAsPrimary; + return this; + } + @CustomType.Setter public Builder secret(@Nullable String secret) { this.secret = secret; @@ -92,6 +113,7 @@ public RemoteNetworkProtocolBgpPeer build() { final var _resultValue = new RemoteNetworkProtocolBgpPeer(); _resultValue.localIpAddress = localIpAddress; _resultValue.peerIpAddress = peerIpAddress; + _resultValue.sameAsPrimary = sameAsPrimary; _resultValue.secret = secret; return _resultValue; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 51f66d9..78676be 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -3694,6 +3694,10 @@ export interface RemoteNetworkProtocolBgpPeer { * The PeerIpAddress param. */ peerIpAddress?: pulumi.Input; + /** + * If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + */ + sameAsPrimary?: pulumi.Input; /** * The Secret param. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 0155944..638a90b 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -10683,6 +10683,10 @@ export interface GetRemoteNetworkListDataProtocolBgpPeer { * The PeerIpAddress param. */ peerIpAddress: string; + /** + * If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + */ + sameAsPrimary: boolean; /** * The Secret param. */ @@ -10748,6 +10752,10 @@ export interface GetRemoteNetworkProtocolBgpPeer { * The PeerIpAddress param. */ peerIpAddress: string; + /** + * If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + */ + sameAsPrimary: boolean; /** * The Secret param. */ @@ -15481,6 +15489,10 @@ export interface RemoteNetworkProtocolBgpPeer { * The PeerIpAddress param. */ peerIpAddress?: string; + /** + * If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + */ + sameAsPrimary: boolean; /** * The Secret param. */ diff --git a/sdk/python/pulumi_scm/_inputs.py b/sdk/python/pulumi_scm/_inputs.py index 7b25a6f..1be4ec6 100644 --- a/sdk/python/pulumi_scm/_inputs.py +++ b/sdk/python/pulumi_scm/_inputs.py @@ -18196,6 +18196,10 @@ class RemoteNetworkProtocolBgpPeerArgsDict(TypedDict): """ The PeerIpAddress param. """ + same_as_primary: NotRequired[pulumi.Input[bool]] + """ + If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + """ secret: NotRequired[pulumi.Input[str]] """ The Secret param. @@ -18208,16 +18212,20 @@ class RemoteNetworkProtocolBgpPeerArgs: def __init__(__self__, *, local_ip_address: Optional[pulumi.Input[str]] = None, peer_ip_address: Optional[pulumi.Input[str]] = None, + same_as_primary: Optional[pulumi.Input[bool]] = None, secret: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] local_ip_address: The LocalIpAddress param. :param pulumi.Input[str] peer_ip_address: The PeerIpAddress param. + :param pulumi.Input[bool] same_as_primary: If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. :param pulumi.Input[str] secret: The Secret param. """ if local_ip_address is not None: pulumi.set(__self__, "local_ip_address", local_ip_address) if peer_ip_address is not None: pulumi.set(__self__, "peer_ip_address", peer_ip_address) + if same_as_primary is not None: + pulumi.set(__self__, "same_as_primary", same_as_primary) if secret is not None: pulumi.set(__self__, "secret", secret) @@ -18245,6 +18253,18 @@ def peer_ip_address(self) -> Optional[pulumi.Input[str]]: def peer_ip_address(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "peer_ip_address", value) + @property + @pulumi.getter(name="sameAsPrimary") + def same_as_primary(self) -> Optional[pulumi.Input[bool]]: + """ + If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + """ + return pulumi.get(self, "same_as_primary") + + @same_as_primary.setter + def same_as_primary(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "same_as_primary", value) + @property @pulumi.getter def secret(self) -> Optional[pulumi.Input[str]]: diff --git a/sdk/python/pulumi_scm/outputs.py b/sdk/python/pulumi_scm/outputs.py index 0e53046..48ebc2f 100644 --- a/sdk/python/pulumi_scm/outputs.py +++ b/sdk/python/pulumi_scm/outputs.py @@ -14208,6 +14208,8 @@ def __key_warning(key: str): suggest = "local_ip_address" elif key == "peerIpAddress": suggest = "peer_ip_address" + elif key == "sameAsPrimary": + suggest = "same_as_primary" if suggest: pulumi.log.warn(f"Key '{key}' not found in RemoteNetworkProtocolBgpPeer. Access the value via the '{suggest}' property getter instead.") @@ -14223,16 +14225,20 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, local_ip_address: Optional[str] = None, peer_ip_address: Optional[str] = None, + same_as_primary: Optional[bool] = None, secret: Optional[str] = None): """ :param str local_ip_address: The LocalIpAddress param. :param str peer_ip_address: The PeerIpAddress param. + :param bool same_as_primary: If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. :param str secret: The Secret param. """ if local_ip_address is not None: pulumi.set(__self__, "local_ip_address", local_ip_address) if peer_ip_address is not None: pulumi.set(__self__, "peer_ip_address", peer_ip_address) + if same_as_primary is not None: + pulumi.set(__self__, "same_as_primary", same_as_primary) if secret is not None: pulumi.set(__self__, "secret", secret) @@ -14252,6 +14258,14 @@ def peer_ip_address(self) -> Optional[str]: """ return pulumi.get(self, "peer_ip_address") + @property + @pulumi.getter(name="sameAsPrimary") + def same_as_primary(self) -> Optional[bool]: + """ + If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + """ + return pulumi.get(self, "same_as_primary") + @property @pulumi.getter def secret(self) -> Optional[str]: @@ -41851,14 +41865,17 @@ class GetRemoteNetworkListDataProtocolBgpPeerResult(dict): def __init__(__self__, *, local_ip_address: str, peer_ip_address: str, + same_as_primary: bool, secret: str): """ :param str local_ip_address: The LocalIpAddress param. :param str peer_ip_address: The PeerIpAddress param. + :param bool same_as_primary: If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. :param str secret: The Secret param. """ pulumi.set(__self__, "local_ip_address", local_ip_address) pulumi.set(__self__, "peer_ip_address", peer_ip_address) + pulumi.set(__self__, "same_as_primary", same_as_primary) pulumi.set(__self__, "secret", secret) @property @@ -41877,6 +41894,14 @@ def peer_ip_address(self) -> str: """ return pulumi.get(self, "peer_ip_address") + @property + @pulumi.getter(name="sameAsPrimary") + def same_as_primary(self) -> bool: + """ + If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + """ + return pulumi.get(self, "same_as_primary") + @property @pulumi.getter def secret(self) -> str: @@ -42026,14 +42051,17 @@ class GetRemoteNetworkProtocolBgpPeerResult(dict): def __init__(__self__, *, local_ip_address: str, peer_ip_address: str, + same_as_primary: bool, secret: str): """ :param str local_ip_address: The LocalIpAddress param. :param str peer_ip_address: The PeerIpAddress param. + :param bool same_as_primary: If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. :param str secret: The Secret param. """ pulumi.set(__self__, "local_ip_address", local_ip_address) pulumi.set(__self__, "peer_ip_address", peer_ip_address) + pulumi.set(__self__, "same_as_primary", same_as_primary) pulumi.set(__self__, "secret", secret) @property @@ -42052,6 +42080,14 @@ def peer_ip_address(self) -> str: """ return pulumi.get(self, "peer_ip_address") + @property + @pulumi.getter(name="sameAsPrimary") + def same_as_primary(self) -> bool: + """ + If true, the secondary BGP peer configuration will be the same as the primary BGP peer. Default: `true`. + """ + return pulumi.get(self, "same_as_primary") + @property @pulumi.getter def secret(self) -> str: