Skip to content

Commit d6a27e8

Browse files
SDK regeneration
1 parent 5606dca commit d6a27e8

33 files changed

+3612
-2405
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55

66
The Pipedream Java library provides convenient access to the Pipedream APIs from Java.
77

8+
## Table of Contents
9+
10+
- [Installation](#installation)
11+
- [Usage](#usage)
12+
- [Environments](#environments)
13+
- [Base Url](#base-url)
14+
- [Exception Handling](#exception-handling)
15+
- [Advanced](#advanced)
16+
- [Custom Client](#custom-client)
17+
- [Retries](#retries)
18+
- [Timeouts](#timeouts)
19+
- [Custom Headers](#custom-headers)
20+
- [Contributing](#contributing)
21+
- [Reference](#reference)
22+
823
## Installation
924

1025
### Gradle
@@ -25,7 +40,7 @@ Add the dependency in your `pom.xml` file:
2540
<dependency>
2641
<groupId>com.pipedream</groupId>
2742
<artifactId>pipedream</artifactId>
28-
<version>1.1.0</version>
43+
<version>1.1.1</version>
2944
</dependency>
3045
```
3146

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ java {
4949

5050
group = 'com.pipedream'
5151

52-
version = '1.1.0'
52+
version = '1.1.1'
5353

5454
jar {
5555
dependsOn(":generatePomFileForMavenPublication")
@@ -80,7 +80,7 @@ publishing {
8080
maven(MavenPublication) {
8181
groupId = 'com.pipedream'
8282
artifactId = 'pipedream'
83-
version = '1.1.0'
83+
version = '1.1.1'
8484
from components.java
8585
pom {
8686
name = 'pipedream'

src/main/java/com/pipedream/api/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private ClientOptions(
3535
this.headers.putAll(headers);
3636
this.headers.putAll(new HashMap<String, String>() {
3737
{
38-
put("User-Agent", "com.pipedream:pipedream/1.1.0");
38+
put("User-Agent", "com.pipedream:pipedream/1.1.1");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "1.1.0");
41+
put("X-Fern-SDK-Version", "1.1.1");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/pipedream/api/resources/deployedtriggers/requests/UpdateTriggerOpts.java

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,22 @@ public final class UpdateTriggerOpts {
3030

3131
private final Optional<String> name;
3232

33+
private final Optional<Boolean> emitOnDeploy;
34+
3335
private final Map<String, Object> additionalProperties;
3436

3537
private UpdateTriggerOpts(
3638
String externalUserId,
3739
Optional<Boolean> active,
3840
Optional<Map<String, ConfiguredPropValue>> configuredProps,
3941
Optional<String> name,
42+
Optional<Boolean> emitOnDeploy,
4043
Map<String, Object> additionalProperties) {
4144
this.externalUserId = externalUserId;
4245
this.active = active;
4346
this.configuredProps = configuredProps;
4447
this.name = name;
48+
this.emitOnDeploy = emitOnDeploy;
4549
this.additionalProperties = additionalProperties;
4650
}
4751

@@ -74,6 +78,14 @@ public Optional<String> getName() {
7478
return name;
7579
}
7680

81+
/**
82+
* @return Whether the trigger should emit events during deployment
83+
*/
84+
@JsonProperty("emit_on_deploy")
85+
public Optional<Boolean> getEmitOnDeploy() {
86+
return emitOnDeploy;
87+
}
88+
7789
@java.lang.Override
7890
public boolean equals(Object other) {
7991
if (this == other) return true;
@@ -89,12 +101,13 @@ private boolean equalTo(UpdateTriggerOpts other) {
89101
return externalUserId.equals(other.externalUserId)
90102
&& active.equals(other.active)
91103
&& configuredProps.equals(other.configuredProps)
92-
&& name.equals(other.name);
104+
&& name.equals(other.name)
105+
&& emitOnDeploy.equals(other.emitOnDeploy);
93106
}
94107

95108
@java.lang.Override
96109
public int hashCode() {
97-
return Objects.hash(this.externalUserId, this.active, this.configuredProps, this.name);
110+
return Objects.hash(this.externalUserId, this.active, this.configuredProps, this.name, this.emitOnDeploy);
98111
}
99112

100113
@java.lang.Override
@@ -135,12 +148,21 @@ public interface _FinalStage {
135148
_FinalStage name(Optional<String> name);
136149

137150
_FinalStage name(String name);
151+
152+
/**
153+
* <p>Whether the trigger should emit events during deployment</p>
154+
*/
155+
_FinalStage emitOnDeploy(Optional<Boolean> emitOnDeploy);
156+
157+
_FinalStage emitOnDeploy(Boolean emitOnDeploy);
138158
}
139159

140160
@JsonIgnoreProperties(ignoreUnknown = true)
141161
public static final class Builder implements ExternalUserIdStage, _FinalStage {
142162
private String externalUserId;
143163

164+
private Optional<Boolean> emitOnDeploy = Optional.empty();
165+
144166
private Optional<String> name = Optional.empty();
145167

146168
private Optional<Map<String, ConfiguredPropValue>> configuredProps = Optional.empty();
@@ -158,6 +180,7 @@ public Builder from(UpdateTriggerOpts other) {
158180
active(other.getActive());
159181
configuredProps(other.getConfiguredProps());
160182
name(other.getName());
183+
emitOnDeploy(other.getEmitOnDeploy());
161184
return this;
162185
}
163186

@@ -173,6 +196,26 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
173196
return this;
174197
}
175198

199+
/**
200+
* <p>Whether the trigger should emit events during deployment</p>
201+
* @return Reference to {@code this} so that method calls can be chained together.
202+
*/
203+
@java.lang.Override
204+
public _FinalStage emitOnDeploy(Boolean emitOnDeploy) {
205+
this.emitOnDeploy = Optional.ofNullable(emitOnDeploy);
206+
return this;
207+
}
208+
209+
/**
210+
* <p>Whether the trigger should emit events during deployment</p>
211+
*/
212+
@java.lang.Override
213+
@JsonSetter(value = "emit_on_deploy", nulls = Nulls.SKIP)
214+
public _FinalStage emitOnDeploy(Optional<Boolean> emitOnDeploy) {
215+
this.emitOnDeploy = emitOnDeploy;
216+
return this;
217+
}
218+
176219
/**
177220
* <p>The name of the trigger</p>
178221
* @return Reference to {@code this} so that method calls can be chained together.
@@ -228,7 +271,8 @@ public _FinalStage active(Optional<Boolean> active) {
228271

229272
@java.lang.Override
230273
public UpdateTriggerOpts build() {
231-
return new UpdateTriggerOpts(externalUserId, active, configuredProps, name, additionalProperties);
274+
return new UpdateTriggerOpts(
275+
externalUserId, active, configuredProps, name, emitOnDeploy, additionalProperties);
232276
}
233277
}
234278
}

src/main/java/com/pipedream/api/resources/triggers/requests/DeployTriggerOpts.java

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public final class DeployTriggerOpts {
3636

3737
private final Optional<String> webhookUrl;
3838

39+
private final Optional<Boolean> emitOnDeploy;
40+
3941
private final Map<String, Object> additionalProperties;
4042

4143
private DeployTriggerOpts(
@@ -46,6 +48,7 @@ private DeployTriggerOpts(
4648
Optional<String> dynamicPropsId,
4749
Optional<String> workflowId,
4850
Optional<String> webhookUrl,
51+
Optional<Boolean> emitOnDeploy,
4952
Map<String, Object> additionalProperties) {
5053
this.id = id;
5154
this.version = version;
@@ -54,6 +57,7 @@ private DeployTriggerOpts(
5457
this.dynamicPropsId = dynamicPropsId;
5558
this.workflowId = workflowId;
5659
this.webhookUrl = webhookUrl;
60+
this.emitOnDeploy = emitOnDeploy;
5761
this.additionalProperties = additionalProperties;
5862
}
5963

@@ -110,6 +114,14 @@ public Optional<String> getWebhookUrl() {
110114
return webhookUrl;
111115
}
112116

117+
/**
118+
* @return Whether the trigger should emit events during the deploy hook execution. Defaults to true if not specified.
119+
*/
120+
@JsonProperty("emit_on_deploy")
121+
public Optional<Boolean> getEmitOnDeploy() {
122+
return emitOnDeploy;
123+
}
124+
113125
@java.lang.Override
114126
public boolean equals(Object other) {
115127
if (this == other) return true;
@@ -128,7 +140,8 @@ private boolean equalTo(DeployTriggerOpts other) {
128140
&& configuredProps.equals(other.configuredProps)
129141
&& dynamicPropsId.equals(other.dynamicPropsId)
130142
&& workflowId.equals(other.workflowId)
131-
&& webhookUrl.equals(other.webhookUrl);
143+
&& webhookUrl.equals(other.webhookUrl)
144+
&& emitOnDeploy.equals(other.emitOnDeploy);
132145
}
133146

134147
@java.lang.Override
@@ -140,7 +153,8 @@ public int hashCode() {
140153
this.configuredProps,
141154
this.dynamicPropsId,
142155
this.workflowId,
143-
this.webhookUrl);
156+
this.webhookUrl,
157+
this.emitOnDeploy);
144158
}
145159

146160
@java.lang.Override
@@ -202,6 +216,13 @@ public interface _FinalStage {
202216
_FinalStage webhookUrl(Optional<String> webhookUrl);
203217

204218
_FinalStage webhookUrl(String webhookUrl);
219+
220+
/**
221+
* <p>Whether the trigger should emit events during the deploy hook execution. Defaults to true if not specified.</p>
222+
*/
223+
_FinalStage emitOnDeploy(Optional<Boolean> emitOnDeploy);
224+
225+
_FinalStage emitOnDeploy(Boolean emitOnDeploy);
205226
}
206227

207228
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -210,6 +231,8 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina
210231

211232
private String externalUserId;
212233

234+
private Optional<Boolean> emitOnDeploy = Optional.empty();
235+
213236
private Optional<String> webhookUrl = Optional.empty();
214237

215238
private Optional<String> workflowId = Optional.empty();
@@ -234,6 +257,7 @@ public Builder from(DeployTriggerOpts other) {
234257
dynamicPropsId(other.getDynamicPropsId());
235258
workflowId(other.getWorkflowId());
236259
webhookUrl(other.getWebhookUrl());
260+
emitOnDeploy(other.getEmitOnDeploy());
237261
return this;
238262
}
239263

@@ -261,6 +285,26 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
261285
return this;
262286
}
263287

288+
/**
289+
* <p>Whether the trigger should emit events during the deploy hook execution. Defaults to true if not specified.</p>
290+
* @return Reference to {@code this} so that method calls can be chained together.
291+
*/
292+
@java.lang.Override
293+
public _FinalStage emitOnDeploy(Boolean emitOnDeploy) {
294+
this.emitOnDeploy = Optional.ofNullable(emitOnDeploy);
295+
return this;
296+
}
297+
298+
/**
299+
* <p>Whether the trigger should emit events during the deploy hook execution. Defaults to true if not specified.</p>
300+
*/
301+
@java.lang.Override
302+
@JsonSetter(value = "emit_on_deploy", nulls = Nulls.SKIP)
303+
public _FinalStage emitOnDeploy(Optional<Boolean> emitOnDeploy) {
304+
this.emitOnDeploy = emitOnDeploy;
305+
return this;
306+
}
307+
264308
/**
265309
* <p>Optional webhook URL to receive trigger events</p>
266310
* @return Reference to {@code this} so that method calls can be chained together.
@@ -364,6 +408,7 @@ public DeployTriggerOpts build() {
364408
dynamicPropsId,
365409
workflowId,
366410
webhookUrl,
411+
emitOnDeploy,
367412
additionalProperties);
368413
}
369414
}

0 commit comments

Comments
 (0)