Skip to content

Commit 4091078

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e3cfb92 of spec repo
1 parent e580f1d commit 4091078

File tree

6 files changed

+241
-12
lines changed

6 files changed

+241
-12
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49600,6 +49600,18 @@ components:
4960049600
description: The name of the role. The name is neither unique nor a stable
4960149601
identifier of the role.
4960249602
type: string
49603+
receives_permissions_from:
49604+
description: 'The managed role from which this role automatically inherits
49605+
new permissions.
49606+
49607+
Specify one of the following: "Datadog Admin Role", "Datadog Standard
49608+
Role", or "Datadog Read Only Role".
49609+
49610+
If empty or not specified, the role does not automatically inherit permissions
49611+
from any managed role.'
49612+
items:
49613+
type: string
49614+
type: array
4960349615
user_count:
4960449616
description: Number of users with that role.
4960549617
format: int64
@@ -49625,6 +49637,18 @@ components:
4962549637
description: Name of the new role that is cloned.
4962649638
example: cloned-role
4962749639
type: string
49640+
receives_permissions_from:
49641+
description: 'The managed role from which this role automatically inherits
49642+
new permissions.
49643+
49644+
Specify one of the following: "Datadog Admin Role", "Datadog Standard
49645+
Role", or "Datadog Read Only Role".
49646+
49647+
If empty or not specified, the role does not automatically inherit permissions
49648+
from any managed role.'
49649+
items:
49650+
type: string
49651+
type: array
4962849652
required:
4962949653
- name
4963049654
type: object
@@ -49653,6 +49677,18 @@ components:
4965349677
description: Name of the role.
4965449678
example: developers
4965549679
type: string
49680+
receives_permissions_from:
49681+
description: 'The managed role from which this role automatically inherits
49682+
new permissions.
49683+
49684+
Specify one of the following: "Datadog Admin Role", "Datadog Standard
49685+
Role", or "Datadog Read Only Role".
49686+
49687+
If empty or not specified, the role does not automatically inherit permissions
49688+
from any managed role.'
49689+
items:
49690+
type: string
49691+
type: array
4965649692
required:
4965749693
- name
4965849694
type: object
@@ -49774,6 +49810,18 @@ components:
4977449810
name:
4977549811
description: Name of the role.
4977649812
type: string
49813+
receives_permissions_from:
49814+
description: 'The managed role from which this role automatically inherits
49815+
new permissions.
49816+
49817+
Specify one of the following: "Datadog Admin Role", "Datadog Standard
49818+
Role", or "Datadog Read Only Role".
49819+
49820+
If empty or not specified, the role does not automatically inherit permissions
49821+
from any managed role.'
49822+
items:
49823+
type: string
49824+
type: array
4977749825
user_count:
4977849826
description: The user count.
4977949827
format: int32
@@ -104192,7 +104240,12 @@ tags:
104192104240

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

