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
55 changes: 54 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49734,6 +49734,18 @@ components:
description: The name of the role. The name is neither unique nor a stable
identifier of the role.
type: string
receives_permissions_from:
description: 'The managed role from which this role automatically inherits
new permissions.

Specify one of the following: "Datadog Admin Role", "Datadog Standard
Role", or "Datadog Read Only Role".

If empty or not specified, the role does not automatically inherit permissions
from any managed role.'
items:
type: string
type: array
user_count:
description: Number of users with that role.
format: int64
Expand All @@ -49759,6 +49771,18 @@ components:
description: Name of the new role that is cloned.
example: cloned-role
type: string
receives_permissions_from:
description: 'The managed role from which this role automatically inherits
new permissions.

Specify one of the following: "Datadog Admin Role", "Datadog Standard
Role", or "Datadog Read Only Role".

If empty or not specified, the role does not automatically inherit permissions
from any managed role.'
items:
type: string
type: array
required:
- name
type: object
Expand Down Expand Up @@ -49787,6 +49811,18 @@ components:
description: Name of the role.
example: developers
type: string
receives_permissions_from:
description: 'The managed role from which this role automatically inherits
new permissions.

Specify one of the following: "Datadog Admin Role", "Datadog Standard
Role", or "Datadog Read Only Role".

If empty or not specified, the role does not automatically inherit permissions
from any managed role.'
items:
type: string
type: array
required:
- name
type: object
Expand Down Expand Up @@ -49908,6 +49944,18 @@ components:
name:
description: Name of the role.
type: string
receives_permissions_from:
description: 'The managed role from which this role automatically inherits
new permissions.

Specify one of the following: "Datadog Admin Role", "Datadog Standard
Role", or "Datadog Read Only Role".

If empty or not specified, the role does not automatically inherit permissions
from any managed role.'
items:
type: string
type: array
user_count:
description: The user count.
format: int32
Expand Down Expand Up @@ -104429,7 +104477,12 @@ tags:

read access on a specific log index to a role can be done in Datadog from the

[Pipelines page](https://app.datadoghq.com/logs/pipelines).'
[Pipelines page](https://app.datadoghq.com/logs/pipelines).


Roles can also be managed in bulk through the Datadog UI, which provides

the capability to assign a single permission to multiple roles simultaneously.'
name: Roles
- description: Auto-generated tag Rum Audience Management
name: Rum Audience Management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
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;

Expand All @@ -22,6 +24,7 @@
RoleAttributes.JSON_PROPERTY_CREATED_AT,
RoleAttributes.JSON_PROPERTY_MODIFIED_AT,
RoleAttributes.JSON_PROPERTY_NAME,
RoleAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM,
RoleAttributes.JSON_PROPERTY_USER_COUNT
})
@jakarta.annotation.Generated(
Expand All @@ -37,6 +40,9 @@ public class RoleAttributes {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
private List<String> receivesPermissionsFrom = null;

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

Expand Down Expand Up @@ -85,6 +91,38 @@ public void setName(String name) {
this.name = name;
}

public RoleAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
return this;
}

public RoleAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
if (this.receivesPermissionsFrom == null) {
this.receivesPermissionsFrom = new ArrayList<>();
}
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
return this;
}

