Skip to content

Commit

Permalink
Regenerate client from commit 07e3abbd of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 15, 2025
1 parent bdfda77 commit e82474f
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 88 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-15 09:47:02.950531",
"spec_repo_commit": "21b02fc5"
"regenerated": "2025-01-15 18:03:53.605788",
"spec_repo_commit": "07e3abbd"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-15 09:47:02.988116",
"spec_repo_commit": "21b02fc5"
"regenerated": "2025-01-15 18:03:53.620456",
"spec_repo_commit": "07e3abbd"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7194,8 +7194,13 @@ components:
properties:
attributes:
$ref: '#/components/schemas/CreateDataDeletionRequestBodyAttributes'
type:
description: The deletion request type.
example: create_deletion_req
type: string
required:
- attributes
- type
type: object
CreateDataDeletionResponseBody:
description: The response from the create data deletion request endpoint.
Expand Down
1 change: 1 addition & 0 deletions examples/v2/data-deletion/CreateDataDeletionRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
),
to=1704063600000,
),
type="create_deletion_req",
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,25 @@ def openapi_types(_):

return {
"attributes": (CreateDataDeletionRequestBodyAttributes,),
"type": (str,),
}

attribute_map = {
"attributes": "attributes",
"type": "type",
}

def __init__(self_, attributes: CreateDataDeletionRequestBodyAttributes, **kwargs):
def __init__(self_, attributes: CreateDataDeletionRequestBodyAttributes, type: str, **kwargs):
"""
Data needed to create a data deletion request.
:param attributes: Attributes for creating a data deletion request.
:type attributes: CreateDataDeletionRequestBodyAttributes
:param type: The deletion request type.
:type type: str
"""
super().__init__(kwargs)

self_.attributes = attributes
self_.type = type
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:41.160Z
2025-01-15T14:25:54.929Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:41.674Z
2025-01-15T14:26:08.930Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}'
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}'
headers:
accept:
- application/json
Expand All @@ -10,8 +10,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/deletion/data/logs
response:
body:
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613164Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.016613164Z"}},"meta":{"product":"logs"}}'
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.447960191Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:09.447960191Z"}},"meta":{"product":"logs"}}'
headers:
content-type:
- application/vnd.api+json
Expand All @@ -24,11 +24,11 @@ interactions:
accept:
- application/json
method: PUT
uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel
uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel
response:
body:
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.384299Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
headers:
content-type:
- application/vnd.api+json
Expand All @@ -41,11 +41,11 @@ interactions:
accept:
- application/json
method: PUT
uri: https://api.datadoghq.com/api/v2/deletion/requests/523/cancel
uri: https://api.datadoghq.com/api/v2/deletion/requests/753/cancel
response:
body:
string: '{"data":{"id":"523","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:42.016613Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:42.384299Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
string: '{"data":{"id":"753","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:26:09.44796Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:26:10.016496Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
headers:
content-type:
- application/vnd.api+json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:42.850Z
2025-01-15T14:26:26.195Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:43.197Z
2025-01-15T14:27:27.929Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000}}}'
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{"host":"abc","service":"xyz"},"to":1704063600000},"type":"create_deletion_req"}}'
headers:
accept:
- application/json
Expand All @@ -10,8 +10,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/deletion/data/logs
response:
body:
string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574137Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:43.527574137Z"}},"meta":{"product":"logs"}}'
string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837225Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"pending","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:27:28.457837225Z"}},"meta":{"product":"logs"}}'
headers:
content-type:
- application/vnd.api+json
Expand All @@ -24,11 +24,11 @@ interactions:
accept:
- application/json
method: PUT
uri: https://api.datadoghq.com/api/v2/deletion/requests/524/cancel
uri: https://api.datadoghq.com/api/v2/deletion/requests/754/cancel
response:
body:
string: '{"data":{"id":"524","type":"deletion_request","attributes":{"created_at":"2024-12-05T09:23:43.527574Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2024-12-05T09:23:44.017414Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
string: '{"data":{"id":"754","type":"deletion_request","attributes":{"created_at":"2025-01-15T14:27:28.457837Z","created_by":"frog@datadoghq.com","from_time":1672527600000,"indexes":["test-index","test-index-2"],"is_created":false,"org_id":321813,"product":"logs","query":"host:abc
service:xyz","starting_at":"0001-01-01T00:00:00Z","status":"canceled","to_time":1704063600000,"total_unrestricted":0,"updated_at":"2025-01-15T14:27:28.841156Z"}},"meta":{"product":"logs","request_status":"canceled"}}'
headers:
content-type:
- application/vnd.api+json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:44.038Z
2025-01-15T14:27:45.329Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000}}}'
body: '{"data":{"attributes":{"from":1672527600000,"indexes":["test-index","test-index-2"],"query":{},"to":1704063600000},"type":"create_deletion_req"}}'
headers:
accept:
- application/json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-05T09:23:44.395Z
2025-01-15T14:28:03.053Z
Loading

0 comments on commit e82474f

Please sign in to comment.