Skip to content

Commit 1097740

Browse files
committed
SDK regeneration
1 parent 261b392 commit 1097740

File tree

7 files changed

+58
-80
lines changed

7 files changed

+58
-80
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
2525
<dependency>
2626
<groupId>com.pipedream</groupId>
2727
<artifactId>pipedream</artifactId>
28-
<version>0.0.256</version>
28+
<version>0.0.264</version>
2929
</dependency>
3030
```
3131

build.gradle

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

4949
group = 'com.pipedream'
5050

51-
version = '0.0.256'
51+
version = '0.0.264'
5252

5353
jar {
5454
dependsOn(":generatePomFileForMavenPublication")
@@ -79,7 +79,7 @@ publishing {
7979
maven(MavenPublication) {
8080
groupId = 'com.pipedream'
8181
artifactId = 'pipedream'
82-
version = '0.0.256'
82+
version = '0.0.264'
8383
from components.java
8484
pom {
8585
name = 'pipedream'

src/main/java/com/pipedream/api/AsyncBaseClient.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import com.pipedream.api.resources.tokens.AsyncTokensClient;
1818
import com.pipedream.api.resources.triggers.AsyncTriggersClient;
1919
import com.pipedream.api.resources.users.AsyncUsersClient;
20-
import com.pipedream.api.resources.workflows.AsyncWorkflowsClient;
2120
import java.util.function.Supplier;
2221

2322
public class AsyncBaseClient {
@@ -47,8 +46,6 @@ public class AsyncBaseClient {
4746

4847
protected final Supplier<AsyncOauthTokensClient> oauthTokensClient;
4948

50-
protected final Supplier<AsyncWorkflowsClient> workflowsClient;
51-
5249
public AsyncBaseClient(ClientOptions clientOptions) {
5350
this.clientOptions = clientOptions;
5451
this.appCategoriesClient = Suppliers.memoize(() -> new AsyncAppCategoriesClient(clientOptions));
@@ -63,7 +60,6 @@ public AsyncBaseClient(ClientOptions clientOptions) {
6360
this.proxyClient = Suppliers.memoize(() -> new AsyncProxyClient(clientOptions));
6461
this.tokensClient = Suppliers.memoize(() -> new AsyncTokensClient(clientOptions));
6562
this.oauthTokensClient = Suppliers.memoize(() -> new AsyncOauthTokensClient(clientOptions));
66-
this.workflowsClient = Suppliers.memoize(() -> new AsyncWorkflowsClient(clientOptions));
6763
}
6864

6965
public AsyncAppCategoriesClient appCategories() {
@@ -114,10 +110,6 @@ public AsyncOauthTokensClient oauthTokens() {
114110
return this.oauthTokensClient.get();
115111
}
116112

117-
public AsyncWorkflowsClient workflows() {
118-
return this.workflowsClient.get();
119-
}
120-
121113
public static AsyncBaseClientBuilder builder() {
122114
return new AsyncBaseClientBuilder();
123115
}

src/main/java/com/pipedream/api/AsyncBaseClientBuilder.java

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.Optional;
1111
import okhttp3.OkHttpClient;
1212

13-
public class AsyncBaseClientBuilder<T extends AsyncBaseClientBuilder<T>> {
13+
public class AsyncBaseClientBuilder {
1414
private Optional<Integer> timeout = Optional.empty();
1515

1616
private Optional<Integer> maxRetries = Optional.empty();
@@ -29,68 +29,65 @@ public class AsyncBaseClientBuilder<T extends AsyncBaseClientBuilder<T>> {
2929
* Sets clientId.
3030
* Defaults to the PIPEDREAM_CLIENT_ID environment variable.
3131
*/
32-
@SuppressWarnings("unchecked")
33-
public T clientId(String clientId) {
32+
public AsyncBaseClientBuilder clientId(String clientId) {
3433
this.clientId = clientId;
35-
return (T) this;
34+
return this;
3635
}
3736

3837
/**
3938
* Sets clientSecret.
4039
* Defaults to the PIPEDREAM_CLIENT_SECRET environment variable.
4140
*/
42-
@SuppressWarnings("unchecked")
43-
public T clientSecret(String clientSecret) {
41+
public AsyncBaseClientBuilder clientSecret(String clientSecret) {
4442
this.clientSecret = clientSecret;
45-
return (T) this;
43+
return this;
4644
}
4745

4846
/**
4947
* Sets projectEnvironment
5048
*/
51-
@SuppressWarnings("unchecked")
52-
public T projectEnvironment(String projectEnvironment) {
49+
public AsyncBaseClientBuilder projectEnvironment(String projectEnvironment) {
5350
this.projectEnvironment = projectEnvironment;
54-
return (T) this;
51+
return this;
5552
}
5653

57-
@SuppressWarnings("unchecked")
58-
public T environment(Environment environment) {
54+
public AsyncBaseClientBuilder environment(Environment environment) {
5955
this.environment = environment;
60-
return (T) this;
56+
return this;
6157
}
6258

63-
@SuppressWarnings("unchecked")
64-
public T url(String url) {
59+
public AsyncBaseClientBuilder url(String url) {
6560
this.environment = Environment.custom(url);
66-
return (T) this;
61+
return this;
6762
}
6863

6964
/**
7065
* Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
7166
*/
72-
@SuppressWarnings("unchecked")
73-
public T timeout(int timeout) {
67+
public AsyncBaseClientBuilder timeout(int timeout) {
7468
this.timeout = Optional.of(timeout);
75-
return (T) this;
69+
return this;
7670
}
7771

7872
/**
7973
* Sets the maximum number of retries for the client. Defaults to 2 retries.
8074
*/
81-
@SuppressWarnings("unchecked")
82-
public T maxRetries(int maxRetries) {
75+
public AsyncBaseClientBuilder maxRetries(int maxRetries) {
8376
this.maxRetries = Optional.of(maxRetries);
84-
return (T) this;
77+
return this;
8578
}
8679

8780
/**
8881
* Sets the underlying OkHttp client
8982
*/
90-
@SuppressWarnings("unchecked")
91-
public T httpClient(OkHttpClient httpClient) {
83+
public AsyncBaseClientBuilder httpClient(OkHttpClient httpClient) {
9284
this.httpClient = httpClient;
93-
return (T) this;
85+
return this;
86+
}
87+
88+
public AsyncBaseClientBuilder projectId(String projectId) {
89+
clientOptionsBuilder.projectId(projectId);
90+
return this;
9491
}
9592

9693
protected ClientOptions buildClientOptions() {
@@ -124,7 +121,7 @@ protected void setEnvironment(ClientOptions.Builder builder) {
124121
*
125122
* Example:
126123
* <pre>{@code
127-
* @Override
124+
* &#64;Override
128125
* protected void setAuthentication(ClientOptions.Builder builder) {
129126
* super.setAuthentication(builder); // Keep existing auth
130127
* builder.addHeader("X-API-Key", this.apiKey);
@@ -149,7 +146,7 @@ protected void setAuthentication(ClientOptions.Builder builder) {
149146
*
150147
* Example:
151148
* <pre>{@code
152-
* @Override
149+
* &#64;Override
153150
* protected void setCustomHeaders(ClientOptions.Builder builder) {
154151
* super.setCustomHeaders(builder); // Keep existing headers
155152
* builder.addHeader("X-Trace-ID", generateTraceId());
@@ -215,9 +212,9 @@ protected void setHttpClient(ClientOptions.Builder builder) {
215212
*
216213
* Example:
217214
* <pre>{@code
218-
* @Override
215+
* &#64;Override
219216
* protected void setAdditional(ClientOptions.Builder builder) {
220-
* builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
217+
* builder.addHeader("X-Request-ID", () -&gt; UUID.randomUUID().toString());
221218
* builder.addHeader("X-Client-Version", "1.0.0");
222219
* }
223220
* }</pre>
@@ -231,7 +228,7 @@ protected void setAdditional(ClientOptions.Builder builder) {}
231228
*
232229
* Example:
233230
* <pre>{@code
234-
* @Override
231+
* &#64;Override
235232
* protected void validateConfiguration() {
236233
* super.validateConfiguration(); // Run parent validations
237234
* if (tenantId == null || tenantId.isEmpty()) {

src/main/java/com/pipedream/api/BaseClient.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import com.pipedream.api.resources.tokens.TokensClient;
1818
import com.pipedream.api.resources.triggers.TriggersClient;
1919
import com.pipedream.api.resources.users.UsersClient;
20-
import com.pipedream.api.resources.workflows.WorkflowsClient;
2120
import java.util.function.Supplier;
2221

2322
public class BaseClient {
@@ -47,8 +46,6 @@ public class BaseClient {
4746

4847
protected final Supplier<OauthTokensClient> oauthTokensClient;
4948

50-
protected final Supplier<WorkflowsClient> workflowsClient;
51-
5249
public BaseClient(ClientOptions clientOptions) {
5350
this.clientOptions = clientOptions;
5451
this.appCategoriesClient = Suppliers.memoize(() -> new AppCategoriesClient(clientOptions));
@@ -63,7 +60,6 @@ public BaseClient(ClientOptions clientOptions) {
6360
this.proxyClient = Suppliers.memoize(() -> new ProxyClient(clientOptions));
6461
this.tokensClient = Suppliers.memoize(() -> new TokensClient(clientOptions));
6562
this.oauthTokensClient = Suppliers.memoize(() -> new OauthTokensClient(clientOptions));
66-
this.workflowsClient = Suppliers.memoize(() -> new WorkflowsClient(clientOptions));
6763
}
6864

6965
public AppCategoriesClient appCategories() {
@@ -114,10 +110,6 @@ public OauthTokensClient oauthTokens() {
114110
return this.oauthTokensClient.get();
115111
}
116112

117-
public WorkflowsClient workflows() {
118-
return this.workflowsClient.get();
119-
}
120-
121113
public static BaseClientBuilder builder() {
122114
return new BaseClientBuilder();
123115
}

src/main/java/com/pipedream/api/BaseClientBuilder.java

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.Optional;
1111
import okhttp3.OkHttpClient;
1212

13-
public class BaseClientBuilder<T extends BaseClientBuilder<T>> {
13+
public class BaseClientBuilder {
1414
private Optional<Integer> timeout = Optional.empty();
1515

1616
private Optional<Integer> maxRetries = Optional.empty();
@@ -29,68 +29,65 @@ public class BaseClientBuilder<T extends BaseClientBuilder<T>> {
2929
* Sets clientId.
3030
* Defaults to the PIPEDREAM_CLIENT_ID environment variable.
3131
*/
32-
@SuppressWarnings("unchecked")
33-
public T clientId(String clientId) {
32+
public BaseClientBuilder clientId(String clientId) {
3433
this.clientId = clientId;
35-
return (T) this;
34+
return this;
3635
}
3736

3837
/**
3938
* Sets clientSecret.
4039
* Defaults to the PIPEDREAM_CLIENT_SECRET environment variable.
4140
*/
42-
@SuppressWarnings("unchecked")
43-
public T clientSecret(String clientSecret) {
41+
public BaseClientBuilder clientSecret(String clientSecret) {
4442
this.clientSecret = clientSecret;
45-
return (T) this;
43+
return this;
4644
}
4745

4846
/**
4947
* Sets projectEnvironment
5048
*/
51-
@SuppressWarnings("unchecked")
52-
public T projectEnvironment(String projectEnvironment) {
49+
public BaseClientBuilder projectEnvironment(String projectEnvironment) {
5350
this.projectEnvironment = projectEnvironment;
54-
return (T) this;
51+
return this;
5552
}
5653

57-
@SuppressWarnings("unchecked")
58-
public T environment(Environment environment) {
54+
public BaseClientBuilder environment(Environment environment) {
5955
this.environment = environment;
60-
return (T) this;
56+
return this;
6157
}
6258

63-
@SuppressWarnings("unchecked")
64-
public T url(String url) {
59+
public BaseClientBuilder url(String url) {
6560
this.environment = Environment.custom(url);
66-
return (T) this;
61+
return this;
6762
}
6863

6964
/**
7065
* Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
7166
*/
72-
@SuppressWarnings("unchecked")
73-
public T timeout(int timeout) {
67+
public BaseClientBuilder timeout(int timeout) {
7468
this.timeout = Optional.of(timeout);
75-
return (T) this;
69+
return this;
7670
}
7771

7872
/**
7973
* Sets the maximum number of retries for the client. Defaults to 2 retries.
8074
*/
81-
@SuppressWarnings("unchecked")
82-
public T maxRetries(int maxRetries) {
75+
public BaseClientBuilder maxRetries(int maxRetries) {
8376
this.maxRetries = Optional.of(maxRetries);
84-
return (T) this;
77+
return this;
8578
}
8679

8780
/**
8881
* Sets the underlying OkHttp client
8982
*/
90-
@SuppressWarnings("unchecked")
91-
public T httpClient(OkHttpClient httpClient) {
83+
public BaseClientBuilder httpClient(OkHttpClient httpClient) {
9284
this.httpClient = httpClient;
93-
return (T) this;
85+
return this;
86+
}
87+
88+
public BaseClientBuilder projectId(String projectId) {
89+
clientOptionsBuilder.projectId(projectId);
90+
return this;
9491
}
9592

9693
protected ClientOptions buildClientOptions() {
@@ -124,7 +121,7 @@ protected void setEnvironment(ClientOptions.Builder builder) {
124121
*
125122
* Example:
126123
* <pre>{@code
127-
* @Override
124+
* &#64;Override
128125
* protected void setAuthentication(ClientOptions.Builder builder) {
129126
* super.setAuthentication(builder); // Keep existing auth
130127
* builder.addHeader("X-API-Key", this.apiKey);
@@ -149,7 +146,7 @@ protected void setAuthentication(ClientOptions.Builder builder) {
149146
*
150147
* Example:
151148
* <pre>{@code
152-
* @Override
149+
* &#64;Override
153150
* protected void setCustomHeaders(ClientOptions.Builder builder) {
154151
* super.setCustomHeaders(builder); // Keep existing headers
155152
* builder.addHeader("X-Trace-ID", generateTraceId());
@@ -215,9 +212,9 @@ protected void setHttpClient(ClientOptions.Builder builder) {
215212
*
216213
* Example:
217214
* <pre>{@code
218-
* @Override
215+
* &#64;Override
219216
* protected void setAdditional(ClientOptions.Builder builder) {
220-
* builder.addHeader("X-Request-ID", () -> UUID.randomUUID().toString());
217+
* builder.addHeader("X-Request-ID", () -&gt; UUID.randomUUID().toString());
221218
* builder.addHeader("X-Client-Version", "1.0.0");
222219
* }
223220
* }</pre>
@@ -231,7 +228,7 @@ protected void setAdditional(ClientOptions.Builder builder) {}
231228
*
232229
* Example:
233230
* <pre>{@code
234-
* @Override
231+
* &#64;Override
235232
* protected void validateConfiguration() {
236233
* super.validateConfiguration(); // Run parent validations
237234
* if (tenantId == null || tenantId.isEmpty()) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private ClientOptions(
3737
{
3838
put("X-Fern-Language", "JAVA");
3939
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
40-
put("X-Fern-SDK-Version", "0.0.256");
40+
put("X-Fern-SDK-Version", "0.0.264");
4141
}
4242
});
4343
this.headerSuppliers = headerSuppliers;

0 commit comments

Comments
 (0)