Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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:
Expand Down
10 changes: 6 additions & 4 deletions src/datadog_api_client/v2/model/rum_operation_journey_rum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand All @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
}
Expand Down Expand Up @@ -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,
):
"""
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/datadog_api_client/v2/model/rum_operation_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@


class RUMOperationUser(ModelNormal):
_nullable = True

@cached_property
def openapi_types(_):
return {
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions src/datadog_api_client/v2/model/rum_operations_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,33 @@

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


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,
):
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions src/datadog_api_client/v2/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -20328,6 +20329,7 @@
"RUMOperationUpdateRequestData",
"RUMOperationUser",
"RUMOperationsListResponse",
"RUMOperationsListResponseLinks",
"RUMOperationsListResponseMeta",
"RUMOperationsListResponseMetaPage",
"RUMProductAnalyticsRetentionScale",
Expand Down
Loading