Skip to content

Commit 4ea3e5e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing GetRUMApplications response field id (#1577)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 952d1cc commit 4ea3e5e

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-07-13 20:37:02.004842",
8-
"spec_repo_commit": "efde263a"
7+
"regenerated": "2023-07-13 21:23:39.298296",
8+
"spec_repo_commit": "70f8c389"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-13 20:37:02.018065",
13-
"spec_repo_commit": "efde263a"
12+
"regenerated": "2023-07-13 21:23:39.311523",
13+
"spec_repo_commit": "70f8c389"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10872,6 +10872,10 @@ components:
1087210872
properties:
1087310873
attributes:
1087410874
$ref: '#/components/schemas/RUMApplicationListAttributes'
10875+
id:
10876+
description: RUM application ID.
10877+
example: abcd1234-0000-0000-abcd-1234abcd5678
10878+
type: string
1087510879
type:
1087610880
$ref: '#/components/schemas/RUMApplicationListType'
1087710881
required:

src/datadog_api_client/v2/model/rum_application_list.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import TYPE_CHECKING
6+
from typing import Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
unset,
12+
UnsetType,
1113
)
1214

1315

@@ -24,24 +26,37 @@ def openapi_types(_):
2426

2527
return {
2628
"attributes": (RUMApplicationListAttributes,),
29+
"id": (str,),
2730
"type": (RUMApplicationListType,),
2831
}
2932

3033
attribute_map = {
3134
"attributes": "attributes",
35+
"id": "id",
3236
"type": "type",
3337
}
3438

35-
def __init__(self_, attributes: RUMApplicationListAttributes, type: RUMApplicationListType, **kwargs):
39+
def __init__(
40+
self_,
41+
attributes: RUMApplicationListAttributes,
42+
type: RUMApplicationListType,
43+
id: Union[str, UnsetType] = unset,
44+
**kwargs,
45+
):
3646
"""
3747
RUM application list.
3848
3949
:param attributes: RUM application list attributes.
4050
:type attributes: RUMApplicationListAttributes
4151
52+
:param id: RUM application ID.
53+
:type id: str, optional
54+
4255
:param type: RUM application list type.
4356
:type type: RUMApplicationListType
4457
"""
58+
if id is not unset:
59+
kwargs["id"] = id
4560
super().__init__(kwargs)
4661

4762
self_.attributes = attributes

0 commit comments

Comments
 (0)