/**
* The managed role from which this role automatically inherits new permissions. Specify one of
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
* empty or not specified, the role does not automatically inherit permissions from any managed
* role.
*
* @return receivesPermissionsFrom
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getReceivesPermissionsFrom() {
return receivesPermissionsFrom;
}

public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
}

/**
* Number of users with that role.
*
Expand Down Expand Up @@ -156,13 +194,15 @@ public boolean equals(Object o) {
return Objects.equals(this.createdAt, roleAttributes.createdAt)
&& Objects.equals(this.modifiedAt, roleAttributes.modifiedAt)
&& Objects.equals(this.name, roleAttributes.name)
&& Objects.equals(this.receivesPermissionsFrom, roleAttributes.receivesPermissionsFrom)
&& Objects.equals(this.userCount, roleAttributes.userCount)
&& Objects.equals(this.additionalProperties, roleAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(createdAt, modifiedAt, name, userCount, additionalProperties);
return Objects.hash(
createdAt, modifiedAt, name, receivesPermissionsFrom, userCount, additionalProperties);
}

@Override
Expand All @@ -172,6 +212,9 @@ public String toString() {
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" receivesPermissionsFrom: ")
.append(toIndentedString(receivesPermissionsFrom))
.append("\n");
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,27 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/** Attributes required to create a new role by cloning an existing one. */
@JsonPropertyOrder({RoleCloneAttributes.JSON_PROPERTY_NAME})
@JsonPropertyOrder({
RoleCloneAttributes.JSON_PROPERTY_NAME,
RoleCloneAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RoleCloneAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
private List<String> receivesPermissionsFrom = null;

public RoleCloneAttributes() {}

@JsonCreator
Expand Down Expand Up @@ -54,6 +62,38 @@ public void setName(String name) {
this.name = name;
}

public RoleCloneAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
return this;
}

public RoleCloneAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
if (this.receivesPermissionsFrom == null) {
this.receivesPermissionsFrom = new ArrayList<>();
}
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
return this;
}

/**
* The managed role from which this role automatically inherits new permissions. Specify one of
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
* empty or not specified, the role does not automatically inherit permissions from any managed
* role.
*
* @return receivesPermissionsFrom
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getReceivesPermissionsFrom() {
return receivesPermissionsFrom;
}

public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -111,19 +151,23 @@ public boolean equals(Object o) {
}
RoleCloneAttributes roleCloneAttributes = (RoleCloneAttributes) o;
return Objects.equals(this.name, roleCloneAttributes.name)
&& Objects.equals(this.receivesPermissionsFrom, roleCloneAttributes.receivesPermissionsFrom)
&& Objects.equals(this.additionalProperties, roleCloneAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(name, additionalProperties);
return Objects.hash(name, receivesPermissionsFrom, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoleCloneAttributes {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" receivesPermissionsFrom: ")
.append(toIndentedString(receivesPermissionsFrom))
.append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
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;

/** Attributes of the created role. */
@JsonPropertyOrder({
RoleCreateAttributes.JSON_PROPERTY_CREATED_AT,
RoleCreateAttributes.JSON_PROPERTY_MODIFIED_AT,
RoleCreateAttributes.JSON_PROPERTY_NAME
RoleCreateAttributes.JSON_PROPERTY_NAME,
RoleCreateAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -37,6 +40,9 @@ public class RoleCreateAttributes {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
private List<String> receivesPermissionsFrom = null;

public RoleCreateAttributes() {}

@JsonCreator
Expand Down Expand Up @@ -89,6 +95,38 @@ public void setName(String name) {
this.name = name;
}

public RoleCreateAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
return this;
}

public RoleCreateAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
if (this.receivesPermissionsFrom == null) {
this.receivesPermissionsFrom = new ArrayList<>();
}
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
return this;
}

/**
* The managed role from which this role automatically inherits new permissions. Specify one of
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
* empty or not specified, the role does not automatically inherit permissions from any managed
* role.
*
* @return receivesPermissionsFrom
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getReceivesPermissionsFrom() {
return receivesPermissionsFrom;
}

public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
this.receivesPermissionsFrom = receivesPermissionsFrom;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -148,12 +186,14 @@ public boolean equals(Object o) {
return Objects.equals(this.createdAt, roleCreateAttributes.createdAt)
&& Objects.equals(this.modifiedAt, roleCreateAttributes.modifiedAt)
&& Objects.equals(this.name, roleCreateAttributes.name)
&& Objects.equals(
this.receivesPermissionsFrom, roleCreateAttributes.receivesPermissionsFrom)
&& Objects.equals(this.additionalProperties, roleCreateAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(createdAt, modifiedAt, name, additionalProperties);
return Objects.hash(createdAt, modifiedAt, name, receivesPermissionsFrom, additionalProperties);
}

@Override
Expand All @@ -163,6 +203,9 @@ public String toString() {
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" receivesPermissionsFrom: ")
.append(toIndentedString(receivesPermissionsFrom))
.append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading
Loading