Skip to content
Open
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 @@ -49104,6 +49104,12 @@ components:
name:
description: Name of the permission.
type: string
name_aliases:
description: List of alias names for the permission.
items:
type: string
nullable: true
type: array
restricted:
description: Whether or not the permission is restricted.
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.openapitools.jackson.nullable.JsonNullable;

/** Attributes of a permission. */
@JsonPropertyOrder({
Expand All @@ -25,6 +28,7 @@
PermissionAttributes.JSON_PROPERTY_DISPLAY_TYPE,
PermissionAttributes.JSON_PROPERTY_GROUP_NAME,
PermissionAttributes.JSON_PROPERTY_NAME,
PermissionAttributes.JSON_PROPERTY_NAME_ALIASES,
PermissionAttributes.JSON_PROPERTY_RESTRICTED
})
@jakarta.annotation.Generated(
Expand All @@ -49,6 +53,9 @@ public class PermissionAttributes {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_NAME_ALIASES = "name_aliases";
private JsonNullable<List<String>> nameAliases = JsonNullable.<List<String>>undefined();

public static final String JSON_PROPERTY_RESTRICTED = "restricted";
private Boolean restricted;

Expand Down Expand Up @@ -178,6 +185,49 @@ public void setName(String name) {
this.name = name;
}

public PermissionAttributes nameAliases(List<String> nameAliases) {
this.nameAliases = JsonNullable.<List<String>>of(nameAliases);
return this;
}

public PermissionAttributes addNameAliasesItem(String nameAliasesItem) {
if (this.nameAliases == null || !this.nameAliases.isPresent()) {
this.nameAliases = JsonNullable.<List<String>>of(new ArrayList<>());
}
try {
this.nameAliases.get().add(nameAliasesItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}

/**
* List of alias names for the permission.
*
* @return nameAliases
*/
@jakarta.annotation.Nullable
@JsonIgnore
public List<String> getNameAliases() {
return nameAliases.orElse(null);
}

@JsonProperty(JSON_PROPERTY_NAME_ALIASES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<List<String>> getNameAliases_JsonNullable() {
return nameAliases;
}

@JsonProperty(JSON_PROPERTY_NAME_ALIASES)
public void setNameAliases_JsonNullable(JsonNullable<List<String>> nameAliases) {
this.nameAliases = nameAliases;
}

public void setNameAliases(List<String> nameAliases) {
this.nameAliases = JsonNullable.<List<String>>of(nameAliases);
}

public PermissionAttributes restricted(Boolean restricted) {
this.restricted = restricted;
return this;
Expand Down Expand Up @@ -261,6 +311,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.displayType, permissionAttributes.displayType)
&& Objects.equals(this.groupName, permissionAttributes.groupName)
&& Objects.equals(this.name, permissionAttributes.name)
&& Objects.equals(this.nameAliases, permissionAttributes.nameAliases)
&& Objects.equals(this.restricted, permissionAttributes.restricted)
&& Objects.equals(this.additionalProperties, permissionAttributes.additionalProperties);
}
Expand All @@ -274,6 +325,7 @@ public int hashCode() {
displayType,
groupName,
name,
nameAliases,
restricted,
additionalProperties);
}
Expand All @@ -288,6 +340,7 @@ public String toString() {
sb.append(" displayType: ").append(toIndentedString(displayType)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" nameAliases: ").append(toIndentedString(nameAliases)).append("\n");
sb.append(" restricted: ").append(toIndentedString(restricted)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-01-06T00:52:01.679Z
2026-03-11T21:52:08.857Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ Feature: Roles
And the response "data" has item with field "attributes.restricted" with value true
And the response "data" has item with field "attributes.restricted" with value false
And the response "data" has item with field "attributes.name" with value "admin"
And the response "data" has item with field "attributes.name_aliases" with value null

@generated @skip @team:DataDog/aaa-core-access
Scenario: List role templates returns "OK" response
Expand Down
Loading