From ef30be3e37fdd874724ca750327eaca8a6f66dde Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 3 Nov 2025 17:22:41 +0000 Subject: [PATCH] Regenerate client from commit 8386a26 of spec repo --- .generator/schemas/v2/openapi.yaml | 4 ++-- src/datadogV2/api/api_reference_tables.rs | 24 +++++++++++------------ tests/scenarios/function_mappings.rs | 12 ++++++------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 206b8ba19..6bc9597ab 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71031,7 +71031,7 @@ paths: - description: Number of tables to return. example: 15 in: query - name: limit + name: page[limit] required: false schema: default: 15 @@ -71042,7 +71042,7 @@ paths: - description: Number of tables to skip for pagination. example: 0 in: query - name: offset + name: page[offset] required: false schema: default: 0 diff --git a/src/datadogV2/api/api_reference_tables.rs b/src/datadogV2/api/api_reference_tables.rs index 3422d0638..2d32f016b 100644 --- a/src/datadogV2/api/api_reference_tables.rs +++ b/src/datadogV2/api/api_reference_tables.rs @@ -15,9 +15,9 @@ use std::io::Write; #[derive(Clone, Default, Debug)] pub struct ListTablesOptionalParams { /// Number of tables to return. - pub limit: Option, + pub page_limit: Option, /// Number of tables to skip for pagination. - pub offset: Option, + pub page_offset: Option, /// Sort field and direction. Use field name for ascending, prefix with "-" for descending. pub sort: Option, /// Filter by table status. @@ -30,13 +30,13 @@ pub struct ListTablesOptionalParams { impl ListTablesOptionalParams { /// Number of tables to return. - pub fn limit(mut self, value: i64) -> Self { - self.limit = Some(value); + pub fn page_limit(mut self, value: i64) -> Self { + self.page_limit = Some(value); self } /// Number of tables to skip for pagination. - pub fn offset(mut self, value: i64) -> Self { - self.offset = Some(value); + pub fn page_offset(mut self, value: i64) -> Self { + self.page_offset = Some(value); self } /// Sort field and direction. Use field name for ascending, prefix with "-" for descending. @@ -825,8 +825,8 @@ impl ReferenceTablesAPI { let operation_id = "v2.list_tables"; // unbox and build optional parameters - let limit = params.limit; - let offset = params.offset; + let page_limit = params.page_limit; + let page_offset = params.page_offset; let sort = params.sort; let filter_status = params.filter_status; let filter_table_name_exact = params.filter_table_name_exact; @@ -841,13 +841,13 @@ impl ReferenceTablesAPI { let mut local_req_builder = local_client.request(reqwest::Method::GET, local_uri_str.as_str()); - if let Some(ref local_query_param) = limit { + if let Some(ref local_query_param) = page_limit { local_req_builder = - local_req_builder.query(&[("limit", &local_query_param.to_string())]); + local_req_builder.query(&[("page[limit]", &local_query_param.to_string())]); }; - if let Some(ref local_query_param) = offset { + if let Some(ref local_query_param) = page_offset { local_req_builder = - local_req_builder.query(&[("offset", &local_query_param.to_string())]); + local_req_builder.query(&[("page[offset]", &local_query_param.to_string())]); }; if let Some(ref local_query_param) = sort { local_req_builder = diff --git a/tests/scenarios/function_mappings.rs b/tests/scenarios/function_mappings.rs index 1848fb8bd..7af8583c9 100644 --- a/tests/scenarios/function_mappings.rs +++ b/tests/scenarios/function_mappings.rs @@ -28297,11 +28297,11 @@ fn test_v2_list_tables(world: &mut DatadogWorld, _parameters: &HashMap