From a567c2991c7d1d5977f63b133c4f4ffee9283e9c Mon Sep 17 00:00:00 2001 From: "bot@pulumi.com" Date: Wed, 4 Dec 2024 03:25:02 +0000 Subject: [PATCH] make build_sdks --- sdk/dotnet/LoadBalancer.cs | 6 ++++++ sdk/go/digitalocean/loadBalancer.go | 13 +++++++++--- sdk/java/build.gradle | 4 ++-- .../com/pulumi/digitalocean/LoadBalancer.java | 6 ++++++ .../inputs/LoadBalancerState.java | 17 ++++++++++++++++ .../outputs/GetAppSpecIngress.java | 14 ++++++------- sdk/nodejs/loadBalancer.ts | 4 ++++ sdk/nodejs/types/output.ts | 4 ++-- .../pulumi_digitalocean/load_balancer.py | 20 +++++++++++++++++++ sdk/python/pulumi_digitalocean/outputs.py | 7 ++++--- 10 files changed, 77 insertions(+), 18 deletions(-) diff --git a/sdk/dotnet/LoadBalancer.cs b/sdk/dotnet/LoadBalancer.cs index 66f841cd..6824ccaa 100644 --- a/sdk/dotnet/LoadBalancer.cs +++ b/sdk/dotnet/LoadBalancer.cs @@ -159,6 +159,9 @@ public partial class LoadBalancer : global::Pulumi.CustomResource [Output("ip")] public Output Ip { get; private set; } = null!; + [Output("ipv6")] + public Output Ipv6 { get; private set; } = null!; + /// /// The uniform resource name for the Load Balancer /// @@ -566,6 +569,9 @@ public InputList ForwardingRules [Input("ip")] public Input? Ip { get; set; } + [Input("ipv6")] + public Input? Ipv6 { get; set; } + /// /// The uniform resource name for the Load Balancer /// diff --git a/sdk/go/digitalocean/loadBalancer.go b/sdk/go/digitalocean/loadBalancer.go index 0cfbf191..9761452f 100644 --- a/sdk/go/digitalocean/loadBalancer.go +++ b/sdk/go/digitalocean/loadBalancer.go @@ -113,7 +113,8 @@ type LoadBalancer struct { // Specifies the idle timeout for HTTPS connections on the load balancer in seconds. HttpIdleTimeoutSeconds pulumi.IntOutput `pulumi:"httpIdleTimeoutSeconds"` // The ip of the Load Balancer - Ip pulumi.StringOutput `pulumi:"ip"` + Ip pulumi.StringOutput `pulumi:"ip"` + Ipv6 pulumi.StringOutput `pulumi:"ipv6"` // The uniform resource name for the Load Balancer LoadBalancerUrn pulumi.StringOutput `pulumi:"loadBalancerUrn"` // The Load Balancer name @@ -208,7 +209,8 @@ type loadBalancerState struct { // Specifies the idle timeout for HTTPS connections on the load balancer in seconds. HttpIdleTimeoutSeconds *int `pulumi:"httpIdleTimeoutSeconds"` // The ip of the Load Balancer - Ip *string `pulumi:"ip"` + Ip *string `pulumi:"ip"` + Ipv6 *string `pulumi:"ipv6"` // The uniform resource name for the Load Balancer LoadBalancerUrn *string `pulumi:"loadBalancerUrn"` // The Load Balancer name @@ -274,7 +276,8 @@ type LoadBalancerState struct { // Specifies the idle timeout for HTTPS connections on the load balancer in seconds. HttpIdleTimeoutSeconds pulumi.IntPtrInput // The ip of the Load Balancer - Ip pulumi.StringPtrInput + Ip pulumi.StringPtrInput + Ipv6 pulumi.StringPtrInput // The uniform resource name for the Load Balancer LoadBalancerUrn pulumi.StringPtrInput // The Load Balancer name @@ -593,6 +596,10 @@ func (o LoadBalancerOutput) Ip() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Ip }).(pulumi.StringOutput) } +func (o LoadBalancerOutput) Ipv6() pulumi.StringOutput { + return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Ipv6 }).(pulumi.StringOutput) +} + // The uniform resource name for the Load Balancer func (o LoadBalancerOutput) LoadBalancerUrn() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.LoadBalancerUrn }).(pulumi.StringOutput) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index fef06b88..19e29c70 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -5,7 +5,7 @@ plugins { id("signing") id("java-library") id("maven-publish") - id("io.github.gradle-nexus.publish-plugin") version "1.1.0" + id("io.github.gradle-nexus.publish-plugin") version "2.0.0" } group = "com.pulumi" @@ -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.17.0") + implementation("com.pulumi:pulumi:0.18.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java index 56c8ae59..9f88f3ee 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java @@ -298,6 +298,12 @@ public Output httpIdleTimeoutSeconds() { public Output ip() { return this.ip; } + @Export(name="ipv6", refs={String.class}, tree="[0]") + private Output ipv6; + + public Output ipv6() { + return this.ipv6; + } /** * The uniform resource name for the Load Balancer * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerState.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerState.java index df1a3f36..d33ff77b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerState.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerState.java @@ -240,6 +240,13 @@ public Optional> ip() { return Optional.ofNullable(this.ip); } + @Import(name="ipv6") + private @Nullable Output ipv6; + + public Optional> ipv6() { + return Optional.ofNullable(this.ipv6); + } + /** * The uniform resource name for the Load Balancer * @@ -453,6 +460,7 @@ private LoadBalancerState(LoadBalancerState $) { this.healthcheck = $.healthcheck; this.httpIdleTimeoutSeconds = $.httpIdleTimeoutSeconds; this.ip = $.ip; + this.ipv6 = $.ipv6; this.loadBalancerUrn = $.loadBalancerUrn; this.name = $.name; this.network = $.network; @@ -838,6 +846,15 @@ public Builder ip(String ip) { return ip(Output.of(ip)); } + public Builder ipv6(@Nullable Output ipv6) { + $.ipv6 = ipv6; + return this; + } + + public Builder ipv6(String ipv6) { + return ipv6(Output.of(ipv6)); + } + /** * @param loadBalancerUrn The uniform resource name for the Load Balancer * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java index 66340cce..4e0be25d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java @@ -5,9 +5,9 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecIngressRule; -import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.List; import java.util.Objects; +import javax.annotation.Nullable; @CustomType public final class GetAppSpecIngress { @@ -15,7 +15,7 @@ public final class GetAppSpecIngress { * @return The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. * */ - private List rules; + private @Nullable List rules; private GetAppSpecIngress() {} /** @@ -23,7 +23,7 @@ private GetAppSpecIngress() {} * */ public List rules() { - return this.rules; + return this.rules == null ? List.of() : this.rules; } public static Builder builder() { @@ -35,7 +35,7 @@ public static Builder builder(GetAppSpecIngress defaults) { } @CustomType.Builder public static final class Builder { - private List rules; + private @Nullable List rules; public Builder() {} public Builder(GetAppSpecIngress defaults) { Objects.requireNonNull(defaults); @@ -43,10 +43,8 @@ public Builder(GetAppSpecIngress defaults) { } @CustomType.Setter - public Builder rules(List rules) { - if (rules == null) { - throw new MissingRequiredPropertyException("GetAppSpecIngress", "rules"); - } + public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } diff --git a/sdk/nodejs/loadBalancer.ts b/sdk/nodejs/loadBalancer.ts index 66b87076..6c7b4f5f 100644 --- a/sdk/nodejs/loadBalancer.ts +++ b/sdk/nodejs/loadBalancer.ts @@ -141,6 +141,7 @@ export class LoadBalancer extends pulumi.CustomResource { * The ip of the Load Balancer */ public /*out*/ readonly ip!: pulumi.Output; + public /*out*/ readonly ipv6!: pulumi.Output; /** * The uniform resource name for the Load Balancer */ @@ -222,6 +223,7 @@ export class LoadBalancer extends pulumi.CustomResource { resourceInputs["healthcheck"] = state ? state.healthcheck : undefined; resourceInputs["httpIdleTimeoutSeconds"] = state ? state.httpIdleTimeoutSeconds : undefined; resourceInputs["ip"] = state ? state.ip : undefined; + resourceInputs["ipv6"] = state ? state.ipv6 : undefined; resourceInputs["loadBalancerUrn"] = state ? state.loadBalancerUrn : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["network"] = state ? state.network : undefined; @@ -261,6 +263,7 @@ export class LoadBalancer extends pulumi.CustomResource { resourceInputs["type"] = args ? args.type : undefined; resourceInputs["vpcUuid"] = args ? args.vpcUuid : undefined; resourceInputs["ip"] = undefined /*out*/; + resourceInputs["ipv6"] = undefined /*out*/; resourceInputs["loadBalancerUrn"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } @@ -332,6 +335,7 @@ export interface LoadBalancerState { * The ip of the Load Balancer */ ip?: pulumi.Input; + ipv6?: pulumi.Input; /** * The uniform resource name for the Load Balancer */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 4371db38..68594a7c 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -425,7 +425,7 @@ export interface AppSpecIngress { /** * Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects. */ - rules: outputs.AppSpecIngressRule[]; + rules?: outputs.AppSpecIngressRule[]; } export interface AppSpecIngressRule { @@ -2350,7 +2350,7 @@ export interface GetAppSpecIngress { /** * The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. */ - rules: outputs.GetAppSpecIngressRule[]; + rules?: outputs.GetAppSpecIngressRule[]; } export interface GetAppSpecIngressRule { diff --git a/sdk/python/pulumi_digitalocean/load_balancer.py b/sdk/python/pulumi_digitalocean/load_balancer.py index 1e442d2d..9bf0ec72 100644 --- a/sdk/python/pulumi_digitalocean/load_balancer.py +++ b/sdk/python/pulumi_digitalocean/load_balancer.py @@ -435,6 +435,7 @@ def __init__(__self__, *, healthcheck: Optional[pulumi.Input['LoadBalancerHealthcheckArgs']] = None, http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None, ip: Optional[pulumi.Input[str]] = None, + ipv6: Optional[pulumi.Input[str]] = None, load_balancer_urn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, network: Optional[pulumi.Input[str]] = None, @@ -515,6 +516,8 @@ def __init__(__self__, *, pulumi.set(__self__, "http_idle_timeout_seconds", http_idle_timeout_seconds) if ip is not None: pulumi.set(__self__, "ip", ip) + if ipv6 is not None: + pulumi.set(__self__, "ipv6", ipv6) if load_balancer_urn is not None: pulumi.set(__self__, "load_balancer_urn", load_balancer_urn) if name is not None: @@ -704,6 +707,15 @@ def ip(self) -> Optional[pulumi.Input[str]]: def ip(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ip", value) + @property + @pulumi.getter + def ipv6(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "ipv6") + + @ipv6.setter + def ipv6(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ipv6", value) + @property @pulumi.getter(name="loadBalancerUrn") def load_balancer_urn(self) -> Optional[pulumi.Input[str]]: @@ -1095,6 +1107,7 @@ def _internal_init(__self__, __props__.__dict__["type"] = type __props__.__dict__["vpc_uuid"] = vpc_uuid __props__.__dict__["ip"] = None + __props__.__dict__["ipv6"] = None __props__.__dict__["load_balancer_urn"] = None __props__.__dict__["status"] = None super(LoadBalancer, __self__).__init__( @@ -1120,6 +1133,7 @@ def get(resource_name: str, healthcheck: Optional[pulumi.Input[Union['LoadBalancerHealthcheckArgs', 'LoadBalancerHealthcheckArgsDict']]] = None, http_idle_timeout_seconds: Optional[pulumi.Input[int]] = None, ip: Optional[pulumi.Input[str]] = None, + ipv6: Optional[pulumi.Input[str]] = None, load_balancer_urn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, network: Optional[pulumi.Input[str]] = None, @@ -1193,6 +1207,7 @@ def get(resource_name: str, __props__.__dict__["healthcheck"] = healthcheck __props__.__dict__["http_idle_timeout_seconds"] = http_idle_timeout_seconds __props__.__dict__["ip"] = ip + __props__.__dict__["ipv6"] = ipv6 __props__.__dict__["load_balancer_urn"] = load_balancer_urn __props__.__dict__["name"] = name __props__.__dict__["network"] = network @@ -1318,6 +1333,11 @@ def ip(self) -> pulumi.Output[str]: """ return pulumi.get(self, "ip") + @property + @pulumi.getter + def ipv6(self) -> pulumi.Output[str]: + return pulumi.get(self, "ipv6") + @property @pulumi.getter(name="loadBalancerUrn") def load_balancer_urn(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_digitalocean/outputs.py b/sdk/python/pulumi_digitalocean/outputs.py index e0a498b0..c3c9d81e 100644 --- a/sdk/python/pulumi_digitalocean/outputs.py +++ b/sdk/python/pulumi_digitalocean/outputs.py @@ -9867,15 +9867,16 @@ def preserve_path_prefix(self) -> Optional[bool]: @pulumi.output_type class GetAppSpecIngressResult(dict): def __init__(__self__, *, - rules: Sequence['outputs.GetAppSpecIngressRuleResult']): + rules: Optional[Sequence['outputs.GetAppSpecIngressRuleResult']] = None): """ :param Sequence['GetAppSpecIngressRuleArgs'] rules: The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. """ - pulumi.set(__self__, "rules", rules) + if rules is not None: + pulumi.set(__self__, "rules", rules) @property @pulumi.getter - def rules(self) -> Sequence['outputs.GetAppSpecIngressRuleResult']: + def rules(self) -> Optional[Sequence['outputs.GetAppSpecIngressRuleResult']]: """ The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. """