Skip to content

Commit eee3cfd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 11440e7 of spec repo
1 parent 34e80b6 commit eee3cfd

17 files changed

Lines changed: 128 additions & 234 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,9 @@ components:
17991799
example: cd73a516-a481-4af5-8352-9b577465c77b
18001800
type: string
18011801
RumRetentionQuotaScopeTypeParameter:
1802-
description: The type of scope the retention quota configuration applies to.
1802+
description: |-
1803+
The type of scope the retention quota configuration applies to.
1804+
`application` is the only supported scope type.
18031805
in: path
18041806
name: scope_type
18051807
required: true
@@ -92488,25 +92490,9 @@ components:
9248892490
$ref: "#/components/schemas/RumRetentionFilterData"
9248992491
type: array
9249092492
type: object
92491-
RumRetentionQuotaAdaptiveConfig:
92492-
description: The configuration used when `mode` is `adaptive`.
92493-
properties:
92494-
max_retention_rate:
92495-
description: The maximum fraction of sessions to retain, in the range `(0, 1]`.
92496-
example: 0.5
92497-
exclusiveMinimum: true
92498-
format: double
92499-
maximum: 1
92500-
minimum: 0
92501-
type: number
92502-
required:
92503-
- max_retention_rate
92504-
type: object
9250592493
RumRetentionQuotaConfigAttributes:
9250692494
description: The RUM retention quota configuration properties.
9250792495
properties:
92508-
adaptive:
92509-
$ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig"
9251092496
custom:
9251192497
$ref: "#/components/schemas/RumRetentionQuotaCustomConfig"
9251292498
mode:
@@ -92564,8 +92550,6 @@ components:
9256492550
RumRetentionQuotaConfigUpdateAttributes:
9256592551
description: The RUM retention quota configuration properties to create or update.
9256692552
properties:
92567-
adaptive:
92568-
$ref: "#/components/schemas/RumRetentionQuotaAdaptiveConfig"
9256992553
custom:
9257092554
$ref: "#/components/schemas/RumRetentionQuotaCustomConfig"
9257192555
mode:
@@ -92631,14 +92615,13 @@ components:
9263192615
type: object
9263292616
RumRetentionQuotaMode:
9263392617
description: |-
92634-
The retention quota mode. `custom` enforces a fixed session limit, while
92635-
`adaptive` dynamically adjusts retention.
92618+
The retention quota mode. `custom` enforces a fixed session limit.
92619+
`custom` is the only supported mode.
9263692620
enum:
9263792621
- custom
92638-
- adaptive
9263992622
example: custom
9264092623
type: string
92641-
x-enum-varnames: ["CUSTOM", "ADAPTIVE"]
92624+
x-enum-varnames: ["CUSTOM"]
9264292625
RumRetentionQuotaReachedAction:
9264392626
description: The action to take when the session quota is reached.
9264492627
enum:
@@ -92649,7 +92632,9 @@ components:
9264992632
x-enum-varnames: ["STOP", "SLOWDOWN"]
9265092633
RumRetentionQuotaScopeType:
9265192634
default: application
92652-
description: The type of scope the retention quota configuration applies to.
92635+
description: |-
92636+
The type of scope the retention quota configuration applies to.
92637+
`application` is the only supported scope type.
9265392638
enum:
9265492639
- application
9265592640
example: application
@@ -187415,7 +187400,7 @@ paths:
187415187400
$ref: "#/components/responses/TooManyRequestsResponse"
187416187401
summary: Delete a RUM retention quota configuration
187417187402
tags:
187418-
- RUM Retention Quota
187403+
- RUM Retention Quotas
187419187404
x-permission:
187420187405
operator: OR
187421187406
permissions:
@@ -187478,7 +187463,7 @@ paths:
187478187463
$ref: "#/components/responses/TooManyRequestsResponse"
187479187464
summary: Get a RUM retention quota configuration
187480187465
tags:
187481-
- RUM Retention Quota
187466+
- RUM Retention Quotas
187482187467
x-permission:
187483187468
operator: OR
187484187469
permissions:
@@ -187564,7 +187549,7 @@ paths:
187564187549
$ref: "#/components/responses/TooManyRequestsResponse"
187565187550
summary: Create or update a RUM retention quota config
187566187551
tags:
187567-
- RUM Retention Quota
187552+
- RUM Retention Quotas
187568187553
x-codegen-request-body-name: body
187569187554
x-permission:
187570187555
operator: OR
@@ -218487,7 +218472,7 @@ tags:
218487218472
name: RUM Remote Config
218488218473
- description: |-
218489218474
Manage RUM retention quota configurations for your organization's RUM applications.
218490-
name: RUM Retention Quota
218475+
name: RUM Retention Quotas
218491218476
- description: View and manage Reference Tables in your organization.
218492218477
name: Reference Tables
218493218478
- description: |-

