Skip to content

Commit c8c0125

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add API Key ID to rum application response (#3157)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent c9aa37a commit c8c0125

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35837,6 +35837,12 @@ components:
3583735837
RUMApplicationAttributes:
3583835838
description: RUM application attributes.
3583935839
properties:
35840+
api_key_id:
35841+
description: ID of the API key associated with the application.
35842+
example: 123456789
35843+
format: int32
35844+
maximum: 2147483647
35845+
type: integer
3584035846
application_id:
3584135847
description: ID of the RUM application.
3584235848
example: abcd1234-0000-0000-abcd-1234abcd5678

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
/** RUM application attributes. */
2121
@JsonPropertyOrder({
22+
RUMApplicationAttributes.JSON_PROPERTY_API_KEY_ID,
2223
RUMApplicationAttributes.JSON_PROPERTY_APPLICATION_ID,
2324
RUMApplicationAttributes.JSON_PROPERTY_CLIENT_TOKEN,
2425
RUMApplicationAttributes.JSON_PROPERTY_CREATED_AT,
@@ -36,6 +37,9 @@
3637
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3738
public class RUMApplicationAttributes {
3839
@JsonIgnore public boolean unparsed = false;
40+
public static final String JSON_PROPERTY_API_KEY_ID = "api_key_id";
41+
private Integer apiKeyId;
42+
3943
public static final String JSON_PROPERTY_APPLICATION_ID = "application_id";
4044
private String applicationId;
4145

@@ -98,6 +102,27 @@ public RUMApplicationAttributes(
98102
this.updatedByHandle = updatedByHandle;
99103
}
100104

105+
public RUMApplicationAttributes apiKeyId(Integer apiKeyId) {
106+
this.apiKeyId = apiKeyId;
107+
return this;
108+
}
109+
110+
/**
111+
* ID of the API key associated with the application. maximum: 2147483647
112+
*
113+
* @return apiKeyId
114+
*/
115+
@jakarta.annotation.Nullable
116+
@JsonProperty(JSON_PROPERTY_API_KEY_ID)
117+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118+
public Integer getApiKeyId() {
119+
return apiKeyId;
120+
}
121+
122+
public void setApiKeyId(Integer apiKeyId) {
123+
this.apiKeyId = apiKeyId;
124+
}
125+
101126
public RUMApplicationAttributes applicationId(String applicationId) {
102127
this.applicationId = applicationId;
103128
return this;
@@ -400,7 +425,8 @@ public boolean equals(Object o) {
400425
return false;
401426
}
402427
RUMApplicationAttributes rumApplicationAttributes = (RUMApplicationAttributes) o;
403-
return Objects.equals(this.applicationId, rumApplicationAttributes.applicationId)
428+
return Objects.equals(this.apiKeyId, rumApplicationAttributes.apiKeyId)
429+
&& Objects.equals(this.applicationId, rumApplicationAttributes.applicationId)
404430
&& Objects.equals(this.clientToken, rumApplicationAttributes.clientToken)
405431
&& Objects.equals(this.createdAt, rumApplicationAttributes.createdAt)
406432
&& Objects.equals(this.createdByHandle, rumApplicationAttributes.createdByHandle)
@@ -418,6 +444,7 @@ public boolean equals(Object o) {
418444
@Override
419445
public int hashCode() {
420446
return Objects.hash(
447+
apiKeyId,
421448
applicationId,
422449
clientToken,
423450
createdAt,
@@ -437,6 +464,7 @@ public int hashCode() {
437464
public String toString() {
438465
StringBuilder sb = new StringBuilder();
439466
sb.append("class RUMApplicationAttributes {\n");
467+
sb.append(" apiKeyId: ").append(toIndentedString(apiKeyId)).append("\n");
440468
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
441469
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
442470
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");

0 commit comments

Comments
 (0)