From 22f5f8108fe0dffa96e96b22c527b9da708d5dcf Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:08:54 +0100 Subject: [PATCH] Upgrade terraform-provider-fastly to v5.13.0 (#616) This PR was generated via `$ upgrade-provider pulumi/pulumi-fastly --kind=all --target-bridge-version=latest`. --- - Upgrading terraform-provider-fastly from 5.12.0 to 5.13.0. Fixes #615 --- .../cmd/pulumi-resource-fastly/schema.json | 4 ++ provider/go.mod | 2 +- provider/go.sum | 4 +- .../Inputs/ServiceVclProductEnablementArgs.cs | 6 +++ .../ServiceVclProductEnablementGetArgs.cs | 6 +++ .../Outputs/ServiceVclProductEnablement.cs | 7 ++++ sdk/go/fastly/pulumiTypes.go | 19 ++++++++++ .../ServiceVclProductEnablementArgs.java | 37 +++++++++++++++++++ .../outputs/ServiceVclProductEnablement.java | 21 +++++++++++ sdk/nodejs/types/input.ts | 4 ++ sdk/nodejs/types/output.ts | 4 ++ sdk/python/pulumi_fastly/_inputs.py | 16 ++++++++ sdk/python/pulumi_fastly/outputs.py | 16 +++++++- upstream | 2 +- 14 files changed, 143 insertions(+), 5 deletions(-) diff --git a/provider/cmd/pulumi-resource-fastly/schema.json b/provider/cmd/pulumi-resource-fastly/schema.json index 83bd695c..15e1bab3 100644 --- a/provider/cmd/pulumi-resource-fastly/schema.json +++ b/provider/cmd/pulumi-resource-fastly/schema.json @@ -3697,6 +3697,10 @@ }, "fastly:index/ServiceVclProductEnablement:ServiceVclProductEnablement": { "properties": { + "botManagement": { + "type": "boolean", + "description": "Enable Bot Management support\n" + }, "brotliCompression": { "type": "boolean", "description": "Enable Brotli Compression support\n" diff --git a/provider/go.mod b/provider/go.mod index 85e2bda8..87446d55 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -70,7 +70,7 @@ require ( github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/ettle/strcase v0.1.1 // indirect - github.com/fastly/go-fastly/v9 v9.8.0 // indirect + github.com/fastly/go-fastly/v9 v9.9.0 // indirect github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect diff --git a/provider/go.sum b/provider/go.sum index 598b53e8..a6ae06a6 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1371,8 +1371,8 @@ github.com/envoyproxy/protoc-gen-validate v1.0.1/go.mod h1:0vj8bNkYbSTNS2PIyH87K github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= -github.com/fastly/go-fastly/v9 v9.8.0 h1:15dtV3fmLlS/8wbdU3tBsW3Tb0Tj/gQrdS4v5mhtDDE= -github.com/fastly/go-fastly/v9 v9.8.0/go.mod h1:5w2jgJBZqQEebOwM/rRg7wutAcpDTziiMYWb/6qdM7U= +github.com/fastly/go-fastly/v9 v9.9.0 h1:VDCyORoWi608l/LBp+tY+qic3M5/5ZFw+rtAfV6VR9E= +github.com/fastly/go-fastly/v9 v9.9.0/go.mod h1:5w2jgJBZqQEebOwM/rRg7wutAcpDTziiMYWb/6qdM7U= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= diff --git a/sdk/dotnet/Inputs/ServiceVclProductEnablementArgs.cs b/sdk/dotnet/Inputs/ServiceVclProductEnablementArgs.cs index 764e927f..1994b9b2 100644 --- a/sdk/dotnet/Inputs/ServiceVclProductEnablementArgs.cs +++ b/sdk/dotnet/Inputs/ServiceVclProductEnablementArgs.cs @@ -12,6 +12,12 @@ namespace Pulumi.Fastly.Inputs public sealed class ServiceVclProductEnablementArgs : global::Pulumi.ResourceArgs { + /// + /// Enable Bot Management support + /// + [Input("botManagement")] + public Input? BotManagement { get; set; } + /// /// Enable Brotli Compression support /// diff --git a/sdk/dotnet/Inputs/ServiceVclProductEnablementGetArgs.cs b/sdk/dotnet/Inputs/ServiceVclProductEnablementGetArgs.cs index be85fa03..f49292c3 100644 --- a/sdk/dotnet/Inputs/ServiceVclProductEnablementGetArgs.cs +++ b/sdk/dotnet/Inputs/ServiceVclProductEnablementGetArgs.cs @@ -12,6 +12,12 @@ namespace Pulumi.Fastly.Inputs public sealed class ServiceVclProductEnablementGetArgs : global::Pulumi.ResourceArgs { + /// + /// Enable Bot Management support + /// + [Input("botManagement")] + public Input? BotManagement { get; set; } + /// /// Enable Brotli Compression support /// diff --git a/sdk/dotnet/Outputs/ServiceVclProductEnablement.cs b/sdk/dotnet/Outputs/ServiceVclProductEnablement.cs index 1a7a271b..af13f1b9 100644 --- a/sdk/dotnet/Outputs/ServiceVclProductEnablement.cs +++ b/sdk/dotnet/Outputs/ServiceVclProductEnablement.cs @@ -13,6 +13,10 @@ namespace Pulumi.Fastly.Outputs [OutputType] public sealed class ServiceVclProductEnablement { + /// + /// Enable Bot Management support + /// + public readonly bool? BotManagement; /// /// Enable Brotli Compression support /// @@ -40,6 +44,8 @@ public sealed class ServiceVclProductEnablement [OutputConstructor] private ServiceVclProductEnablement( + bool? botManagement, + bool? brotliCompression, bool? domainInspector, @@ -52,6 +58,7 @@ private ServiceVclProductEnablement( bool? websockets) { + BotManagement = botManagement; BrotliCompression = brotliCompression; DomainInspector = domainInspector; ImageOptimizer = imageOptimizer; diff --git a/sdk/go/fastly/pulumiTypes.go b/sdk/go/fastly/pulumiTypes.go index a72af572..8fcb6f0b 100644 --- a/sdk/go/fastly/pulumiTypes.go +++ b/sdk/go/fastly/pulumiTypes.go @@ -13333,6 +13333,8 @@ func (o ServiceVclLoggingSyslogArrayOutput) Index(i pulumi.IntInput) ServiceVclL } type ServiceVclProductEnablement struct { + // Enable Bot Management support + BotManagement *bool `pulumi:"botManagement"` // Enable Brotli Compression support BrotliCompression *bool `pulumi:"brotliCompression"` // Enable Domain Inspector support @@ -13359,6 +13361,8 @@ type ServiceVclProductEnablementInput interface { } type ServiceVclProductEnablementArgs struct { + // Enable Bot Management support + BotManagement pulumi.BoolPtrInput `pulumi:"botManagement"` // Enable Brotli Compression support BrotliCompression pulumi.BoolPtrInput `pulumi:"brotliCompression"` // Enable Domain Inspector support @@ -13450,6 +13454,11 @@ func (o ServiceVclProductEnablementOutput) ToServiceVclProductEnablementPtrOutpu }).(ServiceVclProductEnablementPtrOutput) } +// Enable Bot Management support +func (o ServiceVclProductEnablementOutput) BotManagement() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ServiceVclProductEnablement) *bool { return v.BotManagement }).(pulumi.BoolPtrOutput) +} + // Enable Brotli Compression support func (o ServiceVclProductEnablementOutput) BrotliCompression() pulumi.BoolPtrOutput { return o.ApplyT(func(v ServiceVclProductEnablement) *bool { return v.BrotliCompression }).(pulumi.BoolPtrOutput) @@ -13504,6 +13513,16 @@ func (o ServiceVclProductEnablementPtrOutput) Elem() ServiceVclProductEnablement }).(ServiceVclProductEnablementOutput) } +// Enable Bot Management support +func (o ServiceVclProductEnablementPtrOutput) BotManagement() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ServiceVclProductEnablement) *bool { + if v == nil { + return nil + } + return v.BotManagement + }).(pulumi.BoolPtrOutput) +} + // Enable Brotli Compression support func (o ServiceVclProductEnablementPtrOutput) BrotliCompression() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ServiceVclProductEnablement) *bool { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclProductEnablementArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclProductEnablementArgs.java index ea7b95b0..40e9e932 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclProductEnablementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclProductEnablementArgs.java @@ -16,6 +16,21 @@ public final class ServiceVclProductEnablementArgs extends com.pulumi.resources. public static final ServiceVclProductEnablementArgs Empty = new ServiceVclProductEnablementArgs(); + /** + * Enable Bot Management support + * + */ + @Import(name="botManagement") + private @Nullable Output botManagement; + + /** + * @return Enable Bot Management support + * + */ + public Optional> botManagement() { + return Optional.ofNullable(this.botManagement); + } + /** * Enable Brotli Compression support * @@ -109,6 +124,7 @@ public Optional> websockets() { private ServiceVclProductEnablementArgs() {} private ServiceVclProductEnablementArgs(ServiceVclProductEnablementArgs $) { + this.botManagement = $.botManagement; this.brotliCompression = $.brotliCompression; this.domainInspector = $.domainInspector; this.imageOptimizer = $.imageOptimizer; @@ -135,6 +151,27 @@ public Builder(ServiceVclProductEnablementArgs defaults) { $ = new ServiceVclProductEnablementArgs(Objects.requireNonNull(defaults)); } + /** + * @param botManagement Enable Bot Management support + * + * @return builder + * + */ + public Builder botManagement(@Nullable Output botManagement) { + $.botManagement = botManagement; + return this; + } + + /** + * @param botManagement Enable Bot Management support + * + * @return builder + * + */ + public Builder botManagement(Boolean botManagement) { + return botManagement(Output.of(botManagement)); + } + /** * @param brotliCompression Enable Brotli Compression support * diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java index ba79c053..ac42d524 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java @@ -12,6 +12,11 @@ @CustomType public final class ServiceVclProductEnablement { + /** + * @return Enable Bot Management support + * + */ + private @Nullable Boolean botManagement; /** * @return Enable Brotli Compression support * @@ -44,6 +49,13 @@ public final class ServiceVclProductEnablement { private @Nullable Boolean websockets; private ServiceVclProductEnablement() {} + /** + * @return Enable Bot Management support + * + */ + public Optional botManagement() { + return Optional.ofNullable(this.botManagement); + } /** * @return Enable Brotli Compression support * @@ -96,6 +108,7 @@ public static Builder builder(ServiceVclProductEnablement defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable Boolean botManagement; private @Nullable Boolean brotliCompression; private @Nullable Boolean domainInspector; private @Nullable Boolean imageOptimizer; @@ -105,6 +118,7 @@ public static final class Builder { public Builder() {} public Builder(ServiceVclProductEnablement defaults) { Objects.requireNonNull(defaults); + this.botManagement = defaults.botManagement; this.brotliCompression = defaults.brotliCompression; this.domainInspector = defaults.domainInspector; this.imageOptimizer = defaults.imageOptimizer; @@ -113,6 +127,12 @@ public Builder(ServiceVclProductEnablement defaults) { this.websockets = defaults.websockets; } + @CustomType.Setter + public Builder botManagement(@Nullable Boolean botManagement) { + + this.botManagement = botManagement; + return this; + } @CustomType.Setter public Builder brotliCompression(@Nullable Boolean brotliCompression) { @@ -151,6 +171,7 @@ public Builder websockets(@Nullable Boolean websockets) { } public ServiceVclProductEnablement build() { final var _resultValue = new ServiceVclProductEnablement(); + _resultValue.botManagement = botManagement; _resultValue.brotliCompression = brotliCompression; _resultValue.domainInspector = domainInspector; _resultValue.imageOptimizer = imageOptimizer; diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index ff544c62..f507cc01 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -2997,6 +2997,10 @@ export interface ServiceVclLoggingSyslog { } export interface ServiceVclProductEnablement { + /** + * Enable Bot Management support + */ + botManagement?: pulumi.Input; /** * Enable Brotli Compression support */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index a1d664fd..e3587124 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -3152,6 +3152,10 @@ export interface ServiceVclLoggingSyslog { } export interface ServiceVclProductEnablement { + /** + * Enable Bot Management support + */ + botManagement?: boolean; /** * Enable Brotli Compression support */ diff --git a/sdk/python/pulumi_fastly/_inputs.py b/sdk/python/pulumi_fastly/_inputs.py index 115c8e5e..335e1e5f 100644 --- a/sdk/python/pulumi_fastly/_inputs.py +++ b/sdk/python/pulumi_fastly/_inputs.py @@ -11480,6 +11480,7 @@ def use_tls(self, value: Optional[pulumi.Input[bool]]): @pulumi.input_type class ServiceVclProductEnablementArgs: def __init__(__self__, *, + bot_management: Optional[pulumi.Input[bool]] = None, brotli_compression: Optional[pulumi.Input[bool]] = None, domain_inspector: Optional[pulumi.Input[bool]] = None, image_optimizer: Optional[pulumi.Input[bool]] = None, @@ -11487,6 +11488,7 @@ def __init__(__self__, *, origin_inspector: Optional[pulumi.Input[bool]] = None, websockets: Optional[pulumi.Input[bool]] = None): """ + :param pulumi.Input[bool] bot_management: Enable Bot Management support :param pulumi.Input[bool] brotli_compression: Enable Brotli Compression support :param pulumi.Input[bool] domain_inspector: Enable Domain Inspector support :param pulumi.Input[bool] image_optimizer: Enable Image Optimizer support (all backends must have a `shield` attribute) @@ -11494,6 +11496,8 @@ def __init__(__self__, *, :param pulumi.Input[bool] origin_inspector: Enable Origin Inspector support :param pulumi.Input[bool] websockets: Enable WebSockets support """ + if bot_management is not None: + pulumi.set(__self__, "bot_management", bot_management) if brotli_compression is not None: pulumi.set(__self__, "brotli_compression", brotli_compression) if domain_inspector is not None: @@ -11507,6 +11511,18 @@ def __init__(__self__, *, if websockets is not None: pulumi.set(__self__, "websockets", websockets) + @property + @pulumi.getter(name="botManagement") + def bot_management(self) -> Optional[pulumi.Input[bool]]: + """ + Enable Bot Management support + """ + return pulumi.get(self, "bot_management") + + @bot_management.setter + def bot_management(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "bot_management", value) + @property @pulumi.getter(name="brotliCompression") def brotli_compression(self) -> Optional[pulumi.Input[bool]]: diff --git a/sdk/python/pulumi_fastly/outputs.py b/sdk/python/pulumi_fastly/outputs.py index 9c1f0252..a41b0ed7 100644 --- a/sdk/python/pulumi_fastly/outputs.py +++ b/sdk/python/pulumi_fastly/outputs.py @@ -10349,7 +10349,9 @@ class ServiceVclProductEnablement(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "brotliCompression": + if key == "botManagement": + suggest = "bot_management" + elif key == "brotliCompression": suggest = "brotli_compression" elif key == "domainInspector": suggest = "domain_inspector" @@ -10370,6 +10372,7 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + bot_management: Optional[bool] = None, brotli_compression: Optional[bool] = None, domain_inspector: Optional[bool] = None, image_optimizer: Optional[bool] = None, @@ -10377,6 +10380,7 @@ def __init__(__self__, *, origin_inspector: Optional[bool] = None, websockets: Optional[bool] = None): """ + :param bool bot_management: Enable Bot Management support :param bool brotli_compression: Enable Brotli Compression support :param bool domain_inspector: Enable Domain Inspector support :param bool image_optimizer: Enable Image Optimizer support (all backends must have a `shield` attribute) @@ -10384,6 +10388,8 @@ def __init__(__self__, *, :param bool origin_inspector: Enable Origin Inspector support :param bool websockets: Enable WebSockets support """ + if bot_management is not None: + pulumi.set(__self__, "bot_management", bot_management) if brotli_compression is not None: pulumi.set(__self__, "brotli_compression", brotli_compression) if domain_inspector is not None: @@ -10397,6 +10403,14 @@ def __init__(__self__, *, if websockets is not None: pulumi.set(__self__, "websockets", websockets) + @property + @pulumi.getter(name="botManagement") + def bot_management(self) -> Optional[bool]: + """ + Enable Bot Management support + """ + return pulumi.get(self, "bot_management") + @property @pulumi.getter(name="brotliCompression") def brotli_compression(self) -> Optional[bool]: diff --git a/upstream b/upstream index 67eb293d..b0a44ecf 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 67eb293db4131694460a5849d01872b31fa83fdf +Subproject commit b0a44ecf8ecb7db650257e4948b0c293971645b9