Skip to content

Commit 1a4e4c3

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.11.1
1 parent 113105b commit 1a4e4c3

643 files changed

Lines changed: 138893 additions & 422 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.

‎reference.md‎

Lines changed: 775 additions & 5 deletions
Large diffs are not rendered by default.

‎src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public class AsyncManagementApi {
6060

6161
protected final Supplier<AsyncNetworkAclsClient> networkAclsClient;
6262

63+
protected final Supplier<AsyncOrganizationTemplatesClient> organizationTemplatesClient;
64+
6365
protected final Supplier<AsyncOrganizationsClient> organizationsClient;
6466

6567
protected final Supplier<AsyncPromptsClient> promptsClient;
@@ -133,6 +135,7 @@ public AsyncManagementApi(ClientOptions clientOptions) {
133135
this.logStreamsClient = Suppliers.memoize(() -> new AsyncLogStreamsClient(clientOptions));
134136
this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions));
135137
this.networkAclsClient = Suppliers.memoize(() -> new AsyncNetworkAclsClient(clientOptions));
138+
this.organizationTemplatesClient = Suppliers.memoize(() -> new AsyncOrganizationTemplatesClient(clientOptions));
136139
this.organizationsClient = Suppliers.memoize(() -> new AsyncOrganizationsClient(clientOptions));
137140
this.promptsClient = Suppliers.memoize(() -> new AsyncPromptsClient(clientOptions));
138141
this.rateLimitPoliciesClient = Suppliers.memoize(() -> new AsyncRateLimitPoliciesClient(clientOptions));
@@ -244,6 +247,10 @@ public AsyncNetworkAclsClient networkAcls() {
244247
return this.networkAclsClient.get();
245248
}
246249

250+
public AsyncOrganizationTemplatesClient organizationTemplates() {
251+
return this.organizationTemplatesClient.get();
252+
}
253+
247254
public AsyncOrganizationsClient organizations() {
248255
return this.organizationsClient.get();
249256
}
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.auth0.client.mgmt;
5+
6+
import com.auth0.client.mgmt.core.ClientOptions;
7+
import com.auth0.client.mgmt.core.RequestOptions;
8+
import com.auth0.client.mgmt.core.SyncPagingIterable;
9+
import com.auth0.client.mgmt.types.CreateOrganizationTemplateRequestContent;
10+
import com.auth0.client.mgmt.types.ListOrganizationTemplatesRequestParameters;
11+
import com.auth0.client.mgmt.types.ListTemplateOrganizationsRequestParameters;
12+
import com.auth0.client.mgmt.types.OrganizationTemplate;
13+
import com.auth0.client.mgmt.types.OrganizationTemplateAssignedOrganization;
14+
import com.auth0.client.mgmt.types.UpdateOrganizationTemplateRequestContent;
15+
import java.util.concurrent.CompletableFuture;
16+
17+
public class AsyncOrganizationTemplatesClient {
18+
protected final ClientOptions clientOptions;
19+
20+
private final AsyncRawOrganizationTemplatesClient rawClient;
21+
22+
public AsyncOrganizationTemplatesClient(ClientOptions clientOptions) {
23+
this.clientOptions = clientOptions;
24+
this.rawClient = new AsyncRawOrganizationTemplatesClient(clientOptions);
25+
}
26+
27+
/**
28+
* Get responses with HTTP metadata like headers
29+
*/
30+
public AsyncRawOrganizationTemplatesClient withRawResponse() {
31+
return this.rawClient;
32+
}
33+
34+
/**
35+
* Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
36+
*/
37+
public CompletableFuture<SyncPagingIterable<OrganizationTemplate>> list() {
38+
return this.rawClient.list().thenApply(response -> response.body());
39+
}
40+
41+
/**
42+
* Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
43+
*/
44+
public CompletableFuture<SyncPagingIterable<OrganizationTemplate>> list(RequestOptions requestOptions) {
45+
return this.rawClient.list(requestOptions).thenApply(response -> response.body());
46+
}
47+
48+
/**
49+
* Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
50+
*/
51+
public CompletableFuture<SyncPagingIterable<OrganizationTemplate>> list(
52+
ListOrganizationTemplatesRequestParameters request) {
53+
return this.rawClient.list(request).thenApply(response -> response.body());
54+
}
55+
56+
/**
57+
* Retrieve a list of Organization Templates. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
58+
*/
59+
public CompletableFuture<SyncPagingIterable<OrganizationTemplate>> list(
60+
ListOrganizationTemplatesRequestParameters request, RequestOptions requestOptions) {
61+
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
62+
}
63+
64+
/**
65+
* Create an Organization Template.
66+
*/
67+
public CompletableFuture<OrganizationTemplate> create(CreateOrganizationTemplateRequestContent request) {
68+
return this.rawClient.create(request).thenApply(response -> response.body());
69+
}
70+
71+
/**
72+
* Create an Organization Template.
73+
*/
74+
public CompletableFuture<OrganizationTemplate> create(
75+
CreateOrganizationTemplateRequestContent request, RequestOptions requestOptions) {
76+
return this.rawClient.create(request, requestOptions).thenApply(response -> response.body());
77+
}
78+
79+
/**
80+
* Retrieve details about a single Organization Template specified by ID.
81+
*/
82+
public CompletableFuture<OrganizationTemplate> get(String id) {
83+
return this.rawClient.get(id).thenApply(response -> response.body());
84+
}
85+
86+
/**
87+
* Retrieve details about a single Organization Template specified by ID.
88+
*/
89+
public CompletableFuture<OrganizationTemplate> get(String id, RequestOptions requestOptions) {
90+
return this.rawClient.get(id, requestOptions).thenApply(response -> response.body());
91+
}
92+
93+
/**
94+
* Update the details of a specific Organization Template.
95+
*/
96+
public CompletableFuture<OrganizationTemplate> update(String id) {
97+
return this.rawClient.update(id).thenApply(response -> response.body());
98+
}
99+
100+
/**
101+
* Update the details of a specific Organization Template.
102+
*/
103+
public CompletableFuture<OrganizationTemplate> update(String id, RequestOptions requestOptions) {
104+
return this.rawClient.update(id, requestOptions).thenApply(response -> response.body());
105+
}
106+
107+
/**
108+
* Update the details of a specific Organization Template.
109+
*/
110+
public CompletableFuture<OrganizationTemplate> update(String id, UpdateOrganizationTemplateRequestContent request) {
111+
return this.rawClient.update(id, request).thenApply(response -> response.body());
112+
}
113+
114+
/**
115+
* Update the details of a specific Organization Template.
116+
*/
117+
public CompletableFuture<OrganizationTemplate> update(
118+
String id, UpdateOrganizationTemplateRequestContent request, RequestOptions requestOptions) {
119+
return this.rawClient.update(id, request, requestOptions).thenApply(response -> response.body());
120+
}
121+
122+
/**
123+
* Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
124+
*/
125+
public CompletableFuture<SyncPagingIterable<OrganizationTemplateAssignedOrganization>> listOrganizations(
126+
String id) {
127+
return this.rawClient.listOrganizations(id).thenApply(response -> response.body());
128+
}
129+
130+
/**
131+
* Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
132+
*/
133+
public CompletableFuture<SyncPagingIterable<OrganizationTemplateAssignedOrganization>> listOrganizations(
134+
String id, RequestOptions requestOptions) {
135+
return this.rawClient.listOrganizations(id, requestOptions).thenApply(response -> response.body());
136+
}
137+
138+
/**
139+
* Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
140+
*/
141+
public CompletableFuture<SyncPagingIterable<OrganizationTemplateAssignedOrganization>> listOrganizations(
142+
String id, ListTemplateOrganizationsRequestParameters request) {
143+
return this.rawClient.listOrganizations(id, request).thenApply(response -> response.body());
144+
}
145+
146+
/**
147+
* Retrieve a list of organizations assigned to an Organization Template. This endpoint supports Checkpoint pagination. Results are returned in a stable order, sorted by their identifier (<code>id</code>) in ascending order.
148+
*/
149+
public CompletableFuture<SyncPagingIterable<OrganizationTemplateAssignedOrganization>> listOrganizations(
150+
String id, ListTemplateOrganizationsRequestParameters request, RequestOptions requestOptions) {
151+
return this.rawClient.listOrganizations(id, request, requestOptions).thenApply(response -> response.body());
152+
}
153+
}

