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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 24 additions & 3 deletions src/main/java/com/auth0/client/mgmt/ActionsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ public SyncPagingIterable<Action> list() {
return this.rawClient.list().body();
}

/**
* Retrieve all actions.
*/
public SyncPagingIterable<Action> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).body();
}

/**
* Retrieve all actions.
*/
Expand Down Expand Up @@ -109,6 +116,13 @@ public void delete(String id) {
this.rawClient.delete(id).body();
}

/**
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
*/
public void delete(String id, RequestOptions requestOptions) {
this.rawClient.delete(id, requestOptions).body();
}

/**
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
*/
Expand All @@ -124,21 +138,28 @@ public void delete(String id, DeleteActionRequestParameters request, RequestOpti
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public UpdateActionResponseContent update(String id) {
return this.rawClient.update(id).body();
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public UpdateActionResponseContent update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).body();
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public UpdateActionResponseContent update(String id, UpdateActionRequestContent request) {
return this.rawClient.update(id, request).body();
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public UpdateActionResponseContent update(
String id, UpdateActionRequestContent request, RequestOptions requestOptions) {
Expand Down
27 changes: 24 additions & 3 deletions src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public CompletableFuture<SyncPagingIterable<Action>> list() {
return this.rawClient.list().thenApply(response -> response.body());
}

/**
* Retrieve all actions.
*/
public CompletableFuture<SyncPagingIterable<Action>> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
}

/**
* Retrieve all actions.
*/
Expand Down Expand Up @@ -112,6 +119,13 @@ public CompletableFuture<Void> delete(String id) {
return this.rawClient.delete(id).thenApply(response -> response.body());
}

/**
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
*/
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
}

/**
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
*/
Expand All @@ -128,21 +142,28 @@ public CompletableFuture<Void> delete(
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public CompletableFuture<UpdateActionResponseContent> update(String id) {
return this.rawClient.update(id).thenApply(response -> response.body());
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public CompletableFuture<UpdateActionResponseContent> update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public CompletableFuture<UpdateActionResponseContent> update(String id, UpdateActionRequestContent request) {
return this.rawClient.update(id, request).thenApply(response -> response.body());
}

/**
* Update an existing action. If this action is currently bound to a trigger, updating it will &lt;strong&gt;not&lt;/strong&gt; affect any user flows until the action is deployed.
* Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
*/
public CompletableFuture<UpdateActionResponseContent> update(
String id, UpdateActionRequestContent request, RequestOptions requestOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ public CompletableFuture<UpdateBrandingResponseContent> update() {
return this.rawClient.update().thenApply(response -> response.body());
}

/**
* Update branding settings.
*/
public CompletableFuture<UpdateBrandingResponseContent> update(RequestOptions requestOptions) {
return this.rawClient.update(requestOptions).thenApply(response -> response.body());
}

/**
* Update branding settings.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,68 +39,75 @@ public AsyncRawClientGrantsClient withRawResponse() {
}

/**
* Retrieve a list of &lt;a href=&quot;https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants&quot;&gt;client grants&lt;/a&gt;, including the scopes associated with the application/API pair.
* Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
*/
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list() {
return this.rawClient.list().thenApply(response -> response.body());
}

/**
* Retrieve a list of &lt;a href=&quot;https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants&quot;&gt;client grants&lt;/a&gt;, including the scopes associated with the application/API pair.
* Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
*/
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(RequestOptions requestOptions) {
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
}

/**
* Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
*/
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(
ListClientGrantsRequestParameters request) {
return this.rawClient.list(request).thenApply(response -> response.body());
}

/**
* Retrieve a list of &lt;a href=&quot;https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants&quot;&gt;client grants&lt;/a&gt;, including the scopes associated with the application/API pair.
* Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair.
*/
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(
ListClientGrantsRequestParameters request, RequestOptions requestOptions) {
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
}

/**
* Create a client grant for a machine-to-machine login flow. To learn more, read &lt;a href=&quot;https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow&quot;&gt;Client Credential Flow&lt;/a&gt;.
* Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>.
*/
public CompletableFuture<CreateClientGrantResponseContent> create(CreateClientGrantRequestContent request) {
return this.rawClient.create(request).thenApply(response -> response.body());
}

/**
* Create a client grant for a machine-to-machine login flow. To learn more, read &lt;a href=&quot;https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow&quot;&gt;Client Credential Flow&lt;/a&gt;.
* Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>.
*/
public CompletableFuture<CreateClientGrantResponseContent> create(
CreateClientGrantRequestContent request, RequestOptions requestOptions) {
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
}

/**
* Retrieve a single &lt;a href=&quot;https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants&quot;&gt;client grant&lt;/a&gt;, including the
* Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
* scopes associated with the application/API pair.
*/
public CompletableFuture<GetClientGrantResponseContent> get(String id) {
return this.rawClient.get(id).thenApply(response -> response.body());
}

/**
* Retrieve a single &lt;a href=&quot;https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants&quot;&gt;client grant&lt;/a&gt;, including the
* Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
* scopes associated with the application/API pair.
*/
public CompletableFuture<GetClientGrantResponseContent> get(String id, RequestOptions requestOptions) {
return this.rawClient.get(id, requestOptions).thenApply(response -> response.body());
}

/**
* Delete the &lt;a href=&quot;https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow&quot;&gt;Client Credential Flow&lt;/a&gt; from your machine-to-machine application.
* Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
*/
public CompletableFuture<Void> delete(String id) {
return this.rawClient.delete(id).thenApply(response -> response.body());
}

/**
* Delete the &lt;a href=&quot;https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow&quot;&gt;Client Credential Flow&lt;/a&gt; from your machine-to-machine application.
* Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application.
*/
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
Expand All @@ -113,6 +120,13 @@ public CompletableFuture<UpdateClientGrantResponseContent> update(String id) {
return this.rawClient.update(id).thenApply(response -> response.body());
}

/**
* Update a client grant.
*/
public CompletableFuture<UpdateClientGrantResponseContent> update(String id, RequestOptions requestOptions) {
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
}

/**
* Update a client grant.
*/
Expand Down
Loading
Loading