diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 45e5d2741b..2a64f59537 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -110171,9 +110171,12 @@ components: description: The definition of a RUM operation's journey, used to detect it from RUM events. properties: rum_steps: - description: The ordered list of steps composing the RUM journey. + description: |- + The ordered list of steps composing the RUM journey. + `null` when the operation has no steps. On create and update, `null` and an empty list are equivalent. items: $ref: "#/components/schemas/RUMOperationJourneyStep" + nullable: true type: array required: - rum_steps @@ -110293,6 +110296,7 @@ components: description: The list of journey IDs associated with the RUM operation. items: type: string + nullable: true type: array journey_rum: $ref: "#/components/schemas/RUMOperationJourneyRum" @@ -110311,6 +110315,7 @@ components: - "team:checkout" items: type: string + nullable: true type: array updated_at: description: The timestamp when the RUM operation was last updated. @@ -110580,7 +110585,8 @@ components: - attributes type: object RUMOperationUser: - description: A Datadog user referenced by a RUM operation. + description: A Datadog user referenced by a RUM operation. `null` when the user could not be resolved. + nullable: true properties: email: description: The email of the user. @@ -110596,6 +110602,7 @@ components: type: string uuid: description: The UUID of the user. + example: "abc12345-1234-5678-abcd-ef1234567890" readOnly: true type: string type: object @@ -110606,11 +110613,37 @@ components: items: $ref: "#/components/schemas/RUMOperationResponseData" type: array + links: + $ref: "#/components/schemas/RUMOperationsListResponseLinks" meta: $ref: "#/components/schemas/RUMOperationsListResponseMeta" required: - data type: object + RUMOperationsListResponseLinks: + description: Pagination links for a list of RUM operations. + properties: + first: + description: Link to the first page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=0" + type: string + last: + description: Link to the last page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=150" + type: string + next: + description: Link to the next page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=100" + type: string + prev: + description: Link to the previous page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=0" + type: string + self: + description: Link to the current page. + example: "https://api.datadoghq.com/api/v2/rum/operations/search?page[limit]=50&page[offset]=50" + type: string + type: object RUMOperationsListResponseMeta: description: Metadata for a list of RUM operations. properties: diff --git a/src/datadog_api_client/v2/model/rum_operation_journey_rum.py b/src/datadog_api_client/v2/model/rum_operation_journey_rum.py index e88d1b44bc..a50853de3d 100644 --- a/src/datadog_api_client/v2/model/rum_operation_journey_rum.py +++ b/src/datadog_api_client/v2/model/rum_operation_journey_rum.py @@ -3,11 +3,12 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import List, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, ) @@ -21,19 +22,20 @@ def openapi_types(_): from datadog_api_client.v2.model.rum_operation_journey_step import RUMOperationJourneyStep return { - "rum_steps": ([RUMOperationJourneyStep],), + "rum_steps": ([RUMOperationJourneyStep], none_type), } attribute_map = { "rum_steps": "rum_steps", } - def __init__(self_, rum_steps: List[RUMOperationJourneyStep], **kwargs): + def __init__(self_, rum_steps: Union[List[RUMOperationJourneyStep], none_type], **kwargs): """ The definition of a RUM operation's journey, used to detect it from RUM events. :param rum_steps: The ordered list of steps composing the RUM journey. - :type rum_steps: [RUMOperationJourneyStep] + ``null`` when the operation has no steps. On create and update, ``null`` and an empty list are equivalent. + :type rum_steps: [RUMOperationJourneyStep], none_type """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_operation_response_attributes.py b/src/datadog_api_client/v2/model/rum_operation_response_attributes.py index ce9665e3a8..6cbdf920d5 100644 --- a/src/datadog_api_client/v2/model/rum_operation_response_attributes.py +++ b/src/datadog_api_client/v2/model/rum_operation_response_attributes.py @@ -34,11 +34,11 @@ def openapi_types(_): "created_by": (RUMOperationUser,), "description": (str, none_type), "display_name": (str,), - "feature_ids": ([str],), + "feature_ids": ([str], none_type), "journey_rum": (RUMOperationJourneyRum,), "name": (str,), "org_id": (int,), - "tags": ([str],), + "tags": ([str], none_type), "updated_at": (datetime, none_type), "updated_by": (RUMOperationUser,), } @@ -68,17 +68,17 @@ def __init__( self_, journey_rum: RUMOperationJourneyRum, name: str, - tags: List[str], + tags: Union[List[str], none_type], application_id: Union[UUID, none_type, UnsetType] = unset, category: Union[str, none_type, UnsetType] = unset, created_at: Union[datetime, UnsetType] = unset, - created_by: Union[RUMOperationUser, UnsetType] = unset, + created_by: Union[RUMOperationUser, none_type, UnsetType] = unset, description: Union[str, none_type, UnsetType] = unset, display_name: Union[str, UnsetType] = unset, - feature_ids: Union[List[str], UnsetType] = unset, + feature_ids: Union[List[str], none_type, UnsetType] = unset, org_id: Union[int, UnsetType] = unset, updated_at: Union[datetime, none_type, UnsetType] = unset, - updated_by: Union[RUMOperationUser, UnsetType] = unset, + updated_by: Union[RUMOperationUser, none_type, UnsetType] = unset, **kwargs, ): """ @@ -93,8 +93,8 @@ def __init__( :param created_at: The timestamp when the RUM operation was created. :type created_at: datetime, optional - :param created_by: A Datadog user referenced by a RUM operation. - :type created_by: RUMOperationUser, optional + :param created_by: A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. + :type created_by: RUMOperationUser, none_type, optional :param description: A description of the RUM operation. :type description: str, none_type, optional @@ -103,7 +103,7 @@ def __init__( :type display_name: str, optional :param feature_ids: The list of journey IDs associated with the RUM operation. - :type feature_ids: [str], optional + :type feature_ids: [str], none_type, optional :param journey_rum: The definition of a RUM operation's journey, used to detect it from RUM events. :type journey_rum: RUMOperationJourneyRum @@ -115,13 +115,13 @@ def __init__( :type org_id: int, optional :param tags: A list of tags associated with the RUM operation. - :type tags: [str] + :type tags: [str], none_type :param updated_at: The timestamp when the RUM operation was last updated. :type updated_at: datetime, none_type, optional - :param updated_by: A Datadog user referenced by a RUM operation. - :type updated_by: RUMOperationUser, optional + :param updated_by: A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. + :type updated_by: RUMOperationUser, none_type, optional """ if application_id is not unset: kwargs["application_id"] = application_id diff --git a/src/datadog_api_client/v2/model/rum_operation_user.py b/src/datadog_api_client/v2/model/rum_operation_user.py index 6113295728..2703c72cd3 100644 --- a/src/datadog_api_client/v2/model/rum_operation_user.py +++ b/src/datadog_api_client/v2/model/rum_operation_user.py @@ -14,6 +14,8 @@ class RUMOperationUser(ModelNormal): + _nullable = True + @cached_property def openapi_types(_): return { @@ -45,7 +47,7 @@ def __init__( **kwargs, ): """ - A Datadog user referenced by a RUM operation. + A Datadog user referenced by a RUM operation. ``null`` when the user could not be resolved. :param email: The email of the user. :type email: str, optional diff --git a/src/datadog_api_client/v2/model/rum_operations_list_response.py b/src/datadog_api_client/v2/model/rum_operations_list_response.py index d26997aae5..b6c48265cb 100644 --- a/src/datadog_api_client/v2/model/rum_operations_list_response.py +++ b/src/datadog_api_client/v2/model/rum_operations_list_response.py @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.rum_operation_response_data import RUMOperationResponseData + from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta @@ -22,21 +23,25 @@ class RUMOperationsListResponse(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.rum_operation_response_data import RUMOperationResponseData + from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta return { "data": ([RUMOperationResponseData],), + "links": (RUMOperationsListResponseLinks,), "meta": (RUMOperationsListResponseMeta,), } attribute_map = { "data": "data", + "links": "links", "meta": "meta", } def __init__( self_, data: List[RUMOperationResponseData], + links: Union[RUMOperationsListResponseLinks, UnsetType] = unset, meta: Union[RUMOperationsListResponseMeta, UnsetType] = unset, **kwargs, ): @@ -46,9 +51,14 @@ def __init__( :param data: :type data: [RUMOperationResponseData] + :param links: Pagination links for a list of RUM operations. + :type links: RUMOperationsListResponseLinks, optional + :param meta: Metadata for a list of RUM operations. :type meta: RUMOperationsListResponseMeta, optional """ + if links is not unset: + kwargs["links"] = links if meta is not unset: kwargs["meta"] = meta super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_operations_list_response_links.py b/src/datadog_api_client/v2/model/rum_operations_list_response_links.py new file mode 100644 index 0000000000..275bf4e767 --- /dev/null +++ b/src/datadog_api_client/v2/model/rum_operations_list_response_links.py @@ -0,0 +1,72 @@ +# 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 RUMOperationsListResponseLinks(ModelNormal): + @cached_property + def openapi_types(_): + return { + "first": (str,), + "last": (str,), + "next": (str,), + "prev": (str,), + "self": (str,), + } + + attribute_map = { + "first": "first", + "last": "last", + "next": "next", + "prev": "prev", + "self": "self", + } + + def __init__( + self_, + first: Union[str, UnsetType] = unset, + last: Union[str, UnsetType] = unset, + next: Union[str, UnsetType] = unset, + prev: Union[str, UnsetType] = unset, + self: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Pagination links for a list of RUM operations. + + :param first: Link to the first page. + :type first: str, optional + + :param last: Link to the last page. + :type last: str, optional + + :param next: Link to the next page. + :type next: str, optional + + :param prev: Link to the previous page. + :type prev: str, optional + + :param self: Link to the current page. + :type self: str, optional + """ + if first is not unset: + kwargs["first"] = first + if last is not unset: + kwargs["last"] = last + if next is not unset: + kwargs["next"] = next + if prev is not unset: + kwargs["prev"] = prev + if self is not unset: + kwargs["self"] = self + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index d6918ba32e..348ef84839 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -9664,6 +9664,7 @@ from datadog_api_client.v2.model.rum_operation_update_request_data import RUMOperationUpdateRequestData from datadog_api_client.v2.model.rum_operation_user import RUMOperationUser from datadog_api_client.v2.model.rum_operations_list_response import RUMOperationsListResponse +from datadog_api_client.v2.model.rum_operations_list_response_links import RUMOperationsListResponseLinks from datadog_api_client.v2.model.rum_operations_list_response_meta import RUMOperationsListResponseMeta from datadog_api_client.v2.model.rum_operations_list_response_meta_page import RUMOperationsListResponseMetaPage from datadog_api_client.v2.model.rum_product_analytics_retention_scale import RUMProductAnalyticsRetentionScale @@ -20328,6 +20329,7 @@ "RUMOperationUpdateRequestData", "RUMOperationUser", "RUMOperationsListResponse", + "RUMOperationsListResponseLinks", "RUMOperationsListResponseMeta", "RUMOperationsListResponseMetaPage", "RUMProductAnalyticsRetentionScale",