Skip to content
Open
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
395 changes: 8 additions & 387 deletions .fern/replay.lock

Large diffs are not rendered by default.

14,881 changes: 8,000 additions & 6,881 deletions reference.md

Large diffs are not rendered by default.

129 changes: 129 additions & 0 deletions src/main/java/com/auth0/client/mgmt/AgentsClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.auth0.client.mgmt;

import com.auth0.client.mgmt.core.ClientOptions;
import com.auth0.client.mgmt.core.RequestOptions;
import com.auth0.client.mgmt.core.SyncPagingIterable;
import com.auth0.client.mgmt.types.AgentResponseContent;
import com.auth0.client.mgmt.types.CreateAgentRequestContent;
import com.auth0.client.mgmt.types.ListAgentsRequestParameters;
import com.auth0.client.mgmt.types.PatchAgentRequestParameters;

public class AgentsClient {
protected final ClientOptions clientOptions;

private final RawAgentsClient rawClient;

public AgentsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new RawAgentsClient(clientOptions);
}

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

/**
* Get agents
*/
public SyncPagingIterable<AgentResponseContent> list() {
return this.rawClient.list().body();
}

/**
* Get agents
*/
public SyncPagingIterable<AgentResponseContent> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).body();
}

/**
* Get agents
*/
public SyncPagingIterable<AgentResponseContent> list(ListAgentsRequestParameters request) {
return this.rawClient.list(request).body();
}

/**
* Get agents
*/
public SyncPagingIterable<AgentResponseContent> list(
ListAgentsRequestParameters request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).body();
}

/**
* Create an agent
*/
public AgentResponseContent create(CreateAgentRequestContent request) {
return this.rawClient.create(request).body();
}

/**
* Create an agent
*/
public AgentResponseContent create(CreateAgentRequestContent request, RequestOptions requestOptions) {
return this.rawClient.create(request, requestOptions).body();
}

/**
* Get an agent
*/
public AgentResponseContent read(String id) {
return this.rawClient.read(id).body();
}

/**
* Get an agent
*/
public AgentResponseContent read(String id, RequestOptions requestOptions) {
return this.rawClient.read(id, requestOptions).body();
}

/**
* Delete an agent
*/
public void delete(String id) {
this.rawClient.delete(id).body();
}

/**
* Delete an agent
*/
public void delete(String id, RequestOptions requestOptions) {
this.rawClient.delete(id, requestOptions).body();
}

/**
* Update an agent
*/
public AgentResponseContent update(String id) {
return this.rawClient.update(id).body();
}

/**
* Update an agent
*/
public AgentResponseContent update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).body();
}

/**
* Update an agent
*/
public AgentResponseContent update(String id, PatchAgentRequestParameters request) {
return this.rawClient.update(id, request).body();
}

/**
* Update an agent
*/
public AgentResponseContent update(String id, PatchAgentRequestParameters request, RequestOptions requestOptions) {
return this.rawClient.update(id, request, requestOptions).body();
}
}
132 changes: 132 additions & 0 deletions src/main/java/com/auth0/client/mgmt/AsyncAgentsClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.auth0.client.mgmt;

import com.auth0.client.mgmt.core.ClientOptions;
import com.auth0.client.mgmt.core.RequestOptions;
import com.auth0.client.mgmt.core.SyncPagingIterable;
import com.auth0.client.mgmt.types.AgentResponseContent;
import com.auth0.client.mgmt.types.CreateAgentRequestContent;
import com.auth0.client.mgmt.types.ListAgentsRequestParameters;
import com.auth0.client.mgmt.types.PatchAgentRequestParameters;
import java.util.concurrent.CompletableFuture;

public class AsyncAgentsClient {
protected final ClientOptions clientOptions;

private final AsyncRawAgentsClient rawClient;

public AsyncAgentsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new AsyncRawAgentsClient(clientOptions);
}

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

/**
* Get agents
*/
public CompletableFuture<SyncPagingIterable<AgentResponseContent>> list() {
return this.rawClient.list().thenApply(response -> response.body());
}

/**
* Get agents
*/
public CompletableFuture<SyncPagingIterable<AgentResponseContent>> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
}

/**
* Get agents
*/
public CompletableFuture<SyncPagingIterable<AgentResponseContent>> list(ListAgentsRequestParameters request) {
return this.rawClient.list(request).thenApply(response -> response.body());
}

/**
* Get agents
*/
public CompletableFuture<SyncPagingIterable<AgentResponseContent>> list(
ListAgentsRequestParameters request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
}

/**
* Create an agent
*/
public CompletableFuture<AgentResponseContent> create(CreateAgentRequestContent request) {
return this.rawClient.create(request).thenApply(response -> response.body());
}

