Skip to content
Merged
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
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 131 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@ client.eventStreams().test(
"id",
CreateEventStreamTestEventRequestContent
.builder()
.eventType(EventStreamTestEventTypeEnum.GROUP_CREATED)
.eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED)
.build()
);
```
Expand Down Expand Up @@ -5603,7 +5603,7 @@ client.events().subscribe(
OptionalNullable.of("from_timestamp")
)
.eventType(
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)
)
.build()
);
Expand Down Expand Up @@ -8989,6 +8989,14 @@ client.organizations().create(

**tokenQuota:** `Optional<CreateTokenQuota>`

</dd>
</dl>

<dl>
<dd>

**thirdPartyClientAccess:** `Optional<OrganizationThirdPartyClientAccessEnum>`

</dd>
</dl>
</dd>
Expand Down Expand Up @@ -9252,6 +9260,14 @@ client.organizations().update(

**tokenQuota:** `Optional<UpdateTokenQuota>`

</dd>
</dl>

<dl>
<dd>

**thirdPartyClientAccess:** `Optional<OrganizationThirdPartyClientAccessEnum>`

</dd>
</dl>
</dd>
Expand Down Expand Up @@ -28128,6 +28144,119 @@ client.organizations().members().effectiveRoles().sources().groups().list(
</dl>


</dd>
</dl>
</details>

## Organizations Roles Members
<details><summary><code>client.organizations.roles.members.list(id, roleId) -> SyncPagingIterable&amp;lt;RoleMember&amp;gt;</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

List the organization members assigned a specific role within the context of an organization.
</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.organizations().roles().members().list(
"id",
"role_id",
ListOrganizationRoleMembersRequestParameters
.builder()
.from(
OptionalNullable.of("from")
)
.take(
OptionalNullable.of(1)
)
.fields(
OptionalNullable.of("fields")
)
.includeFields(
OptionalNullable.of(true)
)
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**id:** `String` — ID of the organization.

</dd>
</dl>

<dl>
<dd>

**roleId:** `String` — ID of the role to retrieve the assigned members for.

</dd>
</dl>

<dl>
<dd>

**from:** `Optional<String>` — Optional Id from which to start selection.

</dd>
</dl>

<dl>
<dd>

**take:** `Optional<Integer>` — Number of results per page. Defaults to 50. Values above the maximum permitted size are capped.

</dd>
</dl>

<dl>
<dd>

**fields:** `Optional<String>` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

</dd>
</dl>

<dl>
<dd>

**includeFields:** `Optional<Boolean>` — Whether specified fields are to be included (true) or excluded (false). Defaults to true.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.auth0.client.mgmt.organizations.AsyncGroupsClient;
import com.auth0.client.mgmt.organizations.AsyncInvitationsClient;
import com.auth0.client.mgmt.organizations.AsyncMembersClient;
import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient;
import com.auth0.client.mgmt.types.CreateOrganizationRequestContent;
import com.auth0.client.mgmt.types.CreateOrganizationResponseContent;
import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent;
Expand Down Expand Up @@ -44,6 +45,8 @@ public class AsyncOrganizationsClient {

protected final Supplier<AsyncGroupsClient> groupsClient;

protected final Supplier<AsyncRolesClient> rolesClient;

public AsyncOrganizationsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new AsyncRawOrganizationsClient(clientOptions);
Expand All @@ -54,6 +57,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) {
this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions));
this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions));
this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions));
this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions));
}

/**
Expand Down Expand Up @@ -261,4 +265,8 @@ public AsyncMembersClient members() {
public AsyncGroupsClient groups() {
return this.groupsClient.get();
}

public AsyncRolesClient roles() {
return this.rolesClient.get();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.auth0.client.mgmt.organizations.GroupsClient;
import com.auth0.client.mgmt.organizations.InvitationsClient;
import com.auth0.client.mgmt.organizations.MembersClient;
import com.auth0.client.mgmt.organizations.roles.RolesClient;
import com.auth0.client.mgmt.types.CreateOrganizationRequestContent;
import com.auth0.client.mgmt.types.CreateOrganizationResponseContent;
import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent;
Expand Down Expand Up @@ -43,6 +44,8 @@ public class OrganizationsClient {

protected final Supplier<GroupsClient> groupsClient;

protected final Supplier<RolesClient> rolesClient;

public OrganizationsClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new RawOrganizationsClient(clientOptions);
Expand All @@ -53,6 +56,7 @@ public OrganizationsClient(ClientOptions clientOptions) {
this.invitationsClient = Suppliers.memoize(() -> new InvitationsClient(clientOptions));
this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions));
this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions));
this.rolesClient = Suppliers.memoize(() -> new RolesClient(clientOptions));
}

/**
Expand Down Expand Up @@ -258,4 +262,8 @@ public MembersClient members() {
public GroupsClient groups() {
return this.groupsClient.get();
}

public RolesClient roles() {
return this.rolesClient.get();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.auth0.client.mgmt.organizations.roles;

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.organizations.roles.types.ListOrganizationRoleMembersRequestParameters;
import com.auth0.client.mgmt.types.RoleMember;
import java.util.concurrent.CompletableFuture;

public class AsyncMembersClient {
protected final ClientOptions clientOptions;

private final AsyncRawMembersClient rawClient;

public AsyncMembersClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.rawClient = new AsyncRawMembersClient(clientOptions);
}

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

/**
* List the organization members assigned a specific role within the context of an organization.
*/
public CompletableFuture<SyncPagingIterable<RoleMember>> list(String id, String roleId) {
return this.rawClient.list(id, roleId).thenApply(response -> response.body());
}

/**
* List the organization members assigned a specific role within the context of an organization.
*/
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
String id, String roleId, RequestOptions requestOptions) {
return this.rawClient.list(id, roleId, requestOptions).thenApply(response -> response.body());
}

/**
* List the organization members assigned a specific role within the context of an organization.
*/
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
String id, String roleId, ListOrganizationRoleMembersRequestParameters request) {
return this.rawClient.list(id, roleId, request).thenApply(response -> response.body());
}

/**
* List the organization members assigned a specific role within the context of an organization.
*/
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
String id,
String roleId,
ListOrganizationRoleMembersRequestParameters request,
RequestOptions requestOptions) {
return this.rawClient.list(id, roleId, request, requestOptions).thenApply(response -> response.body());
}
}
Loading
Loading