additionalProperties = new HashMap<>();
@@ -346,6 +358,7 @@ private Builder() {}
@java.lang.Override
public Builder from(ConfigurablePropAlert other) {
+ type(other.getType());
alertType(other.getAlertType());
content(other.getContent());
name(other.getName());
@@ -361,18 +374,6 @@ public Builder from(ConfigurablePropAlert other) {
return this;
}
- /**
- * The content of the alert, which can include HTML or plain text.
- * The content of the alert, which can include HTML or plain text.
- * @return Reference to {@code this} so that method calls can be chained together.
- */
- @java.lang.Override
- @JsonSetter("content")
- public NameStage content(@NotNull String content) {
- this.content = Objects.requireNonNull(content, "content must not be null");
- return this;
- }
-
/**
* When building configuredProps
, make sure to use this field as the key when setting the prop value
* When building configuredProps
, make sure to use this field as the key when setting the prop value
@@ -565,6 +566,26 @@ public _FinalStage label(Optional label) {
return this;
}
+ /**
+ * The content of the alert, which can include HTML or plain text.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage content(String content) {
+ this.content = Optional.ofNullable(content);
+ return this;
+ }
+
+ /**
+ * The content of the alert, which can include HTML or plain text.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "content", nulls = Nulls.SKIP)
+ public _FinalStage content(Optional content) {
+ this.content = content;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage alertType(ConfigurablePropAlertType alertType) {
this.alertType = Optional.ofNullable(alertType);
@@ -578,9 +599,23 @@ public _FinalStage alertType(Optional alertType) {
return this;
}
+ @java.lang.Override
+ public _FinalStage type(String type) {
+ this.type = Optional.ofNullable(type);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "type", nulls = Nulls.SKIP)
+ public _FinalStage type(Optional type) {
+ this.type = type;
+ return this;
+ }
+
@java.lang.Override
public ConfigurablePropAlert build() {
return new ConfigurablePropAlert(
+ type,
alertType,
content,
name,
diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java b/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
index 7794f21..caff2b5 100644
--- a/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
+++ b/src/main/java/com/pipedream/api/types/ConfigurablePropAny.java
@@ -21,6 +21,8 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ConfigurablePropAny.Builder.class)
public final class ConfigurablePropAny {
+ private final Optional type;
+
private final String name;
private final Optional label;
@@ -44,6 +46,7 @@ public final class ConfigurablePropAny {
private final Map additionalProperties;
private ConfigurablePropAny(
+ Optional type,
String name,
Optional label,
Optional description,
@@ -55,6 +58,7 @@ private ConfigurablePropAny(
Optional reloadProps,
Optional withLabel,
Map additionalProperties) {
+ this.type = type;
this.name = name;
this.label = label;
this.description = description;
@@ -69,8 +73,8 @@ private ConfigurablePropAny(
}
@JsonProperty("type")
- public String getType() {
- return "any";
+ public Optional getType() {
+ return type;
}
/**
@@ -165,7 +169,8 @@ public Map getAdditionalProperties() {
}
private boolean equalTo(ConfigurablePropAny other) {
- return name.equals(other.name)
+ return type.equals(other.type)
+ && name.equals(other.name)
&& label.equals(other.label)
&& description.equals(other.description)
&& optional.equals(other.optional)
@@ -180,6 +185,7 @@ private boolean equalTo(ConfigurablePropAny other) {
@java.lang.Override
public int hashCode() {
return Objects.hash(
+ this.type,
this.name,
this.label,
this.description,
@@ -213,6 +219,10 @@ public interface NameStage {
public interface _FinalStage {
ConfigurablePropAny build();
+ _FinalStage type(Optional type);
+
+ _FinalStage type(String type);
+
/**
* Value to use as an input label. In cases where type
is "app", should load the app via getApp
, etc. and show app.name
instead.
*/
@@ -299,6 +309,8 @@ public static final class Builder implements NameStage, _FinalStage {
private Optional label = Optional.empty();
+ private Optional type = Optional.empty();
+
@JsonAnySetter
private Map additionalProperties = new HashMap<>();
@@ -306,6 +318,7 @@ private Builder() {}
@java.lang.Override
public Builder from(ConfigurablePropAny other) {
+ type(other.getType());
name(other.getName());
label(other.getLabel());
description(other.getDescription());
@@ -511,9 +524,23 @@ public _FinalStage label(Optional label) {
return this;
}
+ @java.lang.Override
+ public _FinalStage type(String type) {
+ this.type = Optional.ofNullable(type);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "type", nulls = Nulls.SKIP)
+ public _FinalStage type(Optional type) {
+ this.type = type;
+ return this;
+ }
+
@java.lang.Override
public ConfigurablePropAny build() {
return new ConfigurablePropAny(
+ type,
name,
label,
description,
diff --git a/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java b/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
index 3b71506..abe1111 100644
--- a/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
+++ b/src/main/java/com/pipedream/api/types/ConfigurablePropApp.java
@@ -21,7 +21,9 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ConfigurablePropApp.Builder.class)
public final class ConfigurablePropApp {
- private final String app;
+ private final Optional type;
+
+ private final Optional app;
private final String name;
@@ -46,7 +48,8 @@ public final class ConfigurablePropApp {
private final Map additionalProperties;
private ConfigurablePropApp(
- String app,
+ Optional type,
+ Optional app,
String name,
Optional label,
Optional description,
@@ -58,6 +61,7 @@ private ConfigurablePropApp(
Optional reloadProps,
Optional withLabel,
Map additionalProperties) {
+ this.type = type;
this.app = app;
this.name = name;
this.label = label;
@@ -73,15 +77,15 @@ private ConfigurablePropApp(
}
@JsonProperty("type")
- public String getType() {
- return "app";
+ public Optional getType() {
+ return type;
}
/**
* @return The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured.
*/
@JsonProperty("app")
- public String getApp() {
+ public Optional getApp() {
return app;
}
@@ -177,7 +181,8 @@ public Map getAdditionalProperties() {
}
private boolean equalTo(ConfigurablePropApp other) {
- return app.equals(other.app)
+ return type.equals(other.type)
+ && app.equals(other.app)
&& name.equals(other.name)
&& label.equals(other.label)
&& description.equals(other.description)
@@ -193,6 +198,7 @@ private boolean equalTo(ConfigurablePropApp other) {
@java.lang.Override
public int hashCode() {
return Objects.hash(
+ this.type,
this.app,
this.name,
this.label,
@@ -211,29 +217,33 @@ public String toString() {
return ObjectMappers.stringify(this);
}
- public static AppStage builder() {
+ public static NameStage builder() {
return new Builder();
}
- public interface AppStage {
- /**
- *