diff --git a/provider/cmd/pulumi-resource-fastly/schema.json b/provider/cmd/pulumi-resource-fastly/schema.json index e824c053..c9d91258 100644 --- a/provider/cmd/pulumi-resource-fastly/schema.json +++ b/provider/cmd/pulumi-resource-fastly/schema.json @@ -11088,6 +11088,7 @@ } }, "go": { + "generateExtraInputTypes": true, "generateResourceContainerTypes": true, "importBasePath": "github.com/pulumi/pulumi-fastly/sdk/v3/go/fastly" }, diff --git a/provider/go.mod b/provider/go.mod index 04d3f7a4..012bf974 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,8 +4,8 @@ go 1.16 require ( github.com/fastly/terraform-provider-fastly v0.20.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.11.0 - github.com/pulumi/pulumi/sdk/v3 v3.17.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0 + github.com/pulumi/pulumi/sdk/v3 v3.23.2 ) replace ( diff --git a/provider/go.sum b/provider/go.sum index 62d7ec1f..2164556d 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -300,8 +300,6 @@ github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6Wezm github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/flock v0.7.1 h1:DP+LD/t0njgoPBvT5MJLeliUIVQR03hiKR6vezdwHlc= -github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/uuid v3.3.0+incompatible h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -389,6 +387,7 @@ github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= 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= @@ -428,8 +427,9 @@ github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9 github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v0.15.0 h1:qMuK0wxsoW4D0ddCCYwPSTm4KQv1X1ke3WmPWZ0Mvsk= github.com/hashicorp/go-hclog v0.15.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.1 h1:IVQwpTGNRRIHafnTs2dQLIk4ENtneRIEEJWOVDqz99o= +github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.1.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-kms-wrapping/entropy v0.1.0/go.mod h1:d1g9WGtAunDNpek8jUIEJnBlbgKS1N2Q61QkHiZyR1g= @@ -502,7 +502,6 @@ github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlz github.com/hashicorp/terraform-plugin-test/v2 v2.1.3 h1:sMsxHctzjATk+ICHAqiHFqLkjosl4fjMyFxMthLRH2Q= github.com/hashicorp/terraform-plugin-test/v2 v2.1.3/go.mod h1:pmaUHiUtDL/8Mz3FuyZ/vRDb0LpaOWQjVRW9ORF7FHs= github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= -github.com/hashicorp/terraform-svchost v0.0.0-20191119180714-d2e4933b9136/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/vault/api v1.0.5-0.20200519221902-385fac77e20f/go.mod h1:euTFbi2YJgwcju3imEt919lhJKF68nN1cQPq3aA+kBE= @@ -624,8 +623,9 @@ github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-testing-interface v1.0.4 h1:ZU1VNC02qyufSZsjjs7+khruk2fKvbQ3TwRV/IBCeFA= github.com/mitchellh/go-testing-interface v1.0.4/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= @@ -687,6 +687,7 @@ github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.6.0+incompatible h1:Ix9yFKn1nSPBLFl/yZknTp8TU5G4Ps0JDmguYK6iH1A= github.com/pierrec/lz4 v2.6.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -718,22 +719,26 @@ 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.11.0 h1:vEBU2faYdzFy8f/lGrmHO0R+SUDABcrI+MXyIV5GEFU= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.11.0/go.mod h1:4om0OU44z3ZN2CW56sD7xt4OT6/7hCkVR3Mfpf4Xg58= -github.com/pulumi/pulumi/pkg/v3 v3.17.0 h1:YzBQ7kkQ1XRFhL0XZA0R5aI7onyNz4W87EqErzNe0po= -github.com/pulumi/pulumi/pkg/v3 v3.17.0/go.mod h1:tWkGLs8Xxo0I4CU5FK+FOuwvEeREbcRk46dtT6sE+rE= -github.com/pulumi/pulumi/sdk/v3 v3.17.0 h1:CxdgdmFEvo99JviXP6d332Y2AyAIPbLI6fu4K33vhAg= -github.com/pulumi/pulumi/sdk/v3 v3.17.0/go.mod h1:252ou/zAU1g6E8iTwe2Y9ht7pb5BDl2fJlOuAgZCHiA= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0 h1:kdhcwSvTeuCuFjeF1d2mZIEHnrqXn+eJ+wbp2ejcN9s= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0/go.mod h1:Va48ZbCwTP01QFWej7QFtrz47AHrPkBet68dqRqJE44= +github.com/pulumi/pulumi/pkg/v3 v3.23.2 h1:QeaCXhMLX6pAdZzXfNnTQTmtQdROqAj56vboHDzr3JE= +github.com/pulumi/pulumi/pkg/v3 v3.23.2/go.mod h1:yo+15Oh7E+0Xtgk3C4jOMugldRGUTktkRRYmoa0Ib2U= +github.com/pulumi/pulumi/sdk/v3 v3.23.2 h1:m/YfyUsoeRFyHXDm2HtJhK+tBV58nrdmWsAkNQimRU4= +github.com/pulumi/pulumi/sdk/v3 v3.23.2/go.mod h1:WHOQB00iuHZyXhwrymxpKXhpOahSguJIpRjVokmM11w= 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-plugin-sdk/v2 v2.0.0-20211019194827-62530c6537a4 h1:7EyuNFV2RFLBgGUnYjjcTzZL8BOFM4QBy/FJP1jTQxg= github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211019194827-62530c6537a4/go.mod h1:6KbP09YzlB++S6XSUKYl83WyoHVN4MgeoCbPRsdfCtA= github.com/pulumi/terraform-provider-fastly v0.16.1-0.20220113234908-46528ce9cd94 h1:isI8IVtiw+C39q8nHpRsxMJTH5smXNTYY97lFIjPlrk= github.com/pulumi/terraform-provider-fastly v0.16.1-0.20220113234908-46528ce9cd94/go.mod h1:QHq0Rz1jNcXYY/XPn626tbquGZnZ6OJxmb2f3qcZGrE= +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= github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= +github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -897,8 +902,9 @@ golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf h1:B2n+Zi5QeYRDAEodEu72OS36gmTWjgpXr2+cWcBW90o= golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= +golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI= +golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1084,6 +1090,7 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/sdk/dotnet/GetFastlyIpRanges.cs b/sdk/dotnet/GetFastlyIpRanges.cs index 412eeaad..14e36033 100644 --- a/sdk/dotnet/GetFastlyIpRanges.cs +++ b/sdk/dotnet/GetFastlyIpRanges.cs @@ -52,7 +52,7 @@ public static class GetFastlyIpRanges /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getFastlyIpRanges:getFastlyIpRanges", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getFastlyIpRanges:getFastlyIpRanges", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsActivation.cs b/sdk/dotnet/GetTlsActivation.cs index 1973cd38..843071d1 100644 --- a/sdk/dotnet/GetTlsActivation.cs +++ b/sdk/dotnet/GetTlsActivation.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -45,7 +44,7 @@ public static class GetTlsActivation /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsActivationArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationArgs(), options.WithDefaults()); /// /// Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled. @@ -80,7 +79,7 @@ public static Task InvokeAsync(GetTlsActivationArgs? arg /// {{% /examples %}} /// public static Output Invoke(GetTlsActivationInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivation:getTlsActivation", args ?? new GetTlsActivationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsActivationIds.cs b/sdk/dotnet/GetTlsActivationIds.cs index 0cf0a498..71654613 100644 --- a/sdk/dotnet/GetTlsActivationIds.cs +++ b/sdk/dotnet/GetTlsActivationIds.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -16,13 +15,13 @@ public static class GetTlsActivationIds /// Use this data source to get the list of TLS Activation identifiers in Fastly. /// public static Task InvokeAsync(GetTlsActivationIdsArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsArgs(), options.WithDefaults()); /// /// Use this data source to get the list of TLS Activation identifiers in Fastly. /// public static Output Invoke(GetTlsActivationIdsInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsActivationIds:getTlsActivationIds", args ?? new GetTlsActivationIdsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsCertificate.cs b/sdk/dotnet/GetTlsCertificate.cs index 87251aed..8a0f072c 100644 --- a/sdk/dotnet/GetTlsCertificate.cs +++ b/sdk/dotnet/GetTlsCertificate.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -45,7 +44,7 @@ public static class GetTlsCertificate /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsCertificateArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateArgs(), options.WithDefaults()); /// /// Use this data source to get information of a TLS certificate for use with other resources. @@ -80,7 +79,7 @@ public static Task InvokeAsync(GetTlsCertificateArgs? a /// {{% /examples %}} /// public static Output Invoke(GetTlsCertificateInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsCertificate:getTlsCertificate", args ?? new GetTlsCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsCertificateIds.cs b/sdk/dotnet/GetTlsCertificateIds.cs index 652cbd54..6e5cf0fb 100644 --- a/sdk/dotnet/GetTlsCertificateIds.cs +++ b/sdk/dotnet/GetTlsCertificateIds.cs @@ -40,7 +40,7 @@ public static class GetTlsCertificateIds /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsCertificateIds:getTlsCertificateIds", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsCertificateIds:getTlsCertificateIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsConfiguration.cs b/sdk/dotnet/GetTlsConfiguration.cs index b641b14f..03dbf398 100644 --- a/sdk/dotnet/GetTlsConfiguration.cs +++ b/sdk/dotnet/GetTlsConfiguration.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -50,7 +49,7 @@ public static class GetTlsConfiguration /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsConfigurationArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationArgs(), options.WithDefaults()); /// /// Use this data source to get the ID of a TLS configuration for use with other resources. @@ -90,7 +89,7 @@ public static Task InvokeAsync(GetTlsConfigurationArg /// {{% /examples %}} /// public static Output Invoke(GetTlsConfigurationInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", args ?? new GetTlsConfigurationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsConfigurationIds.cs b/sdk/dotnet/GetTlsConfigurationIds.cs index a3105aed..1f098016 100644 --- a/sdk/dotnet/GetTlsConfigurationIds.cs +++ b/sdk/dotnet/GetTlsConfigurationIds.cs @@ -40,7 +40,7 @@ public static class GetTlsConfigurationIds /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsConfigurationIds:getTlsConfigurationIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsDomain.cs b/sdk/dotnet/GetTlsDomain.cs index 553b205b..eb2689e1 100644 --- a/sdk/dotnet/GetTlsDomain.cs +++ b/sdk/dotnet/GetTlsDomain.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -39,7 +38,7 @@ public static class GetTlsDomain /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsDomainArgs args, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainArgs(), options.WithDefaults()); /// /// Use this data source to get the IDs of activations, certificates and subscriptions associated with a domain. @@ -68,7 +67,7 @@ public static Task InvokeAsync(GetTlsDomainArgs args, Invoke /// {{% /examples %}} /// public static Output Invoke(GetTlsDomainInvokeArgs args, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsDomain:getTlsDomain", args ?? new GetTlsDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPlatformCertificate.cs b/sdk/dotnet/GetTlsPlatformCertificate.cs index 54b304c3..05df5aab 100644 --- a/sdk/dotnet/GetTlsPlatformCertificate.cs +++ b/sdk/dotnet/GetTlsPlatformCertificate.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -48,7 +47,7 @@ public static class GetTlsPlatformCertificate /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsPlatformCertificateArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateArgs(), options.WithDefaults()); /// /// Use this data source to get information of a Platform TLS certificate for use with other resources. @@ -86,7 +85,7 @@ public static Task InvokeAsync(GetTlsPlatformCe /// {{% /examples %}} /// public static Output Invoke(GetTlsPlatformCertificateInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", args ?? new GetTlsPlatformCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPlatformCertificateIds.cs b/sdk/dotnet/GetTlsPlatformCertificateIds.cs index 3007c8cb..86067201 100644 --- a/sdk/dotnet/GetTlsPlatformCertificateIds.cs +++ b/sdk/dotnet/GetTlsPlatformCertificateIds.cs @@ -39,7 +39,7 @@ public static class GetTlsPlatformCertificateIds /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPlatformCertificateIds:getTlsPlatformCertificateIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPrivateKey.cs b/sdk/dotnet/GetTlsPrivateKey.cs index a99c4c13..8bb013da 100644 --- a/sdk/dotnet/GetTlsPrivateKey.cs +++ b/sdk/dotnet/GetTlsPrivateKey.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -49,7 +48,7 @@ public static class GetTlsPrivateKey /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsPrivateKeyArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyArgs(), options.WithDefaults()); /// /// Use this data source to get information on a TLS Private Key uploaded to Fastly. @@ -88,7 +87,7 @@ public static Task InvokeAsync(GetTlsPrivateKeyArgs? arg /// {{% /examples %}} /// public static Output Invoke(GetTlsPrivateKeyInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", args ?? new GetTlsPrivateKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsPrivateKeyIds.cs b/sdk/dotnet/GetTlsPrivateKeyIds.cs index 7e44f558..8053d13c 100644 --- a/sdk/dotnet/GetTlsPrivateKeyIds.cs +++ b/sdk/dotnet/GetTlsPrivateKeyIds.cs @@ -39,7 +39,7 @@ public static class GetTlsPrivateKeyIds /// {{% /examples %}} /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsPrivateKeyIds:getTlsPrivateKeyIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsSubscription.cs b/sdk/dotnet/GetTlsSubscription.cs index 4de1be65..0d5cc401 100644 --- a/sdk/dotnet/GetTlsSubscription.cs +++ b/sdk/dotnet/GetTlsSubscription.cs @@ -6,7 +6,6 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { @@ -42,7 +41,7 @@ public static class GetTlsSubscription /// {{% /examples %}} /// public static Task InvokeAsync(GetTlsSubscriptionArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionArgs(), options.WithDefaults()); /// /// Use this data source to get information about a TLS subscription. @@ -74,7 +73,7 @@ public static Task InvokeAsync(GetTlsSubscriptionArgs? /// {{% /examples %}} /// public static Output Invoke(GetTlsSubscriptionInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getTlsSubscription:getTlsSubscription", args ?? new GetTlsSubscriptionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTlsSubscriptionIds.cs b/sdk/dotnet/GetTlsSubscriptionIds.cs index dbf9e525..4e95d320 100644 --- a/sdk/dotnet/GetTlsSubscriptionIds.cs +++ b/sdk/dotnet/GetTlsSubscriptionIds.cs @@ -15,7 +15,7 @@ public static class GetTlsSubscriptionIds /// Use this data source to get the list of IDs of TLS Subscriptions in Fastly. /// public static Task InvokeAsync(InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", InvokeArgs.Empty, options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getTlsSubscriptionIds:getTlsSubscriptionIds", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetWafRules.cs b/sdk/dotnet/GetWafRules.cs index 344428ce..894cc39f 100644 --- a/sdk/dotnet/GetWafRules.cs +++ b/sdk/dotnet/GetWafRules.cs @@ -6,17 +6,16 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; -using Pulumi.Utilities; namespace Pulumi.Fastly { public static class GetWafRules { public static Task InvokeAsync(GetWafRulesArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.InvokeAsync("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesArgs(), options.WithDefaults()); public static Output Invoke(GetWafRulesInvokeArgs? args = null, InvokeOptions? options = null) - => Pulumi.Deployment.Instance.Invoke("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithVersion()); + => Pulumi.Deployment.Instance.Invoke("fastly:index/getWafRules:getWafRules", args ?? new GetWafRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Pulumi.Fastly.csproj b/sdk/dotnet/Pulumi.Fastly.csproj index ca214297..37219738 100644 --- a/sdk/dotnet/Pulumi.Fastly.csproj +++ b/sdk/dotnet/Pulumi.Fastly.csproj @@ -39,6 +39,11 @@ + + + + + diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 5c336c0b..37cceb23 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -46,18 +46,19 @@ static class Utilities public static double? GetEnvDouble(params string[] names) => double.TryParse(GetEnv(names), out double v) ? (double?)v : null; + [Obsolete("Please use WithDefaults instead")] public static InvokeOptions WithVersion(this InvokeOptions? options) { - if (options?.Version != null) - { - return options; - } - return new InvokeOptions - { - Parent = options?.Parent, - Provider = options?.Provider, - Version = Version, - }; + InvokeOptions dst = options ?? new InvokeOptions{}; + dst.Version = options?.Version ?? Version; + return dst; + } + + public static InvokeOptions WithDefaults(this InvokeOptions? src) + { + InvokeOptions dst = src ?? new InvokeOptions{}; + dst.Version = src?.Version ?? Version; + return dst; } private readonly static string version; diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json new file mode 100644 index 00000000..a8a7d28e --- /dev/null +++ b/sdk/dotnet/pulumi-plugin.json @@ -0,0 +1,4 @@ +{ + "resource": true, + "name": "fastly" +} diff --git a/sdk/go.mod b/sdk/go.mod index 3ec504f3..fd3713dc 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -5,5 +5,5 @@ go 1.14 require ( github.com/blang/semver v3.5.1+incompatible github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/sdk/v3 v3.14.0 + github.com/pulumi/pulumi/sdk/v3 v3.23.2 ) diff --git a/sdk/go.sum b/sdk/go.sum index 3ceee335..ce127565 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -57,8 +57,6 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gofrs/flock v0.7.1 h1:DP+LD/t0njgoPBvT5MJLeliUIVQR03hiKR6vezdwHlc= -github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gofrs/uuid v3.3.0+incompatible h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -88,6 +86,7 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= @@ -146,6 +145,7 @@ github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsq github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -162,9 +162,13 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/sdk/v3 v3.14.0 h1:UXLRHGQCsO1tLWdv4IO3IQOXrUoZUHhDtDXFoGMmAtA= -github.com/pulumi/pulumi/sdk/v3 v3.14.0/go.mod h1:aT7YmFdR6/T7tp2tMIZ68WRD1Xyv5a6Y4BhsuaCNpW0= +github.com/pulumi/pulumi/sdk/v3 v3.23.2 h1:m/YfyUsoeRFyHXDm2HtJhK+tBV58nrdmWsAkNQimRU4= +github.com/pulumi/pulumi/sdk/v3 v3.23.2/go.mod h1:WHOQB00iuHZyXhwrymxpKXhpOahSguJIpRjVokmM11w= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= +github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 h1:G04eS0JkAIVZfaJLjla9dNxkJCPiKIGZlw9AfOhzOD0= github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94/go.mod h1:b18R55ulyQ/h3RaWyloPyER7fWQVZvimKKhnI5OfrJQ= @@ -323,6 +327,7 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogR gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/cheggaaa/pb.v1 v1.0.28 h1:n1tBJnnK2r7g9OW2btFH91V92STTUevLXYFb8gy9EMk= gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/src-d/go-billy.v4 v4.3.2 h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg= gopkg.in/src-d/go-billy.v4 v4.3.2/go.mod h1:nDjArDMp+XMs1aFAESLRjfGSgfvoYN0hDfzEk0GjC98= diff --git a/sdk/go/fastly/provider.go b/sdk/go/fastly/provider.go index d7a4f448..c2216ed9 100644 --- a/sdk/go/fastly/provider.go +++ b/sdk/go/fastly/provider.go @@ -77,7 +77,7 @@ type ProviderInput interface { } func (*Provider) ElementType() reflect.Type { - return reflect.TypeOf((*Provider)(nil)) + return reflect.TypeOf((**Provider)(nil)).Elem() } func (i *Provider) ToProviderOutput() ProviderOutput { @@ -88,39 +88,10 @@ func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutp return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput) } -func (i *Provider) ToProviderPtrOutput() ProviderPtrOutput { - return i.ToProviderPtrOutputWithContext(context.Background()) -} - -func (i *Provider) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ProviderPtrOutput) -} - -type ProviderPtrInput interface { - pulumi.Input - - ToProviderPtrOutput() ProviderPtrOutput - ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput -} - -type providerPtrType ProviderArgs - -func (*providerPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**Provider)(nil)) -} - -func (i *providerPtrType) ToProviderPtrOutput() ProviderPtrOutput { - return i.ToProviderPtrOutputWithContext(context.Background()) -} - -func (i *providerPtrType) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ProviderPtrOutput) -} - type ProviderOutput struct{ *pulumi.OutputState } func (ProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*Provider)(nil)) + return reflect.TypeOf((**Provider)(nil)).Elem() } func (o ProviderOutput) ToProviderOutput() ProviderOutput { @@ -131,43 +102,7 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide return o } -func (o ProviderOutput) ToProviderPtrOutput() ProviderPtrOutput { - return o.ToProviderPtrOutputWithContext(context.Background()) -} - -func (o ProviderOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v Provider) *Provider { - return &v - }).(ProviderPtrOutput) -} - -type ProviderPtrOutput struct{ *pulumi.OutputState } - -func (ProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**Provider)(nil)) -} - -func (o ProviderPtrOutput) ToProviderPtrOutput() ProviderPtrOutput { - return o -} - -func (o ProviderPtrOutput) ToProviderPtrOutputWithContext(ctx context.Context) ProviderPtrOutput { - return o -} - -func (o ProviderPtrOutput) Elem() ProviderOutput { - return o.ApplyT(func(v *Provider) Provider { - if v != nil { - return *v - } - var ret Provider - return ret - }).(ProviderOutput) -} - func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) - pulumi.RegisterInputType(reflect.TypeOf((*ProviderPtrInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) - pulumi.RegisterOutputType(ProviderPtrOutput{}) } diff --git a/sdk/go/fastly/pulumi-plugin.json b/sdk/go/fastly/pulumi-plugin.json new file mode 100644 index 00000000..a8a7d28e --- /dev/null +++ b/sdk/go/fastly/pulumi-plugin.json @@ -0,0 +1,4 @@ +{ + "resource": true, + "name": "fastly" +} diff --git a/sdk/go/fastly/pulumiUtilities.go b/sdk/go/fastly/pulumiUtilities.go index 9b4b9cd5..3cfc04f1 100644 --- a/sdk/go/fastly/pulumiUtilities.go +++ b/sdk/go/fastly/pulumiUtilities.go @@ -75,3 +75,11 @@ func PkgVersion() (semver.Version, error) { } return semver.Version{}, fmt.Errorf("failed to determine the package version from %s", pkgPath) } + +// isZero is a null safe check for if a value is it's types zero value. +func isZero(v interface{}) bool { + if v == nil { + return true + } + return reflect.ValueOf(v).IsZero() +} diff --git a/sdk/go/fastly/serviceACLEntriesv1.go b/sdk/go/fastly/serviceACLEntriesv1.go index 2381f5f9..8023bcaa 100644 --- a/sdk/go/fastly/serviceACLEntriesv1.go +++ b/sdk/go/fastly/serviceACLEntriesv1.go @@ -116,7 +116,7 @@ type ServiceACLEntriesv1Input interface { } func (*ServiceACLEntriesv1) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceACLEntriesv1)(nil)) + return reflect.TypeOf((**ServiceACLEntriesv1)(nil)).Elem() } func (i *ServiceACLEntriesv1) ToServiceACLEntriesv1Output() ServiceACLEntriesv1Output { @@ -127,35 +127,6 @@ func (i *ServiceACLEntriesv1) ToServiceACLEntriesv1OutputWithContext(ctx context return pulumi.ToOutputWithContext(ctx, i).(ServiceACLEntriesv1Output) } -func (i *ServiceACLEntriesv1) ToServiceACLEntriesv1PtrOutput() ServiceACLEntriesv1PtrOutput { - return i.ToServiceACLEntriesv1PtrOutputWithContext(context.Background()) -} - -func (i *ServiceACLEntriesv1) ToServiceACLEntriesv1PtrOutputWithContext(ctx context.Context) ServiceACLEntriesv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceACLEntriesv1PtrOutput) -} - -type ServiceACLEntriesv1PtrInput interface { - pulumi.Input - - ToServiceACLEntriesv1PtrOutput() ServiceACLEntriesv1PtrOutput - ToServiceACLEntriesv1PtrOutputWithContext(ctx context.Context) ServiceACLEntriesv1PtrOutput -} - -type serviceACLEntriesv1PtrType ServiceACLEntriesv1Args - -func (*serviceACLEntriesv1PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceACLEntriesv1)(nil)) -} - -func (i *serviceACLEntriesv1PtrType) ToServiceACLEntriesv1PtrOutput() ServiceACLEntriesv1PtrOutput { - return i.ToServiceACLEntriesv1PtrOutputWithContext(context.Background()) -} - -func (i *serviceACLEntriesv1PtrType) ToServiceACLEntriesv1PtrOutputWithContext(ctx context.Context) ServiceACLEntriesv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceACLEntriesv1PtrOutput) -} - // ServiceACLEntriesv1ArrayInput is an input type that accepts ServiceACLEntriesv1Array and ServiceACLEntriesv1ArrayOutput values. // You can construct a concrete instance of `ServiceACLEntriesv1ArrayInput` via: // @@ -209,7 +180,7 @@ func (i ServiceACLEntriesv1Map) ToServiceACLEntriesv1MapOutputWithContext(ctx co type ServiceACLEntriesv1Output struct{ *pulumi.OutputState } func (ServiceACLEntriesv1Output) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceACLEntriesv1)(nil)) + return reflect.TypeOf((**ServiceACLEntriesv1)(nil)).Elem() } func (o ServiceACLEntriesv1Output) ToServiceACLEntriesv1Output() ServiceACLEntriesv1Output { @@ -220,44 +191,10 @@ func (o ServiceACLEntriesv1Output) ToServiceACLEntriesv1OutputWithContext(ctx co return o } -func (o ServiceACLEntriesv1Output) ToServiceACLEntriesv1PtrOutput() ServiceACLEntriesv1PtrOutput { - return o.ToServiceACLEntriesv1PtrOutputWithContext(context.Background()) -} - -func (o ServiceACLEntriesv1Output) ToServiceACLEntriesv1PtrOutputWithContext(ctx context.Context) ServiceACLEntriesv1PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceACLEntriesv1) *ServiceACLEntriesv1 { - return &v - }).(ServiceACLEntriesv1PtrOutput) -} - -type ServiceACLEntriesv1PtrOutput struct{ *pulumi.OutputState } - -func (ServiceACLEntriesv1PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceACLEntriesv1)(nil)) -} - -func (o ServiceACLEntriesv1PtrOutput) ToServiceACLEntriesv1PtrOutput() ServiceACLEntriesv1PtrOutput { - return o -} - -func (o ServiceACLEntriesv1PtrOutput) ToServiceACLEntriesv1PtrOutputWithContext(ctx context.Context) ServiceACLEntriesv1PtrOutput { - return o -} - -func (o ServiceACLEntriesv1PtrOutput) Elem() ServiceACLEntriesv1Output { - return o.ApplyT(func(v *ServiceACLEntriesv1) ServiceACLEntriesv1 { - if v != nil { - return *v - } - var ret ServiceACLEntriesv1 - return ret - }).(ServiceACLEntriesv1Output) -} - type ServiceACLEntriesv1ArrayOutput struct{ *pulumi.OutputState } func (ServiceACLEntriesv1ArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ServiceACLEntriesv1)(nil)) + return reflect.TypeOf((*[]*ServiceACLEntriesv1)(nil)).Elem() } func (o ServiceACLEntriesv1ArrayOutput) ToServiceACLEntriesv1ArrayOutput() ServiceACLEntriesv1ArrayOutput { @@ -269,15 +206,15 @@ func (o ServiceACLEntriesv1ArrayOutput) ToServiceACLEntriesv1ArrayOutputWithCont } func (o ServiceACLEntriesv1ArrayOutput) Index(i pulumi.IntInput) ServiceACLEntriesv1Output { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceACLEntriesv1 { - return vs[0].([]ServiceACLEntriesv1)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceACLEntriesv1 { + return vs[0].([]*ServiceACLEntriesv1)[vs[1].(int)] }).(ServiceACLEntriesv1Output) } type ServiceACLEntriesv1MapOutput struct{ *pulumi.OutputState } func (ServiceACLEntriesv1MapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]ServiceACLEntriesv1)(nil)) + return reflect.TypeOf((*map[string]*ServiceACLEntriesv1)(nil)).Elem() } func (o ServiceACLEntriesv1MapOutput) ToServiceACLEntriesv1MapOutput() ServiceACLEntriesv1MapOutput { @@ -289,18 +226,16 @@ func (o ServiceACLEntriesv1MapOutput) ToServiceACLEntriesv1MapOutputWithContext( } func (o ServiceACLEntriesv1MapOutput) MapIndex(k pulumi.StringInput) ServiceACLEntriesv1Output { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) ServiceACLEntriesv1 { - return vs[0].(map[string]ServiceACLEntriesv1)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceACLEntriesv1 { + return vs[0].(map[string]*ServiceACLEntriesv1)[vs[1].(string)] }).(ServiceACLEntriesv1Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceACLEntriesv1Input)(nil)).Elem(), &ServiceACLEntriesv1{}) - pulumi.RegisterInputType(reflect.TypeOf((*ServiceACLEntriesv1PtrInput)(nil)).Elem(), &ServiceACLEntriesv1{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceACLEntriesv1ArrayInput)(nil)).Elem(), ServiceACLEntriesv1Array{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceACLEntriesv1MapInput)(nil)).Elem(), ServiceACLEntriesv1Map{}) pulumi.RegisterOutputType(ServiceACLEntriesv1Output{}) - pulumi.RegisterOutputType(ServiceACLEntriesv1PtrOutput{}) pulumi.RegisterOutputType(ServiceACLEntriesv1ArrayOutput{}) pulumi.RegisterOutputType(ServiceACLEntriesv1MapOutput{}) } diff --git a/sdk/go/fastly/serviceCompute.go b/sdk/go/fastly/serviceCompute.go index ec5c8db4..0f0fb56c 100644 --- a/sdk/go/fastly/serviceCompute.go +++ b/sdk/go/fastly/serviceCompute.go @@ -367,7 +367,7 @@ type ServiceComputeInput interface { } func (*ServiceCompute) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceCompute)(nil)) + return reflect.TypeOf((**ServiceCompute)(nil)).Elem() } func (i *ServiceCompute) ToServiceComputeOutput() ServiceComputeOutput { @@ -378,35 +378,6 @@ func (i *ServiceCompute) ToServiceComputeOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(ServiceComputeOutput) } -func (i *ServiceCompute) ToServiceComputePtrOutput() ServiceComputePtrOutput { - return i.ToServiceComputePtrOutputWithContext(context.Background()) -} - -func (i *ServiceCompute) ToServiceComputePtrOutputWithContext(ctx context.Context) ServiceComputePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceComputePtrOutput) -} - -type ServiceComputePtrInput interface { - pulumi.Input - - ToServiceComputePtrOutput() ServiceComputePtrOutput - ToServiceComputePtrOutputWithContext(ctx context.Context) ServiceComputePtrOutput -} - -type serviceComputePtrType ServiceComputeArgs - -func (*serviceComputePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceCompute)(nil)) -} - -func (i *serviceComputePtrType) ToServiceComputePtrOutput() ServiceComputePtrOutput { - return i.ToServiceComputePtrOutputWithContext(context.Background()) -} - -func (i *serviceComputePtrType) ToServiceComputePtrOutputWithContext(ctx context.Context) ServiceComputePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceComputePtrOutput) -} - // ServiceComputeArrayInput is an input type that accepts ServiceComputeArray and ServiceComputeArrayOutput values. // You can construct a concrete instance of `ServiceComputeArrayInput` via: // @@ -460,7 +431,7 @@ func (i ServiceComputeMap) ToServiceComputeMapOutputWithContext(ctx context.Cont type ServiceComputeOutput struct{ *pulumi.OutputState } func (ServiceComputeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceCompute)(nil)) + return reflect.TypeOf((**ServiceCompute)(nil)).Elem() } func (o ServiceComputeOutput) ToServiceComputeOutput() ServiceComputeOutput { @@ -471,44 +442,10 @@ func (o ServiceComputeOutput) ToServiceComputeOutputWithContext(ctx context.Cont return o } -func (o ServiceComputeOutput) ToServiceComputePtrOutput() ServiceComputePtrOutput { - return o.ToServiceComputePtrOutputWithContext(context.Background()) -} - -func (o ServiceComputeOutput) ToServiceComputePtrOutputWithContext(ctx context.Context) ServiceComputePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceCompute) *ServiceCompute { - return &v - }).(ServiceComputePtrOutput) -} - -type ServiceComputePtrOutput struct{ *pulumi.OutputState } - -func (ServiceComputePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceCompute)(nil)) -} - -func (o ServiceComputePtrOutput) ToServiceComputePtrOutput() ServiceComputePtrOutput { - return o -} - -func (o ServiceComputePtrOutput) ToServiceComputePtrOutputWithContext(ctx context.Context) ServiceComputePtrOutput { - return o -} - -func (o ServiceComputePtrOutput) Elem() ServiceComputeOutput { - return o.ApplyT(func(v *ServiceCompute) ServiceCompute { - if v != nil { - return *v - } - var ret ServiceCompute - return ret - }).(ServiceComputeOutput) -} - type ServiceComputeArrayOutput struct{ *pulumi.OutputState } func (ServiceComputeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ServiceCompute)(nil)) + return reflect.TypeOf((*[]*ServiceCompute)(nil)).Elem() } func (o ServiceComputeArrayOutput) ToServiceComputeArrayOutput() ServiceComputeArrayOutput { @@ -520,15 +457,15 @@ func (o ServiceComputeArrayOutput) ToServiceComputeArrayOutputWithContext(ctx co } func (o ServiceComputeArrayOutput) Index(i pulumi.IntInput) ServiceComputeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceCompute { - return vs[0].([]ServiceCompute)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceCompute { + return vs[0].([]*ServiceCompute)[vs[1].(int)] }).(ServiceComputeOutput) } type ServiceComputeMapOutput struct{ *pulumi.OutputState } func (ServiceComputeMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]ServiceCompute)(nil)) + return reflect.TypeOf((*map[string]*ServiceCompute)(nil)).Elem() } func (o ServiceComputeMapOutput) ToServiceComputeMapOutput() ServiceComputeMapOutput { @@ -540,18 +477,16 @@ func (o ServiceComputeMapOutput) ToServiceComputeMapOutputWithContext(ctx contex } func (o ServiceComputeMapOutput) MapIndex(k pulumi.StringInput) ServiceComputeOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) ServiceCompute { - return vs[0].(map[string]ServiceCompute)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceCompute { + return vs[0].(map[string]*ServiceCompute)[vs[1].(string)] }).(ServiceComputeOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceComputeInput)(nil)).Elem(), &ServiceCompute{}) - pulumi.RegisterInputType(reflect.TypeOf((*ServiceComputePtrInput)(nil)).Elem(), &ServiceCompute{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceComputeArrayInput)(nil)).Elem(), ServiceComputeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceComputeMapInput)(nil)).Elem(), ServiceComputeMap{}) pulumi.RegisterOutputType(ServiceComputeOutput{}) - pulumi.RegisterOutputType(ServiceComputePtrOutput{}) pulumi.RegisterOutputType(ServiceComputeArrayOutput{}) pulumi.RegisterOutputType(ServiceComputeMapOutput{}) } diff --git a/sdk/go/fastly/serviceDictionaryItemsv1.go b/sdk/go/fastly/serviceDictionaryItemsv1.go index ba35872e..3b959761 100644 --- a/sdk/go/fastly/serviceDictionaryItemsv1.go +++ b/sdk/go/fastly/serviceDictionaryItemsv1.go @@ -128,7 +128,7 @@ type ServiceDictionaryItemsv1Input interface { } func (*ServiceDictionaryItemsv1) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceDictionaryItemsv1)(nil)) + return reflect.TypeOf((**ServiceDictionaryItemsv1)(nil)).Elem() } func (i *ServiceDictionaryItemsv1) ToServiceDictionaryItemsv1Output() ServiceDictionaryItemsv1Output { @@ -139,35 +139,6 @@ func (i *ServiceDictionaryItemsv1) ToServiceDictionaryItemsv1OutputWithContext(c return pulumi.ToOutputWithContext(ctx, i).(ServiceDictionaryItemsv1Output) } -func (i *ServiceDictionaryItemsv1) ToServiceDictionaryItemsv1PtrOutput() ServiceDictionaryItemsv1PtrOutput { - return i.ToServiceDictionaryItemsv1PtrOutputWithContext(context.Background()) -} - -func (i *ServiceDictionaryItemsv1) ToServiceDictionaryItemsv1PtrOutputWithContext(ctx context.Context) ServiceDictionaryItemsv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceDictionaryItemsv1PtrOutput) -} - -type ServiceDictionaryItemsv1PtrInput interface { - pulumi.Input - - ToServiceDictionaryItemsv1PtrOutput() ServiceDictionaryItemsv1PtrOutput - ToServiceDictionaryItemsv1PtrOutputWithContext(ctx context.Context) ServiceDictionaryItemsv1PtrOutput -} - -type serviceDictionaryItemsv1PtrType ServiceDictionaryItemsv1Args - -func (*serviceDictionaryItemsv1PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceDictionaryItemsv1)(nil)) -} - -func (i *serviceDictionaryItemsv1PtrType) ToServiceDictionaryItemsv1PtrOutput() ServiceDictionaryItemsv1PtrOutput { - return i.ToServiceDictionaryItemsv1PtrOutputWithContext(context.Background()) -} - -func (i *serviceDictionaryItemsv1PtrType) ToServiceDictionaryItemsv1PtrOutputWithContext(ctx context.Context) ServiceDictionaryItemsv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceDictionaryItemsv1PtrOutput) -} - // ServiceDictionaryItemsv1ArrayInput is an input type that accepts ServiceDictionaryItemsv1Array and ServiceDictionaryItemsv1ArrayOutput values. // You can construct a concrete instance of `ServiceDictionaryItemsv1ArrayInput` via: // @@ -221,7 +192,7 @@ func (i ServiceDictionaryItemsv1Map) ToServiceDictionaryItemsv1MapOutputWithCont type ServiceDictionaryItemsv1Output struct{ *pulumi.OutputState } func (ServiceDictionaryItemsv1Output) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceDictionaryItemsv1)(nil)) + return reflect.TypeOf((**ServiceDictionaryItemsv1)(nil)).Elem() } func (o ServiceDictionaryItemsv1Output) ToServiceDictionaryItemsv1Output() ServiceDictionaryItemsv1Output { @@ -232,44 +203,10 @@ func (o ServiceDictionaryItemsv1Output) ToServiceDictionaryItemsv1OutputWithCont return o } -func (o ServiceDictionaryItemsv1Output) ToServiceDictionaryItemsv1PtrOutput() ServiceDictionaryItemsv1PtrOutput { - return o.ToServiceDictionaryItemsv1PtrOutputWithContext(context.Background()) -} - -func (o ServiceDictionaryItemsv1Output) ToServiceDictionaryItemsv1PtrOutputWithContext(ctx context.Context) ServiceDictionaryItemsv1PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceDictionaryItemsv1) *ServiceDictionaryItemsv1 { - return &v - }).(ServiceDictionaryItemsv1PtrOutput) -} - -type ServiceDictionaryItemsv1PtrOutput struct{ *pulumi.OutputState } - -func (ServiceDictionaryItemsv1PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceDictionaryItemsv1)(nil)) -} - -func (o ServiceDictionaryItemsv1PtrOutput) ToServiceDictionaryItemsv1PtrOutput() ServiceDictionaryItemsv1PtrOutput { - return o -} - -func (o ServiceDictionaryItemsv1PtrOutput) ToServiceDictionaryItemsv1PtrOutputWithContext(ctx context.Context) ServiceDictionaryItemsv1PtrOutput { - return o -} - -func (o ServiceDictionaryItemsv1PtrOutput) Elem() ServiceDictionaryItemsv1Output { - return o.ApplyT(func(v *ServiceDictionaryItemsv1) ServiceDictionaryItemsv1 { - if v != nil { - return *v - } - var ret ServiceDictionaryItemsv1 - return ret - }).(ServiceDictionaryItemsv1Output) -} - type ServiceDictionaryItemsv1ArrayOutput struct{ *pulumi.OutputState } func (ServiceDictionaryItemsv1ArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ServiceDictionaryItemsv1)(nil)) + return reflect.TypeOf((*[]*ServiceDictionaryItemsv1)(nil)).Elem() } func (o ServiceDictionaryItemsv1ArrayOutput) ToServiceDictionaryItemsv1ArrayOutput() ServiceDictionaryItemsv1ArrayOutput { @@ -281,15 +218,15 @@ func (o ServiceDictionaryItemsv1ArrayOutput) ToServiceDictionaryItemsv1ArrayOutp } func (o ServiceDictionaryItemsv1ArrayOutput) Index(i pulumi.IntInput) ServiceDictionaryItemsv1Output { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceDictionaryItemsv1 { - return vs[0].([]ServiceDictionaryItemsv1)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceDictionaryItemsv1 { + return vs[0].([]*ServiceDictionaryItemsv1)[vs[1].(int)] }).(ServiceDictionaryItemsv1Output) } type ServiceDictionaryItemsv1MapOutput struct{ *pulumi.OutputState } func (ServiceDictionaryItemsv1MapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]ServiceDictionaryItemsv1)(nil)) + return reflect.TypeOf((*map[string]*ServiceDictionaryItemsv1)(nil)).Elem() } func (o ServiceDictionaryItemsv1MapOutput) ToServiceDictionaryItemsv1MapOutput() ServiceDictionaryItemsv1MapOutput { @@ -301,18 +238,16 @@ func (o ServiceDictionaryItemsv1MapOutput) ToServiceDictionaryItemsv1MapOutputWi } func (o ServiceDictionaryItemsv1MapOutput) MapIndex(k pulumi.StringInput) ServiceDictionaryItemsv1Output { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) ServiceDictionaryItemsv1 { - return vs[0].(map[string]ServiceDictionaryItemsv1)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceDictionaryItemsv1 { + return vs[0].(map[string]*ServiceDictionaryItemsv1)[vs[1].(string)] }).(ServiceDictionaryItemsv1Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceDictionaryItemsv1Input)(nil)).Elem(), &ServiceDictionaryItemsv1{}) - pulumi.RegisterInputType(reflect.TypeOf((*ServiceDictionaryItemsv1PtrInput)(nil)).Elem(), &ServiceDictionaryItemsv1{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceDictionaryItemsv1ArrayInput)(nil)).Elem(), ServiceDictionaryItemsv1Array{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceDictionaryItemsv1MapInput)(nil)).Elem(), ServiceDictionaryItemsv1Map{}) pulumi.RegisterOutputType(ServiceDictionaryItemsv1Output{}) - pulumi.RegisterOutputType(ServiceDictionaryItemsv1PtrOutput{}) pulumi.RegisterOutputType(ServiceDictionaryItemsv1ArrayOutput{}) pulumi.RegisterOutputType(ServiceDictionaryItemsv1MapOutput{}) } diff --git a/sdk/go/fastly/serviceDynamicSnippetContentv1.go b/sdk/go/fastly/serviceDynamicSnippetContentv1.go index f5f08d9b..ed81ab7b 100644 --- a/sdk/go/fastly/serviceDynamicSnippetContentv1.go +++ b/sdk/go/fastly/serviceDynamicSnippetContentv1.go @@ -127,7 +127,7 @@ type ServiceDynamicSnippetContentv1Input interface { } func (*ServiceDynamicSnippetContentv1) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceDynamicSnippetContentv1)(nil)) + return reflect.TypeOf((**ServiceDynamicSnippetContentv1)(nil)).Elem() } func (i *ServiceDynamicSnippetContentv1) ToServiceDynamicSnippetContentv1Output() ServiceDynamicSnippetContentv1Output { @@ -138,35 +138,6 @@ func (i *ServiceDynamicSnippetContentv1) ToServiceDynamicSnippetContentv1OutputW return pulumi.ToOutputWithContext(ctx, i).(ServiceDynamicSnippetContentv1Output) } -func (i *ServiceDynamicSnippetContentv1) ToServiceDynamicSnippetContentv1PtrOutput() ServiceDynamicSnippetContentv1PtrOutput { - return i.ToServiceDynamicSnippetContentv1PtrOutputWithContext(context.Background()) -} - -func (i *ServiceDynamicSnippetContentv1) ToServiceDynamicSnippetContentv1PtrOutputWithContext(ctx context.Context) ServiceDynamicSnippetContentv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceDynamicSnippetContentv1PtrOutput) -} - -type ServiceDynamicSnippetContentv1PtrInput interface { - pulumi.Input - - ToServiceDynamicSnippetContentv1PtrOutput() ServiceDynamicSnippetContentv1PtrOutput - ToServiceDynamicSnippetContentv1PtrOutputWithContext(ctx context.Context) ServiceDynamicSnippetContentv1PtrOutput -} - -type serviceDynamicSnippetContentv1PtrType ServiceDynamicSnippetContentv1Args - -func (*serviceDynamicSnippetContentv1PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceDynamicSnippetContentv1)(nil)) -} - -func (i *serviceDynamicSnippetContentv1PtrType) ToServiceDynamicSnippetContentv1PtrOutput() ServiceDynamicSnippetContentv1PtrOutput { - return i.ToServiceDynamicSnippetContentv1PtrOutputWithContext(context.Background()) -} - -func (i *serviceDynamicSnippetContentv1PtrType) ToServiceDynamicSnippetContentv1PtrOutputWithContext(ctx context.Context) ServiceDynamicSnippetContentv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceDynamicSnippetContentv1PtrOutput) -} - // ServiceDynamicSnippetContentv1ArrayInput is an input type that accepts ServiceDynamicSnippetContentv1Array and ServiceDynamicSnippetContentv1ArrayOutput values. // You can construct a concrete instance of `ServiceDynamicSnippetContentv1ArrayInput` via: // @@ -220,7 +191,7 @@ func (i ServiceDynamicSnippetContentv1Map) ToServiceDynamicSnippetContentv1MapOu type ServiceDynamicSnippetContentv1Output struct{ *pulumi.OutputState } func (ServiceDynamicSnippetContentv1Output) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceDynamicSnippetContentv1)(nil)) + return reflect.TypeOf((**ServiceDynamicSnippetContentv1)(nil)).Elem() } func (o ServiceDynamicSnippetContentv1Output) ToServiceDynamicSnippetContentv1Output() ServiceDynamicSnippetContentv1Output { @@ -231,44 +202,10 @@ func (o ServiceDynamicSnippetContentv1Output) ToServiceDynamicSnippetContentv1Ou return o } -func (o ServiceDynamicSnippetContentv1Output) ToServiceDynamicSnippetContentv1PtrOutput() ServiceDynamicSnippetContentv1PtrOutput { - return o.ToServiceDynamicSnippetContentv1PtrOutputWithContext(context.Background()) -} - -func (o ServiceDynamicSnippetContentv1Output) ToServiceDynamicSnippetContentv1PtrOutputWithContext(ctx context.Context) ServiceDynamicSnippetContentv1PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceDynamicSnippetContentv1) *ServiceDynamicSnippetContentv1 { - return &v - }).(ServiceDynamicSnippetContentv1PtrOutput) -} - -type ServiceDynamicSnippetContentv1PtrOutput struct{ *pulumi.OutputState } - -func (ServiceDynamicSnippetContentv1PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceDynamicSnippetContentv1)(nil)) -} - -func (o ServiceDynamicSnippetContentv1PtrOutput) ToServiceDynamicSnippetContentv1PtrOutput() ServiceDynamicSnippetContentv1PtrOutput { - return o -} - -func (o ServiceDynamicSnippetContentv1PtrOutput) ToServiceDynamicSnippetContentv1PtrOutputWithContext(ctx context.Context) ServiceDynamicSnippetContentv1PtrOutput { - return o -} - -func (o ServiceDynamicSnippetContentv1PtrOutput) Elem() ServiceDynamicSnippetContentv1Output { - return o.ApplyT(func(v *ServiceDynamicSnippetContentv1) ServiceDynamicSnippetContentv1 { - if v != nil { - return *v - } - var ret ServiceDynamicSnippetContentv1 - return ret - }).(ServiceDynamicSnippetContentv1Output) -} - type ServiceDynamicSnippetContentv1ArrayOutput struct{ *pulumi.OutputState } func (ServiceDynamicSnippetContentv1ArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ServiceDynamicSnippetContentv1)(nil)) + return reflect.TypeOf((*[]*ServiceDynamicSnippetContentv1)(nil)).Elem() } func (o ServiceDynamicSnippetContentv1ArrayOutput) ToServiceDynamicSnippetContentv1ArrayOutput() ServiceDynamicSnippetContentv1ArrayOutput { @@ -280,15 +217,15 @@ func (o ServiceDynamicSnippetContentv1ArrayOutput) ToServiceDynamicSnippetConten } func (o ServiceDynamicSnippetContentv1ArrayOutput) Index(i pulumi.IntInput) ServiceDynamicSnippetContentv1Output { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceDynamicSnippetContentv1 { - return vs[0].([]ServiceDynamicSnippetContentv1)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceDynamicSnippetContentv1 { + return vs[0].([]*ServiceDynamicSnippetContentv1)[vs[1].(int)] }).(ServiceDynamicSnippetContentv1Output) } type ServiceDynamicSnippetContentv1MapOutput struct{ *pulumi.OutputState } func (ServiceDynamicSnippetContentv1MapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]ServiceDynamicSnippetContentv1)(nil)) + return reflect.TypeOf((*map[string]*ServiceDynamicSnippetContentv1)(nil)).Elem() } func (o ServiceDynamicSnippetContentv1MapOutput) ToServiceDynamicSnippetContentv1MapOutput() ServiceDynamicSnippetContentv1MapOutput { @@ -300,18 +237,16 @@ func (o ServiceDynamicSnippetContentv1MapOutput) ToServiceDynamicSnippetContentv } func (o ServiceDynamicSnippetContentv1MapOutput) MapIndex(k pulumi.StringInput) ServiceDynamicSnippetContentv1Output { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) ServiceDynamicSnippetContentv1 { - return vs[0].(map[string]ServiceDynamicSnippetContentv1)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceDynamicSnippetContentv1 { + return vs[0].(map[string]*ServiceDynamicSnippetContentv1)[vs[1].(string)] }).(ServiceDynamicSnippetContentv1Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceDynamicSnippetContentv1Input)(nil)).Elem(), &ServiceDynamicSnippetContentv1{}) - pulumi.RegisterInputType(reflect.TypeOf((*ServiceDynamicSnippetContentv1PtrInput)(nil)).Elem(), &ServiceDynamicSnippetContentv1{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceDynamicSnippetContentv1ArrayInput)(nil)).Elem(), ServiceDynamicSnippetContentv1Array{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceDynamicSnippetContentv1MapInput)(nil)).Elem(), ServiceDynamicSnippetContentv1Map{}) pulumi.RegisterOutputType(ServiceDynamicSnippetContentv1Output{}) - pulumi.RegisterOutputType(ServiceDynamicSnippetContentv1PtrOutput{}) pulumi.RegisterOutputType(ServiceDynamicSnippetContentv1ArrayOutput{}) pulumi.RegisterOutputType(ServiceDynamicSnippetContentv1MapOutput{}) } diff --git a/sdk/go/fastly/serviceWafConfiguration.go b/sdk/go/fastly/serviceWafConfiguration.go index 66d38181..c6e6375a 100644 --- a/sdk/go/fastly/serviceWafConfiguration.go +++ b/sdk/go/fastly/serviceWafConfiguration.go @@ -401,7 +401,7 @@ type ServiceWafConfigurationInput interface { } func (*ServiceWafConfiguration) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceWafConfiguration)(nil)) + return reflect.TypeOf((**ServiceWafConfiguration)(nil)).Elem() } func (i *ServiceWafConfiguration) ToServiceWafConfigurationOutput() ServiceWafConfigurationOutput { @@ -412,35 +412,6 @@ func (i *ServiceWafConfiguration) ToServiceWafConfigurationOutputWithContext(ctx return pulumi.ToOutputWithContext(ctx, i).(ServiceWafConfigurationOutput) } -func (i *ServiceWafConfiguration) ToServiceWafConfigurationPtrOutput() ServiceWafConfigurationPtrOutput { - return i.ToServiceWafConfigurationPtrOutputWithContext(context.Background()) -} - -func (i *ServiceWafConfiguration) ToServiceWafConfigurationPtrOutputWithContext(ctx context.Context) ServiceWafConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceWafConfigurationPtrOutput) -} - -type ServiceWafConfigurationPtrInput interface { - pulumi.Input - - ToServiceWafConfigurationPtrOutput() ServiceWafConfigurationPtrOutput - ToServiceWafConfigurationPtrOutputWithContext(ctx context.Context) ServiceWafConfigurationPtrOutput -} - -type serviceWafConfigurationPtrType ServiceWafConfigurationArgs - -func (*serviceWafConfigurationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceWafConfiguration)(nil)) -} - -func (i *serviceWafConfigurationPtrType) ToServiceWafConfigurationPtrOutput() ServiceWafConfigurationPtrOutput { - return i.ToServiceWafConfigurationPtrOutputWithContext(context.Background()) -} - -func (i *serviceWafConfigurationPtrType) ToServiceWafConfigurationPtrOutputWithContext(ctx context.Context) ServiceWafConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceWafConfigurationPtrOutput) -} - // ServiceWafConfigurationArrayInput is an input type that accepts ServiceWafConfigurationArray and ServiceWafConfigurationArrayOutput values. // You can construct a concrete instance of `ServiceWafConfigurationArrayInput` via: // @@ -494,7 +465,7 @@ func (i ServiceWafConfigurationMap) ToServiceWafConfigurationMapOutputWithContex type ServiceWafConfigurationOutput struct{ *pulumi.OutputState } func (ServiceWafConfigurationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceWafConfiguration)(nil)) + return reflect.TypeOf((**ServiceWafConfiguration)(nil)).Elem() } func (o ServiceWafConfigurationOutput) ToServiceWafConfigurationOutput() ServiceWafConfigurationOutput { @@ -505,44 +476,10 @@ func (o ServiceWafConfigurationOutput) ToServiceWafConfigurationOutputWithContex return o } -func (o ServiceWafConfigurationOutput) ToServiceWafConfigurationPtrOutput() ServiceWafConfigurationPtrOutput { - return o.ToServiceWafConfigurationPtrOutputWithContext(context.Background()) -} - -func (o ServiceWafConfigurationOutput) ToServiceWafConfigurationPtrOutputWithContext(ctx context.Context) ServiceWafConfigurationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceWafConfiguration) *ServiceWafConfiguration { - return &v - }).(ServiceWafConfigurationPtrOutput) -} - -type ServiceWafConfigurationPtrOutput struct{ *pulumi.OutputState } - -func (ServiceWafConfigurationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceWafConfiguration)(nil)) -} - -func (o ServiceWafConfigurationPtrOutput) ToServiceWafConfigurationPtrOutput() ServiceWafConfigurationPtrOutput { - return o -} - -func (o ServiceWafConfigurationPtrOutput) ToServiceWafConfigurationPtrOutputWithContext(ctx context.Context) ServiceWafConfigurationPtrOutput { - return o -} - -func (o ServiceWafConfigurationPtrOutput) Elem() ServiceWafConfigurationOutput { - return o.ApplyT(func(v *ServiceWafConfiguration) ServiceWafConfiguration { - if v != nil { - return *v - } - var ret ServiceWafConfiguration - return ret - }).(ServiceWafConfigurationOutput) -} - type ServiceWafConfigurationArrayOutput struct{ *pulumi.OutputState } func (ServiceWafConfigurationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ServiceWafConfiguration)(nil)) + return reflect.TypeOf((*[]*ServiceWafConfiguration)(nil)).Elem() } func (o ServiceWafConfigurationArrayOutput) ToServiceWafConfigurationArrayOutput() ServiceWafConfigurationArrayOutput { @@ -554,15 +491,15 @@ func (o ServiceWafConfigurationArrayOutput) ToServiceWafConfigurationArrayOutput } func (o ServiceWafConfigurationArrayOutput) Index(i pulumi.IntInput) ServiceWafConfigurationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceWafConfiguration { - return vs[0].([]ServiceWafConfiguration)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceWafConfiguration { + return vs[0].([]*ServiceWafConfiguration)[vs[1].(int)] }).(ServiceWafConfigurationOutput) } type ServiceWafConfigurationMapOutput struct{ *pulumi.OutputState } func (ServiceWafConfigurationMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]ServiceWafConfiguration)(nil)) + return reflect.TypeOf((*map[string]*ServiceWafConfiguration)(nil)).Elem() } func (o ServiceWafConfigurationMapOutput) ToServiceWafConfigurationMapOutput() ServiceWafConfigurationMapOutput { @@ -574,18 +511,16 @@ func (o ServiceWafConfigurationMapOutput) ToServiceWafConfigurationMapOutputWith } func (o ServiceWafConfigurationMapOutput) MapIndex(k pulumi.StringInput) ServiceWafConfigurationOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) ServiceWafConfiguration { - return vs[0].(map[string]ServiceWafConfiguration)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceWafConfiguration { + return vs[0].(map[string]*ServiceWafConfiguration)[vs[1].(string)] }).(ServiceWafConfigurationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceWafConfigurationInput)(nil)).Elem(), &ServiceWafConfiguration{}) - pulumi.RegisterInputType(reflect.TypeOf((*ServiceWafConfigurationPtrInput)(nil)).Elem(), &ServiceWafConfiguration{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceWafConfigurationArrayInput)(nil)).Elem(), ServiceWafConfigurationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceWafConfigurationMapInput)(nil)).Elem(), ServiceWafConfigurationMap{}) pulumi.RegisterOutputType(ServiceWafConfigurationOutput{}) - pulumi.RegisterOutputType(ServiceWafConfigurationPtrOutput{}) pulumi.RegisterOutputType(ServiceWafConfigurationArrayOutput{}) pulumi.RegisterOutputType(ServiceWafConfigurationMapOutput{}) } diff --git a/sdk/go/fastly/servicev1.go b/sdk/go/fastly/servicev1.go index a485e764..fa623a1f 100644 --- a/sdk/go/fastly/servicev1.go +++ b/sdk/go/fastly/servicev1.go @@ -704,7 +704,7 @@ type Servicev1Input interface { } func (*Servicev1) ElementType() reflect.Type { - return reflect.TypeOf((*Servicev1)(nil)) + return reflect.TypeOf((**Servicev1)(nil)).Elem() } func (i *Servicev1) ToServicev1Output() Servicev1Output { @@ -715,35 +715,6 @@ func (i *Servicev1) ToServicev1OutputWithContext(ctx context.Context) Servicev1O return pulumi.ToOutputWithContext(ctx, i).(Servicev1Output) } -func (i *Servicev1) ToServicev1PtrOutput() Servicev1PtrOutput { - return i.ToServicev1PtrOutputWithContext(context.Background()) -} - -func (i *Servicev1) ToServicev1PtrOutputWithContext(ctx context.Context) Servicev1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(Servicev1PtrOutput) -} - -type Servicev1PtrInput interface { - pulumi.Input - - ToServicev1PtrOutput() Servicev1PtrOutput - ToServicev1PtrOutputWithContext(ctx context.Context) Servicev1PtrOutput -} - -type servicev1PtrType Servicev1Args - -func (*servicev1PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**Servicev1)(nil)) -} - -func (i *servicev1PtrType) ToServicev1PtrOutput() Servicev1PtrOutput { - return i.ToServicev1PtrOutputWithContext(context.Background()) -} - -func (i *servicev1PtrType) ToServicev1PtrOutputWithContext(ctx context.Context) Servicev1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(Servicev1PtrOutput) -} - // Servicev1ArrayInput is an input type that accepts Servicev1Array and Servicev1ArrayOutput values. // You can construct a concrete instance of `Servicev1ArrayInput` via: // @@ -797,7 +768,7 @@ func (i Servicev1Map) ToServicev1MapOutputWithContext(ctx context.Context) Servi type Servicev1Output struct{ *pulumi.OutputState } func (Servicev1Output) ElementType() reflect.Type { - return reflect.TypeOf((*Servicev1)(nil)) + return reflect.TypeOf((**Servicev1)(nil)).Elem() } func (o Servicev1Output) ToServicev1Output() Servicev1Output { @@ -808,44 +779,10 @@ func (o Servicev1Output) ToServicev1OutputWithContext(ctx context.Context) Servi return o } -func (o Servicev1Output) ToServicev1PtrOutput() Servicev1PtrOutput { - return o.ToServicev1PtrOutputWithContext(context.Background()) -} - -func (o Servicev1Output) ToServicev1PtrOutputWithContext(ctx context.Context) Servicev1PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v Servicev1) *Servicev1 { - return &v - }).(Servicev1PtrOutput) -} - -type Servicev1PtrOutput struct{ *pulumi.OutputState } - -func (Servicev1PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**Servicev1)(nil)) -} - -func (o Servicev1PtrOutput) ToServicev1PtrOutput() Servicev1PtrOutput { - return o -} - -func (o Servicev1PtrOutput) ToServicev1PtrOutputWithContext(ctx context.Context) Servicev1PtrOutput { - return o -} - -func (o Servicev1PtrOutput) Elem() Servicev1Output { - return o.ApplyT(func(v *Servicev1) Servicev1 { - if v != nil { - return *v - } - var ret Servicev1 - return ret - }).(Servicev1Output) -} - type Servicev1ArrayOutput struct{ *pulumi.OutputState } func (Servicev1ArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]Servicev1)(nil)) + return reflect.TypeOf((*[]*Servicev1)(nil)).Elem() } func (o Servicev1ArrayOutput) ToServicev1ArrayOutput() Servicev1ArrayOutput { @@ -857,15 +794,15 @@ func (o Servicev1ArrayOutput) ToServicev1ArrayOutputWithContext(ctx context.Cont } func (o Servicev1ArrayOutput) Index(i pulumi.IntInput) Servicev1Output { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) Servicev1 { - return vs[0].([]Servicev1)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Servicev1 { + return vs[0].([]*Servicev1)[vs[1].(int)] }).(Servicev1Output) } type Servicev1MapOutput struct{ *pulumi.OutputState } func (Servicev1MapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]Servicev1)(nil)) + return reflect.TypeOf((*map[string]*Servicev1)(nil)).Elem() } func (o Servicev1MapOutput) ToServicev1MapOutput() Servicev1MapOutput { @@ -877,18 +814,16 @@ func (o Servicev1MapOutput) ToServicev1MapOutputWithContext(ctx context.Context) } func (o Servicev1MapOutput) MapIndex(k pulumi.StringInput) Servicev1Output { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) Servicev1 { - return vs[0].(map[string]Servicev1)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Servicev1 { + return vs[0].(map[string]*Servicev1)[vs[1].(string)] }).(Servicev1Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*Servicev1Input)(nil)).Elem(), &Servicev1{}) - pulumi.RegisterInputType(reflect.TypeOf((*Servicev1PtrInput)(nil)).Elem(), &Servicev1{}) pulumi.RegisterInputType(reflect.TypeOf((*Servicev1ArrayInput)(nil)).Elem(), Servicev1Array{}) pulumi.RegisterInputType(reflect.TypeOf((*Servicev1MapInput)(nil)).Elem(), Servicev1Map{}) pulumi.RegisterOutputType(Servicev1Output{}) - pulumi.RegisterOutputType(Servicev1PtrOutput{}) pulumi.RegisterOutputType(Servicev1ArrayOutput{}) pulumi.RegisterOutputType(Servicev1MapOutput{}) } diff --git a/sdk/go/fastly/tlsActivation.go b/sdk/go/fastly/tlsActivation.go index ae28cc14..9056f782 100644 --- a/sdk/go/fastly/tlsActivation.go +++ b/sdk/go/fastly/tlsActivation.go @@ -185,7 +185,7 @@ type TlsActivationInput interface { } func (*TlsActivation) ElementType() reflect.Type { - return reflect.TypeOf((*TlsActivation)(nil)) + return reflect.TypeOf((**TlsActivation)(nil)).Elem() } func (i *TlsActivation) ToTlsActivationOutput() TlsActivationOutput { @@ -196,35 +196,6 @@ func (i *TlsActivation) ToTlsActivationOutputWithContext(ctx context.Context) Tl return pulumi.ToOutputWithContext(ctx, i).(TlsActivationOutput) } -func (i *TlsActivation) ToTlsActivationPtrOutput() TlsActivationPtrOutput { - return i.ToTlsActivationPtrOutputWithContext(context.Background()) -} - -func (i *TlsActivation) ToTlsActivationPtrOutputWithContext(ctx context.Context) TlsActivationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsActivationPtrOutput) -} - -type TlsActivationPtrInput interface { - pulumi.Input - - ToTlsActivationPtrOutput() TlsActivationPtrOutput - ToTlsActivationPtrOutputWithContext(ctx context.Context) TlsActivationPtrOutput -} - -type tlsActivationPtrType TlsActivationArgs - -func (*tlsActivationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsActivation)(nil)) -} - -func (i *tlsActivationPtrType) ToTlsActivationPtrOutput() TlsActivationPtrOutput { - return i.ToTlsActivationPtrOutputWithContext(context.Background()) -} - -func (i *tlsActivationPtrType) ToTlsActivationPtrOutputWithContext(ctx context.Context) TlsActivationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsActivationPtrOutput) -} - // TlsActivationArrayInput is an input type that accepts TlsActivationArray and TlsActivationArrayOutput values. // You can construct a concrete instance of `TlsActivationArrayInput` via: // @@ -278,7 +249,7 @@ func (i TlsActivationMap) ToTlsActivationMapOutputWithContext(ctx context.Contex type TlsActivationOutput struct{ *pulumi.OutputState } func (TlsActivationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsActivation)(nil)) + return reflect.TypeOf((**TlsActivation)(nil)).Elem() } func (o TlsActivationOutput) ToTlsActivationOutput() TlsActivationOutput { @@ -289,44 +260,10 @@ func (o TlsActivationOutput) ToTlsActivationOutputWithContext(ctx context.Contex return o } -func (o TlsActivationOutput) ToTlsActivationPtrOutput() TlsActivationPtrOutput { - return o.ToTlsActivationPtrOutputWithContext(context.Background()) -} - -func (o TlsActivationOutput) ToTlsActivationPtrOutputWithContext(ctx context.Context) TlsActivationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsActivation) *TlsActivation { - return &v - }).(TlsActivationPtrOutput) -} - -type TlsActivationPtrOutput struct{ *pulumi.OutputState } - -func (TlsActivationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsActivation)(nil)) -} - -func (o TlsActivationPtrOutput) ToTlsActivationPtrOutput() TlsActivationPtrOutput { - return o -} - -func (o TlsActivationPtrOutput) ToTlsActivationPtrOutputWithContext(ctx context.Context) TlsActivationPtrOutput { - return o -} - -func (o TlsActivationPtrOutput) Elem() TlsActivationOutput { - return o.ApplyT(func(v *TlsActivation) TlsActivation { - if v != nil { - return *v - } - var ret TlsActivation - return ret - }).(TlsActivationOutput) -} - type TlsActivationArrayOutput struct{ *pulumi.OutputState } func (TlsActivationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsActivation)(nil)) + return reflect.TypeOf((*[]*TlsActivation)(nil)).Elem() } func (o TlsActivationArrayOutput) ToTlsActivationArrayOutput() TlsActivationArrayOutput { @@ -338,15 +275,15 @@ func (o TlsActivationArrayOutput) ToTlsActivationArrayOutputWithContext(ctx cont } func (o TlsActivationArrayOutput) Index(i pulumi.IntInput) TlsActivationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsActivation { - return vs[0].([]TlsActivation)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsActivation { + return vs[0].([]*TlsActivation)[vs[1].(int)] }).(TlsActivationOutput) } type TlsActivationMapOutput struct{ *pulumi.OutputState } func (TlsActivationMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsActivation)(nil)) + return reflect.TypeOf((*map[string]*TlsActivation)(nil)).Elem() } func (o TlsActivationMapOutput) ToTlsActivationMapOutput() TlsActivationMapOutput { @@ -358,18 +295,16 @@ func (o TlsActivationMapOutput) ToTlsActivationMapOutputWithContext(ctx context. } func (o TlsActivationMapOutput) MapIndex(k pulumi.StringInput) TlsActivationOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsActivation { - return vs[0].(map[string]TlsActivation)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsActivation { + return vs[0].(map[string]*TlsActivation)[vs[1].(string)] }).(TlsActivationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsActivationInput)(nil)).Elem(), &TlsActivation{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsActivationPtrInput)(nil)).Elem(), &TlsActivation{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsActivationArrayInput)(nil)).Elem(), TlsActivationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsActivationMapInput)(nil)).Elem(), TlsActivationMap{}) pulumi.RegisterOutputType(TlsActivationOutput{}) - pulumi.RegisterOutputType(TlsActivationPtrOutput{}) pulumi.RegisterOutputType(TlsActivationArrayOutput{}) pulumi.RegisterOutputType(TlsActivationMapOutput{}) } diff --git a/sdk/go/fastly/tlsCertificate.go b/sdk/go/fastly/tlsCertificate.go index 2f3c3b25..da2181e6 100644 --- a/sdk/go/fastly/tlsCertificate.go +++ b/sdk/go/fastly/tlsCertificate.go @@ -216,7 +216,7 @@ type TlsCertificateInput interface { } func (*TlsCertificate) ElementType() reflect.Type { - return reflect.TypeOf((*TlsCertificate)(nil)) + return reflect.TypeOf((**TlsCertificate)(nil)).Elem() } func (i *TlsCertificate) ToTlsCertificateOutput() TlsCertificateOutput { @@ -227,35 +227,6 @@ func (i *TlsCertificate) ToTlsCertificateOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(TlsCertificateOutput) } -func (i *TlsCertificate) ToTlsCertificatePtrOutput() TlsCertificatePtrOutput { - return i.ToTlsCertificatePtrOutputWithContext(context.Background()) -} - -func (i *TlsCertificate) ToTlsCertificatePtrOutputWithContext(ctx context.Context) TlsCertificatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsCertificatePtrOutput) -} - -type TlsCertificatePtrInput interface { - pulumi.Input - - ToTlsCertificatePtrOutput() TlsCertificatePtrOutput - ToTlsCertificatePtrOutputWithContext(ctx context.Context) TlsCertificatePtrOutput -} - -type tlsCertificatePtrType TlsCertificateArgs - -func (*tlsCertificatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsCertificate)(nil)) -} - -func (i *tlsCertificatePtrType) ToTlsCertificatePtrOutput() TlsCertificatePtrOutput { - return i.ToTlsCertificatePtrOutputWithContext(context.Background()) -} - -func (i *tlsCertificatePtrType) ToTlsCertificatePtrOutputWithContext(ctx context.Context) TlsCertificatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsCertificatePtrOutput) -} - // TlsCertificateArrayInput is an input type that accepts TlsCertificateArray and TlsCertificateArrayOutput values. // You can construct a concrete instance of `TlsCertificateArrayInput` via: // @@ -309,7 +280,7 @@ func (i TlsCertificateMap) ToTlsCertificateMapOutputWithContext(ctx context.Cont type TlsCertificateOutput struct{ *pulumi.OutputState } func (TlsCertificateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsCertificate)(nil)) + return reflect.TypeOf((**TlsCertificate)(nil)).Elem() } func (o TlsCertificateOutput) ToTlsCertificateOutput() TlsCertificateOutput { @@ -320,44 +291,10 @@ func (o TlsCertificateOutput) ToTlsCertificateOutputWithContext(ctx context.Cont return o } -func (o TlsCertificateOutput) ToTlsCertificatePtrOutput() TlsCertificatePtrOutput { - return o.ToTlsCertificatePtrOutputWithContext(context.Background()) -} - -func (o TlsCertificateOutput) ToTlsCertificatePtrOutputWithContext(ctx context.Context) TlsCertificatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsCertificate) *TlsCertificate { - return &v - }).(TlsCertificatePtrOutput) -} - -type TlsCertificatePtrOutput struct{ *pulumi.OutputState } - -func (TlsCertificatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsCertificate)(nil)) -} - -func (o TlsCertificatePtrOutput) ToTlsCertificatePtrOutput() TlsCertificatePtrOutput { - return o -} - -func (o TlsCertificatePtrOutput) ToTlsCertificatePtrOutputWithContext(ctx context.Context) TlsCertificatePtrOutput { - return o -} - -func (o TlsCertificatePtrOutput) Elem() TlsCertificateOutput { - return o.ApplyT(func(v *TlsCertificate) TlsCertificate { - if v != nil { - return *v - } - var ret TlsCertificate - return ret - }).(TlsCertificateOutput) -} - type TlsCertificateArrayOutput struct{ *pulumi.OutputState } func (TlsCertificateArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsCertificate)(nil)) + return reflect.TypeOf((*[]*TlsCertificate)(nil)).Elem() } func (o TlsCertificateArrayOutput) ToTlsCertificateArrayOutput() TlsCertificateArrayOutput { @@ -369,15 +306,15 @@ func (o TlsCertificateArrayOutput) ToTlsCertificateArrayOutputWithContext(ctx co } func (o TlsCertificateArrayOutput) Index(i pulumi.IntInput) TlsCertificateOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsCertificate { - return vs[0].([]TlsCertificate)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsCertificate { + return vs[0].([]*TlsCertificate)[vs[1].(int)] }).(TlsCertificateOutput) } type TlsCertificateMapOutput struct{ *pulumi.OutputState } func (TlsCertificateMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsCertificate)(nil)) + return reflect.TypeOf((*map[string]*TlsCertificate)(nil)).Elem() } func (o TlsCertificateMapOutput) ToTlsCertificateMapOutput() TlsCertificateMapOutput { @@ -389,18 +326,16 @@ func (o TlsCertificateMapOutput) ToTlsCertificateMapOutputWithContext(ctx contex } func (o TlsCertificateMapOutput) MapIndex(k pulumi.StringInput) TlsCertificateOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsCertificate { - return vs[0].(map[string]TlsCertificate)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsCertificate { + return vs[0].(map[string]*TlsCertificate)[vs[1].(string)] }).(TlsCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsCertificateInput)(nil)).Elem(), &TlsCertificate{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsCertificatePtrInput)(nil)).Elem(), &TlsCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsCertificateArrayInput)(nil)).Elem(), TlsCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsCertificateMapInput)(nil)).Elem(), TlsCertificateMap{}) pulumi.RegisterOutputType(TlsCertificateOutput{}) - pulumi.RegisterOutputType(TlsCertificatePtrOutput{}) pulumi.RegisterOutputType(TlsCertificateArrayOutput{}) pulumi.RegisterOutputType(TlsCertificateMapOutput{}) } diff --git a/sdk/go/fastly/tlsPlatformCertificate.go b/sdk/go/fastly/tlsPlatformCertificate.go index 18da8930..a1a8da3e 100644 --- a/sdk/go/fastly/tlsPlatformCertificate.go +++ b/sdk/go/fastly/tlsPlatformCertificate.go @@ -273,7 +273,7 @@ type TlsPlatformCertificateInput interface { } func (*TlsPlatformCertificate) ElementType() reflect.Type { - return reflect.TypeOf((*TlsPlatformCertificate)(nil)) + return reflect.TypeOf((**TlsPlatformCertificate)(nil)).Elem() } func (i *TlsPlatformCertificate) ToTlsPlatformCertificateOutput() TlsPlatformCertificateOutput { @@ -284,35 +284,6 @@ func (i *TlsPlatformCertificate) ToTlsPlatformCertificateOutputWithContext(ctx c return pulumi.ToOutputWithContext(ctx, i).(TlsPlatformCertificateOutput) } -func (i *TlsPlatformCertificate) ToTlsPlatformCertificatePtrOutput() TlsPlatformCertificatePtrOutput { - return i.ToTlsPlatformCertificatePtrOutputWithContext(context.Background()) -} - -func (i *TlsPlatformCertificate) ToTlsPlatformCertificatePtrOutputWithContext(ctx context.Context) TlsPlatformCertificatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsPlatformCertificatePtrOutput) -} - -type TlsPlatformCertificatePtrInput interface { - pulumi.Input - - ToTlsPlatformCertificatePtrOutput() TlsPlatformCertificatePtrOutput - ToTlsPlatformCertificatePtrOutputWithContext(ctx context.Context) TlsPlatformCertificatePtrOutput -} - -type tlsPlatformCertificatePtrType TlsPlatformCertificateArgs - -func (*tlsPlatformCertificatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsPlatformCertificate)(nil)) -} - -func (i *tlsPlatformCertificatePtrType) ToTlsPlatformCertificatePtrOutput() TlsPlatformCertificatePtrOutput { - return i.ToTlsPlatformCertificatePtrOutputWithContext(context.Background()) -} - -func (i *tlsPlatformCertificatePtrType) ToTlsPlatformCertificatePtrOutputWithContext(ctx context.Context) TlsPlatformCertificatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsPlatformCertificatePtrOutput) -} - // TlsPlatformCertificateArrayInput is an input type that accepts TlsPlatformCertificateArray and TlsPlatformCertificateArrayOutput values. // You can construct a concrete instance of `TlsPlatformCertificateArrayInput` via: // @@ -366,7 +337,7 @@ func (i TlsPlatformCertificateMap) ToTlsPlatformCertificateMapOutputWithContext( type TlsPlatformCertificateOutput struct{ *pulumi.OutputState } func (TlsPlatformCertificateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsPlatformCertificate)(nil)) + return reflect.TypeOf((**TlsPlatformCertificate)(nil)).Elem() } func (o TlsPlatformCertificateOutput) ToTlsPlatformCertificateOutput() TlsPlatformCertificateOutput { @@ -377,44 +348,10 @@ func (o TlsPlatformCertificateOutput) ToTlsPlatformCertificateOutputWithContext( return o } -func (o TlsPlatformCertificateOutput) ToTlsPlatformCertificatePtrOutput() TlsPlatformCertificatePtrOutput { - return o.ToTlsPlatformCertificatePtrOutputWithContext(context.Background()) -} - -func (o TlsPlatformCertificateOutput) ToTlsPlatformCertificatePtrOutputWithContext(ctx context.Context) TlsPlatformCertificatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsPlatformCertificate) *TlsPlatformCertificate { - return &v - }).(TlsPlatformCertificatePtrOutput) -} - -type TlsPlatformCertificatePtrOutput struct{ *pulumi.OutputState } - -func (TlsPlatformCertificatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsPlatformCertificate)(nil)) -} - -func (o TlsPlatformCertificatePtrOutput) ToTlsPlatformCertificatePtrOutput() TlsPlatformCertificatePtrOutput { - return o -} - -func (o TlsPlatformCertificatePtrOutput) ToTlsPlatformCertificatePtrOutputWithContext(ctx context.Context) TlsPlatformCertificatePtrOutput { - return o -} - -func (o TlsPlatformCertificatePtrOutput) Elem() TlsPlatformCertificateOutput { - return o.ApplyT(func(v *TlsPlatformCertificate) TlsPlatformCertificate { - if v != nil { - return *v - } - var ret TlsPlatformCertificate - return ret - }).(TlsPlatformCertificateOutput) -} - type TlsPlatformCertificateArrayOutput struct{ *pulumi.OutputState } func (TlsPlatformCertificateArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsPlatformCertificate)(nil)) + return reflect.TypeOf((*[]*TlsPlatformCertificate)(nil)).Elem() } func (o TlsPlatformCertificateArrayOutput) ToTlsPlatformCertificateArrayOutput() TlsPlatformCertificateArrayOutput { @@ -426,15 +363,15 @@ func (o TlsPlatformCertificateArrayOutput) ToTlsPlatformCertificateArrayOutputWi } func (o TlsPlatformCertificateArrayOutput) Index(i pulumi.IntInput) TlsPlatformCertificateOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsPlatformCertificate { - return vs[0].([]TlsPlatformCertificate)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsPlatformCertificate { + return vs[0].([]*TlsPlatformCertificate)[vs[1].(int)] }).(TlsPlatformCertificateOutput) } type TlsPlatformCertificateMapOutput struct{ *pulumi.OutputState } func (TlsPlatformCertificateMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsPlatformCertificate)(nil)) + return reflect.TypeOf((*map[string]*TlsPlatformCertificate)(nil)).Elem() } func (o TlsPlatformCertificateMapOutput) ToTlsPlatformCertificateMapOutput() TlsPlatformCertificateMapOutput { @@ -446,18 +383,16 @@ func (o TlsPlatformCertificateMapOutput) ToTlsPlatformCertificateMapOutputWithCo } func (o TlsPlatformCertificateMapOutput) MapIndex(k pulumi.StringInput) TlsPlatformCertificateOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsPlatformCertificate { - return vs[0].(map[string]TlsPlatformCertificate)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsPlatformCertificate { + return vs[0].(map[string]*TlsPlatformCertificate)[vs[1].(string)] }).(TlsPlatformCertificateOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsPlatformCertificateInput)(nil)).Elem(), &TlsPlatformCertificate{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsPlatformCertificatePtrInput)(nil)).Elem(), &TlsPlatformCertificate{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsPlatformCertificateArrayInput)(nil)).Elem(), TlsPlatformCertificateArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsPlatformCertificateMapInput)(nil)).Elem(), TlsPlatformCertificateMap{}) pulumi.RegisterOutputType(TlsPlatformCertificateOutput{}) - pulumi.RegisterOutputType(TlsPlatformCertificatePtrOutput{}) pulumi.RegisterOutputType(TlsPlatformCertificateArrayOutput{}) pulumi.RegisterOutputType(TlsPlatformCertificateMapOutput{}) } diff --git a/sdk/go/fastly/tlsPrivateKey.go b/sdk/go/fastly/tlsPrivateKey.go index 94c1f6ef..5a1ff048 100644 --- a/sdk/go/fastly/tlsPrivateKey.go +++ b/sdk/go/fastly/tlsPrivateKey.go @@ -169,7 +169,7 @@ type TlsPrivateKeyInput interface { } func (*TlsPrivateKey) ElementType() reflect.Type { - return reflect.TypeOf((*TlsPrivateKey)(nil)) + return reflect.TypeOf((**TlsPrivateKey)(nil)).Elem() } func (i *TlsPrivateKey) ToTlsPrivateKeyOutput() TlsPrivateKeyOutput { @@ -180,35 +180,6 @@ func (i *TlsPrivateKey) ToTlsPrivateKeyOutputWithContext(ctx context.Context) Tl return pulumi.ToOutputWithContext(ctx, i).(TlsPrivateKeyOutput) } -func (i *TlsPrivateKey) ToTlsPrivateKeyPtrOutput() TlsPrivateKeyPtrOutput { - return i.ToTlsPrivateKeyPtrOutputWithContext(context.Background()) -} - -func (i *TlsPrivateKey) ToTlsPrivateKeyPtrOutputWithContext(ctx context.Context) TlsPrivateKeyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsPrivateKeyPtrOutput) -} - -type TlsPrivateKeyPtrInput interface { - pulumi.Input - - ToTlsPrivateKeyPtrOutput() TlsPrivateKeyPtrOutput - ToTlsPrivateKeyPtrOutputWithContext(ctx context.Context) TlsPrivateKeyPtrOutput -} - -type tlsPrivateKeyPtrType TlsPrivateKeyArgs - -func (*tlsPrivateKeyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsPrivateKey)(nil)) -} - -func (i *tlsPrivateKeyPtrType) ToTlsPrivateKeyPtrOutput() TlsPrivateKeyPtrOutput { - return i.ToTlsPrivateKeyPtrOutputWithContext(context.Background()) -} - -func (i *tlsPrivateKeyPtrType) ToTlsPrivateKeyPtrOutputWithContext(ctx context.Context) TlsPrivateKeyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsPrivateKeyPtrOutput) -} - // TlsPrivateKeyArrayInput is an input type that accepts TlsPrivateKeyArray and TlsPrivateKeyArrayOutput values. // You can construct a concrete instance of `TlsPrivateKeyArrayInput` via: // @@ -262,7 +233,7 @@ func (i TlsPrivateKeyMap) ToTlsPrivateKeyMapOutputWithContext(ctx context.Contex type TlsPrivateKeyOutput struct{ *pulumi.OutputState } func (TlsPrivateKeyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsPrivateKey)(nil)) + return reflect.TypeOf((**TlsPrivateKey)(nil)).Elem() } func (o TlsPrivateKeyOutput) ToTlsPrivateKeyOutput() TlsPrivateKeyOutput { @@ -273,44 +244,10 @@ func (o TlsPrivateKeyOutput) ToTlsPrivateKeyOutputWithContext(ctx context.Contex return o } -func (o TlsPrivateKeyOutput) ToTlsPrivateKeyPtrOutput() TlsPrivateKeyPtrOutput { - return o.ToTlsPrivateKeyPtrOutputWithContext(context.Background()) -} - -func (o TlsPrivateKeyOutput) ToTlsPrivateKeyPtrOutputWithContext(ctx context.Context) TlsPrivateKeyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsPrivateKey) *TlsPrivateKey { - return &v - }).(TlsPrivateKeyPtrOutput) -} - -type TlsPrivateKeyPtrOutput struct{ *pulumi.OutputState } - -func (TlsPrivateKeyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsPrivateKey)(nil)) -} - -func (o TlsPrivateKeyPtrOutput) ToTlsPrivateKeyPtrOutput() TlsPrivateKeyPtrOutput { - return o -} - -func (o TlsPrivateKeyPtrOutput) ToTlsPrivateKeyPtrOutputWithContext(ctx context.Context) TlsPrivateKeyPtrOutput { - return o -} - -func (o TlsPrivateKeyPtrOutput) Elem() TlsPrivateKeyOutput { - return o.ApplyT(func(v *TlsPrivateKey) TlsPrivateKey { - if v != nil { - return *v - } - var ret TlsPrivateKey - return ret - }).(TlsPrivateKeyOutput) -} - type TlsPrivateKeyArrayOutput struct{ *pulumi.OutputState } func (TlsPrivateKeyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsPrivateKey)(nil)) + return reflect.TypeOf((*[]*TlsPrivateKey)(nil)).Elem() } func (o TlsPrivateKeyArrayOutput) ToTlsPrivateKeyArrayOutput() TlsPrivateKeyArrayOutput { @@ -322,15 +259,15 @@ func (o TlsPrivateKeyArrayOutput) ToTlsPrivateKeyArrayOutputWithContext(ctx cont } func (o TlsPrivateKeyArrayOutput) Index(i pulumi.IntInput) TlsPrivateKeyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsPrivateKey { - return vs[0].([]TlsPrivateKey)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsPrivateKey { + return vs[0].([]*TlsPrivateKey)[vs[1].(int)] }).(TlsPrivateKeyOutput) } type TlsPrivateKeyMapOutput struct{ *pulumi.OutputState } func (TlsPrivateKeyMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsPrivateKey)(nil)) + return reflect.TypeOf((*map[string]*TlsPrivateKey)(nil)).Elem() } func (o TlsPrivateKeyMapOutput) ToTlsPrivateKeyMapOutput() TlsPrivateKeyMapOutput { @@ -342,18 +279,16 @@ func (o TlsPrivateKeyMapOutput) ToTlsPrivateKeyMapOutputWithContext(ctx context. } func (o TlsPrivateKeyMapOutput) MapIndex(k pulumi.StringInput) TlsPrivateKeyOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsPrivateKey { - return vs[0].(map[string]TlsPrivateKey)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsPrivateKey { + return vs[0].(map[string]*TlsPrivateKey)[vs[1].(string)] }).(TlsPrivateKeyOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsPrivateKeyInput)(nil)).Elem(), &TlsPrivateKey{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsPrivateKeyPtrInput)(nil)).Elem(), &TlsPrivateKey{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsPrivateKeyArrayInput)(nil)).Elem(), TlsPrivateKeyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsPrivateKeyMapInput)(nil)).Elem(), TlsPrivateKeyMap{}) pulumi.RegisterOutputType(TlsPrivateKeyOutput{}) - pulumi.RegisterOutputType(TlsPrivateKeyPtrOutput{}) pulumi.RegisterOutputType(TlsPrivateKeyArrayOutput{}) pulumi.RegisterOutputType(TlsPrivateKeyMapOutput{}) } diff --git a/sdk/go/fastly/tlsSubscription.go b/sdk/go/fastly/tlsSubscription.go index 11a44935..704cac7d 100644 --- a/sdk/go/fastly/tlsSubscription.go +++ b/sdk/go/fastly/tlsSubscription.go @@ -204,7 +204,7 @@ type TlsSubscriptionInput interface { } func (*TlsSubscription) ElementType() reflect.Type { - return reflect.TypeOf((*TlsSubscription)(nil)) + return reflect.TypeOf((**TlsSubscription)(nil)).Elem() } func (i *TlsSubscription) ToTlsSubscriptionOutput() TlsSubscriptionOutput { @@ -215,35 +215,6 @@ func (i *TlsSubscription) ToTlsSubscriptionOutputWithContext(ctx context.Context return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionOutput) } -func (i *TlsSubscription) ToTlsSubscriptionPtrOutput() TlsSubscriptionPtrOutput { - return i.ToTlsSubscriptionPtrOutputWithContext(context.Background()) -} - -func (i *TlsSubscription) ToTlsSubscriptionPtrOutputWithContext(ctx context.Context) TlsSubscriptionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionPtrOutput) -} - -type TlsSubscriptionPtrInput interface { - pulumi.Input - - ToTlsSubscriptionPtrOutput() TlsSubscriptionPtrOutput - ToTlsSubscriptionPtrOutputWithContext(ctx context.Context) TlsSubscriptionPtrOutput -} - -type tlsSubscriptionPtrType TlsSubscriptionArgs - -func (*tlsSubscriptionPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsSubscription)(nil)) -} - -func (i *tlsSubscriptionPtrType) ToTlsSubscriptionPtrOutput() TlsSubscriptionPtrOutput { - return i.ToTlsSubscriptionPtrOutputWithContext(context.Background()) -} - -func (i *tlsSubscriptionPtrType) ToTlsSubscriptionPtrOutputWithContext(ctx context.Context) TlsSubscriptionPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionPtrOutput) -} - // TlsSubscriptionArrayInput is an input type that accepts TlsSubscriptionArray and TlsSubscriptionArrayOutput values. // You can construct a concrete instance of `TlsSubscriptionArrayInput` via: // @@ -297,7 +268,7 @@ func (i TlsSubscriptionMap) ToTlsSubscriptionMapOutputWithContext(ctx context.Co type TlsSubscriptionOutput struct{ *pulumi.OutputState } func (TlsSubscriptionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsSubscription)(nil)) + return reflect.TypeOf((**TlsSubscription)(nil)).Elem() } func (o TlsSubscriptionOutput) ToTlsSubscriptionOutput() TlsSubscriptionOutput { @@ -308,44 +279,10 @@ func (o TlsSubscriptionOutput) ToTlsSubscriptionOutputWithContext(ctx context.Co return o } -func (o TlsSubscriptionOutput) ToTlsSubscriptionPtrOutput() TlsSubscriptionPtrOutput { - return o.ToTlsSubscriptionPtrOutputWithContext(context.Background()) -} - -func (o TlsSubscriptionOutput) ToTlsSubscriptionPtrOutputWithContext(ctx context.Context) TlsSubscriptionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsSubscription) *TlsSubscription { - return &v - }).(TlsSubscriptionPtrOutput) -} - -type TlsSubscriptionPtrOutput struct{ *pulumi.OutputState } - -func (TlsSubscriptionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsSubscription)(nil)) -} - -func (o TlsSubscriptionPtrOutput) ToTlsSubscriptionPtrOutput() TlsSubscriptionPtrOutput { - return o -} - -func (o TlsSubscriptionPtrOutput) ToTlsSubscriptionPtrOutputWithContext(ctx context.Context) TlsSubscriptionPtrOutput { - return o -} - -func (o TlsSubscriptionPtrOutput) Elem() TlsSubscriptionOutput { - return o.ApplyT(func(v *TlsSubscription) TlsSubscription { - if v != nil { - return *v - } - var ret TlsSubscription - return ret - }).(TlsSubscriptionOutput) -} - type TlsSubscriptionArrayOutput struct{ *pulumi.OutputState } func (TlsSubscriptionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsSubscription)(nil)) + return reflect.TypeOf((*[]*TlsSubscription)(nil)).Elem() } func (o TlsSubscriptionArrayOutput) ToTlsSubscriptionArrayOutput() TlsSubscriptionArrayOutput { @@ -357,15 +294,15 @@ func (o TlsSubscriptionArrayOutput) ToTlsSubscriptionArrayOutputWithContext(ctx } func (o TlsSubscriptionArrayOutput) Index(i pulumi.IntInput) TlsSubscriptionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsSubscription { - return vs[0].([]TlsSubscription)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsSubscription { + return vs[0].([]*TlsSubscription)[vs[1].(int)] }).(TlsSubscriptionOutput) } type TlsSubscriptionMapOutput struct{ *pulumi.OutputState } func (TlsSubscriptionMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsSubscription)(nil)) + return reflect.TypeOf((*map[string]*TlsSubscription)(nil)).Elem() } func (o TlsSubscriptionMapOutput) ToTlsSubscriptionMapOutput() TlsSubscriptionMapOutput { @@ -377,18 +314,16 @@ func (o TlsSubscriptionMapOutput) ToTlsSubscriptionMapOutputWithContext(ctx cont } func (o TlsSubscriptionMapOutput) MapIndex(k pulumi.StringInput) TlsSubscriptionOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsSubscription { - return vs[0].(map[string]TlsSubscription)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsSubscription { + return vs[0].(map[string]*TlsSubscription)[vs[1].(string)] }).(TlsSubscriptionOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionInput)(nil)).Elem(), &TlsSubscription{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionPtrInput)(nil)).Elem(), &TlsSubscription{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionArrayInput)(nil)).Elem(), TlsSubscriptionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionMapInput)(nil)).Elem(), TlsSubscriptionMap{}) pulumi.RegisterOutputType(TlsSubscriptionOutput{}) - pulumi.RegisterOutputType(TlsSubscriptionPtrOutput{}) pulumi.RegisterOutputType(TlsSubscriptionArrayOutput{}) pulumi.RegisterOutputType(TlsSubscriptionMapOutput{}) } diff --git a/sdk/go/fastly/tlsSubscriptionValidation.go b/sdk/go/fastly/tlsSubscriptionValidation.go index 3bb65445..5d9fa150 100644 --- a/sdk/go/fastly/tlsSubscriptionValidation.go +++ b/sdk/go/fastly/tlsSubscriptionValidation.go @@ -91,7 +91,7 @@ type TlsSubscriptionValidationInput interface { } func (*TlsSubscriptionValidation) ElementType() reflect.Type { - return reflect.TypeOf((*TlsSubscriptionValidation)(nil)) + return reflect.TypeOf((**TlsSubscriptionValidation)(nil)).Elem() } func (i *TlsSubscriptionValidation) ToTlsSubscriptionValidationOutput() TlsSubscriptionValidationOutput { @@ -102,35 +102,6 @@ func (i *TlsSubscriptionValidation) ToTlsSubscriptionValidationOutputWithContext return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionValidationOutput) } -func (i *TlsSubscriptionValidation) ToTlsSubscriptionValidationPtrOutput() TlsSubscriptionValidationPtrOutput { - return i.ToTlsSubscriptionValidationPtrOutputWithContext(context.Background()) -} - -func (i *TlsSubscriptionValidation) ToTlsSubscriptionValidationPtrOutputWithContext(ctx context.Context) TlsSubscriptionValidationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionValidationPtrOutput) -} - -type TlsSubscriptionValidationPtrInput interface { - pulumi.Input - - ToTlsSubscriptionValidationPtrOutput() TlsSubscriptionValidationPtrOutput - ToTlsSubscriptionValidationPtrOutputWithContext(ctx context.Context) TlsSubscriptionValidationPtrOutput -} - -type tlsSubscriptionValidationPtrType TlsSubscriptionValidationArgs - -func (*tlsSubscriptionValidationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**TlsSubscriptionValidation)(nil)) -} - -func (i *tlsSubscriptionValidationPtrType) ToTlsSubscriptionValidationPtrOutput() TlsSubscriptionValidationPtrOutput { - return i.ToTlsSubscriptionValidationPtrOutputWithContext(context.Background()) -} - -func (i *tlsSubscriptionValidationPtrType) ToTlsSubscriptionValidationPtrOutputWithContext(ctx context.Context) TlsSubscriptionValidationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(TlsSubscriptionValidationPtrOutput) -} - // TlsSubscriptionValidationArrayInput is an input type that accepts TlsSubscriptionValidationArray and TlsSubscriptionValidationArrayOutput values. // You can construct a concrete instance of `TlsSubscriptionValidationArrayInput` via: // @@ -184,7 +155,7 @@ func (i TlsSubscriptionValidationMap) ToTlsSubscriptionValidationMapOutputWithCo type TlsSubscriptionValidationOutput struct{ *pulumi.OutputState } func (TlsSubscriptionValidationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*TlsSubscriptionValidation)(nil)) + return reflect.TypeOf((**TlsSubscriptionValidation)(nil)).Elem() } func (o TlsSubscriptionValidationOutput) ToTlsSubscriptionValidationOutput() TlsSubscriptionValidationOutput { @@ -195,44 +166,10 @@ func (o TlsSubscriptionValidationOutput) ToTlsSubscriptionValidationOutputWithCo return o } -func (o TlsSubscriptionValidationOutput) ToTlsSubscriptionValidationPtrOutput() TlsSubscriptionValidationPtrOutput { - return o.ToTlsSubscriptionValidationPtrOutputWithContext(context.Background()) -} - -func (o TlsSubscriptionValidationOutput) ToTlsSubscriptionValidationPtrOutputWithContext(ctx context.Context) TlsSubscriptionValidationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v TlsSubscriptionValidation) *TlsSubscriptionValidation { - return &v - }).(TlsSubscriptionValidationPtrOutput) -} - -type TlsSubscriptionValidationPtrOutput struct{ *pulumi.OutputState } - -func (TlsSubscriptionValidationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**TlsSubscriptionValidation)(nil)) -} - -func (o TlsSubscriptionValidationPtrOutput) ToTlsSubscriptionValidationPtrOutput() TlsSubscriptionValidationPtrOutput { - return o -} - -func (o TlsSubscriptionValidationPtrOutput) ToTlsSubscriptionValidationPtrOutputWithContext(ctx context.Context) TlsSubscriptionValidationPtrOutput { - return o -} - -func (o TlsSubscriptionValidationPtrOutput) Elem() TlsSubscriptionValidationOutput { - return o.ApplyT(func(v *TlsSubscriptionValidation) TlsSubscriptionValidation { - if v != nil { - return *v - } - var ret TlsSubscriptionValidation - return ret - }).(TlsSubscriptionValidationOutput) -} - type TlsSubscriptionValidationArrayOutput struct{ *pulumi.OutputState } func (TlsSubscriptionValidationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]TlsSubscriptionValidation)(nil)) + return reflect.TypeOf((*[]*TlsSubscriptionValidation)(nil)).Elem() } func (o TlsSubscriptionValidationArrayOutput) ToTlsSubscriptionValidationArrayOutput() TlsSubscriptionValidationArrayOutput { @@ -244,15 +181,15 @@ func (o TlsSubscriptionValidationArrayOutput) ToTlsSubscriptionValidationArrayOu } func (o TlsSubscriptionValidationArrayOutput) Index(i pulumi.IntInput) TlsSubscriptionValidationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) TlsSubscriptionValidation { - return vs[0].([]TlsSubscriptionValidation)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TlsSubscriptionValidation { + return vs[0].([]*TlsSubscriptionValidation)[vs[1].(int)] }).(TlsSubscriptionValidationOutput) } type TlsSubscriptionValidationMapOutput struct{ *pulumi.OutputState } func (TlsSubscriptionValidationMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]TlsSubscriptionValidation)(nil)) + return reflect.TypeOf((*map[string]*TlsSubscriptionValidation)(nil)).Elem() } func (o TlsSubscriptionValidationMapOutput) ToTlsSubscriptionValidationMapOutput() TlsSubscriptionValidationMapOutput { @@ -264,18 +201,16 @@ func (o TlsSubscriptionValidationMapOutput) ToTlsSubscriptionValidationMapOutput } func (o TlsSubscriptionValidationMapOutput) MapIndex(k pulumi.StringInput) TlsSubscriptionValidationOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) TlsSubscriptionValidation { - return vs[0].(map[string]TlsSubscriptionValidation)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TlsSubscriptionValidation { + return vs[0].(map[string]*TlsSubscriptionValidation)[vs[1].(string)] }).(TlsSubscriptionValidationOutput) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionValidationInput)(nil)).Elem(), &TlsSubscriptionValidation{}) - pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionValidationPtrInput)(nil)).Elem(), &TlsSubscriptionValidation{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionValidationArrayInput)(nil)).Elem(), TlsSubscriptionValidationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*TlsSubscriptionValidationMapInput)(nil)).Elem(), TlsSubscriptionValidationMap{}) pulumi.RegisterOutputType(TlsSubscriptionValidationOutput{}) - pulumi.RegisterOutputType(TlsSubscriptionValidationPtrOutput{}) pulumi.RegisterOutputType(TlsSubscriptionValidationArrayOutput{}) pulumi.RegisterOutputType(TlsSubscriptionValidationMapOutput{}) } diff --git a/sdk/go/fastly/userv1.go b/sdk/go/fastly/userv1.go index 0607c44c..b93c9119 100644 --- a/sdk/go/fastly/userv1.go +++ b/sdk/go/fastly/userv1.go @@ -142,7 +142,7 @@ type Userv1Input interface { } func (*Userv1) ElementType() reflect.Type { - return reflect.TypeOf((*Userv1)(nil)) + return reflect.TypeOf((**Userv1)(nil)).Elem() } func (i *Userv1) ToUserv1Output() Userv1Output { @@ -153,35 +153,6 @@ func (i *Userv1) ToUserv1OutputWithContext(ctx context.Context) Userv1Output { return pulumi.ToOutputWithContext(ctx, i).(Userv1Output) } -func (i *Userv1) ToUserv1PtrOutput() Userv1PtrOutput { - return i.ToUserv1PtrOutputWithContext(context.Background()) -} - -func (i *Userv1) ToUserv1PtrOutputWithContext(ctx context.Context) Userv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(Userv1PtrOutput) -} - -type Userv1PtrInput interface { - pulumi.Input - - ToUserv1PtrOutput() Userv1PtrOutput - ToUserv1PtrOutputWithContext(ctx context.Context) Userv1PtrOutput -} - -type userv1PtrType Userv1Args - -func (*userv1PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**Userv1)(nil)) -} - -func (i *userv1PtrType) ToUserv1PtrOutput() Userv1PtrOutput { - return i.ToUserv1PtrOutputWithContext(context.Background()) -} - -func (i *userv1PtrType) ToUserv1PtrOutputWithContext(ctx context.Context) Userv1PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(Userv1PtrOutput) -} - // Userv1ArrayInput is an input type that accepts Userv1Array and Userv1ArrayOutput values. // You can construct a concrete instance of `Userv1ArrayInput` via: // @@ -235,7 +206,7 @@ func (i Userv1Map) ToUserv1MapOutputWithContext(ctx context.Context) Userv1MapOu type Userv1Output struct{ *pulumi.OutputState } func (Userv1Output) ElementType() reflect.Type { - return reflect.TypeOf((*Userv1)(nil)) + return reflect.TypeOf((**Userv1)(nil)).Elem() } func (o Userv1Output) ToUserv1Output() Userv1Output { @@ -246,44 +217,10 @@ func (o Userv1Output) ToUserv1OutputWithContext(ctx context.Context) Userv1Outpu return o } -func (o Userv1Output) ToUserv1PtrOutput() Userv1PtrOutput { - return o.ToUserv1PtrOutputWithContext(context.Background()) -} - -func (o Userv1Output) ToUserv1PtrOutputWithContext(ctx context.Context) Userv1PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v Userv1) *Userv1 { - return &v - }).(Userv1PtrOutput) -} - -type Userv1PtrOutput struct{ *pulumi.OutputState } - -func (Userv1PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**Userv1)(nil)) -} - -func (o Userv1PtrOutput) ToUserv1PtrOutput() Userv1PtrOutput { - return o -} - -func (o Userv1PtrOutput) ToUserv1PtrOutputWithContext(ctx context.Context) Userv1PtrOutput { - return o -} - -func (o Userv1PtrOutput) Elem() Userv1Output { - return o.ApplyT(func(v *Userv1) Userv1 { - if v != nil { - return *v - } - var ret Userv1 - return ret - }).(Userv1Output) -} - type Userv1ArrayOutput struct{ *pulumi.OutputState } func (Userv1ArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]Userv1)(nil)) + return reflect.TypeOf((*[]*Userv1)(nil)).Elem() } func (o Userv1ArrayOutput) ToUserv1ArrayOutput() Userv1ArrayOutput { @@ -295,15 +232,15 @@ func (o Userv1ArrayOutput) ToUserv1ArrayOutputWithContext(ctx context.Context) U } func (o Userv1ArrayOutput) Index(i pulumi.IntInput) Userv1Output { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) Userv1 { - return vs[0].([]Userv1)[vs[1].(int)] + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Userv1 { + return vs[0].([]*Userv1)[vs[1].(int)] }).(Userv1Output) } type Userv1MapOutput struct{ *pulumi.OutputState } func (Userv1MapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]Userv1)(nil)) + return reflect.TypeOf((*map[string]*Userv1)(nil)).Elem() } func (o Userv1MapOutput) ToUserv1MapOutput() Userv1MapOutput { @@ -315,18 +252,16 @@ func (o Userv1MapOutput) ToUserv1MapOutputWithContext(ctx context.Context) Userv } func (o Userv1MapOutput) MapIndex(k pulumi.StringInput) Userv1Output { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) Userv1 { - return vs[0].(map[string]Userv1)[vs[1].(string)] + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Userv1 { + return vs[0].(map[string]*Userv1)[vs[1].(string)] }).(Userv1Output) } func init() { pulumi.RegisterInputType(reflect.TypeOf((*Userv1Input)(nil)).Elem(), &Userv1{}) - pulumi.RegisterInputType(reflect.TypeOf((*Userv1PtrInput)(nil)).Elem(), &Userv1{}) pulumi.RegisterInputType(reflect.TypeOf((*Userv1ArrayInput)(nil)).Elem(), Userv1Array{}) pulumi.RegisterInputType(reflect.TypeOf((*Userv1MapInput)(nil)).Elem(), Userv1Map{}) pulumi.RegisterOutputType(Userv1Output{}) - pulumi.RegisterOutputType(Userv1PtrOutput{}) pulumi.RegisterOutputType(Userv1ArrayOutput{}) pulumi.RegisterOutputType(Userv1MapOutput{}) } diff --git a/sdk/nodejs/getFastlyIpRanges.ts b/sdk/nodejs/getFastlyIpRanges.ts index 4dc8c167..369991c8 100644 --- a/sdk/nodejs/getFastlyIpRanges.ts +++ b/sdk/nodejs/getFastlyIpRanges.ts @@ -31,9 +31,7 @@ export function getFastlyIpRanges(opts?: pulumi.InvokeOptions): Promise