Skip to content

Commit df4fa36

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add int64 format and extract inline schemas (#1725)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1a306b8 commit df4fa36

24 files changed

Lines changed: 303 additions & 140 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 64 additions & 7 deletions
Large diffs are not rendered by default.

src/datadogV2/api/api_case_management.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct CountCasesOptionalParams {
2222
/// Comma-separated fields to group by.
2323
pub group_bys: Option<String>,
2424
/// Maximum facet values to return.
25-
pub limit: Option<i32>,
25+
pub limit: Option<i64>,
2626
}
2727

2828
impl CountCasesOptionalParams {
@@ -37,7 +37,7 @@ impl CountCasesOptionalParams {
3737
self
3838
}
3939
/// Maximum facet values to return.
40-
pub fn limit(mut self, value: i32) -> Self {
40+
pub fn limit(mut self, value: i64) -> Self {
4141
self.limit = Some(value);
4242
self
4343
}
@@ -64,21 +64,21 @@ impl ListCaseLinksOptionalParams {
6464
#[derive(Clone, Default, Debug)]
6565
pub struct ListCaseTimelineOptionalParams {
6666
/// Number of timeline cells to return per page.
67-
pub page_size: Option<i32>,
67+
pub page_size: Option<i64>,
6868
/// Zero-based page number for pagination.
69-
pub page_number: Option<i32>,
69+
pub page_number: Option<i64>,
7070
/// If `true`, returns timeline cells in chronological order (oldest first). Defaults to `false` (newest first).
7171
pub sort_ascending: Option<bool>,
7272
}
7373

7474
impl ListCaseTimelineOptionalParams {
7575
/// Number of timeline cells to return per page.
76-
pub fn page_size(mut self, value: i32) -> Self {
76+
pub fn page_size(mut self, value: i64) -> Self {
7777
self.page_size = Some(value);
7878
self
7979
}
8080
/// Zero-based page number for pagination.
81-
pub fn page_number(mut self, value: i32) -> Self {
81+
pub fn page_number(mut self, value: i64) -> Self {
8282
self.page_number = Some(value);
8383
self
8484
}

src/datadogV2/api/api_cloud_cost_management.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ pub struct ListCostAnomaliesOptionalParams {
261261
/// Sort direction. One of `asc` or `desc`. Defaults to `desc`.
262262
pub order: Option<String>,
263263
/// Maximum number of anomalies to return. Defaults to `200`.
264-
pub limit: Option<i32>,
264+
pub limit: Option<i64>,
265265
/// Pagination offset. Defaults to `0`.
266-
pub offset: Option<i32>,
266+
pub offset: Option<i64>,
267267
/// Optional repeated cloud or SaaS provider filters, such as `aws`, `gcp`, `azure`, `Oracle`, `datadog`, `OpenAI`, or `Anthropic`.
268268
pub provider_ids: Option<Vec<String>>,
269269
}
@@ -310,12 +310,12 @@ impl ListCostAnomaliesOptionalParams {
310310
self
311311
}
312312
/// Maximum number of anomalies to return. Defaults to `200`.
313-
pub fn limit(mut self, value: i32) -> Self {
313+
pub fn limit(mut self, value: i64) -> Self {
314314
self.limit = Some(value);
315315
self
316316
}
317317
/// Pagination offset. Defaults to `0`.
318-
pub fn offset(mut self, value: i32) -> Self {
318+
pub fn offset(mut self, value: i64) -> Self {
319319
self.offset = Some(value);
320320
self
321321
}

src/datadogV2/api/api_entity_risk_scores.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ pub struct ListEntityRiskScoresOptionalParams {
1515
/// End time for the query in Unix timestamp (milliseconds). Defaults to now.
1616
pub to: Option<i64>,
1717
/// Size of the page to return. Maximum is 1000.
18-
pub page_size: Option<i32>,
18+
pub page_size: Option<i64>,
1919
/// Page number to return (1-indexed).
20-
pub page_number: Option<i32>,
20+
pub page_number: Option<i64>,
2121
/// Query ID for pagination consistency.
2222
pub page_query_id: Option<String>,
2323
/// Sort order for results. Format: `field:direction` where direction is `asc` or `desc`.
@@ -42,12 +42,12 @@ impl ListEntityRiskScoresOptionalParams {
4242
self
4343
}
4444
/// Size of the page to return. Maximum is 1000.
45-
pub fn page_size(mut self, value: i32) -> Self {
45+
pub fn page_size(mut self, value: i64) -> Self {
4646
self.page_size = Some(value);
4747
self
4848
}
4949
/// Page number to return (1-indexed).
50-
pub fn page_number(mut self, value: i32) -> Self {
50+
pub fn page_number(mut self, value: i64) -> Self {
5151
self.page_number = Some(value);
5252
self
5353
}

src/datadogV2/api/api_feature_flags.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub struct ListFeatureFlagsOptionalParams {
1919
/// Filter by archived status.
2020
pub is_archived: Option<bool>,
2121
/// Maximum number of results to return.
22-
pub limit: Option<i32>,
22+
pub limit: Option<i64>,
2323
/// Number of results to skip.
24-
pub offset: Option<i32>,
24+
pub offset: Option<i64>,
2525
}
2626

2727
impl ListFeatureFlagsOptionalParams {
@@ -36,12 +36,12 @@ impl ListFeatureFlagsOptionalParams {
3636
self
3737
}
3838
/// Maximum number of results to return.
39-
pub fn limit(mut self, value: i32) -> Self {
39+
pub fn limit(mut self, value: i64) -> Self {
4040
self.limit = Some(value);
4141
self
4242
}
4343
/// Number of results to skip.
44-
pub fn offset(mut self, value: i32) -> Self {
44+
pub fn offset(mut self, value: i64) -> Self {
4545
self.offset = Some(value);
4646
self
4747
}
@@ -56,9 +56,9 @@ pub struct ListFeatureFlagsEnvironmentsOptionalParams {
5656
/// Filter environments by key (partial matching).
5757
pub key: Option<String>,
5858
/// Maximum number of results to return.
59-
pub limit: Option<i32>,
59+
pub limit: Option<i64>,
6060
/// Number of results to skip.
61-
pub offset: Option<i32>,
61+
pub offset: Option<i64>,
6262
}
6363

6464
impl ListFeatureFlagsEnvironmentsOptionalParams {
@@ -73,12 +73,12 @@ impl ListFeatureFlagsEnvironmentsOptionalParams {
7373
self
7474
}
7575
/// Maximum number of results to return.
76-
pub fn limit(mut self, value: i32) -> Self {
76+
pub fn limit(mut self, value: i64) -> Self {
7777
self.limit = Some(value);
7878
self
7979
}
8080
/// Number of results to skip.
81-
pub fn offset(mut self, value: i32) -> Self {
81+
pub fn offset(mut self, value: i64) -> Self {
8282
self.offset = Some(value);
8383
self
8484
}

src/datadogV2/api/api_metrics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,21 @@ impl ListTagConfigurationsOptionalParams {
169169
#[derive(Clone, Default, Debug)]
170170
pub struct ListTagIndexingRulesOptionalParams {
171171
/// Page size (1–1000, default 100).
172-
pub page_limit: Option<i32>,
172+
pub page_limit: Option<i64>,
173173
/// Page offset from the start of the list (default 0).
174-
pub page_offset: Option<i32>,
174+
pub page_offset: Option<i64>,
175175
/// Substring filter on rule name.
176176
pub search: Option<String>,
177177
}
178178

179179
impl ListTagIndexingRulesOptionalParams {
180180
/// Page size (1–1000, default 100).
181-
pub fn page_limit(mut self, value: i32) -> Self {
181+
pub fn page_limit(mut self, value: i64) -> Self {
182182
self.page_limit = Some(value);
183183
self
184184
}
185185
/// Page offset from the start of the list (default 0).
186-
pub fn page_offset(mut self, value: i32) -> Self {
186+
pub fn page_offset(mut self, value: i64) -> Self {
187187
self.page_offset = Some(value);
188188
self
189189
}

src/datadogV2/api/api_model_lab_api.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ pub struct ListModelLabProjectsOptionalParams {
1919
/// Sort field. Valid values: name, created_at, updated_at. Prefix with '-' for descending order (e.g., -updated_at).
2020
pub sort: Option<String>,
2121
/// Number of items per page. Maximum is 100.
22-
pub page_size: Option<i32>,
22+
pub page_size: Option<i64>,
2323
/// Page number (1-indexed).
24-
pub page_number: Option<i32>,
24+
pub page_number: Option<i64>,
2525
}
2626

2727
impl ListModelLabProjectsOptionalParams {
@@ -46,12 +46,12 @@ impl ListModelLabProjectsOptionalParams {
4646
self
4747
}
4848
/// Number of items per page. Maximum is 100.
49-
pub fn page_size(mut self, value: i32) -> Self {
49+
pub fn page_size(mut self, value: i64) -> Self {
5050
self.page_size = Some(value);
5151
self
5252
}
5353
/// Page number (1-indexed).
54-
pub fn page_number(mut self, value: i32) -> Self {
54+
pub fn page_number(mut self, value: i64) -> Self {
5555
self.page_number = Some(value);
5656
self
5757
}
@@ -102,9 +102,9 @@ pub struct ListModelLabRunsOptionalParams {
102102
/// Sort field. Valid values: name, created_at, updated_at, duration. Prefix with '-' for descending order (e.g., -updated_at).
103103
pub sort: Option<String>,
104104
/// Number of items per page. Maximum is 100.
105-
pub page_size: Option<i32>,
105+
pub page_size: Option<i64>,
106106
/// Page number (1-indexed).
107-
pub page_number: Option<i32>,
107+
pub page_number: Option<i64>,
108108
}
109109

110110
impl ListModelLabRunsOptionalParams {
@@ -169,12 +169,12 @@ impl ListModelLabRunsOptionalParams {
169169
self
170170
}
171171
/// Number of items per page. Maximum is 100.
172-
pub fn page_size(mut self, value: i32) -> Self {
172+
pub fn page_size(mut self, value: i64) -> Self {
173173
self.page_size = Some(value);
174174
self
175175
}
176176
/// Page number (1-indexed).
177-
pub fn page_number(mut self, value: i32) -> Self {
177+
pub fn page_number(mut self, value: i64) -> Self {
178178
self.page_number = Some(value);
179179
self
180180
}

src/datadogV2/api/api_rum.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ pub struct ListSourcemapsOptionalParams {
212212
/// The type of source map. Defaults to `js`.
213213
pub mapkind: Option<crate::datadogV2::model::SourcemapMapKind>,
214214
/// The number of results to return per page. Must be at least 1.
215-
pub page_size: Option<i32>,
215+
pub page_size: Option<i64>,
216216
/// The page number to retrieve, starting from 1.
217-
pub page_number: Option<i32>,
217+
pub page_number: Option<i64>,
218218
/// Filter by service names (multiple values allowed). Required for
219219
/// `js`, `jvm`, `react`, and `flutter` map kinds.
220220
pub filter_service: Option<Vec<String>>,
@@ -263,12 +263,12 @@ impl ListSourcemapsOptionalParams {
263263
self
264264
}
265265
/// The number of results to return per page. Must be at least 1.
266-
pub fn page_size(mut self, value: i32) -> Self {
266+
pub fn page_size(mut self, value: i64) -> Self {
267267
self.page_size = Some(value);
268268
self
269269
}
270270
/// The page number to retrieve, starting from 1.
271-
pub fn page_number(mut self, value: i32) -> Self {
271+
pub fn page_number(mut self, value: i64) -> Self {
272272
self.page_number = Some(value);
273273
self
274274
}

src/datadogV2/api/api_rum_replay_heatmaps.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ListReplayHeatmapSnapshotsOptionalParams {
1717
/// Device type to filter snapshots.
1818
pub filter_device_type: Option<String>,
1919
/// Maximum number of snapshots to return.
20-
pub page_limit: Option<i32>,
20+
pub page_limit: Option<i64>,
2121
/// Filter by application ID.
2222
pub filter_application_id: Option<String>,
2323
}
@@ -29,7 +29,7 @@ impl ListReplayHeatmapSnapshotsOptionalParams {
2929
self
3030
}
3131
/// Maximum number of snapshots to return.
32-
pub fn page_limit(mut self, value: i32) -> Self {
32+
pub fn page_limit(mut self, value: i64) -> Self {
3333
self.page_limit = Some(value);
3434
self
3535
}

0 commit comments

Comments
 (0)