Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"retry-status-codes": "legacy"
},
"originGitCommit": "0154aca6f568afe2b2c183a43a8454aa86412754",
"originGitCommit": "729a65c6931057ef726cbf54bc9603b5d93c752a",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.1.0"
"sdkVersion": "2.1.2"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the dependency in your `build.gradle` file:

```groovy
dependencies {
implementation 'com.pipedream:pipedream:2.1.0'
implementation 'com.pipedream:pipedream:2.1.2'
}
```

Expand All @@ -42,7 +42,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>2.1.0</version>
<version>2.1.2</version>
</dependency>
```

Expand Down Expand Up @@ -171,11 +171,13 @@ the `Retry-After` header (as either in seconds or as an HTTP date), and then the
Which status codes are retried depends on the `retry-status-codes` generator configuration:

**`legacy`** (current default): retries on

- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)

**`recommended`**: retries on

- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
- [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
Expand All @@ -196,6 +198,7 @@ BaseClient client = BaseClient
### Timeouts

The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.core.RequestOptions;
Expand Down Expand Up @@ -264,6 +267,7 @@ a proof of concept, but know that we will not be able to merge it as-is. We sugg
an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

## Reference

A full reference for this library is available [here](https://github.com/PipedreamHQ/pipedream-sdk-java/blob/HEAD/./reference.md).
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ java {

group = 'com.pipedream'

version = '2.1.0'
version = '2.1.2'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '2.1.0'
version = '2.1.2'
from components.java
pom {
name = 'pipedream'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/pipedream/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.pipedream:pipedream/2.1.0");
put("User-Agent", "com.pipedream:pipedream/2.1.2");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "2.1.0");
put("X-Fern-SDK-Version", "2.1.2");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.resources.appoverrides;

import com.pipedream.api.core.ClientOptions;
import com.pipedream.api.core.RequestOptions;
import com.pipedream.api.core.pagination.SyncPagingIterable;
import com.pipedream.api.resources.appoverrides.requests.AppOverridesListRequest;
import com.pipedream.api.resources.appoverrides.requests.CreateAppOverrideOpts;
import com.pipedream.api.resources.appoverrides.requests.UpdateAppOverrideOpts;
import com.pipedream.api.types.AppOverride;

public class AppOverridesClient {
protected final ClientOptions clientOptions;

private final RawAppOverridesClient rawClient;

public AppOverridesClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new RawAppOverridesClient(clientOptions);
}

/**
* Get responses with HTTP metadata like headers
*/
public RawAppOverridesClient withRawResponse() {
return this.rawClient;
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public SyncPagingIterable<AppOverride> list() {
return this.rawClient.list().body();
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public SyncPagingIterable<AppOverride> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).body();
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public SyncPagingIterable<AppOverride> list(AppOverridesListRequest request) {
return this.rawClient.list(request).body();
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public SyncPagingIterable<AppOverride> list(AppOverridesListRequest request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).body();
}

/**
* Create an app override with pre-defined custom field values
*/
public AppOverride create(CreateAppOverrideOpts request) {
return this.rawClient.create(request).body();
}

/**
* Create an app override with pre-defined custom field values
*/
public AppOverride create(CreateAppOverrideOpts request, RequestOptions requestOptions) {
return this.rawClient.create(request, requestOptions).body();
}

/**
* Get the configuration of a specific app override
*/
public AppOverride retrieve(String id) {
return this.rawClient.retrieve(id).body();
}

/**
* Get the configuration of a specific app override
*/
public AppOverride retrieve(String id, RequestOptions requestOptions) {
return this.rawClient.retrieve(id, requestOptions).body();
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public AppOverride update(String id) {
return this.rawClient.update(id).body();
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public AppOverride update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).body();
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public AppOverride update(String id, UpdateAppOverrideOpts request) {
return this.rawClient.update(id, request).body();
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public AppOverride update(String id, UpdateAppOverrideOpts request, RequestOptions requestOptions) {
return this.rawClient.update(id, request, requestOptions).body();
}

/**
* Delete an app override without affecting accounts already connected with it
*/
public void delete(String id) {
this.rawClient.delete(id).body();
}

/**
* Delete an app override without affecting accounts already connected with it
*/
public void delete(String id, RequestOptions requestOptions) {
this.rawClient.delete(id, requestOptions).body();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.pipedream.api.resources.appoverrides;

import com.pipedream.api.core.ClientOptions;
import com.pipedream.api.core.RequestOptions;
import com.pipedream.api.core.pagination.SyncPagingIterable;
import com.pipedream.api.resources.appoverrides.requests.AppOverridesListRequest;
import com.pipedream.api.resources.appoverrides.requests.CreateAppOverrideOpts;
import com.pipedream.api.resources.appoverrides.requests.UpdateAppOverrideOpts;
import com.pipedream.api.types.AppOverride;
import java.util.concurrent.CompletableFuture;

public class AsyncAppOverridesClient {
protected final ClientOptions clientOptions;

private final AsyncRawAppOverridesClient rawClient;

public AsyncAppOverridesClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new AsyncRawAppOverridesClient(clientOptions);
}

/**
* Get responses with HTTP metadata like headers
*/
public AsyncRawAppOverridesClient withRawResponse() {
return this.rawClient;
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public CompletableFuture<SyncPagingIterable<AppOverride>> list() {
return this.rawClient.list().thenApply(response -> response.body());
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public CompletableFuture<SyncPagingIterable<AppOverride>> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public CompletableFuture<SyncPagingIterable<AppOverride>> list(AppOverridesListRequest request) {
return this.rawClient.list(request).thenApply(response -> response.body());
}

/**
* List the app overrides available to the project, including the parent workspace's
*/
public CompletableFuture<SyncPagingIterable<AppOverride>> list(
AppOverridesListRequest request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
}

/**
* Create an app override with pre-defined custom field values
*/
public CompletableFuture<AppOverride> create(CreateAppOverrideOpts request) {
return this.rawClient.create(request).thenApply(response -> response.body());
}

/**
* Create an app override with pre-defined custom field values
*/
public CompletableFuture<AppOverride> create(CreateAppOverrideOpts request, RequestOptions requestOptions) {
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
}

/**
* Get the configuration of a specific app override
*/
public CompletableFuture<AppOverride> retrieve(String id) {
return this.rawClient.retrieve(id).thenApply(response -> response.body());
}

/**
* Get the configuration of a specific app override
*/
public CompletableFuture<AppOverride> retrieve(String id, RequestOptions requestOptions) {
return this.rawClient.retrieve(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public CompletableFuture<AppOverride> update(String id) {
return this.rawClient.update(id).thenApply(response -> response.body());
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public CompletableFuture<AppOverride> update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public CompletableFuture<AppOverride> update(String id, UpdateAppOverrideOpts request) {
return this.rawClient.update(id, request).thenApply(response -> response.body());
}

/**
* Update an app override's name, custom field values, or OAuth client selection
*/
public CompletableFuture<AppOverride> update(
String id, UpdateAppOverrideOpts request, RequestOptions requestOptions) {
return this.rawClient.update(id, request, requestOptions).thenApply(response -> response.body());
}

/**
* Delete an app override without affecting accounts already connected with it
*/
public CompletableFuture<Void> delete(String id) {
return this.rawClient.delete(id).thenApply(response -> response.body());
}

/**
* Delete an app override without affecting accounts already connected with it
*/
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
}
}
Loading
Loading