Skip to content

Commit 3d4d226

Browse files
fern-api[bot]tanya732patrickthorntondeveloperkunal
authored
Added AdditionalProperties field in ConnectionOptions and method overloading with RequestOptions (#831)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: tanya732 <sinha.tanya26@gmail.com> Co-authored-by: patrick thornton <70873350+patrickthornton@users.noreply.github.com> Co-authored-by: Kunal Dawar <35455566+developerkunal@users.noreply.github.com>
1 parent f2753cd commit 3d4d226

1,863 files changed

Lines changed: 38770 additions & 11434 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fernignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ src/test/java/com/auth0/net/
3737
src/test/java/com/auth0/exception/
3838
src/test/java/com/auth0/utils/
3939
src/test/java/com/auth0/json/
40-
src/test/resources/
4140
src/test/resources/auth/
4241
src/test/resources/keys/
4342
src/test/resources/mgmt/

src/main/java/com/auth0/client/mgmt/ActionsClient.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ public SyncPagingIterable<Action> list() {
6060
return this.rawClient.list().body();
6161
}
6262

63+
/**
64+
* Retrieve all actions.
65+
*/
66+
public SyncPagingIterable<Action> list(RequestOptions requestOptions) {
67+
return this.rawClient.list(requestOptions).body();
68+
}
69+
6370
/**
6471
* Retrieve all actions.
6572
*/
@@ -109,6 +116,13 @@ public void delete(String id) {
109116
this.rawClient.delete(id).body();
110117
}
111118

119+
/**
120+
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
121+
*/
122+
public void delete(String id, RequestOptions requestOptions) {
123+
this.rawClient.delete(id, requestOptions).body();
124+
}
125+
112126
/**
113127
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
114128
*/
@@ -124,21 +138,28 @@ public void delete(String id, DeleteActionRequestParameters request, RequestOpti
124138
}
125139

126140
/**
127-
* 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.
141+
* 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.
128142
*/
129143
public UpdateActionResponseContent update(String id) {
130144
return this.rawClient.update(id).body();
131145
}
132146

133147
/**
134-
* 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.
148+
* 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.
149+
*/
150+
public UpdateActionResponseContent update(String id, RequestOptions requestOptions) {
151+
return this.rawClient.update(id, requestOptions).body();
152+
}
153+
154+
/**
155+
* 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.
135156
*/
136157
public UpdateActionResponseContent update(String id, UpdateActionRequestContent request) {
137158
return this.rawClient.update(id, request).body();
138159
}
139160

140161
/**
141-
* 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.
162+
* 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.
142163
*/
143164
public UpdateActionResponseContent update(
144165
String id, UpdateActionRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ public CompletableFuture<SyncPagingIterable<Action>> list() {
6161
return this.rawClient.list().thenApply(response -> response.body());
6262
}
6363

64+
/**
65+
* Retrieve all actions.
66+
*/
67+
public CompletableFuture<SyncPagingIterable<Action>> list(RequestOptions requestOptions) {
68+
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
69+
}
70+
6471
/**
6572
* Retrieve all actions.
6673
*/
@@ -112,6 +119,13 @@ public CompletableFuture<Void> delete(String id) {
112119
return this.rawClient.delete(id).thenApply(response -> response.body());
113120
}
114121

122+
/**
123+
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
124+
*/
125+
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
126+
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
127+
}
128+
115129
/**
116130
* Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted.
117131
*/
@@ -128,21 +142,28 @@ public CompletableFuture<Void> delete(
128142
}
129143

130144
/**
131-
* 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.
145+
* 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.
132146
*/
133147
public CompletableFuture<UpdateActionResponseContent> update(String id) {
134148
return this.rawClient.update(id).thenApply(response -> response.body());
135149
}
136150

137151
/**
138-
* 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.
152+
* 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.
153+
*/
154+
public CompletableFuture<UpdateActionResponseContent> update(String id, RequestOptions requestOptions) {
155+
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
156+
}
157+
158+
/**
159+
* 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.
139160
*/
140161
public CompletableFuture<UpdateActionResponseContent> update(String id, UpdateActionRequestContent request) {
141162
return this.rawClient.update(id, request).thenApply(response -> response.body());
142163
}
143164

144165
/**
145-
* 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.
166+
* 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.
146167
*/
147168
public CompletableFuture<UpdateActionResponseContent> update(
148169
String id, UpdateActionRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ public CompletableFuture<UpdateBrandingResponseContent> update() {
6262
return this.rawClient.update().thenApply(response -> response.body());
6363
}
6464

65+
/**
66+
* Update branding settings.
67+
*/
68+
public CompletableFuture<UpdateBrandingResponseContent> update(RequestOptions requestOptions) {
69+
return this.rawClient.update(requestOptions).thenApply(response -> response.body());
70+
}
71+
6572
/**
6673
* Update branding settings.
6774
*/

src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,68 +39,75 @@ public AsyncRawClientGrantsClient withRawResponse() {
3939
}
4040

4141
/**
42-
* 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.
42+
* 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.
4343
*/
4444
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list() {
4545
return this.rawClient.list().thenApply(response -> response.body());
4646
}
4747

4848
/**
49-
* 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.
49+
* 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.
50+
*/
51+
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(RequestOptions requestOptions) {
52+
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
53+
}
54+
55+
/**
56+
* 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.
5057
*/
5158
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(
5259
ListClientGrantsRequestParameters request) {
5360
return this.rawClient.list(request).thenApply(response -> response.body());
5461
}
5562

5663
/**
57-
* 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.
64+
* 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.
5865
*/
5966
public CompletableFuture<SyncPagingIterable<ClientGrantResponseContent>> list(
6067
ListClientGrantsRequestParameters request, RequestOptions requestOptions) {
6168
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
6269
}
6370

6471
/**
65-
* 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;.
72+
* 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>.
6673
*/
6774
public CompletableFuture<CreateClientGrantResponseContent> create(CreateClientGrantRequestContent request) {
6875
return this.rawClient.create(request).thenApply(response -> response.body());
6976
}
7077

7178
/**
72-
* 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;.
79+
* 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>.
7380
*/
7481
public CompletableFuture<CreateClientGrantResponseContent> create(
7582
CreateClientGrantRequestContent request, RequestOptions requestOptions) {
7683
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
7784
}
7885

7986
/**
80-
* 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
87+
* Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
8188
* scopes associated with the application/API pair.
8289
*/
8390
public CompletableFuture<GetClientGrantResponseContent> get(String id) {
8491
return this.rawClient.get(id).thenApply(response -> response.body());
8592
}
8693

8794
/**
88-
* 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
95+
* Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the
8996
* scopes associated with the application/API pair.
9097
*/
9198
public CompletableFuture<GetClientGrantResponseContent> get(String id, RequestOptions requestOptions) {
9299
return this.rawClient.get(id, requestOptions).thenApply(response -> response.body());
93100
}
94101

95102
/**
96-
* 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.
103+
* 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.
97104
*/
98105
public CompletableFuture<Void> delete(String id) {
99106
return this.rawClient.delete(id).thenApply(response -> response.body());
100107
}
101108

102109
/**
103-
* 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.
110+
* 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.
104111
*/
105112
public CompletableFuture<Void> delete(String id, RequestOptions requestOptions) {
106113
return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body());
@@ -113,6 +120,13 @@ public CompletableFuture<UpdateClientGrantResponseContent> update(String id) {
113120
return this.rawClient.update(id).thenApply(response -> response.body());
114121
}
115122

123+
/**
124+
* Update a client grant.
125+
*/
126+
public CompletableFuture<UpdateClientGrantResponseContent> update(String id, RequestOptions requestOptions) {
127+
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
128+
}
129+
116130
/**
117131
* Update a client grant.
118132
*/

0 commit comments

Comments
 (0)