104195-
[Pipelines page](https://app.datadoghq.com/logs/pipelines).'
104243+
[Pipelines page](https://app.datadoghq.com/logs/pipelines).
104244+
104245+
104246+
Roles can also be managed in bulk through the Datadog UI, which provides
104247+
104248+
the capability to assign a single permission to multiple roles simultaneously.'
104196104249
name: Roles
104197104250
- description: Auto-generated tag Rum Audience Management
104198104251
name: Rum Audience Management

src/main/java/com/datadog/api/client/v2/model/RoleAttributes.java

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import com.fasterxml.jackson.annotation.JsonProperty;
1414
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1515
import java.time.OffsetDateTime;
16+
import java.util.ArrayList;
1617
import java.util.HashMap;
18+
import java.util.List;
1719
import java.util.Map;
1820
import java.util.Objects;
1921

@@ -22,6 +24,7 @@
2224
RoleAttributes.JSON_PROPERTY_CREATED_AT,
2325
RoleAttributes.JSON_PROPERTY_MODIFIED_AT,
2426
RoleAttributes.JSON_PROPERTY_NAME,
27+
RoleAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM,
2528
RoleAttributes.JSON_PROPERTY_USER_COUNT
2629
})
2730
@jakarta.annotation.Generated(
@@ -37,6 +40,9 @@ public class RoleAttributes {
3740
public static final String JSON_PROPERTY_NAME = "name";
3841
private String name;
3942

43+
public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
44+
private List<String> receivesPermissionsFrom = null;
45+
4046
public static final String JSON_PROPERTY_USER_COUNT = "user_count";
4147
private Long userCount;
4248

@@ -85,6 +91,38 @@ public void setName(String name) {
8591
this.name = name;
8692
}
8793

94+
public RoleAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
95+
this.receivesPermissionsFrom = receivesPermissionsFrom;
96+
return this;
97+
}
98+
99+
public RoleAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
100+
if (this.receivesPermissionsFrom == null) {
101+
this.receivesPermissionsFrom = new ArrayList<>();
102+
}
103+
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
104+
return this;
105+
}
106+
107+
/**
108+
* The managed role from which this role automatically inherits new permissions. Specify one of
109+
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
110+
* empty or not specified, the role does not automatically inherit permissions from any managed
111+
* role.
112+
*
113+
* @return receivesPermissionsFrom
114+
*/
115+
@jakarta.annotation.Nullable
116+
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
117+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118+
public List<String> getReceivesPermissionsFrom() {
119+
return receivesPermissionsFrom;
120+
}
121+
122+
public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
123+
this.receivesPermissionsFrom = receivesPermissionsFrom;
124+
}
125+
88126
/**
89127
* Number of users with that role.
90128
*
@@ -156,13 +194,15 @@ public boolean equals(Object o) {
156194
return Objects.equals(this.createdAt, roleAttributes.createdAt)
157195
&& Objects.equals(this.modifiedAt, roleAttributes.modifiedAt)
158196
&& Objects.equals(this.name, roleAttributes.name)
197+
&& Objects.equals(this.receivesPermissionsFrom, roleAttributes.receivesPermissionsFrom)
159198
&& Objects.equals(this.userCount, roleAttributes.userCount)
160199
&& Objects.equals(this.additionalProperties, roleAttributes.additionalProperties);
161200
}
162201

163202
@Override
164203
public int hashCode() {
165-
return Objects.hash(createdAt, modifiedAt, name, userCount, additionalProperties);
204+
return Objects.hash(
205+
createdAt, modifiedAt, name, receivesPermissionsFrom, userCount, additionalProperties);
166206
}
167207

168208
@Override
@@ -172,6 +212,9 @@ public String toString() {
172212
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
173213
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
174214
sb.append(" name: ").append(toIndentedString(name)).append("\n");
215+
sb.append(" receivesPermissionsFrom: ")
216+
.append(toIndentedString(receivesPermissionsFrom))
217+
.append("\n");
175218
sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n");
176219
sb.append(" additionalProperties: ")
177220
.append(toIndentedString(additionalProperties))

src/main/java/com/datadog/api/client/v2/model/RoleCloneAttributes.java

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,27 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
1617
import java.util.HashMap;
18+
import java.util.List;
1719
import java.util.Map;
1820
import java.util.Objects;
1921

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

34+
public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
35+
private List<String> receivesPermissionsFrom = null;
36+
2937
public RoleCloneAttributes() {}
3038

3139
@JsonCreator
@@ -54,6 +62,38 @@ public void setName(String name) {
5462
this.name = name;
5563
}
5664

65+
public RoleCloneAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
66+
this.receivesPermissionsFrom = receivesPermissionsFrom;
67+
return this;
68+
}
69+
70+
public RoleCloneAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
71+
if (this.receivesPermissionsFrom == null) {
72+
this.receivesPermissionsFrom = new ArrayList<>();
73+
}
74+
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
75+
return this;
76+
}
77+
78+
/**
79+
* The managed role from which this role automatically inherits new permissions. Specify one of
80+
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
81+
* empty or not specified, the role does not automatically inherit permissions from any managed
82+
* role.
83+
*
84+
* @return receivesPermissionsFrom
85+
*/
86+
@jakarta.annotation.Nullable
87+
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
88+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89+
public List<String> getReceivesPermissionsFrom() {
90+
return receivesPermissionsFrom;
91+
}
92+
93+
public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
94+
this.receivesPermissionsFrom = receivesPermissionsFrom;
95+
}
96+
5797
/**
5898
* A container for additional, undeclared properties. This is a holder for any undeclared
5999
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -111,19 +151,23 @@ public boolean equals(Object o) {
111151
}
112152
RoleCloneAttributes roleCloneAttributes = (RoleCloneAttributes) o;
113153
return Objects.equals(this.name, roleCloneAttributes.name)
154+
&& Objects.equals(this.receivesPermissionsFrom, roleCloneAttributes.receivesPermissionsFrom)
114155
&& Objects.equals(this.additionalProperties, roleCloneAttributes.additionalProperties);
115156
}
116157

117158
@Override
118159
public int hashCode() {
119-
return Objects.hash(name, additionalProperties);
160+
return Objects.hash(name, receivesPermissionsFrom, additionalProperties);
120161
}
121162

122163
@Override
123164
public String toString() {
124165
StringBuilder sb = new StringBuilder();
125166
sb.append("class RoleCloneAttributes {\n");
126167
sb.append(" name: ").append(toIndentedString(name)).append("\n");
168+
sb.append(" receivesPermissionsFrom: ")
169+
.append(toIndentedString(receivesPermissionsFrom))
170+
.append("\n");
127171
sb.append(" additionalProperties: ")
128172
.append(toIndentedString(additionalProperties))
129173
.append("\n");

src/main/java/com/datadog/api/client/v2/model/RoleCreateAttributes.java

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1616
import java.time.OffsetDateTime;
17+
import java.util.ArrayList;
1718
import java.util.HashMap;
19+
import java.util.List;
1820
import java.util.Map;
1921
import java.util.Objects;
2022

2123
/** Attributes of the created role. */
2224
@JsonPropertyOrder({
2325
RoleCreateAttributes.JSON_PROPERTY_CREATED_AT,
2426
RoleCreateAttributes.JSON_PROPERTY_MODIFIED_AT,
25-
RoleCreateAttributes.JSON_PROPERTY_NAME
27+
RoleCreateAttributes.JSON_PROPERTY_NAME,
28+
RoleCreateAttributes.JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM
2629
})
2730
@jakarta.annotation.Generated(
2831
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -37,6 +40,9 @@ public class RoleCreateAttributes {
3740
public static final String JSON_PROPERTY_NAME = "name";
3841
private String name;
3942

43+
public static final String JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM = "receives_permissions_from";
44+
private List<String> receivesPermissionsFrom = null;
45+
4046
public RoleCreateAttributes() {}
4147

4248
@JsonCreator
@@ -89,6 +95,38 @@ public void setName(String name) {
8995
this.name = name;
9096
}
9197

98+
public RoleCreateAttributes receivesPermissionsFrom(List<String> receivesPermissionsFrom) {
99+
this.receivesPermissionsFrom = receivesPermissionsFrom;
100+
return this;
101+
}
102+
103+
public RoleCreateAttributes addReceivesPermissionsFromItem(String receivesPermissionsFromItem) {
104+
if (this.receivesPermissionsFrom == null) {
105+
this.receivesPermissionsFrom = new ArrayList<>();
106+
}
107+
this.receivesPermissionsFrom.add(receivesPermissionsFromItem);
108+
return this;
109+
}
110+
111+
/**
112+
* The managed role from which this role automatically inherits new permissions. Specify one of
113+
* the following: "Datadog Admin Role", "Datadog Standard Role", or "Datadog Read Only Role". If
114+
* empty or not specified, the role does not automatically inherit permissions from any managed
115+
* role.
116+
*
117+
* @return receivesPermissionsFrom
118+
*/
119+
@jakarta.annotation.Nullable
120+
@JsonProperty(JSON_PROPERTY_RECEIVES_PERMISSIONS_FROM)
121+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122+
public List<String> getReceivesPermissionsFrom() {
123+
return receivesPermissionsFrom;
124+
}
125+
126+
public void setReceivesPermissionsFrom(List<String> receivesPermissionsFrom) {
127+
this.receivesPermissionsFrom = receivesPermissionsFrom;
128+
}
129+
92130
/**
93131
* A container for additional, undeclared properties. This is a holder for any undeclared
94132
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -148,12 +186,14 @@ public boolean equals(Object o) {
148186
return Objects.equals(this.createdAt, roleCreateAttributes.createdAt)
149187
&& Objects.equals(this.modifiedAt, roleCreateAttributes.modifiedAt)
150188
&& Objects.equals(this.name, roleCreateAttributes.name)
189+
&& Objects.equals(
190+
this.receivesPermissionsFrom, roleCreateAttributes.receivesPermissionsFrom)
151191
&& Objects.equals(this.additionalProperties, roleCreateAttributes.additionalProperties);
152192
}
153193

154194
@Override
155195
public int hashCode() {
156-
return Objects.hash(createdAt, modifiedAt, name, additionalProperties);
196+
return Objects.hash(createdAt, modifiedAt, name, receivesPermissionsFrom, additionalProperties);
157197
}
158198

159199
@Override
@@ -163,6 +203,9 @@ public String toString() {
163203
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
164204
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
165205
sb.append(" name: ").append(toIndentedString(name)).append("\n");
206+
sb.append(" receivesPermissionsFrom: ")
207+
.append(toIndentedString(receivesPermissionsFrom))
208+
.append("\n");
166209
sb.append(" additionalProperties: ")
167210
.append(toIndentedString(additionalProperties))
168211
.append("\n");

0 commit comments

Comments
 (0)