‎src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.auth0.client.mgmt.organizations.AsyncGroupsClient;
1616
import com.auth0.client.mgmt.organizations.AsyncInvitationsClient;
1717
import com.auth0.client.mgmt.organizations.AsyncMembersClient;
18+
import com.auth0.client.mgmt.organizations.AsyncOrganizationTemplateClient;
1819
import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient;
1920
import com.auth0.client.mgmt.types.CreateOrganizationRequestContent;
2021
import com.auth0.client.mgmt.types.CreateOrganizationResponseContent;
@@ -46,6 +47,8 @@ public class AsyncOrganizationsClient {
4647

4748
protected final Supplier<AsyncMembersClient> membersClient;
4849

50+
protected final Supplier<AsyncOrganizationTemplateClient> organizationTemplateClient;
51+
4952
protected final Supplier<AsyncGroupsClient> groupsClient;
5053

5154
protected final Supplier<AsyncRolesClient> rolesClient;
@@ -60,6 +63,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) {
6063
this.enabledConnectionsClient = Suppliers.memoize(() -> new AsyncEnabledConnectionsClient(clientOptions));
6164
this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions));
6265
this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions));
66+
this.organizationTemplateClient = Suppliers.memoize(() -> new AsyncOrganizationTemplateClient(clientOptions));
6367
this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions));
6468
this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions));
6569
}
@@ -270,6 +274,10 @@ public AsyncMembersClient members() {
270274
return this.membersClient.get();
271275
}
272276

277+
public AsyncOrganizationTemplateClient organizationTemplate() {
278+
return this.organizationTemplateClient.get();
279+
}
280+
273281
public AsyncGroupsClient groups() {
274282
return this.groupsClient.get();
275283
}

‎src/main/java/com/auth0/client/mgmt/AsyncRawConnectionsClient.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.auth0.client.mgmt.errors.NotFoundError;
2020
import com.auth0.client.mgmt.errors.TooManyRequestsError;
2121
import com.auth0.client.mgmt.errors.UnauthorizedError;
22+
import com.auth0.client.mgmt.errors.UnprocessableEntityError;
2223
import com.auth0.client.mgmt.types.ConnectionForList;
2324
import com.auth0.client.mgmt.types.CreateConnectionRequestContent;
2425
import com.auth0.client.mgmt.types.CreateConnectionResponseContent;
@@ -347,6 +348,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
347348
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
348349
response));
349350
return;
351+
case 422:
352+
future.completeExceptionally(new UnprocessableEntityError(
353+
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
354+
response));
355+
return;
350356
case 429:
351357
future.completeExceptionally(new TooManyRequestsError(
352358
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
@@ -710,6 +716,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
710716
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
711717
response));
712718
return;
719+
case 422:
720+
future.completeExceptionally(new UnprocessableEntityError(
721+
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
722+
response));
723+
return;
713724
case 429:
714725
future.completeExceptionally(new TooManyRequestsError(
715726
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),

0 commit comments

Comments
 (0)