/**
* Create an agent
*/
public CompletableFuture<AgentResponseContent> create(
CreateAgentRequestContent request, RequestOptions requestOptions) {
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
}

/**
* Get an agent
*/
public CompletableFuture<AgentResponseContent> read(String id) {
return this.rawClient.read(id).thenApply(response -> response.body());
}

/**
* Get an agent
*/
public CompletableFuture<AgentResponseContent> read(String id, RequestOptions requestOptions) {
return this.rawClient.read(id, requestOptions).thenApply(response -> response.body());
}

/**
* Delete an agent
*/
public CompletableFuture<Void> delete(String id) {
return this.rawClient.delete(id).thenApply(response -> response.body());
}

/**
* Delete an agent
*/
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update an agent
*/
public CompletableFuture<AgentResponseContent> update(String id) {
return this.rawClient.update(id).thenApply(response -> response.body());
}

/**
* Update an agent
*/
public CompletableFuture<AgentResponseContent> update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update an agent
*/
public CompletableFuture<AgentResponseContent> update(String id, PatchAgentRequestParameters request) {
return this.rawClient.update(id, request).thenApply(response -> response.body());
}

/**
* Update an agent
*/
public CompletableFuture<AgentResponseContent> update(
String id, PatchAgentRequestParameters request, RequestOptions requestOptions) {
return this.rawClient.update(id, request, requestOptions).thenApply(response -> response.body());
}
}
7 changes: 7 additions & 0 deletions src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class AsyncManagementApi {

protected final Supplier<AsyncActionsClient> actionsClient;

protected final Supplier<AsyncAgentsClient> agentsClient;

protected final Supplier<AsyncBrandingClient> brandingClient;

protected final Supplier<AsyncClientGrantsClient> clientGrantsClient;
Expand Down Expand Up @@ -111,6 +113,7 @@ public class AsyncManagementApi {
public AsyncManagementApi(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.actionsClient = Suppliers.memoize(() -> new AsyncActionsClient(clientOptions));
this.agentsClient = Suppliers.memoize(() -> new AsyncAgentsClient(clientOptions));
this.brandingClient = Suppliers.memoize(() -> new AsyncBrandingClient(clientOptions));
this.clientGrantsClient = Suppliers.memoize(() -> new AsyncClientGrantsClient(clientOptions));
this.clientsClient = Suppliers.memoize(() -> new AsyncClientsClient(clientOptions));
Expand Down Expand Up @@ -161,6 +164,10 @@ public AsyncActionsClient actions() {
return this.actionsClient.get();
}

public AsyncAgentsClient agents() {
return this.agentsClient.get();
}

public AsyncBrandingClient branding() {
return this.brandingClient.get();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.auth0.client.mgmt.core.Suppliers;
import com.auth0.client.mgmt.core.SyncPagingIterable;
import com.auth0.client.mgmt.organizations.AsyncClientGrantsClient;
import com.auth0.client.mgmt.organizations.AsyncClientsClient;
import com.auth0.client.mgmt.organizations.AsyncConnectionsClient;
import com.auth0.client.mgmt.organizations.AsyncDiscoveryDomainsClient;
import com.auth0.client.mgmt.organizations.AsyncEnabledConnectionsClient;
Expand All @@ -33,6 +34,8 @@ public class AsyncOrganizationsClient {

protected final Supplier<AsyncClientGrantsClient> clientGrantsClient;

protected final Supplier<AsyncClientsClient> clientsClient;

protected final Supplier<AsyncConnectionsClient> connectionsClient;

protected final Supplier<AsyncDiscoveryDomainsClient> discoveryDomainsClient;
Expand All @@ -51,6 +54,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new AsyncRawOrganizationsClient(clientOptions);
this.clientGrantsClient = Suppliers.memoize(() -> new AsyncClientGrantsClient(clientOptions));
this.clientsClient = Suppliers.memoize(() -> new AsyncClientsClient(clientOptions));
this.connectionsClient = Suppliers.memoize(() -> new AsyncConnectionsClient(clientOptions));
this.discoveryDomainsClient = Suppliers.memoize(() -> new AsyncDiscoveryDomainsClient(clientOptions));
this.enabledConnectionsClient = Suppliers.memoize(() -> new AsyncEnabledConnectionsClient(clientOptions));
Expand Down Expand Up @@ -242,6 +246,10 @@ public AsyncClientGrantsClient clientGrants() {
return this.clientGrantsClient.get();
}

public AsyncClientsClient clients() {
return this.clientsClient.get();
}

public AsyncConnectionsClient connections() {
return this.connectionsClient.get();
}
Expand Down
Loading
Loading