Skip to content

Commit cd90bea

Browse files
committed
SDK regeneration
1 parent 3dbddb8 commit cd90bea

27 files changed

+1593
-2668
lines changed

src/main/java/com/pipedream/api/resources/actions/AsyncRawActionsClient.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ public CompletableFuture<BaseClientHttpResponse<RunActionResponse>> run(
343343
if (request.getDynamicPropsId().isPresent()) {
344344
properties.put("dynamic_props_id", request.getDynamicPropsId());
345345
}
346-
if (request.getStashId().isPresent()) {
347-
properties.put("stash_id", request.getStashId());
348-
}
349346
RequestBody body;
350347
try {
351348
body = RequestBody.create(

src/main/java/com/pipedream/api/resources/actions/RawActionsClient.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ public BaseClientHttpResponse<RunActionResponse> run(RunActionOpts request, Requ
275275
if (request.getDynamicPropsId().isPresent()) {
276276
properties.put("dynamic_props_id", request.getDynamicPropsId());
277277
}
278-
if (request.getStashId().isPresent()) {
279-
properties.put("stash_id", request.getStashId());
280-
}
281278
RequestBody body;
282279
try {
283280
body = RequestBody.create(

src/main/java/com/pipedream/api/resources/actions/requests/RunActionOpts.java

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import com.fasterxml.jackson.annotation.Nulls;
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.pipedream.api.core.ObjectMappers;
15-
import com.pipedream.api.types.RunActionOptsStashId;
1615
import java.util.HashMap;
1716
import java.util.Map;
1817
import java.util.Objects;
@@ -32,8 +31,6 @@ public final class RunActionOpts {
3231

3332
private final Optional<String> dynamicPropsId;
3433

35-
private final Optional<RunActionOptsStashId> stashId;
36-
3734
private final Map<String, Object> additionalProperties;
3835

3936
private RunActionOpts(
@@ -42,14 +39,12 @@ private RunActionOpts(
4239
String externalUserId,
4340
Optional<Map<String, Object>> configuredProps,
4441
Optional<String> dynamicPropsId,
45-
Optional<RunActionOptsStashId> stashId,
4642
Map<String, Object> additionalProperties) {
4743
this.asyncHandle = asyncHandle;
4844
this.id = id;
4945
this.externalUserId = externalUserId;
5046
this.configuredProps = configuredProps;
5147
this.dynamicPropsId = dynamicPropsId;
52-
this.stashId = stashId;
5348
this.additionalProperties = additionalProperties;
5449
}
5550

@@ -90,11 +85,6 @@ public Optional<String> getDynamicPropsId() {
9085
return dynamicPropsId;
9186
}
9287

93-
@JsonProperty("stash_id")
94-
public Optional<RunActionOptsStashId> getStashId() {
95-
return stashId;
96-
}
97-
9888
@java.lang.Override
9989
public boolean equals(Object other) {
10090
if (this == other) return true;
@@ -111,19 +101,12 @@ private boolean equalTo(RunActionOpts other) {
111101
&& id.equals(other.id)
112102
&& externalUserId.equals(other.externalUserId)
113103
&& configuredProps.equals(other.configuredProps)
114-
&& dynamicPropsId.equals(other.dynamicPropsId)
115-
&& stashId.equals(other.stashId);
104+
&& dynamicPropsId.equals(other.dynamicPropsId);
116105
}
117106

118107
@java.lang.Override
119108
public int hashCode() {
120-
return Objects.hash(
121-
this.asyncHandle,
122-
this.id,
123-
this.externalUserId,
124-
this.configuredProps,
125-
this.dynamicPropsId,
126-
this.stashId);
109+
return Objects.hash(this.asyncHandle, this.id, this.externalUserId, this.configuredProps, this.dynamicPropsId);
127110
}
128111

129112
@java.lang.Override
@@ -171,10 +154,6 @@ public interface _FinalStage {
171154
_FinalStage dynamicPropsId(Optional<String> dynamicPropsId);
172155

173156
_FinalStage dynamicPropsId(String dynamicPropsId);
174-
175-
_FinalStage stashId(Optional<RunActionOptsStashId> stashId);
176-
177-
_FinalStage stashId(RunActionOptsStashId stashId);
178157
}
179158

180159
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -183,8 +162,6 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina
183162

184163
private String externalUserId;
185164

186-
private Optional<RunActionOptsStashId> stashId = Optional.empty();
187-
188165
private Optional<String> dynamicPropsId = Optional.empty();
189166

190167
private Optional<Map<String, Object>> configuredProps = Optional.empty();
@@ -203,7 +180,6 @@ public Builder from(RunActionOpts other) {
203180
externalUserId(other.getExternalUserId());
204181
configuredProps(other.getConfiguredProps());
205182
dynamicPropsId(other.getDynamicPropsId());
206-
stashId(other.getStashId());
207183
return this;
208184
}
209185

@@ -231,19 +207,6 @@ public _FinalStage externalUserId(@NotNull String externalUserId) {
231207
return this;
232208
}
233209

234-
@java.lang.Override
235-
public _FinalStage stashId(RunActionOptsStashId stashId) {
236-
this.stashId = Optional.ofNullable(stashId);
237-
return this;
238-
}
239-
240-
@java.lang.Override
241-
@JsonSetter(value = "stash_id", nulls = Nulls.SKIP)
242-
public _FinalStage stashId(Optional<RunActionOptsStashId> stashId) {
243-
this.stashId = stashId;
244-
return this;
245-
}
246-
247210
/**
248211
* <p>The ID for dynamic props</p>
249212
* @return Reference to {@code this} so that method calls can be chained together.
@@ -300,7 +263,7 @@ public _FinalStage asyncHandle(Optional<String> asyncHandle) {
300263
@java.lang.Override
301264
public RunActionOpts build() {
302265
return new RunActionOpts(
303-
asyncHandle, id, externalUserId, configuredProps, dynamicPropsId, stashId, additionalProperties);
266+
asyncHandle, id, externalUserId, configuredProps, dynamicPropsId, additionalProperties);
304267
}
305268
}
306269
}

src/main/java/com/pipedream/api/resources/tokens/AsyncRawTokensClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ public CompletableFuture<BaseClientHttpResponse<ValidateTokenResponse>> validate
110110
String ctok, TokensValidateRequest request, RequestOptions requestOptions) {
111111
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
112112
.newBuilder()
113-
.addPathSegments("v1/connect/tokens")
113+
.addPathSegments("v1/connect")
114+
.addPathSegment(clientOptions.projectId())
115+
.addPathSegments("tokens")
114116
.addPathSegment(ctok)
115117
.addPathSegments("validate");
116118
if (request.getParams().isPresent()) {

src/main/java/com/pipedream/api/resources/tokens/RawTokensClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public BaseClientHttpResponse<ValidateTokenResponse> validate(
9191
String ctok, TokensValidateRequest request, RequestOptions requestOptions) {
9292
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
9393
.newBuilder()
94-
.addPathSegments("v1/connect/tokens")
94+
.addPathSegments("v1/connect")
95+
.addPathSegment(clientOptions.projectId())
96+
.addPathSegments("tokens")
9597
.addPathSegment(ctok)
9698
.addPathSegments("validate");
9799
if (request.getParams().isPresent()) {

src/main/java/com/pipedream/api/types/App.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public String getName() {
9090
return name;
9191
}
9292

93+
/**
94+
* @return The authentication type used by the app
95+
*/
9396
@JsonProperty("auth_type")
9497
public Optional<AppAuthType> getAuthType() {
9598
return authType;
@@ -221,6 +224,9 @@ public interface _FinalStage {
221224

222225
_FinalStage id(String id);
223226

227+
/**
228+
* <p>The authentication type used by the app</p>
229+
*/
224230
_FinalStage authType(Optional<AppAuthType> authType);
225231

226232
_FinalStage authType(AppAuthType authType);
@@ -408,12 +414,19 @@ public _FinalStage description(Optional<String> description) {
408414
return this;
409415
}
410416

417+
/**
418+
* <p>The authentication type used by the app</p>
419+
* @return Reference to {@code this} so that method calls can be chained together.
420+
*/
411421
@java.lang.Override
412422
public _FinalStage authType(AppAuthType authType) {
413423
this.authType = Optional.ofNullable(authType);
414424
return this;
415425
}
416426

427+
/**
428+
* <p>The authentication type used by the app</p>
429+
*/
417430
@java.lang.Override
418431
@JsonSetter(value = "auth_type", nulls = Nulls.SKIP)
419432
public _FinalStage authType(Optional<AppAuthType> authType) {

src/main/java/com/pipedream/api/types/Component.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ public Optional<String> getComponentType() {
103103
return componentType;
104104
}
105105

106+
/**
107+
* @return Indicates if a File Stash ID is optional or required to run the component
108+
*/
106109
@JsonProperty("stash")
107110
public Optional<ComponentStash> getStash() {
108111
return stash;
@@ -196,6 +199,9 @@ public interface _FinalStage {
196199

197200
_FinalStage componentType(String componentType);
198201

202+
/**
203+
* <p>Indicates if a File Stash ID is optional or required to run the component</p>
204+
*/
199205
_FinalStage stash(Optional<ComponentStash> stash);
200206

201207
_FinalStage stash(ComponentStash stash);
@@ -270,12 +276,19 @@ public _FinalStage version(@NotNull String version) {
270276
return this;
271277
}
272278

279+
/**
280+
* <p>Indicates if a File Stash ID is optional or required to run the component</p>
281+
* @return Reference to {@code this} so that method calls can be chained together.
282+
*/
273283
@java.lang.Override
274284
public _FinalStage stash(ComponentStash stash) {
275285
this.stash = Optional.ofNullable(stash);
276286
return this;
277287
}
278288

289+
/**
290+
* <p>Indicates if a File Stash ID is optional or required to run the component</p>
291+
*/
279292
@java.lang.Override
280293
@JsonSetter(value = "stash", nulls = Nulls.SKIP)
281294
public _FinalStage stash(Optional<ComponentStash> stash) {

0 commit comments

Comments
 (0)