diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2e4fe1e0cc5..99e479d8246 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -216654,6 +216659,7 @@ paths: data: attributes: name: developers + team_count: 0 id: 00000000-0000-0000-0000-000000000004 type: roles schema: diff --git a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java index ba42aa3d532..6f3a736985f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RoleUpdateAttributes.java @@ -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( @@ -48,6 +49,9 @@ public class RoleUpdateAttributes { public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from"; private List 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; @@ -152,6 +156,18 @@ public void setReceivesPermissionsFrom(List 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; @@ -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); } @@ -248,6 +265,7 @@ public int hashCode() { modifiedAt, name, receivesPermissionsFrom, + teamCount, userCount, additionalProperties); } @@ -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))