Skip to content

Commit

Permalink
feat: update pulumi java
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Feb 6, 2024
1 parent 2296ee8 commit 27ec93c
Show file tree
Hide file tree
Showing 123 changed files with 975 additions and 189 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PROVIDER := pulumi-resource-${PACK}
VERSION := $(shell pulumictl get version)

JAVA_GEN := pulumi-java-gen
JAVA_GEN_VERSION := v0.9.8
JAVA_GEN_VERSION := v0.9.9

TESTPARALLELISM := 4

Expand Down
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-proxmoxve/schema-embed.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import io.muehlbachler.pulumi.proxmoxve.CT.inputs.ContainerCloneArgs;
import io.muehlbachler.pulumi.proxmoxve.CT.inputs.ContainerConsoleArgs;
import io.muehlbachler.pulumi.proxmoxve.CT.inputs.ContainerCpuArgs;
Expand Down Expand Up @@ -856,7 +857,9 @@ public Builder vmId(Integer vmId) {
}

public ContainerArgs build() {
$.nodeName = Objects.requireNonNull($.nodeName, "expected parameter 'nodeName' to be non-null");
if ($.nodeName == null) {
throw new MissingRequiredPropertyException("ContainerArgs", "nodeName");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.Objects;
Expand Down Expand Up @@ -155,7 +156,9 @@ public Builder vmId(Integer vmId) {
}

public ContainerCloneArgs build() {
$.vmId = Objects.requireNonNull($.vmId, "expected parameter 'vmId' to be non-null");
if ($.vmId == null) {
throw new MissingRequiredPropertyException("ContainerCloneArgs", "vmId");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -445,8 +446,12 @@ public Builder volume(String volume) {
}

public ContainerMountPointArgs build() {
$.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null");
$.volume = Objects.requireNonNull($.volume, "expected parameter 'volume' to be non-null");
if ($.path == null) {
throw new MissingRequiredPropertyException("ContainerMountPointArgs", "path");
}
if ($.volume == null) {
throw new MissingRequiredPropertyException("ContainerMountPointArgs", "volume");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.Double;
import java.lang.Integer;
Expand Down Expand Up @@ -354,7 +355,9 @@ public Builder vlanId(Integer vlanId) {
}

public ContainerNetworkInterfaceArgs build() {
$.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
if ($.name == null) {
throw new MissingRequiredPropertyException("ContainerNetworkInterfaceArgs", "name");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.Objects;
import java.util.Optional;
Expand Down Expand Up @@ -113,7 +114,9 @@ public Builder type(String type) {
}

public ContainerOperatingSystemArgs build() {
$.templateFileId = Objects.requireNonNull($.templateFileId, "expected parameter 'templateFileId' to be non-null");
if ($.templateFileId == null) {
throw new MissingRequiredPropertyException("ContainerOperatingSystemArgs", "templateFileId");
}
return $;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package io.muehlbachler.pulumi.proxmoxve.CT.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
Expand Down Expand Up @@ -75,17 +76,22 @@ public Builder(ContainerClone defaults) {

@CustomType.Setter
public Builder datastoreId(@Nullable String datastoreId) {

this.datastoreId = datastoreId;
return this;
}
@CustomType.Setter
public Builder nodeName(@Nullable String nodeName) {

this.nodeName = nodeName;
return this;
}
@CustomType.Setter
public Builder vmId(Integer vmId) {
this.vmId = Objects.requireNonNull(vmId);
if (vmId == null) {
throw new MissingRequiredPropertyException("ContainerClone", "vmId");
}
this.vmId = vmId;
return this;
}
public ContainerClone build() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,19 @@ public Builder(ContainerConsole defaults) {

@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {

this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder ttyCount(@Nullable Integer ttyCount) {

this.ttyCount = ttyCount;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {

this.type = type;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,19 @@ public Builder(ContainerCpu defaults) {

@CustomType.Setter
public Builder architecture(@Nullable String architecture) {

this.architecture = architecture;
return this;
}
@CustomType.Setter
public Builder cores(@Nullable Integer cores) {

this.cores = cores;
return this;
}
@CustomType.Setter
public Builder units(@Nullable Integer units) {

this.units = units;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ public Builder(ContainerDisk defaults) {

@CustomType.Setter
public Builder datastoreId(@Nullable String datastoreId) {

this.datastoreId = datastoreId;
return this;
}
@CustomType.Setter
public Builder size(@Nullable Integer size) {

this.size = size;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,19 @@ public Builder(ContainerFeatures defaults) {

@CustomType.Setter
public Builder fuse(@Nullable Boolean fuse) {

this.fuse = fuse;
return this;
}
@CustomType.Setter
public Builder keyctl(@Nullable Boolean keyctl) {

this.keyctl = keyctl;
return this;
}
@CustomType.Setter
public Builder mounts(@Nullable List<String> mounts) {

this.mounts = mounts;
return this;
}
Expand All @@ -112,6 +115,7 @@ public Builder mounts(String... mounts) {
}
@CustomType.Setter
public Builder nesting(@Nullable Boolean nesting) {

this.nesting = nesting;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,19 @@ public Builder(ContainerInitialization defaults) {

@CustomType.Setter
public Builder dns(@Nullable ContainerInitializationDns dns) {

this.dns = dns;
return this;
}
@CustomType.Setter
public Builder hostname(@Nullable String hostname) {

this.hostname = hostname;
return this;
}
@CustomType.Setter
public Builder ipConfigs(@Nullable List<ContainerInitializationIpConfig> ipConfigs) {

this.ipConfigs = ipConfigs;
return this;
}
Expand All @@ -110,6 +113,7 @@ public Builder ipConfigs(ContainerInitializationIpConfig... ipConfigs) {
}
@CustomType.Setter
public Builder userAccount(@Nullable ContainerInitializationUserAccount userAccount) {

this.userAccount = userAccount;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,19 @@ public Builder(ContainerInitializationDns defaults) {

@CustomType.Setter
public Builder domain(@Nullable String domain) {

this.domain = domain;
return this;
}
@CustomType.Setter
public Builder server(@Nullable String server) {

this.server = server;
return this;
}
@CustomType.Setter
public Builder servers(@Nullable List<String> servers) {

this.servers = servers;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ public Builder(ContainerInitializationIpConfig defaults) {

@CustomType.Setter
public Builder ipv4(@Nullable ContainerInitializationIpConfigIpv4 ipv4) {

this.ipv4 = ipv4;
return this;
}
@CustomType.Setter
public Builder ipv6(@Nullable ContainerInitializationIpConfigIpv6 ipv6) {

this.ipv6 = ipv6;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ public Builder(ContainerInitializationIpConfigIpv4 defaults) {

@CustomType.Setter
public Builder address(@Nullable String address) {

this.address = address;
return this;
}
@CustomType.Setter
public Builder gateway(@Nullable String gateway) {

this.gateway = gateway;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ public Builder(ContainerInitializationIpConfigIpv6 defaults) {

@CustomType.Setter
public Builder address(@Nullable String address) {

this.address = address;
return this;
}
@CustomType.Setter
public Builder gateway(@Nullable String gateway) {

this.gateway = gateway;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Builder(ContainerInitializationUserAccount defaults) {

@CustomType.Setter
public Builder keys(@Nullable List<String> keys) {

this.keys = keys;
return this;
}
Expand All @@ -67,6 +68,7 @@ public Builder keys(String... keys) {
}
@CustomType.Setter
public Builder password(@Nullable String password) {

this.password = password;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ public Builder(ContainerMemory defaults) {

@CustomType.Setter
public Builder dedicated(@Nullable Integer dedicated) {

this.dedicated = dedicated;
return this;
}
@CustomType.Setter
public Builder swap(@Nullable Integer swap) {

this.swap = swap;
return this;
}
Expand Down
Loading

0 comments on commit 27ec93c

Please sign in to comment.