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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105071,6 +105071,11 @@ components:
description: Name of a managed role to inherit permissions from.
type: string
type: array
team_count:
description: Number of teams with that role.
format: int64
readOnly: true
type: integer
user_count:
description: The user count.
format: int32
Expand Down Expand Up @@ -216654,6 +216659,7 @@ paths:
data:
attributes:
name: developers
team_count: 0
id: 00000000-0000-0000-0000-000000000004
type: roles
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
RoleUpdateAttributes.JSON_PROPERTY_MODIFIED_AT,
RoleUpdateAttributes.JSON_PROPERTY_NAME,
RoleUpdateAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM,
RoleUpdateAttributes.JSON_PROPERTY_TEAM_COUNT,
RoleUpdateAttributes.JSON_PROPERTY_USER_COUNT
})
@jakarta.annotation.Generated(
Expand All @@ -48,6 +49,9 @@ public class RoleUpdateAttributes {
public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
private List<String> receivesPermissionsFrom = null;

public static final String JSON_PROPERTY_TEAM_COUNT = "team_count";
private Long teamCount;

public static final String JSON_PROPERTY_USER_COUNT = "user_count";
private Integer userCount;

Expand Down Expand Up @@ -152,6 +156,18 @@ public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
}

/**
* Number of teams with that role.
*
* @return teamCount
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TEAM_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTeamCount() {
return teamCount;
}

public RoleUpdateAttributes userCount(Integer userCount) {
this.userCount = userCount;
return this;
Expand Down Expand Up @@ -236,6 +252,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.name, roleUpdateAttributes.name)
&& Objects.equals(
this.receivesPermissionsFrom, roleUpdateAttributes.receivesPermissionsFrom)
&& Objects.equals(this.teamCount, roleUpdateAttributes.teamCount)
&& Objects.equals(this.userCount, roleUpdateAttributes.userCount)
&& Objects.equals(this.additionalProperties, roleUpdateAttributes.additionalProperties);
}
Expand All @@ -248,6 +265,7 @@ public int hashCode() {
modifiedAt,
name,
receivesPermissionsFrom,
teamCount,
userCount,
additionalProperties);
}
Expand All @@ -265,6 +283,7 @@ public String toString() {
sb.append(" receivesPermissionsFrom: ")
.append(toIndentedString(receivesPermissionsFrom))
.append("\n");
sb.append(" teamCount: ").append(toIndentedString(teamCount)).append("\n");
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Loading