docs/datadog_api_client.v2.api.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,10 +781,10 @@ datadog\_api\_client.v2.api.rum\_retention\_filters\_api module
781781
:members:
782782
:show-inheritance:
783783

784-
datadog\_api\_client.v2.api.rum\_retention\_quota\_api module
785-
-------------------------------------------------------------
784+
datadog\_api\_client.v2.api.rum\_retention\_quotas\_api module
785+
--------------------------------------------------------------
786786

787-
.. automodule:: datadog_api_client.v2.api.rum_retention_quota_api
787+
.. automodule:: datadog_api_client.v2.api.rum_retention_quotas_api
788788
:members:
789789
:show-inheritance:
790790

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39638,13 +39638,6 @@ datadog\_api\_client.v2.model.rum\_retention\_filters\_response module
3963839638
:members:
3963939639
:show-inheritance:
3964039640

39641-
datadog\_api\_client.v2.model.rum\_retention\_quota\_adaptive\_config module
39642-
----------------------------------------------------------------------------
39643-
39644-
.. automodule:: datadog_api_client.v2.model.rum_retention_quota_adaptive_config
39645-
:members:
39646-
:show-inheritance:
39647-
3964839641
datadog\_api\_client.v2.model.rum\_retention\_quota\_config\_attributes module
3964939642
------------------------------------------------------------------------------
3965039643

examples/v2/rum-retention-quota/DeleteRumQuotaConfig.py renamed to examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi
6+
from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi
77
from datadog_api_client.v2.model.rum_retention_quota_scope_type import RumRetentionQuotaScopeType
88

99
configuration = Configuration()
1010
with ApiClient(configuration) as api_client:
11-
api_instance = RUMRetentionQuotaApi(api_client)
11+
api_instance = RUMRetentionQuotasApi(api_client)
1212
api_instance.delete_rum_quota_config(
1313
scope_type=RumRetentionQuotaScopeType.APPLICATION,
14-
scope_id="ced16651-97b6-4e67-8590-8caec3af0695",
14+
scope_id="cd73a516-a481-4af5-8352-9b577465c77b",
1515
)

examples/v2/rum-retention-quota/GetRumQuotaConfig.py renamed to examples/v2/rum-retention-quotas/GetRumQuotaConfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi
6+
from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi
77
from datadog_api_client.v2.model.rum_retention_quota_scope_type import RumRetentionQuotaScopeType
88

99
configuration = Configuration()
1010
with ApiClient(configuration) as api_client:
11-
api_instance = RUMRetentionQuotaApi(api_client)
11+
api_instance = RUMRetentionQuotasApi(api_client)
1212
response = api_instance.get_rum_quota_config(
1313
scope_type=RumRetentionQuotaScopeType.APPLICATION,
14-
scope_id="ced16651-97b6-4e67-8590-8caec3af0695",
14+
scope_id="cd73a516-a481-4af5-8352-9b577465c77b",
1515
)
1616

1717
print(response)

