Skip to content

Commit

Permalink
add User APIs and Permission APIs (#8171)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyihuang committed Aug 7, 2023
1 parent 4ad3e97 commit d607f23
Show file tree
Hide file tree
Showing 20 changed files with 2,288 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
import io.airbyte.api.client.generated.JobRetryStatesApi;
import io.airbyte.api.client.generated.JobsApi;
import io.airbyte.api.client.generated.OperationApi;
import io.airbyte.api.client.generated.PermissionApi;
import io.airbyte.api.client.generated.SourceApi;
import io.airbyte.api.client.generated.SourceDefinitionApi;
import io.airbyte.api.client.generated.SourceDefinitionSpecificationApi;
import io.airbyte.api.client.generated.StateApi;
import io.airbyte.api.client.generated.StreamStatusesApi;
import io.airbyte.api.client.generated.UserApi;
import io.airbyte.api.client.generated.WorkspaceApi;
import io.airbyte.api.client.invoker.generated.ApiClient;
import java.util.Random;
Expand Down Expand Up @@ -65,6 +67,8 @@ public class AirbyteApiClient {
private final AttemptApi attemptApi;
private final StateApi stateApi;
private final StreamStatusesApi streamStatusesApi;
private final UserApi userApi;
private final PermissionApi permissionApi;

public AirbyteApiClient(final ApiClient apiClient) {
connectionApi = new ConnectionApi(apiClient);
Expand All @@ -84,6 +88,8 @@ public AirbyteApiClient(final ApiClient apiClient) {
attemptApi = new AttemptApi(apiClient);
stateApi = new StateApi(apiClient);
streamStatusesApi = new StreamStatusesApi(apiClient);
userApi = new UserApi(apiClient);
permissionApi = new PermissionApi();
}

public ConnectionApi getConnectionApi() {
Expand Down Expand Up @@ -154,6 +160,14 @@ public StreamStatusesApi getStreamStatusesApi() {
return streamStatusesApi;
}

public PermissionApi getPermissionApi() {
return permissionApi;
}

public UserApi getUserApi() {
return userApi;
}

/**
* Default to 4 retries with a randomised 1 - 10 seconds interval between the first two retries and
* an 10-minute wait for the last retry.
Expand Down
Loading

0 comments on commit d607f23

Please sign in to comment.