Skip to content

Commit 6064dec

Browse files
SDK regeneration
1 parent 5606dca commit 6064dec

20 files changed

+580
-22
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/actions/AsyncRawActionsClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Component>>>
9090
if (request.getApp().isPresent()) {
9191
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
9292
}
93+
if (request.getRegistry().isPresent()) {
94+
QueryStringMapper.addQueryParameter(
95+
httpUrl, "registry", request.getRegistry().get(), false);
96+
}
9397
Request.Builder _requestBuilder = new Request.Builder()
9498
.url(httpUrl.build())
9599
.method("GET", null)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public BaseClientHttpResponse<SyncPagingIterable<Component>> list(
8585
if (request.getApp().isPresent()) {
8686
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
8787
}
88+
if (request.getRegistry().isPresent()) {
89+
QueryStringMapper.addQueryParameter(
90+
httpUrl, "registry", request.getRegistry().get(), false);
91+
}
8892
Request.Builder _requestBuilder = new Request.Builder()
8993
.url(httpUrl.build())
9094
.method("GET", null)

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

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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.resources.actions.types.ActionsListRequestRegistry;
1516
import java.util.HashMap;
1617
import java.util.Map;
1718
import java.util.Objects;
@@ -30,6 +31,8 @@ public final class ActionsListRequest {
3031

3132
private final Optional<String> app;
3233

34+
private final Optional<ActionsListRequestRegistry> registry;
35+
3336
private final Map<String, Object> additionalProperties;
3437

3538
private ActionsListRequest(
@@ -38,12 +41,14 @@ private ActionsListRequest(
3841
Optional<Integer> limit,
3942
Optional<String> q,
4043
Optional<String> app,
44+
Optional<ActionsListRequestRegistry> registry,
4145
Map<String, Object> additionalProperties) {
4246
this.after = after;
4347
this.before = before;
4448
this.limit = limit;
4549
this.q = q;
4650
this.app = app;
51+
this.registry = registry;
4752
this.additionalProperties = additionalProperties;
4853
}
4954

@@ -87,6 +92,14 @@ public Optional<String> getApp() {
8792
return app;
8893
}
8994

95+
/**
96+
* @return The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')
97+
*/
98+
@JsonProperty("registry")
99+
public Optional<ActionsListRequestRegistry> getRegistry() {
100+
return registry;
101+
}
102+
90103
@java.lang.Override
91104
public boolean equals(Object other) {
92105
if (this == other) return true;
@@ -103,12 +116,13 @@ private boolean equalTo(ActionsListRequest other) {
103116
&& before.equals(other.before)
104117
&& limit.equals(other.limit)
105118
&& q.equals(other.q)
106-
&& app.equals(other.app);
119+
&& app.equals(other.app)
120+
&& registry.equals(other.registry);
107121
}
108122

109123
@java.lang.Override
110124
public int hashCode() {
111-
return Objects.hash(this.after, this.before, this.limit, this.q, this.app);
125+
return Objects.hash(this.after, this.before, this.limit, this.q, this.app, this.registry);
112126
}
113127

114128
@java.lang.Override
@@ -132,6 +146,8 @@ public static final class Builder {
132146

133147
private Optional<String> app = Optional.empty();
134148

149+
private Optional<ActionsListRequestRegistry> registry = Optional.empty();
150+
135151
@JsonAnySetter
136152
private Map<String, Object> additionalProperties = new HashMap<>();
137153

@@ -143,6 +159,7 @@ public Builder from(ActionsListRequest other) {
143159
limit(other.getLimit());
144160
q(other.getQ());
145161
app(other.getApp());
162+
registry(other.getRegistry());
146163
return this;
147164
}
148165

@@ -216,8 +233,22 @@ public Builder app(String app) {
216233
return this;
217234
}
218235

236+
/**
237+
* <p>The registry to retrieve actions from. Defaults to 'all' ('public', 'private', or 'all')</p>
238+
*/
239+
@JsonSetter(value = "registry", nulls = Nulls.SKIP)
240+
public Builder registry(Optional<ActionsListRequestRegistry> registry) {
241+
this.registry = registry;
242+
return this;
243+
}
244+
245+
public Builder registry(ActionsListRequestRegistry registry) {
246+
this.registry = Optional.ofNullable(registry);
247+
return this;
248+
}
249+
219250
public ActionsListRequest build() {
220-
return new ActionsListRequest(after, before, limit, q, app, additionalProperties);
251+
return new ActionsListRequest(after, before, limit, q, app, registry, additionalProperties);
221252
}
222253
}
223254
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.pipedream.api.resources.actions.types;
5+
6+
import com.fasterxml.jackson.annotation.JsonCreator;
7+
import com.fasterxml.jackson.annotation.JsonValue;
8+
9+
public final class ActionsListRequestRegistry {
10+
public static final ActionsListRequestRegistry PRIVATE = new ActionsListRequestRegistry(Value.PRIVATE, "private");
11+
12+
public static final ActionsListRequestRegistry ALL = new ActionsListRequestRegistry(Value.ALL, "all");
13+
14+
public static final ActionsListRequestRegistry PUBLIC = new ActionsListRequestRegistry(Value.PUBLIC, "public");
15+
16+
private final Value value;
17+
18+
private final String string;
19+
20+
ActionsListRequestRegistry(Value value, String string) {
21+
this.value = value;
22+
this.string = string;
23+
}
24+
25+
public Value getEnumValue() {
26+
return value;
27+
}
28+
29+
@java.lang.Override
30+
@JsonValue
31+
public String toString() {
32+
return this.string;
33+
}
34+
35+
@java.lang.Override
36+
public boolean equals(Object other) {
37+
return (this == other)
38+
|| (other instanceof ActionsListRequestRegistry
39+
&& this.string.equals(((ActionsListRequestRegistry) other).string));
40+
}
41+
42+
@java.lang.Override
43+
public int hashCode() {
44+
return this.string.hashCode();
45+
}
46+
47+
public <T> T visit(Visitor<T> visitor) {
48+
switch (value) {
49+
case PRIVATE:
50+
return visitor.visitPrivate();
51+
case ALL:
52+
return visitor.visitAll();
53+
case PUBLIC:
54+
return visitor.visitPublic();
55+
case UNKNOWN:
56+
default:
57+
return visitor.visitUnknown(string);
58+
}
59+
}
60+
61+
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
62+
public static ActionsListRequestRegistry valueOf(String value) {
63+
switch (value) {
64+
case "private":
65+
return PRIVATE;
66+
case "all":
67+
return ALL;
68+
case "public":
69+
return PUBLIC;
70+
default:
71+
return new ActionsListRequestRegistry(Value.UNKNOWN, value);
72+
}
73+
}
74+
75+
public enum Value {
76+
PUBLIC,
77+
78+
PRIVATE,
79+
80+
ALL,
81+
82+
UNKNOWN
83+
}
84+
85+
public interface Visitor<T> {
86+
T visitPublic();
87+
88+
T visitPrivate();
89+
90+
T visitAll();
91+
92+
T visitUnknown(String unknownType);
93+
}
94+
}

src/main/java/com/pipedream/api/resources/components/AsyncRawComponentsClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Component>>>
8989
if (request.getApp().isPresent()) {
9090
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
9191
}
92+
if (request.getRegistry().isPresent()) {
93+
QueryStringMapper.addQueryParameter(
94+
httpUrl, "registry", request.getRegistry().get(), false);
95+
}
9296
if (request.getComponentType().isPresent()) {
9397
QueryStringMapper.addQueryParameter(
9498
httpUrl, "component_type", request.getComponentType().get(), false);

src/main/java/com/pipedream/api/resources/components/RawComponentsClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ public BaseClientHttpResponse<SyncPagingIterable<Component>> list(
8383
if (request.getApp().isPresent()) {
8484
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
8585
}
86+
if (request.getRegistry().isPresent()) {
87+
QueryStringMapper.addQueryParameter(
88+
httpUrl, "registry", request.getRegistry().get(), false);
89+
}
8690
if (request.getComponentType().isPresent()) {
8791
QueryStringMapper.addQueryParameter(
8892
httpUrl, "component_type", request.getComponentType().get(), false);

0 commit comments

Comments
 (0)