From e7f39ef801111fe3c85a717ac42127ef75120aad Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 3 Sep 2026 08:32:58 +0000 Subject: [PATCH] Regenerate client from commit 398fb5e of spec repo --- .generator/schemas/v2/openapi.yaml | 12 ---- .../CreateOwnershipFeedback.java | 2 - .../OwnershipFeedbackRequestAttributes.java | 59 ------------------- .../api/client/v2/api/csm_ownership.feature | 8 +-- 4 files changed, 4 insertions(+), 77 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 324b65c3ebd..66e7f78c12c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -80760,14 +80760,6 @@ components: properties: action: $ref: "#/components/schemas/OwnershipFeedbackAction" - actor_handle: - description: The handle of the actor submitting the feedback. - example: user@example.com - type: string - actor_type: - description: The type of actor submitting the feedback, for example `user` or `service`. - example: user - type: string corrected_owner_handle: description: The corrected owner handle. Required when `action` is `correct`. example: team-b @@ -80789,8 +80781,6 @@ components: type: string required: - action - - actor_handle - - actor_type - inference_checksum type: object OwnershipFeedbackRequestData: @@ -143768,8 +143758,6 @@ paths: data: attributes: action: confirm - actor_handle: user@example.com - actor_type: user inference_checksum: abc123 type: ownership_feedback schema: diff --git a/examples/v2/csm-ownership/CreateOwnershipFeedback.java b/examples/v2/csm-ownership/CreateOwnershipFeedback.java index 3038b405394..e549b34ebe1 100644 --- a/examples/v2/csm-ownership/CreateOwnershipFeedback.java +++ b/examples/v2/csm-ownership/CreateOwnershipFeedback.java @@ -24,8 +24,6 @@ public static void main(String[] args) { .attributes( new OwnershipFeedbackRequestAttributes() .action(OwnershipFeedbackAction.CONFIRM) - .actorHandle("user@example.com") - .actorType("user") .correctedOwnerHandle("team-b") .correctedOwnerType("team") .inferenceChecksum("abc123") diff --git a/src/main/java/com/datadog/api/client/v2/model/OwnershipFeedbackRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/OwnershipFeedbackRequestAttributes.java index f1862e53e26..b684099ad49 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OwnershipFeedbackRequestAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/OwnershipFeedbackRequestAttributes.java @@ -21,8 +21,6 @@ /** The attributes of an ownership feedback request. */ @JsonPropertyOrder({ OwnershipFeedbackRequestAttributes.JSON_PROPERTY_ACTION, - OwnershipFeedbackRequestAttributes.JSON_PROPERTY_ACTOR_HANDLE, - OwnershipFeedbackRequestAttributes.JSON_PROPERTY_ACTOR_TYPE, OwnershipFeedbackRequestAttributes.JSON_PROPERTY_CORRECTED_OWNER_HANDLE, OwnershipFeedbackRequestAttributes.JSON_PROPERTY_CORRECTED_OWNER_TYPE, OwnershipFeedbackRequestAttributes.JSON_PROPERTY_INFERENCE_CHECKSUM, @@ -35,12 +33,6 @@ public class OwnershipFeedbackRequestAttributes { public static final String JSON_PROPERTY_ACTION = "action"; private OwnershipFeedbackAction action; - public static final String JSON_PROPERTY_ACTOR_HANDLE = "actor_handle"; - private String actorHandle; - - public static final String JSON_PROPERTY_ACTOR_TYPE = "actor_type"; - private String actorType; - public static final String JSON_PROPERTY_CORRECTED_OWNER_HANDLE = "corrected_owner_handle"; private JsonNullable correctedOwnerHandle = JsonNullable.undefined(); @@ -58,14 +50,10 @@ public OwnershipFeedbackRequestAttributes() {} @JsonCreator public OwnershipFeedbackRequestAttributes( @JsonProperty(required = true, value = JSON_PROPERTY_ACTION) OwnershipFeedbackAction action, - @JsonProperty(required = true, value = JSON_PROPERTY_ACTOR_HANDLE) String actorHandle, - @JsonProperty(required = true, value = JSON_PROPERTY_ACTOR_TYPE) String actorType, @JsonProperty(required = true, value = JSON_PROPERTY_INFERENCE_CHECKSUM) String inferenceChecksum) { this.action = action; this.unparsed |= !action.isValid(); - this.actorHandle = actorHandle; - this.actorType = actorType; this.inferenceChecksum = inferenceChecksum; } @@ -93,47 +81,6 @@ public void setAction(OwnershipFeedbackAction action) { this.action = action; } - public OwnershipFeedbackRequestAttributes actorHandle(String actorHandle) { - this.actorHandle = actorHandle; - return this; - } - - /** - * The handle of the actor submitting the feedback. - * - * @return actorHandle - */ - @JsonProperty(JSON_PROPERTY_ACTOR_HANDLE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getActorHandle() { - return actorHandle; - } - - public void setActorHandle(String actorHandle) { - this.actorHandle = actorHandle; - } - - public OwnershipFeedbackRequestAttributes actorType(String actorType) { - this.actorType = actorType; - return this; - } - - /** - * The type of actor submitting the feedback, for example user or service - * . - * - * @return actorType - */ - @JsonProperty(JSON_PROPERTY_ACTOR_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getActorType() { - return actorType; - } - - public void setActorType(String actorType) { - this.actorType = actorType; - } - public OwnershipFeedbackRequestAttributes correctedOwnerHandle(String correctedOwnerHandle) { this.correctedOwnerHandle = JsonNullable.of(correctedOwnerHandle); return this; @@ -306,8 +253,6 @@ public boolean equals(Object o) { OwnershipFeedbackRequestAttributes ownershipFeedbackRequestAttributes = (OwnershipFeedbackRequestAttributes) o; return Objects.equals(this.action, ownershipFeedbackRequestAttributes.action) - && Objects.equals(this.actorHandle, ownershipFeedbackRequestAttributes.actorHandle) - && Objects.equals(this.actorType, ownershipFeedbackRequestAttributes.actorType) && Objects.equals( this.correctedOwnerHandle, ownershipFeedbackRequestAttributes.correctedOwnerHandle) && Objects.equals( @@ -323,8 +268,6 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( action, - actorHandle, - actorType, correctedOwnerHandle, correctedOwnerType, inferenceChecksum, @@ -337,8 +280,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OwnershipFeedbackRequestAttributes {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" actorHandle: ").append(toIndentedString(actorHandle)).append("\n"); - sb.append(" actorType: ").append(toIndentedString(actorType)).append("\n"); sb.append(" correctedOwnerHandle: ") .append(toIndentedString(correctedOwnerHandle)) .append("\n"); diff --git a/src/test/resources/com/datadog/api/client/v2/api/csm_ownership.feature b/src/test/resources/com/datadog/api/client/v2/api/csm_ownership.feature index 661e420b5c2..4f54575387e 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/csm_ownership.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/csm_ownership.feature @@ -144,7 +144,7 @@ Feature: CSM Ownership And new "CreateOwnershipFeedback" request And request contains "resource_id" parameter from "REPLACE.ME" And request contains "owner_type" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"action": "confirm", "actor_handle": "user@example.com", "actor_type": "user", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} + And body with value {"data": {"attributes": {"action": "confirm", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} When the request is sent Then the response status is 400 Bad Request @@ -154,7 +154,7 @@ Feature: CSM Ownership And new "CreateOwnershipFeedback" request And request contains "resource_id" parameter from "REPLACE.ME" And request contains "owner_type" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"action": "confirm", "actor_handle": "user@example.com", "actor_type": "user", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} + And body with value {"data": {"attributes": {"action": "confirm", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} When the request is sent Then the response status is 409 Conflict @@ -164,7 +164,7 @@ Feature: CSM Ownership And new "CreateOwnershipFeedback" request And request contains "resource_id" parameter from "REPLACE.ME" And request contains "owner_type" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"action": "confirm", "actor_handle": "user@example.com", "actor_type": "user", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} + And body with value {"data": {"attributes": {"action": "confirm", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} When the request is sent Then the response status is 201 Created @@ -174,7 +174,7 @@ Feature: CSM Ownership And new "CreateOwnershipFeedback" request And request contains "resource_id" parameter from "REPLACE.ME" And request contains "owner_type" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"action": "confirm", "actor_handle": "user@example.com", "actor_type": "user", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} + And body with value {"data": {"attributes": {"action": "confirm", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}} When the request is sent Then the response status is 404 Not Found