From 4aea47271aff0e82710d21ccbe39b73c5028c3d2 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:18:01 +0000 Subject: [PATCH] [SCV-141] Adding description to field that is conditionally required (#1872) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 3 ++- src/datadog_api_client/v2/model/ci_app_aggregate_sort.py | 2 +- .../v2/model/ci_app_pipelines_group_by.py | 2 +- src/datadog_api_client/v2/model/ci_app_tests_group_by.py | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index f96b019b12..18dfb4fe24 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-16 18:02:51.487464", - "spec_repo_commit": "dc02d0d0" + "regenerated": "2024-02-20 12:21:47.886534", + "spec_repo_commit": "7e467650" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-16 18:02:51.501999", - "spec_repo_commit": "dc02d0d0" + "regenerated": "2024-02-20 12:21:47.901998", + "spec_repo_commit": "7e467650" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index fed2ffd9be..5d118d9175 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2039,7 +2039,8 @@ components: type: number type: object CIAppAggregateSort: - description: A sort rule. + description: A sort rule. The `aggregation` field is required when `type` is + `measure`. example: aggregation: count order: asc diff --git a/src/datadog_api_client/v2/model/ci_app_aggregate_sort.py b/src/datadog_api_client/v2/model/ci_app_aggregate_sort.py index c4589654a0..8367af7bbf 100644 --- a/src/datadog_api_client/v2/model/ci_app_aggregate_sort.py +++ b/src/datadog_api_client/v2/model/ci_app_aggregate_sort.py @@ -49,7 +49,7 @@ def __init__( **kwargs, ): """ - A sort rule. + A sort rule. The ``aggregation`` field is required when ``type`` is ``measure``. :param aggregation: An aggregation function. :type aggregation: CIAppAggregationFunction, optional diff --git a/src/datadog_api_client/v2/model/ci_app_pipelines_group_by.py b/src/datadog_api_client/v2/model/ci_app_pipelines_group_by.py index 43123ba4bd..67d1cbed0f 100644 --- a/src/datadog_api_client/v2/model/ci_app_pipelines_group_by.py +++ b/src/datadog_api_client/v2/model/ci_app_pipelines_group_by.py @@ -72,7 +72,7 @@ def __init__( :param missing: The value to use for logs that don't have the facet used to group-by. :type missing: CIAppGroupByMissing, optional - :param sort: A sort rule. + :param sort: A sort rule. The ``aggregation`` field is required when ``type`` is ``measure``. :type sort: CIAppAggregateSort, optional :param total: A resulting object to put the given computes in over all the matching records. diff --git a/src/datadog_api_client/v2/model/ci_app_tests_group_by.py b/src/datadog_api_client/v2/model/ci_app_tests_group_by.py index f50dbffcbb..f60e8cf500 100644 --- a/src/datadog_api_client/v2/model/ci_app_tests_group_by.py +++ b/src/datadog_api_client/v2/model/ci_app_tests_group_by.py @@ -72,7 +72,7 @@ def __init__( :param missing: The value to use for logs that don't have the facet used to group-by. :type missing: CIAppGroupByMissing, optional - :param sort: A sort rule. + :param sort: A sort rule. The ``aggregation`` field is required when ``type`` is ``measure``. :type sort: CIAppAggregateSort, optional :param total: A resulting object to put the given computes in over all the matching records.