From 6f1af936c96ffd5c8b112f4159da69366ee0484e Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Tue, 2 Jan 2024 08:13:39 -0800 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.70.0 (#289) This PR was generated via `$ upgrade-provider pulumi/pulumi-kong --kind=bridge --pr-reviewers=t0yv0`. --- - Updating Java Gen version from 0.9.8 to 0.9.9. - Upgrading pulumi-terraform-bridge from v3.69.0 to v3.70.0. --- .pulumi-java-gen.version | 2 +- examples/go.mod | 6 +++--- examples/go.sum | 12 +++++------ provider/go.mod | 10 +++++----- provider/go.sum | 20 +++++++++---------- sdk/go.mod | 4 ++-- sdk/go.sum | 8 ++++---- sdk/java/build.gradle | 2 +- .../java/com/pulumi/kong/CertificateArgs.java | 5 ++++- .../java/com/pulumi/kong/ConsumerAclArgs.java | 9 +++++++-- .../pulumi/kong/ConsumerBasicAuthArgs.java | 13 +++++++++--- .../com/pulumi/kong/ConsumerJwtAuthArgs.java | 9 +++++++-- .../com/pulumi/kong/ConsumerKeyAuthArgs.java | 5 ++++- .../com/pulumi/kong/ConsumerOauth2Args.java | 9 +++++++-- .../java/com/pulumi/kong/ProviderArgs.java | 5 ++++- .../main/java/com/pulumi/kong/RouteArgs.java | 9 +++++++-- .../java/com/pulumi/kong/ServiceArgs.java | 5 ++++- .../main/java/com/pulumi/kong/TargetArgs.java | 13 +++++++++--- .../pulumi/kong/inputs/RouteHeaderArgs.java | 9 +++++++-- .../pulumi/kong/outputs/RouteDestination.java | 2 ++ .../com/pulumi/kong/outputs/RouteHeader.java | 11 ++++++++-- .../com/pulumi/kong/outputs/RouteSource.java | 2 ++ .../kong/outputs/UpstreamHealthchecks.java | 2 ++ .../outputs/UpstreamHealthchecksActive.java | 8 ++++++++ .../UpstreamHealthchecksActiveHealthy.java | 3 +++ .../UpstreamHealthchecksActiveUnhealthy.java | 5 +++++ .../outputs/UpstreamHealthchecksPassive.java | 3 +++ .../UpstreamHealthchecksPassiveHealthy.java | 2 ++ .../UpstreamHealthchecksPassiveUnhealthy.java | 4 ++++ 29 files changed, 143 insertions(+), 54 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index b5d0ec55..6f060dcb 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.9.8 \ No newline at end of file +0.9.9 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 82cd39b9..7ac36fe1 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-kong/examples/v4 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.98.0 +require github.com/pulumi/pulumi/pkg/v3 v3.99.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -138,8 +138,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.98.0 // indirect + github.com/pulumi/esc v0.6.2 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.99.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 91d4a077..09efe518 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1445,12 +1445,12 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= diff --git a/provider/go.mod b/provider/go.mod index 9baf50a9..74a59c49 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/kevholditch/terraform-provider-kong v1.9.2-0.20220328204855-9e50bd93437f - github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 ) require ( @@ -170,12 +170,12 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect - github.com/pulumi/pulumi-yaml v1.4.3 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.98.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.98.0 // indirect + github.com/pulumi/pulumi-yaml v1.4.4 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.99.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.99.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index 1294101e..5480b85b 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2204,22 +2204,22 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ= github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 h1:PsIB738ZqrQbHKe5Q5Ag8Kq/ejrOyO8skLUQeAqRjzM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0/go.mod h1:/wXhD95iSr4FlmGtVN/H8hXriMW4isDDrAUprozXG4A= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 h1:+o0c2gUjZURORGNftW4dEOm/E4rzh2JnK+z9PAwLjbE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0/go.mod h1:jcdXdda230ZJJjzeRwWuFPRzq1EI8APwYVQIH32MoRk= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= -github.com/pulumi/pulumi-yaml v1.4.3 h1:GO36c7FTl8If20Dn/w2Hi3huP7kmsO00KNaz3GJU0Ws= -github.com/pulumi/pulumi-yaml v1.4.3/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/pulumi-yaml v1.4.4 h1:BODM3hnmy/kjmbjxySNI5dmGURn2fczVql2MSGjdeQw= +github.com/pulumi/pulumi-yaml v1.4.4/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 17291997..3fa37279 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -57,7 +57,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 2f94a452..1e455351 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -149,10 +149,10 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 2bb05ed9..9d751cdf 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.9.8") + implementation("com.pulumi:pulumi:0.9.9") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/kong/CertificateArgs.java b/sdk/java/src/main/java/com/pulumi/kong/CertificateArgs.java index cf7b3f05..1232729c 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/CertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/CertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -182,7 +183,9 @@ public Builder tags(String... tags) { } public CertificateArgs build() { - $.certificate = Objects.requireNonNull($.certificate, "expected parameter 'certificate' to be non-null"); + if ($.certificate == null) { + throw new MissingRequiredPropertyException("CertificateArgs", "certificate"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ConsumerAclArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ConsumerAclArgs.java index 075f126f..f55342fc 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ConsumerAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ConsumerAclArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -161,8 +162,12 @@ public Builder tags(String... tags) { } public ConsumerAclArgs build() { - $.consumerId = Objects.requireNonNull($.consumerId, "expected parameter 'consumerId' to be non-null"); - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.consumerId == null) { + throw new MissingRequiredPropertyException("ConsumerAclArgs", "consumerId"); + } + if ($.group == null) { + throw new MissingRequiredPropertyException("ConsumerAclArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ConsumerBasicAuthArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ConsumerBasicAuthArgs.java index 9ff25d10..10e38f33 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ConsumerBasicAuthArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ConsumerBasicAuthArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -198,9 +199,15 @@ public Builder username(String username) { } public ConsumerBasicAuthArgs build() { - $.consumerId = Objects.requireNonNull($.consumerId, "expected parameter 'consumerId' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.consumerId == null) { + throw new MissingRequiredPropertyException("ConsumerBasicAuthArgs", "consumerId"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ConsumerBasicAuthArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("ConsumerBasicAuthArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ConsumerJwtAuthArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ConsumerJwtAuthArgs.java index 0bc500e8..2ce3a5f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ConsumerJwtAuthArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ConsumerJwtAuthArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -272,8 +273,12 @@ public Builder tags(String... tags) { } public ConsumerJwtAuthArgs build() { - $.consumerId = Objects.requireNonNull($.consumerId, "expected parameter 'consumerId' to be non-null"); - $.rsaPublicKey = Objects.requireNonNull($.rsaPublicKey, "expected parameter 'rsaPublicKey' to be non-null"); + if ($.consumerId == null) { + throw new MissingRequiredPropertyException("ConsumerJwtAuthArgs", "consumerId"); + } + if ($.rsaPublicKey == null) { + throw new MissingRequiredPropertyException("ConsumerJwtAuthArgs", "rsaPublicKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ConsumerKeyAuthArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ConsumerKeyAuthArgs.java index 37f9bc7a..399c9445 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ConsumerKeyAuthArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ConsumerKeyAuthArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -161,7 +162,9 @@ public Builder tags(String... tags) { } public ConsumerKeyAuthArgs build() { - $.consumerId = Objects.requireNonNull($.consumerId, "expected parameter 'consumerId' to be non-null"); + if ($.consumerId == null) { + throw new MissingRequiredPropertyException("ConsumerKeyAuthArgs", "consumerId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ConsumerOauth2Args.java b/sdk/java/src/main/java/com/pulumi/kong/ConsumerOauth2Args.java index 6adeec0a..11eede43 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ConsumerOauth2Args.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ConsumerOauth2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -320,8 +321,12 @@ public Builder tags(String... tags) { } public ConsumerOauth2Args build() { - $.consumerId = Objects.requireNonNull($.consumerId, "expected parameter 'consumerId' to be non-null"); - $.redirectUris = Objects.requireNonNull($.redirectUris, "expected parameter 'redirectUris' to be non-null"); + if ($.consumerId == null) { + throw new MissingRequiredPropertyException("ConsumerOauth2Args", "consumerId"); + } + if ($.redirectUris == null) { + throw new MissingRequiredPropertyException("ConsumerOauth2Args", "redirectUris"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ProviderArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ProviderArgs.java index 323c8e7a..9e881455 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ProviderArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -337,7 +338,9 @@ public Builder tlsSkipVerify(Boolean tlsSkipVerify) { } public ProviderArgs build() { - $.kongAdminUri = Objects.requireNonNull($.kongAdminUri, "expected parameter 'kongAdminUri' to be non-null"); + if ($.kongAdminUri == null) { + throw new MissingRequiredPropertyException("ProviderArgs", "kongAdminUri"); + } $.strictPluginsMatch = Codegen.booleanProp("strictPluginsMatch").output().arg($.strictPluginsMatch).env("STRICT_PLUGINS_MATCH").getNullable(); $.tlsSkipVerify = Codegen.booleanProp("tlsSkipVerify").output().arg($.tlsSkipVerify).env("TLS_SKIP_VERIFY").def(false).getNullable(); return $; diff --git a/sdk/java/src/main/java/com/pulumi/kong/RouteArgs.java b/sdk/java/src/main/java/com/pulumi/kong/RouteArgs.java index 0212531b..1fa5ca4b 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/RouteArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/RouteArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kong.inputs.RouteDestinationArgs; import com.pulumi.kong.inputs.RouteHeaderArgs; import com.pulumi.kong.inputs.RouteSourceArgs; @@ -801,8 +802,12 @@ public Builder tags(String... tags) { } public RouteArgs build() { - $.protocols = Objects.requireNonNull($.protocols, "expected parameter 'protocols' to be non-null"); - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); + if ($.protocols == null) { + throw new MissingRequiredPropertyException("RouteArgs", "protocols"); + } + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("RouteArgs", "serviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/ServiceArgs.java b/sdk/java/src/main/java/com/pulumi/kong/ServiceArgs.java index 0ba1290a..bcee2e70 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/ServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/ServiceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -580,7 +581,9 @@ public Builder writeTimeout(Integer writeTimeout) { } public ServiceArgs build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("ServiceArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/TargetArgs.java b/sdk/java/src/main/java/com/pulumi/kong/TargetArgs.java index 916ff225..d4dcfa6f 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/TargetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/TargetArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -199,9 +200,15 @@ public Builder weight(Integer weight) { } public TargetArgs build() { - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); - $.upstreamId = Objects.requireNonNull($.upstreamId, "expected parameter 'upstreamId' to be non-null"); - $.weight = Objects.requireNonNull($.weight, "expected parameter 'weight' to be non-null"); + if ($.target == null) { + throw new MissingRequiredPropertyException("TargetArgs", "target"); + } + if ($.upstreamId == null) { + throw new MissingRequiredPropertyException("TargetArgs", "upstreamId"); + } + if ($.weight == null) { + throw new MissingRequiredPropertyException("TargetArgs", "weight"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/inputs/RouteHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/kong/inputs/RouteHeaderArgs.java index 0a061c92..5e85b5a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/inputs/RouteHeaderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kong/inputs/RouteHeaderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -96,8 +97,12 @@ public Builder values(String... values) { } public RouteHeaderArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("RouteHeaderArgs", "name"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("RouteHeaderArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteDestination.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteDestination.java index 9aa0520d..a039c318 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteDestination.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteDestination.java @@ -43,11 +43,13 @@ public Builder(RouteDestination defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteHeader.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteHeader.java index fa142672..c0a9bc95 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteHeader.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteHeader.java @@ -4,6 +4,7 @@ package com.pulumi.kong.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -49,12 +50,18 @@ public Builder(RouteHeader defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("RouteHeader", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("RouteHeader", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteSource.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteSource.java index 0a4152c7..bf30f02f 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteSource.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/RouteSource.java @@ -43,11 +43,13 @@ public Builder(RouteSource defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecks.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecks.java index c733e664..ca7c417a 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecks.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecks.java @@ -43,11 +43,13 @@ public Builder(UpstreamHealthchecks defaults) { @CustomType.Setter public Builder active(@Nullable UpstreamHealthchecksActive active) { + this.active = active; return this; } @CustomType.Setter public Builder passive(@Nullable UpstreamHealthchecksPassive passive) { + this.passive = passive; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActive.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActive.java index d17abab5..7dcdd33d 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActive.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActive.java @@ -82,41 +82,49 @@ public Builder(UpstreamHealthchecksActive defaults) { @CustomType.Setter public Builder concurrency(@Nullable Integer concurrency) { + this.concurrency = concurrency; return this; } @CustomType.Setter public Builder healthy(@Nullable UpstreamHealthchecksActiveHealthy healthy) { + this.healthy = healthy; return this; } @CustomType.Setter public Builder httpPath(@Nullable String httpPath) { + this.httpPath = httpPath; return this; } @CustomType.Setter public Builder httpsSni(@Nullable String httpsSni) { + this.httpsSni = httpsSni; return this; } @CustomType.Setter public Builder httpsVerifyCertificate(@Nullable Boolean httpsVerifyCertificate) { + this.httpsVerifyCertificate = httpsVerifyCertificate; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder unhealthy(@Nullable UpstreamHealthchecksActiveUnhealthy unhealthy) { + this.unhealthy = unhealthy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveHealthy.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveHealthy.java index 9a6fda39..5bb1a23e 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveHealthy.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveHealthy.java @@ -49,6 +49,7 @@ public Builder(UpstreamHealthchecksActiveHealthy defaults) { @CustomType.Setter public Builder httpStatuses(@Nullable List httpStatuses) { + this.httpStatuses = httpStatuses; return this; } @@ -57,11 +58,13 @@ public Builder httpStatuses(Integer... httpStatuses) { } @CustomType.Setter public Builder interval(@Nullable Integer interval) { + this.interval = interval; return this; } @CustomType.Setter public Builder successes(@Nullable Integer successes) { + this.successes = successes; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveUnhealthy.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveUnhealthy.java index 99acf8a2..2d7eac31 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveUnhealthy.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksActiveUnhealthy.java @@ -61,11 +61,13 @@ public Builder(UpstreamHealthchecksActiveUnhealthy defaults) { @CustomType.Setter public Builder httpFailures(@Nullable Integer httpFailures) { + this.httpFailures = httpFailures; return this; } @CustomType.Setter public Builder httpStatuses(@Nullable List httpStatuses) { + this.httpStatuses = httpStatuses; return this; } @@ -74,16 +76,19 @@ public Builder httpStatuses(Integer... httpStatuses) { } @CustomType.Setter public Builder interval(@Nullable Integer interval) { + this.interval = interval; return this; } @CustomType.Setter public Builder tcpFailures(@Nullable Integer tcpFailures) { + this.tcpFailures = tcpFailures; return this; } @CustomType.Setter public Builder timeouts(@Nullable Integer timeouts) { + this.timeouts = timeouts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassive.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassive.java index 23cf2e5d..a4feb493 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassive.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassive.java @@ -50,16 +50,19 @@ public Builder(UpstreamHealthchecksPassive defaults) { @CustomType.Setter public Builder healthy(@Nullable UpstreamHealthchecksPassiveHealthy healthy) { + this.healthy = healthy; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder unhealthy(@Nullable UpstreamHealthchecksPassiveUnhealthy unhealthy) { + this.unhealthy = unhealthy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveHealthy.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveHealthy.java index bae58c16..c9f1bb05 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveHealthy.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveHealthy.java @@ -43,6 +43,7 @@ public Builder(UpstreamHealthchecksPassiveHealthy defaults) { @CustomType.Setter public Builder httpStatuses(@Nullable List httpStatuses) { + this.httpStatuses = httpStatuses; return this; } @@ -51,6 +52,7 @@ public Builder httpStatuses(Integer... httpStatuses) { } @CustomType.Setter public Builder successes(@Nullable Integer successes) { + this.successes = successes; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveUnhealthy.java b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveUnhealthy.java index 0bc6e540..e567711a 100644 --- a/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveUnhealthy.java +++ b/sdk/java/src/main/java/com/pulumi/kong/outputs/UpstreamHealthchecksPassiveUnhealthy.java @@ -55,11 +55,13 @@ public Builder(UpstreamHealthchecksPassiveUnhealthy defaults) { @CustomType.Setter public Builder httpFailures(@Nullable Integer httpFailures) { + this.httpFailures = httpFailures; return this; } @CustomType.Setter public Builder httpStatuses(@Nullable List httpStatuses) { + this.httpStatuses = httpStatuses; return this; } @@ -68,11 +70,13 @@ public Builder httpStatuses(Integer... httpStatuses) { } @CustomType.Setter public Builder tcpFailures(@Nullable Integer tcpFailures) { + this.tcpFailures = tcpFailures; return this; } @CustomType.Setter public Builder timeouts(@Nullable Integer timeouts) { + this.timeouts = timeouts; return this; }