Skip to content

Commit

Permalink
Regenerate client from commit 500f314c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 5, 2024
1 parent 84f80ba commit 9fa63f0
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 52 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": "2024-12-04 19:20:45.029712",
"spec_repo_commit": "2b956c71"
"regenerated": "2024-12-05 09:30:06.478668",
"spec_repo_commit": "500f314c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-04 19:20:45.057237",
"spec_repo_commit": "2b956c71"
"regenerated": "2024-12-05 09:30:06.498170",
"spec_repo_commit": "500f314c"
}
}
}
16 changes: 9 additions & 7 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6414,8 +6414,8 @@ components:
description: List of indexes for the search. If not provided, the search
is performed in all indexes.
example:
- index-1
- index-2
- test-index
- test-index-2
items:
description: Individual index.
type: string
Expand Down Expand Up @@ -7783,14 +7783,16 @@ components:
description: List of indexes for the search. If not provided, the search
is performed in all indexes.
example:
- index-1
- index-2
- test-index
- test-index-2
items:
description: Individual index.
type: string
type: array
is_created:
description: Whether the deletion request is fully created or not.
description: Whether the deletion request is fully created or not. It can
take some minutes to fully create a deletion request depending on the
target query and timeframe.
example: true
type: boolean
org_id:
Expand Down Expand Up @@ -31137,8 +31139,8 @@ paths:
x-codegen-request-body-name: body
/api/v2/deletion/data/{product}:
post:
description: Creates a data deletion request by providing a query and a time
frame targeting the proper data.
description: Creates a data deletion request by providing a query and a timeframe
targeting the proper data.
operationId: CreateDataDeletionRequest
parameters:
- $ref: '#/components/parameters/ProductName'
Expand Down
2 changes: 1 addition & 1 deletion examples/v2_data-deletion_CreateDataDeletionRequest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main() {
]),
1704063600000,
)
.indexes(vec!["index-1".to_string(), "index-2".to_string()]),
.indexes(vec!["test-index".to_string(), "test-index-2".to_string()]),
));
let configuration = datadog::Configuration::new();
let api = DataDeletionAPI::with_config(configuration);
Expand Down
4 changes: 2 additions & 2 deletions src/datadogV2/api/api_data_deletion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl DataDeletionAPI {
}
}

/// Creates a data deletion request by providing a query and a time frame targeting the proper data.
/// Creates a data deletion request by providing a query and a timeframe targeting the proper data.
pub async fn create_data_deletion_request(
&self,
product: String,
Expand All @@ -278,7 +278,7 @@ impl DataDeletionAPI {
}
}

/// Creates a data deletion request by providing a query and a time frame targeting the proper data.
/// Creates a data deletion request by providing a query and a timeframe targeting the proper data.
pub async fn create_data_deletion_request_with_http_info(
&self,
product: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct DataDeletionResponseItemAttributes {
/// List of indexes for the search. If not provided, the search is performed in all indexes.
#[serde(rename = "indexes")]
pub indexes: Option<Vec<String>>,
/// Whether the deletion request is fully created or not.
/// Whether the deletion request is fully created or not. It can take some minutes to fully create a deletion request depending on the target query and timeframe.
#[serde(rename = "is_created")]
pub is_created: bool,
/// Organization ID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:56:51.182Z
2024-12-05T09:23:41.160Z
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"message": "Bad Request"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:56:51 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:02.769Z
2024-12-05T09:23:41.674Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"request": {
"body": {
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}",
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}",
"encoding": null
},
"headers": {
Expand All @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841331Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"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-11-15T08:57:03.242841331Z\"}},\"meta\":{\"product\":\"logs\"}}",
"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\"}}",
"encoding": null
},
"headers": {
Expand All @@ -32,7 +32,7 @@
"message": "OK"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT"
},
{
"request": {
Expand All @@ -43,11 +43,11 @@
]
},
"method": "put",
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel"
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel"
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"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-11-15T08:57:03.638067Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
"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\"}}",
"encoding": null
},
"headers": {
Expand All @@ -60,7 +60,7 @@
"message": "OK"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT"
},
{
"request": {
Expand All @@ -71,11 +71,11 @@
]
},
"method": "put",
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/303/cancel"
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/523/cancel"
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"303\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:57:03.242841Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"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-11-15T08:57:03.936325Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
"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\"}}",
"encoding": null
},
"headers": {
Expand All @@ -88,7 +88,7 @@
"message": "OK"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:57:02 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:41 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:14.890Z
2024-12-05T09:23:42.850Z
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"message": "Precondition Failed"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:57:14 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:42 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:59:09.810Z
2024-12-05T09:23:43.197Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"request": {
"body": {
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}",
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{\"host\":\"abc\",\"service\":\"xyz\"},\"to\":1704063600000}}}",
"encoding": null
},
"headers": {
Expand All @@ -19,7 +19,7 @@
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195172Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"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-11-15T08:59:10.304195172Z\"}},\"meta\":{\"product\":\"logs\"}}",
"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\"}}",
"encoding": null
},
"headers": {
Expand All @@ -32,7 +32,7 @@
"message": "OK"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:59:09 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:43 GMT"
},
{
"request": {
Expand All @@ -43,11 +43,11 @@
]
},
"method": "put",
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/305/cancel"
"uri": "https://api.datadoghq.com/api/v2/deletion/requests/524/cancel"
},
"response": {
"body": {
"string": "{\"data\":{\"id\":\"305\",\"type\":\"deletion_request\",\"attributes\":{\"created_at\":\"2024-11-15T08:59:10.304195Z\",\"created_by\":\"frog@datadoghq.com\",\"from_time\":1672527600000,\"indexes\":[\"index-1\",\"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-11-15T08:59:10.681676Z\"}},\"meta\":{\"product\":\"logs\",\"request_status\":\"canceled\"}}",
"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\"}}",
"encoding": null
},
"headers": {
Expand All @@ -60,7 +60,7 @@
"message": "OK"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:59:09 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:43 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:59:22.532Z
2024-12-05T09:23:44.038Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"request": {
"body": {
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"index-1\",\"index-2\"],\"query\":{},\"to\":1704063600000}}}",
"string": "{\"data\":{\"attributes\":{\"from\":1672527600000,\"indexes\":[\"test-index\",\"test-index-2\"],\"query\":{},\"to\":1704063600000}}}",
"encoding": null
},
"headers": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"message": "Precondition Failed"
}
},
"recorded_at": "Fri, 15 Nov 2024 08:59:22 GMT"
"recorded_at": "Thu, 05 Dec 2024 09:23:44 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T08:57:26.678Z
2024-12-05T09:23:44.395Z
Loading

0 comments on commit 9fa63f0

Please sign in to comment.