examples/v2/rum-retention-quota/UpsertRumQuotaConfig.py renamed to examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
6-
from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi
7-
from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig
6+
from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi
87
from datadog_api_client.v2.model.rum_retention_quota_config_type import RumRetentionQuotaConfigType
98
from datadog_api_client.v2.model.rum_retention_quota_config_update_attributes import (
109
RumRetentionQuotaConfigUpdateAttributes,
@@ -20,9 +19,6 @@
2019
body = RumRetentionQuotaConfigUpdateRequest(
2120
data=RumRetentionQuotaConfigUpdateData(
2221
attributes=RumRetentionQuotaConfigUpdateAttributes(
23-
adaptive=RumRetentionQuotaAdaptiveConfig(
24-
max_retention_rate=0.5,
25-
),
2622
custom=RumRetentionQuotaCustomConfig(
2723
daily_reset_time="08:00",
2824
daily_reset_timezone="+09:00",
@@ -32,16 +28,16 @@
3228
),
3329
mode=RumRetentionQuotaMode.CUSTOM,
3430
),
35-
id="ced16651-97b6-4e67-8590-8caec3af0695",
31+
id="cd73a516-a481-4af5-8352-9b577465c77b",
3632
type=RumRetentionQuotaConfigType.RUM_QUOTA_CONFIG,
3733
),
3834
)
3935

4036
configuration = Configuration()
4137
with ApiClient(configuration) as api_client:
42-
api_instance = RUMRetentionQuotaApi(api_client)
38+
api_instance = RUMRetentionQuotasApi(api_client)
4339
response = api_instance.upsert_rum_quota_config(
44-
scope_type=RumRetentionQuotaScopeType.APPLICATION, scope_id="ced16651-97b6-4e67-8590-8caec3af0695", body=body
40+
scope_type=RumRetentionQuotaScopeType.APPLICATION, scope_id="cd73a516-a481-4af5-8352-9b577465c77b", body=body
4541
)
4642

4743
print(response)

src/datadog_api_client/v2/api/rum_retention_quota_api.py renamed to src/datadog_api_client/v2/api/rum_retention_quotas_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from datadog_api_client.v2.model.rum_retention_quota_config_update_request import RumRetentionQuotaConfigUpdateRequest
1313

1414

15-
class RUMRetentionQuotaApi:
15+
class RUMRetentionQuotasApi:
1616
"""
1717
Manage RUM retention quota configurations for your organization's RUM applications.
1818
"""
@@ -122,6 +122,7 @@ def delete_rum_quota_config(
122122
Delete the RUM retention quota configuration for a given scope.
123123
124124
:param scope_type: The type of scope the retention quota configuration applies to.
125+
``application`` is the only supported scope type.
125126
:type scope_type: RumRetentionQuotaScopeType
126127
:param scope_id: The identifier of the scope the retention quota configuration applies to.
127128
For the ``application`` scope, this is the RUM application ID.
@@ -145,6 +146,7 @@ def get_rum_quota_config(
145146
Get the RUM retention quota configuration for a given scope.
146147
147148
:param scope_type: The type of scope the retention quota configuration applies to.
149+
``application`` is the only supported scope type.
148150
:type scope_type: RumRetentionQuotaScopeType
149151
:param scope_id: The identifier of the scope the retention quota configuration applies to.
150152
For the ``application`` scope, this is the RUM application ID.
@@ -170,6 +172,7 @@ def upsert_rum_quota_config(
170172
Returns the retention quota configuration object when the request is successful.
171173
172174
:param scope_type: The type of scope the retention quota configuration applies to.
175+
``application`` is the only supported scope type.
173176
:type scope_type: RumRetentionQuotaScopeType
174177
:param scope_id: The identifier of the scope the retention quota configuration applies to.
175178
For the ``application`` scope, this is the RUM application ID.

src/datadog_api_client/v2/apis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
from datadog_api_client.v2.api.rum_insights_api import RUMInsightsApi
9898
from datadog_api_client.v2.api.rum_operations_api import RUMOperationsApi
9999
from datadog_api_client.v2.api.rum_remote_config_api import RUMRemoteConfigApi
100-
from datadog_api_client.v2.api.rum_retention_quota_api import RUMRetentionQuotaApi
100+
from datadog_api_client.v2.api.rum_retention_quotas_api import RUMRetentionQuotasApi
101101
from datadog_api_client.v2.api.reference_tables_api import ReferenceTablesApi
102102
from datadog_api_client.v2.api.report_schedules_api import ReportSchedulesApi
103103
from datadog_api_client.v2.api.reporting_and_sharing_api import ReportingAndSharingApi
@@ -242,7 +242,7 @@
242242
"RUMInsightsApi",
243243
"RUMOperationsApi",
244244
"RUMRemoteConfigApi",
245-
"RUMRetentionQuotaApi",
245+
"RUMRetentionQuotasApi",
246246
"ReferenceTablesApi",
247247
"ReportSchedulesApi",
248248
"ReportingAndSharingApi",

src/datadog_api_client/v2/model/rum_retention_quota_adaptive_config.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/datadog_api_client/v2/model/rum_retention_quota_config_attributes.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,17 @@
1515

1616

1717
if TYPE_CHECKING:
18-
from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig
1918
from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig
2019
from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode
2120

2221

2322
class RumRetentionQuotaConfigAttributes(ModelNormal):
2423
@cached_property
2524
def openapi_types(_):
26-
from datadog_api_client.v2.model.rum_retention_quota_adaptive_config import RumRetentionQuotaAdaptiveConfig
2725
from datadog_api_client.v2.model.rum_retention_quota_custom_config import RumRetentionQuotaCustomConfig
2826
from datadog_api_client.v2.model.rum_retention_quota_mode import RumRetentionQuotaMode
2927

3028
return {
31-
"adaptive": (RumRetentionQuotaAdaptiveConfig,),
3229
"custom": (RumRetentionQuotaCustomConfig,),
3330
"mode": (RumRetentionQuotaMode,),
3431
"org_id": (int,),
@@ -37,7 +34,6 @@ def openapi_types(_):
3734
}
3835

3936
attribute_map = {
40-
"adaptive": "adaptive",
4137
"custom": "custom",
4238
"mode": "mode",
4339
"org_id": "org_id",
@@ -49,7 +45,6 @@ def __init__(
4945
self_,
5046
mode: RumRetentionQuotaMode,
5147
org_id: int,
52-
adaptive: Union[RumRetentionQuotaAdaptiveConfig, UnsetType] = unset,
5348
custom: Union[RumRetentionQuotaCustomConfig, UnsetType] = unset,
5449
updated_at: Union[datetime, UnsetType] = unset,
5550
updated_by: Union[str, UnsetType] = unset,
@@ -58,14 +53,11 @@ def __init__(
5853
"""
5954
The RUM retention quota configuration properties.
6055
61-
:param adaptive: The configuration used when ``mode`` is ``adaptive``.
62-
:type adaptive: RumRetentionQuotaAdaptiveConfig, optional
63-
6456
:param custom: The configuration used when ``mode`` is ``custom``.
6557
:type custom: RumRetentionQuotaCustomConfig, optional
6658
67-
:param mode: The retention quota mode. ``custom`` enforces a fixed session limit, while
68-
``adaptive`` dynamically adjusts retention.
59+
:param mode: The retention quota mode. ``custom`` enforces a fixed session limit.
60+
``custom`` is the only supported mode.
6961
:type mode: RumRetentionQuotaMode
7062
7163
:param org_id: The ID of the organization the retention quota configuration belongs to.
@@ -77,8 +69,6 @@ def __init__(
7769
:param updated_by: The handle of the user who last updated the retention quota configuration.
7870
:type updated_by: str, optional
7971
"""
80-
if adaptive is not unset:
81-
kwargs["adaptive"] = adaptive
8272
if custom is not unset:
8373
kwargs["custom"] = custom
8474
if updated_at is not unset:

0 commit comments

Comments
 (0)