From eee3cfde5fa81bd111bab482808596fd985e97f1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 21 Aug 2026 19:56:59 +0000 Subject: [PATCH] Regenerate client from commit 11440e7 of spec repo --- .generator/schemas/v2/openapi.yaml | 41 +++---- docs/datadog_api_client.v2.api.rst | 6 +- docs/datadog_api_client.v2.model.rst | 7 -- .../DeleteRumQuotaConfig.py | 6 +- .../GetRumQuotaConfig.py | 6 +- .../UpsertRumQuotaConfig.py | 12 +-- ...ota_api.py => rum_retention_quotas_api.py} | 5 +- src/datadog_api_client/v2/apis/__init__.py | 4 +- .../rum_retention_quota_adaptive_config.py | 40 ------- .../rum_retention_quota_config_attributes.py | 14 +-- ...etention_quota_config_update_attributes.py | 19 +--- .../v2/model/rum_retention_quota_mode.py | 9 +- .../model/rum_retention_quota_scope_type.py | 1 + src/datadog_api_client/v2/models/__init__.py | 2 - tests/v2/features/rum_retention_quota.feature | 100 ------------------ .../v2/features/rum_retention_quotas.feature | 84 +++++++++++++++ tests/v2/features/undo.json | 6 +- 17 files changed, 128 insertions(+), 234 deletions(-) rename examples/v2/{rum-retention-quota => rum-retention-quotas}/DeleteRumQuotaConfig.py (68%) rename examples/v2/{rum-retention-quota => rum-retention-quotas}/GetRumQuotaConfig.py (69%) rename examples/v2/{rum-retention-quota => rum-retention-quotas}/UpsertRumQuotaConfig.py (80%) rename src/datadog_api_client/v2/api/{rum_retention_quota_api.py => rum_retention_quotas_api.py} (97%) delete mode 100644 src/datadog_api_client/v2/model/rum_retention_quota_adaptive_config.py delete mode 100644 tests/v2/features/rum_retention_quota.feature create mode 100644 tests/v2/features/rum_retention_quotas.feature diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9e31333a3d..329c447be3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1799,7 +1799,9 @@ components: example: cd73a516-a481-4af5-8352-9b577465c77b type: string RumRetentionQuotaScopeTypeParameter: - description: The type of scope the retention quota configuration applies to. + description: |- + The type of scope the retention quota configuration applies to. + `application` is the only supported scope type. in: path name: scope_type required: true @@ -92488,25 +92490,9 @@ components: $ref: "#/components/schemas/RumRetentionFilterData" type: array type: object - RumRetentionQuotaAdaptiveConfig: - description: The configuration used when `mode` is `adaptive`. - properties: - max_retention_rate: - description: The maximum fraction of sessions to retain, in the range `(0, 1]`. - example: 0.5 - exclusiveMinimum: true - format: double - maximum: 1 - minimum: 0 - type: number - required: - - max_retention_rate - type: object RumRetentionQuotaConfigAttributes: description: The RUM retention quota configuration properties. properties: - adaptive: - $ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig" custom: $ref: "#/components/schemas/RumRetentionQuotaCustomConfig" mode: @@ -92564,8 +92550,6 @@ components: RumRetentionQuotaConfigUpdateAttributes: description: The RUM retention quota configuration properties to create or update. properties: - adaptive: - $ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig" custom: $ref: "#/components/schemas/RumRetentionQuotaCustomConfig" mode: @@ -92631,14 +92615,13 @@ components: type: object RumRetentionQuotaMode: description: |- - The retention quota mode. `custom` enforces a fixed session limit, while - `adaptive` dynamically adjusts retention. + The retention quota mode. `custom` enforces a fixed session limit. + `custom` is the only supported mode. enum: - custom - - adaptive example: custom type: string - x-enum-varnames: ["CUSTOM", "ADAPTIVE"] + x-enum-varnames: ["CUSTOM"] RumRetentionQuotaReachedAction: description: The action to take when the session quota is reached. enum: @@ -92649,7 +92632,9 @@ components: x-enum-varnames: ["STOP", "SLOWDOWN"] RumRetentionQuotaScopeType: default: application - description: The type of scope the retention quota configuration applies to. + description: |- + The type of scope the retention quota configuration applies to. + `application` is the only supported scope type. enum: - application example: application @@ -187415,7 +187400,7 @@ paths: $ref: "#/components/responses/TooManyRequestsResponse" summary: Delete a RUM retention quota configuration tags: - - RUM Retention Quota + - RUM Retention Quotas x-permission: operator: OR permissions: @@ -187478,7 +187463,7 @@ paths: $ref: "#/components/responses/TooManyRequestsResponse" summary: Get a RUM retention quota configuration tags: - - RUM Retention Quota + - RUM Retention Quotas x-permission: operator: OR permissions: @@ -187564,7 +187549,7 @@ paths: $ref: "#/components/responses/TooManyRequestsResponse" summary: Create or update a RUM retention quota config tags: - - RUM Retention Quota + - RUM Retention Quotas x-codegen-request-body-name: body x-permission: operator: OR @@ -218487,7 +218472,7 @@ tags: name: RUM Remote Config - description: |- Manage RUM retention quota configurations for your organization's RUM applications. - name: RUM Retention Quota + name: RUM Retention Quotas - description: View and manage Reference Tables in your organization. name: Reference Tables - description: |- diff --git a/docs/datadog_api_client.v2.api.rst b/docs/datadog_api_client.v2.api.rst index 747ce8cae2..a53204ad32 100644 --- a/docs/datadog_api_client.v2.api.rst +++ b/docs/datadog_api_client.v2.api.rst @@ -781,10 +781,10 @@ datadog\_api\_client.v2.api.rum\_retention\_filters\_api module :members: :show-inheritance: -datadog\_api\_client.v2.api.rum\_retention\_quota\_api module -------------------------------------------------------------- +datadog\_api\_client.v2.api.rum\_retention\_quotas\_api module +-------------------------------------------------------------- -.. automodule:: datadog_api_client.v2.api.rum_retention_quota_api +.. automodule:: datadog_api_client.v2.api.rum_retention_quotas_api :members: :show-inheritance: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 56b4374ab4..c0835f9b74 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -39638,13 +39638,6 @@ datadog\_api\_client.v2.model.rum\_retention\_filters\_response module :members: :show-inheritance: -datadog\_api\_client.v2.model.rum\_retention\_quota\_adaptive\_config module ----------------------------------------------------------------------------- - -.. automodule:: datadog_api_client.v2.model.rum_retention_quota_adaptive_config - :members: - :show-inheritance: - datadog\_api\_client.v2.model.rum\_retention\_quota\_config\_attributes module ------------------------------------------------------------------------------ diff --git a/examples/v2/rum-retention-quota/DeleteRumQuotaConfig.py b/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.py similarity index 68% rename from examples/v2/rum-retention-quota/DeleteRumQuotaConfig.py rename to examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.py index 684a4257ca..49335d7340 100644 --- a/examples/v2/rum-retention-quota/DeleteRumQuotaConfig.py +++ b/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.py @@ -3,13 +3,13 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi +from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi from datadog_api_client.v2.model.rum_retention_quota_scope_type import RumRetentionQuotaScopeType configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = RUMRetentionQuotaApi(api_client) + api_instance = RUMRetentionQuotasApi(api_client) api_instance.delete_rum_quota_config( scope_type=RumRetentionQuotaScopeType.APPLICATION, - scope_id="ced16651-97b6-4e67-8590-8caec3af0695", + scope_id="cd73a516-a481-4af5-8352-9b577465c77b", ) diff --git a/examples/v2/rum-retention-quota/GetRumQuotaConfig.py b/examples/v2/rum-retention-quotas/GetRumQuotaConfig.py similarity index 69% rename from examples/v2/rum-retention-quota/GetRumQuotaConfig.py rename to examples/v2/rum-retention-quotas/GetRumQuotaConfig.py index fb288bc8c3..4d077b4ce1 100644 --- a/examples/v2/rum-retention-quota/GetRumQuotaConfig.py +++ b/examples/v2/rum-retention-quotas/GetRumQuotaConfig.py @@ -3,15 +3,15 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi +from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi from datadog_api_client.v2.model.rum_retention_quota_scope_type import RumRetentionQuotaScopeType configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = RUMRetentionQuotaApi(api_client) + api_instance = RUMRetentionQuotasApi(api_client) response = api_instance.get_rum_quota_config( scope_type=RumRetentionQuotaScopeType.APPLICATION, - scope_id="ced16651-97b6-4e67-8590-8caec3af0695", + scope_id="cd73a516-a481-4af5-8352-9b577465c77b", ) print(response) diff --git a/examples/v2/rum-retention-quota/UpsertRumQuotaConfig.py b/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.py similarity index 80% rename from examples/v2/rum-retention-quota/UpsertRumQuotaConfig.py rename to examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.py index 4839680a2b..ca73ddda71 100644 --- a/examples/v2/rum-retention-quota/UpsertRumQuotaConfig.py +++ b/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.py @@ -3,8 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi -from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig +from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi from datadog_api_client.v2.model.rum_retention_quota_config_type import RumRetentionQuotaConfigType from datadog_api_client.v2.model.rum_retention_quota_config_update_attributes import ( RumRetentionQuotaConfigUpdateAttributes, @@ -20,9 +19,6 @@ body = RumRetentionQuotaConfigUpdateRequest( data=RumRetentionQuotaConfigUpdateData( attributes=RumRetentionQuotaConfigUpdateAttributes( - adaptive=RumRetentionQuotaAdaptiveConfig( - max_retention_rate=0.5, - ), custom=RumRetentionQuotaCustomConfig( daily_reset_time="08:00", daily_reset_timezone="+09:00", @@ -32,16 +28,16 @@ ), mode=RumRetentionQuotaMode.CUSTOM, ), - id="ced16651-97b6-4e67-8590-8caec3af0695", + id="cd73a516-a481-4af5-8352-9b577465c77b", type=RumRetentionQuotaConfigType.RUM_QUOTA_CONFIG, ), ) configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = RUMRetentionQuotaApi(api_client) + api_instance = RUMRetentionQuotasApi(api_client) response = api_instance.upsert_rum_quota_config( - scope_type=RumRetentionQuotaScopeType.APPLICATION, scope_id="ced16651-97b6-4e67-8590-8caec3af0695", body=body + scope_type=RumRetentionQuotaScopeType.APPLICATION, scope_id="cd73a516-a481-4af5-8352-9b577465c77b", body=body ) print(response) diff --git a/src/datadog_api_client/v2/api/rum_retention_quota_api.py b/src/datadog_api_client/v2/api/rum_retention_quotas_api.py similarity index 97% rename from src/datadog_api_client/v2/api/rum_retention_quota_api.py rename to src/datadog_api_client/v2/api/rum_retention_quotas_api.py index a833f15c82..c1d519e984 100644 --- a/src/datadog_api_client/v2/api/rum_retention_quota_api.py +++ b/src/datadog_api_client/v2/api/rum_retention_quotas_api.py @@ -12,7 +12,7 @@ from datadog_api_client.v2.model.rum_retention_quota_config_update_request import RumRetentionQuotaConfigUpdateRequest -class RUMRetentionQuotaApi: +class RUMRetentionQuotasApi: """ Manage RUM retention quota configurations for your organization's RUM applications. """ @@ -122,6 +122,7 @@ def delete_rum_quota_config( Delete the RUM retention quota configuration for a given scope. :param scope_type: The type of scope the retention quota configuration applies to. + ``application`` is the only supported scope type. :type scope_type: RumRetentionQuotaScopeType :param scope_id: The identifier of the scope the retention quota configuration applies to. For the ``application`` scope, this is the RUM application ID. @@ -145,6 +146,7 @@ def get_rum_quota_config( Get the RUM retention quota configuration for a given scope. :param scope_type: The type of scope the retention quota configuration applies to. + ``application`` is the only supported scope type. :type scope_type: RumRetentionQuotaScopeType :param scope_id: The identifier of the scope the retention quota configuration applies to. For the ``application`` scope, this is the RUM application ID. @@ -170,6 +172,7 @@ def upsert_rum_quota_config( Returns the retention quota configuration object when the request is successful. :param scope_type: The type of scope the retention quota configuration applies to. + ``application`` is the only supported scope type. :type scope_type: RumRetentionQuotaScopeType :param scope_id: The identifier of the scope the retention quota configuration applies to. For the ``application`` scope, this is the RUM application ID. diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index 67ebeb6f53..6eb52ee924 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -97,7 +97,7 @@ from datadog_api_client.v2.api.rum_insights_api import RUMInsightsApi from datadog_api_client.v2.api.rum_operations_api import RUMOperationsApi from datadog_api_client.v2.api.rum_remote_config_api import RUMRemoteConfigApi -from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi +from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi from datadog_api_client.v2.api.reference_tables_api import ReferenceTablesApi from datadog_api_client.v2.api.report_schedules_api import ReportSchedulesApi from datadog_api_client.v2.api.reporting_and_sharing_api import ReportingAndSharingApi @@ -242,7 +242,7 @@ "RUMInsightsApi", "RUMOperationsApi", "RUMRemoteConfigApi", - "RUMRetentionQuotaApi", + "RUMRetentionQuotasApi", "ReferenceTablesApi", "ReportSchedulesApi", "ReportingAndSharingApi", diff --git a/src/datadog_api_client/v2/model/rum_retention_quota_adaptive_config.py b/src/datadog_api_client/v2/model/rum_retention_quota_adaptive_config.py deleted file mode 100644 index 27ad0e331e..0000000000 --- a/src/datadog_api_client/v2/model/rum_retention_quota_adaptive_config.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 datadog_api_client.model_utils import ( - ModelNormal, - cached_property, -) - - -class RumRetentionQuotaAdaptiveConfig(ModelNormal): - validations = { - "max_retention_rate": { - "inclusive_maximum": 1, - "exclusive_minimum": 0, - }, - } - - @cached_property - def openapi_types(_): - return { - "max_retention_rate": (float,), - } - - attribute_map = { - "max_retention_rate": "max_retention_rate", - } - - def __init__(self_, max_retention_rate: float, **kwargs): - """ - The configuration used when ``mode`` is ``adaptive``. - - :param max_retention_rate: The maximum fraction of sessions to retain, in the range ``(0, 1]``. - :type max_retention_rate: float - """ - super().__init__(kwargs) - - self_.max_retention_rate = max_retention_rate diff --git a/src/datadog_api_client/v2/model/rum_retention_quota_config_attributes.py b/src/datadog_api_client/v2/model/rum_retention_quota_config_attributes.py index 892026bdb3..ce6fa092d7 100644 --- a/src/datadog_api_client/v2/model/rum_retention_quota_config_attributes.py +++ b/src/datadog_api_client/v2/model/rum_retention_quota_config_attributes.py @@ -15,7 +15,6 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode @@ -23,12 +22,10 @@ class RumRetentionQuotaConfigAttributes(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode return { - "adaptive": (RumRetentionQuotaAdaptiveConfig,), "custom": (RumRetentionQuotaCustomConfig,), "mode": (RumRetentionQuotaMode,), "org_id": (int,), @@ -37,7 +34,6 @@ def openapi_types(_): } attribute_map = { - "adaptive": "adaptive", "custom": "custom", "mode": "mode", "org_id": "org_id", @@ -49,7 +45,6 @@ def __init__( self_, mode: RumRetentionQuotaMode, org_id: int, - adaptive: Union[RumRetentionQuotaAdaptiveConfig, UnsetType] = unset, custom: Union[RumRetentionQuotaCustomConfig, UnsetType] = unset, updated_at: Union[datetime, UnsetType] = unset, updated_by: Union[str, UnsetType] = unset, @@ -58,14 +53,11 @@ def __init__( """ The RUM retention quota configuration properties. - :param adaptive: The configuration used when ``mode`` is ``adaptive``. - :type adaptive: RumRetentionQuotaAdaptiveConfig, optional - :param custom: The configuration used when ``mode`` is ``custom``. :type custom: RumRetentionQuotaCustomConfig, optional - :param mode: The retention quota mode. ``custom`` enforces a fixed session limit, while - ``adaptive`` dynamically adjusts retention. + :param mode: The retention quota mode. ``custom`` enforces a fixed session limit. + ``custom`` is the only supported mode. :type mode: RumRetentionQuotaMode :param org_id: The ID of the organization the retention quota configuration belongs to. @@ -77,8 +69,6 @@ def __init__( :param updated_by: The handle of the user who last updated the retention quota configuration. :type updated_by: str, optional """ - if adaptive is not unset: - kwargs["adaptive"] = adaptive if custom is not unset: kwargs["custom"] = custom if updated_at is not unset: diff --git a/src/datadog_api_client/v2/model/rum_retention_quota_config_update_attributes.py b/src/datadog_api_client/v2/model/rum_retention_quota_config_update_attributes.py index e36da834af..8f1ebbd711 100644 --- a/src/datadog_api_client/v2/model/rum_retention_quota_config_update_attributes.py +++ b/src/datadog_api_client/v2/model/rum_retention_quota_config_update_attributes.py @@ -14,7 +14,6 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode @@ -22,44 +21,32 @@ class RumRetentionQuotaConfigUpdateAttributes(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode return { - "adaptive": (RumRetentionQuotaAdaptiveConfig,), "custom": (RumRetentionQuotaCustomConfig,), "mode": (RumRetentionQuotaMode,), } attribute_map = { - "adaptive": "adaptive", "custom": "custom", "mode": "mode", } def __init__( - self_, - mode: RumRetentionQuotaMode, - adaptive: Union[RumRetentionQuotaAdaptiveConfig, UnsetType] = unset, - custom: Union[RumRetentionQuotaCustomConfig, UnsetType] = unset, - **kwargs, + self_, mode: RumRetentionQuotaMode, custom: Union[RumRetentionQuotaCustomConfig, UnsetType] = unset, **kwargs ): """ The RUM retention quota configuration properties to create or update. - :param adaptive: The configuration used when ``mode`` is ``adaptive``. - :type adaptive: RumRetentionQuotaAdaptiveConfig, optional - :param custom: The configuration used when ``mode`` is ``custom``. :type custom: RumRetentionQuotaCustomConfig, optional - :param mode: The retention quota mode. ``custom`` enforces a fixed session limit, while - ``adaptive`` dynamically adjusts retention. + :param mode: The retention quota mode. ``custom`` enforces a fixed session limit. + ``custom`` is the only supported mode. :type mode: RumRetentionQuotaMode """ - if adaptive is not unset: - kwargs["adaptive"] = adaptive if custom is not unset: kwargs["custom"] = custom super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/rum_retention_quota_mode.py b/src/datadog_api_client/v2/model/rum_retention_quota_mode.py index 7a2c6acebb..be25069864 100644 --- a/src/datadog_api_client/v2/model/rum_retention_quota_mode.py +++ b/src/datadog_api_client/v2/model/rum_retention_quota_mode.py @@ -14,19 +14,17 @@ class RumRetentionQuotaMode(ModelSimple): """ - The retention quota mode. `custom` enforces a fixed session limit, while - `adaptive` dynamically adjusts retention. + The retention quota mode. `custom` enforces a fixed session limit. + `custom` is the only supported mode. - :param value: Must be one of ["custom", "adaptive"]. + :param value: If omitted defaults to "custom". Must be one of ["custom"]. :type value: str """ allowed_values = { "custom", - "adaptive", } CUSTOM: ClassVar["RumRetentionQuotaMode"] - ADAPTIVE: ClassVar["RumRetentionQuotaMode"] @cached_property def openapi_types(_): @@ -36,4 +34,3 @@ def openapi_types(_): RumRetentionQuotaMode.CUSTOM = RumRetentionQuotaMode("custom") -RumRetentionQuotaMode.ADAPTIVE = RumRetentionQuotaMode("adaptive") diff --git a/src/datadog_api_client/v2/model/rum_retention_quota_scope_type.py b/src/datadog_api_client/v2/model/rum_retention_quota_scope_type.py index dd461b86c2..9a264dd337 100644 --- a/src/datadog_api_client/v2/model/rum_retention_quota_scope_type.py +++ b/src/datadog_api_client/v2/model/rum_retention_quota_scope_type.py @@ -15,6 +15,7 @@ class RumRetentionQuotaScopeType(ModelSimple): """ The type of scope the retention quota configuration applies to. + `application` is the only supported scope type. :param value: If omitted defaults to "application". Must be one of ["application"]. :type value: str diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index b168aca54c..92e92a34dd 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -8062,7 +8062,6 @@ from datadog_api_client.v2.model.rum_retention_filters_order_request import RumRetentionFiltersOrderRequest from datadog_api_client.v2.model.rum_retention_filters_order_response import RumRetentionFiltersOrderResponse from datadog_api_client.v2.model.rum_retention_filters_response import RumRetentionFiltersResponse -from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig from datadog_api_client.v2.model.rum_retention_quota_config_attributes import RumRetentionQuotaConfigAttributes from datadog_api_client.v2.model.rum_retention_quota_config_data import RumRetentionQuotaConfigData from datadog_api_client.v2.model.rum_retention_quota_config_response import RumRetentionQuotaConfigResponse @@ -16627,7 +16626,6 @@ "RumRetentionFiltersOrderRequest", "RumRetentionFiltersOrderResponse", "RumRetentionFiltersResponse", - "RumRetentionQuotaAdaptiveConfig", "RumRetentionQuotaConfigAttributes", "RumRetentionQuotaConfigData", "RumRetentionQuotaConfigResponse", diff --git a/tests/v2/features/rum_retention_quota.feature b/tests/v2/features/rum_retention_quota.feature deleted file mode 100644 index 527a1597d4..0000000000 --- a/tests/v2/features/rum_retention_quota.feature +++ /dev/null @@ -1,100 +0,0 @@ -@endpoint(rum-retention-quota) @endpoint(rum-retention-quota-v2) -Feature: RUM Retention Quota - Manage RUM retention quota configurations for your organization's RUM - applications. - - Background: - Given a valid "apiKeyAuth" key in the system - And a valid "appKeyAuth" key in the system - And an instance of "RUMRetentionQuota" API - - @skip @team:DataDog/rum-backend - Scenario: Create or update a RUM retention quota config returns "Bad Request" response - Given new "UpsertRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "invalid-scope-id" - And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_quota_config"}} - When the request is sent - Then the response status is 400 Bad Request - - @skip @team:DataDog/rum-backend - Scenario: Create or update a RUM retention quota config returns "Not Found" response - Given new "UpsertRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "{{ unique }}" - And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "{{ unique }}", "type": "rum_quota_config"}} - When the request is sent - Then the response status is 404 Not Found - - @skip @team:DataDog/rum-backend - Scenario: Create or update a RUM retention quota config returns "OK" response - Given new "UpsertRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "ced16651-97b6-4e67-8590-8caec3af0695" - And body with value {"data": {"attributes": {"adaptive": {"max_retention_rate": 0.5}, "custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "ced16651-97b6-4e67-8590-8caec3af0695", "type": "rum_quota_config"}} - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/rum-backend - Scenario: Delete a RUM retention quota configuration returns "Bad Request" response - Given new "DeleteRumQuotaConfig" request - And request contains "scope_type" parameter from "REPLACE.ME" - And request contains "scope_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @skip @team:DataDog/rum-backend - Scenario: Delete a RUM retention quota configuration returns "No Content" response - Given new "DeleteRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "ced16651-97b6-4e67-8590-8caec3af0695" - When the request is sent - Then the response status is 204 No Content - - @skip @team:DataDog/rum-backend - Scenario: Delete a RUM retention quota configuration returns "Not Found" response - Given new "DeleteRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "{{ unique }}" - When the request is sent - Then the response status is 404 Not Found - - @skip @team:DataDog/rum-backend - Scenario: Delete a RUM retention quota configuration returns "Not Found" response for an invalid scope_id - Given new "DeleteRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "invalid-scope-id" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/rum-backend - Scenario: Get a RUM retention quota configuration returns "Bad Request" response - Given new "GetRumQuotaConfig" request - And request contains "scope_type" parameter from "REPLACE.ME" - And request contains "scope_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @skip @team:DataDog/rum-backend - Scenario: Get a RUM retention quota configuration returns "Not Found" response - Given new "GetRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "1d4b9c34-7ac4-423a-91cf-9902d926e9b3" - When the request is sent - Then the response status is 404 Not Found - - @skip @team:DataDog/rum-backend - Scenario: Get a RUM retention quota configuration returns "Not Found" response for an invalid scope_id - Given new "GetRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "invalid-scope-id" - When the request is sent - Then the response status is 404 Not Found - - @skip @team:DataDog/rum-backend - Scenario: Get a RUM retention quota configuration returns "OK" response - Given new "GetRumQuotaConfig" request - And request contains "scope_type" parameter with value "application" - And request contains "scope_id" parameter with value "ced16651-97b6-4e67-8590-8caec3af0695" - When the request is sent - Then the response status is 200 OK diff --git a/tests/v2/features/rum_retention_quotas.feature b/tests/v2/features/rum_retention_quotas.feature new file mode 100644 index 0000000000..8f9c1bbe6e --- /dev/null +++ b/tests/v2/features/rum_retention_quotas.feature @@ -0,0 +1,84 @@ +@endpoint(rum-retention-quotas) @endpoint(rum-retention-quotas-v2) +Feature: RUM Retention Quotas + Manage RUM retention quota configurations for your organization's RUM + applications. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "RUMRetentionQuotas" API + + @generated @skip @team:DataDog/rum-backend + Scenario: Create or update a RUM retention quota config returns "Bad Request" response + Given new "UpsertRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_quota_config"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/rum-backend + Scenario: Create or update a RUM retention quota config returns "Not Found" response + Given new "UpsertRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_quota_config"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/rum-backend + Scenario: Create or update a RUM retention quota config returns "OK" response + Given new "UpsertRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"custom": {"daily_reset_time": "08:00", "daily_reset_timezone": "+09:00", "quota_reached_action": "stop", "session_limit": 1000000, "window_type": "daily"}, "mode": "custom"}, "id": "cd73a516-a481-4af5-8352-9b577465c77b", "type": "rum_quota_config"}} + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:DataDog/rum-backend + Scenario: Delete a RUM retention quota configuration returns "Bad Request" response + Given new "DeleteRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/rum-backend + Scenario: Delete a RUM retention quota configuration returns "No Content" response + Given new "DeleteRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 204 No Content + + @generated @skip @team:DataDog/rum-backend + Scenario: Delete a RUM retention quota configuration returns "Not Found" response + Given new "DeleteRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/rum-backend + Scenario: Get a RUM retention quota configuration returns "Bad Request" response + Given new "GetRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/rum-backend + Scenario: Get a RUM retention quota configuration returns "Not Found" response + Given new "GetRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/rum-backend + Scenario: Get a RUM retention quota configuration returns "OK" response + Given new "GetRumQuotaConfig" request + And request contains "scope_type" parameter from "REPLACE.ME" + And request contains "scope_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index b10abaebef..d74ca348ae 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -7147,19 +7147,19 @@ } }, "DeleteRumQuotaConfig": { - "tag": "RUM Retention Quota", + "tag": "RUM Retention Quotas", "undo": { "type": "idempotent" } }, "GetRumQuotaConfig": { - "tag": "RUM Retention Quota", + "tag": "RUM Retention Quotas", "undo": { "type": "safe" } }, "UpsertRumQuotaConfig": { - "tag": "RUM Retention Quota", + "tag": "RUM Retention Quotas", "undo": { "type": "idempotent" }