Skip to content

Commit c6c0da5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 398fb5e of spec repo (#3969)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 85275a9 commit c6c0da5

4 files changed

Lines changed: 4 additions & 32 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80863,14 +80863,6 @@ components:
8086380863
properties:
8086480864
action:
8086580865
$ref: "#/components/schemas/OwnershipFeedbackAction"
80866-
actor_handle:
80867-
description: The handle of the actor submitting the feedback.
80868-
example: user@example.com
80869-
type: string
80870-
actor_type:
80871-
description: The type of actor submitting the feedback, for example `user` or `service`.
80872-
example: user
80873-
type: string
8087480866
corrected_owner_handle:
8087580867
description: The corrected owner handle. Required when `action` is `correct`.
8087680868
example: team-b
@@ -80892,8 +80884,6 @@ components:
8089280884
type: string
8089380885
required:
8089480886
- action
80895-
- actor_handle
80896-
- actor_type
8089780887
- inference_checksum
8089880888
type: object
8089980889
OwnershipFeedbackRequestData:
@@ -143876,8 +143866,6 @@ paths:
143876143866
data:
143877143867
attributes:
143878143868
action: confirm
143879-
actor_handle: user@example.com
143880-
actor_type: user
143881143869
inference_checksum: abc123
143882143870
type: ownership_feedback
143883143871
schema:

‎examples/v2/csm-ownership/CreateOwnershipFeedback.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
data=OwnershipFeedbackRequestData(
1616
attributes=OwnershipFeedbackRequestAttributes(
1717
action=OwnershipFeedbackAction.CONFIRM,
18-
actor_handle="user@example.com",
19-
actor_type="user",
2018
corrected_owner_handle="team-b",
2119
corrected_owner_type="team",
2220
inference_checksum="abc123",

‎src/datadog_api_client/v2/model/ownership_feedback_request_attributes.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def openapi_types(_):
2525

2626
return {
2727
"action": (OwnershipFeedbackAction,),
28-
"actor_handle": (str,),
29-
"actor_type": (str,),
3028
"corrected_owner_handle": (str, none_type),
3129
"corrected_owner_type": (str, none_type),
3230
"inference_checksum": (str,),
@@ -35,8 +33,6 @@ def openapi_types(_):
3533

3634
attribute_map = {
3735
"action": "action",
38-
"actor_handle": "actor_handle",
39-
"actor_type": "actor_type",
4036
"corrected_owner_handle": "corrected_owner_handle",
4137
"corrected_owner_type": "corrected_owner_type",
4238
"inference_checksum": "inference_checksum",
@@ -46,8 +42,6 @@ def openapi_types(_):
4642
def __init__(
4743
self_,
4844
action: OwnershipFeedbackAction,
49-
actor_handle: str,
50-
actor_type: str,
5145
inference_checksum: str,
5246
corrected_owner_handle: Union[str, none_type, UnsetType] = unset,
5347
corrected_owner_type: Union[str, none_type, UnsetType] = unset,
@@ -60,12 +54,6 @@ def __init__(
6054
:param action: The feedback action to apply to an inference.
6155
:type action: OwnershipFeedbackAction
6256
63-
:param actor_handle: The handle of the actor submitting the feedback.
64-
:type actor_handle: str
65-
66-
:param actor_type: The type of actor submitting the feedback, for example ``user`` or ``service``.
67-
:type actor_type: str
68-
6957
:param corrected_owner_handle: The corrected owner handle. Required when ``action`` is ``correct``.
7058
:type corrected_owner_handle: str, none_type, optional
7159
@@ -87,6 +75,4 @@ def __init__(
8775
super().__init__(kwargs)
8876

8977
self_.action = action
90-
self_.actor_handle = actor_handle
91-
self_.actor_type = actor_type
9278
self_.inference_checksum = inference_checksum

‎tests/v2/features/csm_ownership.feature‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Feature: CSM Ownership
144144
And new "CreateOwnershipFeedback" request
145145
And request contains "resource_id" parameter from "REPLACE.ME"
146146
And request contains "owner_type" parameter from "REPLACE.ME"
147-
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"}}
147+
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"}}
148148
When the request is sent
149149
Then the response status is 400 Bad Request
150150

@@ -154,7 +154,7 @@ Feature: CSM Ownership
154154
And new "CreateOwnershipFeedback" request
155155
And request contains "resource_id" parameter from "REPLACE.ME"
156156
And request contains "owner_type" parameter from "REPLACE.ME"
157-
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"}}
157+
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"}}
158158
When the request is sent
159159
Then the response status is 409 Conflict
160160

@@ -164,7 +164,7 @@ Feature: CSM Ownership
164164
And new "CreateOwnershipFeedback" request
165165
And request contains "resource_id" parameter from "REPLACE.ME"
166166
And request contains "owner_type" parameter from "REPLACE.ME"
167-
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"}}
167+
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"}}
168168
When the request is sent
169169
Then the response status is 201 Created
170170

@@ -174,7 +174,7 @@ Feature: CSM Ownership
174174
And new "CreateOwnershipFeedback" request
175175
And request contains "resource_id" parameter from "REPLACE.ME"
176176
And request contains "owner_type" parameter from "REPLACE.ME"
177-
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"}}
177+
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"}}
178178
When the request is sent
179179
Then the response status is 404 Not Found
180180

0 commit comments

Comments
 (0)