Skip to content

Commit 96c50ea

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1d2132af of spec repo
1 parent 40e114e commit 96c50ea

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-28 15:07:53.803671",
8-
"spec_repo_commit": "3f3e8eaf"
7+
"regenerated": "2025-03-28 19:43:06.678639",
8+
"spec_repo_commit": "1d2132af"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-28 15:07:53.826503",
13-
"spec_repo_commit": "3f3e8eaf"
12+
"regenerated": "2025-03-28 19:43:06.697535",
13+
"spec_repo_commit": "1d2132af"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19109,10 +19109,10 @@ components:
1910919109
type: string
1911019110
type: object
1911119111
LogsQueryOptions:
19112+
deprecated: true
1911219113
description: 'Global query options that are used during the query.
1911319114

19114-
Note: you should supply either timezone or time offset, but not both. Otherwise,
19115-
the query will fail.'
19115+
Note: These fields are currently deprecated and do not affect the query results.'
1911619116
properties:
1911719117
timeOffset:
1911819118
description: The time offset (in seconds) to apply to the query.

src/datadogV2/model/model_logs_aggregate_request.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ pub struct LogsAggregateRequest {
2121
#[serde(rename = "group_by")]
2222
pub group_by: Option<Vec<crate::datadogV2::model::LogsGroupBy>>,
2323
/// Global query options that are used during the query.
24-
/// Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
24+
/// Note: These fields are currently deprecated and do not affect the query results.
25+
#[deprecated]
2526
#[serde(rename = "options")]
2627
pub options: Option<crate::datadogV2::model::LogsQueryOptions>,
2728
/// Paging settings
@@ -36,6 +37,7 @@ pub struct LogsAggregateRequest {
3637

3738
impl LogsAggregateRequest {
3839
pub fn new() -> LogsAggregateRequest {
40+
#[allow(deprecated)]
3941
LogsAggregateRequest {
4042
compute: None,
4143
filter: None,
@@ -47,26 +49,31 @@ impl LogsAggregateRequest {
4749
}
4850
}
4951

52+
#[allow(deprecated)]
5053
pub fn compute(mut self, value: Vec<crate::datadogV2::model::LogsCompute>) -> Self {
5154
self.compute = Some(value);
5255
self
5356
}
5457

58+
#[allow(deprecated)]
5559
pub fn filter(mut self, value: crate::datadogV2::model::LogsQueryFilter) -> Self {
5660
self.filter = Some(value);
5761
self
5862
}
5963

64+
#[allow(deprecated)]
6065
pub fn group_by(mut self, value: Vec<crate::datadogV2::model::LogsGroupBy>) -> Self {
6166
self.group_by = Some(value);
6267
self
6368
}
6469

70+
#[allow(deprecated)]
6571
pub fn options(mut self, value: crate::datadogV2::model::LogsQueryOptions) -> Self {
6672
self.options = Some(value);
6773
self
6874
}
6975

76+
#[allow(deprecated)]
7077
pub fn page(mut self, value: crate::datadogV2::model::LogsAggregateRequestPage) -> Self {
7178
self.page = Some(value);
7279
self
@@ -155,6 +162,7 @@ impl<'de> Deserialize<'de> for LogsAggregateRequest {
155162
}
156163
}
157164

165+
#[allow(deprecated)]
158166
let content = LogsAggregateRequest {
159167
compute,
160168
filter,

src/datadogV2/model/model_logs_list_request.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ pub struct LogsListRequest {
1515
#[serde(rename = "filter")]
1616
pub filter: Option<crate::datadogV2::model::LogsQueryFilter>,
1717
/// Global query options that are used during the query.
18-
/// Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
18+
/// Note: These fields are currently deprecated and do not affect the query results.
19+
#[deprecated]
1920
#[serde(rename = "options")]
2021
pub options: Option<crate::datadogV2::model::LogsQueryOptions>,
2122
/// Paging attributes for listing logs.
@@ -33,6 +34,7 @@ pub struct LogsListRequest {
3334

3435
impl LogsListRequest {
3536
pub fn new() -> LogsListRequest {
37+
#[allow(deprecated)]
3638
LogsListRequest {
3739
filter: None,
3840
options: None,
@@ -43,21 +45,25 @@ impl LogsListRequest {
4345
}
4446
}
4547

48+
#[allow(deprecated)]
4649
pub fn filter(mut self, value: crate::datadogV2::model::LogsQueryFilter) -> Self {
4750
self.filter = Some(value);
4851
self
4952
}
5053

54+
#[allow(deprecated)]
5155
pub fn options(mut self, value: crate::datadogV2::model::LogsQueryOptions) -> Self {
5256
self.options = Some(value);
5357
self
5458
}
5559

60+
#[allow(deprecated)]
5661
pub fn page(mut self, value: crate::datadogV2::model::LogsListRequestPage) -> Self {
5762
self.page = Some(value);
5863
self
5964
}
6065

66+
#[allow(deprecated)]
6167
pub fn sort(mut self, value: crate::datadogV2::model::LogsSort) -> Self {
6268
self.sort = Some(value);
6369
self
@@ -147,6 +153,7 @@ impl<'de> Deserialize<'de> for LogsListRequest {
147153
}
148154
}
149155

156+
#[allow(deprecated)]
150157
let content = LogsListRequest {
151158
filter,
152159
options,

src/datadogV2/model/model_logs_query_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

99
/// Global query options that are used during the query.
10-
/// Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
10+
/// Note: These fields are currently deprecated and do not affect the query results.
1111
#[non_exhaustive]
1212
#[skip_serializing_none]
1313
#[derive(Clone, Debug, PartialEq, Serialize)]

0 commit comments

Comments
 (0)