From cbdbbfa3aad2789b464d5d5c4b98c99688c5385d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 4 Dec 2026 09:59:14 +0000 Subject: [PATCH] Regenerate client from commit fe33093 of spec repo --- .generator/schemas/v1/openapi.yaml | 129 ++++++++++----- .generator/schemas/v2/openapi.yaml | 153 +++++------------- .../v1/model/jsonapi_error_item.py | 105 ++++++++++++ .../v1/model/jsonapi_error_item_source.py | 56 +++++++ .../v1/model/jsonapi_error_response.py | 40 +++++ src/datadog_api_client/v1/models/__init__.py | 6 + .../v2/api/rum_recovery_api.py | 2 +- 7 files changed, 335 insertions(+), 156 deletions(-) create mode 100644 src/datadog_api_client/v1/model/jsonapi_error_item.py create mode 100644 src/datadog_api_client/v1/model/jsonapi_error_item_source.py create mode 100644 src/datadog_api_client/v1/model/jsonapi_error_response.py diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 485b803338..e76e2eb9f6 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -31,7 +31,7 @@ components: content: "application/json": schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests headers: X-RateLimit-Limit: @@ -6477,6 +6477,59 @@ components: example: ok type: string type: object + JSONAPIErrorItem: + description: API error response body + properties: + code: + description: An application-specific error code. + example: invalid_request + type: string + detail: + description: A human-readable explanation specific to this occurrence of the error. + example: Missing required attribute in body + type: string + meta: + additionalProperties: {} + description: Non-standard meta-information about the error + type: object + source: + $ref: "#/components/schemas/JSONAPIErrorItemSource" + status: + description: Status code of the response. + example: "400" + type: string + title: + description: Short human-readable summary of the error. + example: Bad Request + type: string + type: object + JSONAPIErrorItemSource: + description: References to the source of the error. + properties: + header: + description: A string indicating the name of a single request header which caused the error. + example: "Authorization" + type: string + parameter: + description: A string indicating which URI query parameter caused the error. + example: "limit" + type: string + pointer: + description: A JSON pointer to the value in the request document that caused the error. + example: "/data/attributes/title" + type: string + type: object + JSONAPIErrorResponse: + description: API error response. + properties: + errors: + description: A list of errors. + items: + $ref: "#/components/schemas/JSONAPIErrorItem" + type: array + required: + - errors + type: object JourneyMapConversionType: description: Whether to show the paths that convert to the end step or drop off before it. enum: @@ -31332,7 +31385,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests summary: Get the list of available daily custom reports tags: @@ -31396,7 +31449,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests summary: Get specified daily custom reports tags: @@ -38345,7 +38398,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests summary: Get the list of available monthly custom reports tags: @@ -38415,7 +38468,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests summary: Get specified monthly custom reports tags: @@ -43475,7 +43528,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43544,7 +43597,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43612,7 +43665,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43682,7 +43735,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43754,7 +43807,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43827,7 +43880,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43897,7 +43950,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -43967,7 +44020,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44035,7 +44088,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44107,7 +44160,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44222,7 +44275,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44291,7 +44344,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44359,7 +44412,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44428,7 +44481,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44497,7 +44550,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44566,7 +44619,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44637,7 +44690,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44713,7 +44766,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44853,7 +44906,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44922,7 +44975,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -44989,7 +45042,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45058,7 +45111,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45128,7 +45181,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45196,7 +45249,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45270,7 +45323,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45341,7 +45394,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45410,7 +45463,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45503,7 +45556,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45570,7 +45623,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45637,7 +45690,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45704,7 +45757,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45773,7 +45826,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -45863,7 +45916,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b359a63d90..d309294b3c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -3157,7 +3157,7 @@ components: content: "application/json": schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests headers: X-RateLimit-Limit: @@ -183218,7 +183218,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -183343,7 +183343,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -227032,11 +227032,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Gone "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -228090,11 +228086,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: List active tags and aggregations tags: - Metrics @@ -228209,11 +228201,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -228289,11 +228277,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: API error response. "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -228409,11 +228393,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: API error response. "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: Tag Configuration Cardinality Estimator tags: - Metrics @@ -228826,11 +228806,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Not found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: Delete a tag configuration tags: - Metrics @@ -228892,11 +228868,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: No tag configuration exists for the metric "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -228977,11 +228949,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Unprocessable Entity "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: Update a tag configuration tags: - Metrics @@ -229059,11 +229027,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Conflict "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: Create a tag configuration tags: - Metrics @@ -229130,11 +229094,7 @@ paths: $ref: "#/components/schemas/APIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" summary: List distinct metric volumes by metric name tags: - Metrics @@ -249094,11 +249054,7 @@ paths: $ref: "#/components/schemas/RumManagedArchiveErrorResponse" description: Forbidden "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -249152,11 +249108,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -249225,11 +249177,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -249321,11 +249269,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251370,11 +251314,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251509,11 +251449,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251526,7 +251462,7 @@ paths: - rum_rehydration_index post: description: >- - Start targeted or query-based batch recovery. Use the returned `data.id` to poll the recovery request for progress. Batch creation checks a fresh recoverable-session estimate against the configured maximum (100,000 by default), accepting estimates equal to the maximum. Use the count operation to check the current maximum; creation can still reject a changed estimate. Narrow the query or time range if the maximum is exceeded. + Start targeted or query-based batch recovery. Use the returned `data.id` to poll the recovery request for progress. Batch creation checks a fresh recoverable-session estimate against the configured maximum (100,000 by default), accepting estimates equal to the maximum. Use the count operation to check the current maximum; creation can still reject a changed estimate. Narrow the query or time range if the maximum is exceeded. Returns `429` when rate limited or when the batch recovery queue is full. Creation is not idempotent. After an uncertain response, check session search or batch listing before retrying. @@ -251664,12 +251600,7 @@ paths: description: >- Conflict. Targeted sessions are already retained, in flight, or previously failed, or a concurrent batch was created. "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: >- - Too many requests, or the batch recovery queue is full. + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251763,11 +251694,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251859,11 +251786,7 @@ paths: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Conflict "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -251991,11 +251914,7 @@ paths: $ref: "#/components/schemas/RumManagedArchiveErrorResponse" description: Forbidden "429": - content: - application/json: - schema: - $ref: "#/components/schemas/RumManagedArchiveErrorResponse" - description: Too Many Requests + $ref: "#/components/responses/TooManyRequestsResponse" security: - apiKeyAuth: [] appKeyAuth: [] @@ -282744,7 +282663,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -282808,7 +282727,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -282876,7 +282795,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -282977,7 +282896,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283056,7 +282975,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283183,7 +283102,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283248,7 +283167,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283406,7 +283325,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283471,7 +283390,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -283534,7 +283453,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] @@ -284218,7 +284137,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests. security: - apiKeyAuth: [] @@ -284657,7 +284576,7 @@ paths: content: application/json;datetime-format=rfc3339: schema: - $ref: "#/components/schemas/APIErrorResponse" + $ref: "#/components/schemas/JSONAPIErrorResponse" description: Too many requests security: - apiKeyAuth: [] diff --git a/src/datadog_api_client/v1/model/jsonapi_error_item.py b/src/datadog_api_client/v1/model/jsonapi_error_item.py new file mode 100644 index 0000000000..83a6a5c7c3 --- /dev/null +++ b/src/datadog_api_client/v1/model/jsonapi_error_item.py @@ -0,0 +1,105 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Any, Dict, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + date, + datetime, + none_type, + unset, + UnsetType, + UUID, +) + + +if TYPE_CHECKING: + from datadog_api_client.v1.model.jsonapi_error_item_source import JSONAPIErrorItemSource + + +class JSONAPIErrorItem(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v1.model.jsonapi_error_item_source import JSONAPIErrorItemSource + + return { + "code": (str,), + "detail": (str,), + "meta": ( + { + str: ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + UUID, + none_type, + ) + }, + ), + "source": (JSONAPIErrorItemSource,), + "status": (str,), + "title": (str,), + } + + attribute_map = { + "code": "code", + "detail": "detail", + "meta": "meta", + "source": "source", + "status": "status", + "title": "title", + } + + def __init__( + self_, + code: Union[str, UnsetType] = unset, + detail: Union[str, UnsetType] = unset, + meta: Union[Dict[str, Any], UnsetType] = unset, + source: Union[JSONAPIErrorItemSource, UnsetType] = unset, + status: Union[str, UnsetType] = unset, + title: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + API error response body + + :param code: An application-specific error code. + :type code: str, optional + + :param detail: A human-readable explanation specific to this occurrence of the error. + :type detail: str, optional + + :param meta: Non-standard meta-information about the error + :type meta: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, optional + + :param source: References to the source of the error. + :type source: JSONAPIErrorItemSource, optional + + :param status: Status code of the response. + :type status: str, optional + + :param title: Short human-readable summary of the error. + :type title: str, optional + """ + if code is not unset: + kwargs["code"] = code + if detail is not unset: + kwargs["detail"] = detail + if meta is not unset: + kwargs["meta"] = meta + if source is not unset: + kwargs["source"] = source + if status is not unset: + kwargs["status"] = status + if title is not unset: + kwargs["title"] = title + super().__init__(kwargs) diff --git a/src/datadog_api_client/v1/model/jsonapi_error_item_source.py b/src/datadog_api_client/v1/model/jsonapi_error_item_source.py new file mode 100644 index 0000000000..7719229b98 --- /dev/null +++ b/src/datadog_api_client/v1/model/jsonapi_error_item_source.py @@ -0,0 +1,56 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class JSONAPIErrorItemSource(ModelNormal): + @cached_property + def openapi_types(_): + return { + "header": (str,), + "parameter": (str,), + "pointer": (str,), + } + + attribute_map = { + "header": "header", + "parameter": "parameter", + "pointer": "pointer", + } + + def __init__( + self_, + header: Union[str, UnsetType] = unset, + parameter: Union[str, UnsetType] = unset, + pointer: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + References to the source of the error. + + :param header: A string indicating the name of a single request header which caused the error. + :type header: str, optional + + :param parameter: A string indicating which URI query parameter caused the error. + :type parameter: str, optional + + :param pointer: A JSON pointer to the value in the request document that caused the error. + :type pointer: str, optional + """ + if header is not unset: + kwargs["header"] = header + if parameter is not unset: + kwargs["parameter"] = parameter + if pointer is not unset: + kwargs["pointer"] = pointer + super().__init__(kwargs) diff --git a/src/datadog_api_client/v1/model/jsonapi_error_response.py b/src/datadog_api_client/v1/model/jsonapi_error_response.py new file mode 100644 index 0000000000..94939d1f3d --- /dev/null +++ b/src/datadog_api_client/v1/model/jsonapi_error_response.py @@ -0,0 +1,40 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v1.model.jsonapi_error_item import JSONAPIErrorItem + + +class JSONAPIErrorResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v1.model.jsonapi_error_item import JSONAPIErrorItem + + return { + "errors": ([JSONAPIErrorItem],), + } + + attribute_map = { + "errors": "errors", + } + + def __init__(self_, errors: List[JSONAPIErrorItem], **kwargs): + """ + API error response. + + :param errors: A list of errors. + :type errors: [JSONAPIErrorItem] + """ + super().__init__(kwargs) + + self_.errors = errors diff --git a/src/datadog_api_client/v1/models/__init__.py b/src/datadog_api_client/v1/models/__init__.py index bb457450cd..c938e0ef52 100644 --- a/src/datadog_api_client/v1/models/__init__.py +++ b/src/datadog_api_client/v1/models/__init__.py @@ -365,6 +365,9 @@ from datadog_api_client.v1.model.image_widget_definition import ImageWidgetDefinition from datadog_api_client.v1.model.image_widget_definition_type import ImageWidgetDefinitionType from datadog_api_client.v1.model.intake_payload_accepted import IntakePayloadAccepted +from datadog_api_client.v1.model.jsonapi_error_item import JSONAPIErrorItem +from datadog_api_client.v1.model.jsonapi_error_item_source import JSONAPIErrorItemSource +from datadog_api_client.v1.model.jsonapi_error_response import JSONAPIErrorResponse from datadog_api_client.v1.model.journey_map_conversion_type import JourneyMapConversionType from datadog_api_client.v1.model.journey_map_counting_method import JourneyMapCountingMethod from datadog_api_client.v1.model.journey_map_expanded_prefix import JourneyMapExpandedPrefix @@ -1872,6 +1875,9 @@ "ImageWidgetDefinition", "ImageWidgetDefinitionType", "IntakePayloadAccepted", + "JSONAPIErrorItem", + "JSONAPIErrorItemSource", + "JSONAPIErrorResponse", "JourneyMapConversionType", "JourneyMapCountingMethod", "JourneyMapExpandedPrefix", diff --git a/src/datadog_api_client/v2/api/rum_recovery_api.py b/src/datadog_api_client/v2/api/rum_recovery_api.py index 016d51e58b..416db84f93 100644 --- a/src/datadog_api_client/v2/api/rum_recovery_api.py +++ b/src/datadog_api_client/v2/api/rum_recovery_api.py @@ -211,7 +211,7 @@ def create_rum_recovery_request( ) -> RumRecoveryCreateResponse: """Create a recovery request. - Start targeted or query-based batch recovery. Use the returned ``data.id`` to poll the recovery request for progress. Batch creation checks a fresh recoverable-session estimate against the configured maximum (100,000 by default), accepting estimates equal to the maximum. Use the count operation to check the current maximum; creation can still reject a changed estimate. Narrow the query or time range if the maximum is exceeded. + Start targeted or query-based batch recovery. Use the returned ``data.id`` to poll the recovery request for progress. Batch creation checks a fresh recoverable-session estimate against the configured maximum (100,000 by default), accepting estimates equal to the maximum. Use the count operation to check the current maximum; creation can still reject a changed estimate. Narrow the query or time range if the maximum is exceeded. Returns ``429`` when rate limited or when the batch recovery queue is full. Creation is not idempotent. After an uncertain response, check session search or batch listing before retrying.