Skip to content

Commit ff26531

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add API Key ID to rum application response (#2857)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d7560c3 commit ff26531

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35837,6 +35837,12 @@ components:
3583735837
RUMApplicationAttributes:
3583835838
description: RUM application attributes.
3583935839
properties:
35840+
api_key_id:
35841+
description: ID of the API key associated with the application.
35842+
example: 123456789
35843+
format: int32
35844+
maximum: 2147483647
35845+
type: integer
3584035846
application_id:
3584135847
description: ID of the RUM application.
3584235848
example: abcd1234-0000-0000-abcd-1234abcd5678

src/datadog_api_client/v2/model/rum_application_attributes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
class RUMApplicationAttributes(ModelNormal):
2121
validations = {
22+
"api_key_id": {
23+
"inclusive_maximum": 2147483647,
24+
},
2225
"org_id": {
2326
"inclusive_maximum": 2147483647,
2427
},
@@ -29,6 +32,7 @@ def openapi_types(_):
2932
from datadog_api_client.v2.model.rum_product_scales import RUMProductScales
3033

3134
return {
35+
"api_key_id": (int,),
3236
"application_id": (str,),
3337
"client_token": (str,),
3438
"created_at": (int,),
@@ -44,6 +48,7 @@ def openapi_types(_):
4448
}
4549

4650
attribute_map = {
51+
"api_key_id": "api_key_id",
4752
"application_id": "application_id",
4853
"client_token": "client_token",
4954
"created_at": "created_at",
@@ -69,6 +74,7 @@ def __init__(
6974
type: str,
7075
updated_at: int,
7176
updated_by_handle: str,
77+
api_key_id: Union[int, UnsetType] = unset,
7278
hash: Union[str, UnsetType] = unset,
7379
is_active: Union[bool, UnsetType] = unset,
7480
product_scales: Union[RUMProductScales, UnsetType] = unset,
@@ -77,6 +83,9 @@ def __init__(
7783
"""
7884
RUM application attributes.
7985
86+
:param api_key_id: ID of the API key associated with the application.
87+
:type api_key_id: int, optional
88+
8089
:param application_id: ID of the RUM application.
8190
:type application_id: str
8291
@@ -113,6 +122,8 @@ def __init__(
113122
:param updated_by_handle: Handle of the updater user.
114123
:type updated_by_handle: str
115124
"""
125+
if api_key_id is not unset:
126+
kwargs["api_key_id"] = api_key_id
116127
if hash is not unset:
117128
kwargs["hash"] = hash
118129
if is_active is not unset:

0 commit comments

Comments
 (0)