Skip to content

Commit 77e6830

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
RUM Applications Management API add client_token (#1243)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 9df27c1 commit 77e6830

25 files changed

+359
-45
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.4",
7-
"regenerated": "2022-11-30 16:38:27.467657",
8-
"spec_repo_commit": "0035b416"
7+
"regenerated": "2022-12-05 18:23:44.363298",
8+
"spec_repo_commit": "1cc231e1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-30 16:38:27.608166",
13-
"spec_repo_commit": "0035b416"
12+
"regenerated": "2022-12-05 18:23:44.375782",
13+
"spec_repo_commit": "1cc231e1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6913,6 +6913,10 @@ components:
69136913
description: ID of the RUM application.
69146914
example: abcd1234-0000-0000-abcd-1234abcd5678
69156915
type: string
6916+
client_token:
6917+
description: Client token of the RUM application.
6918+
example: abcd1234efgh5678ijkl90abcd1234efgh0
6919+
type: string
69166920
created_at:
69176921
description: Timestamp in ms of the creation date.
69186922
example: 1659479836169
@@ -6923,9 +6927,12 @@ components:
69236927
example: john.doe
69246928
type: string
69256929
hash:
6926-
description: Client token of the RUM application.
6927-
example: abcd1234efgh5678ijkl90abcd1234efgh0
6930+
description: Hash of the RUM application. Optional.
69286931
type: string
6932+
is_active:
6933+
description: Indicates if the RUM application is active.
6934+
example: true
6935+
type: boolean
69296936
name:
69306937
description: Name of the RUM application.
69316938
example: my_rum_application
@@ -6952,6 +6959,7 @@ components:
69526959
type: string
69536960
required:
69546961
- application_id
6962+
- client_token
69556963
- created_at
69566964
- created_by_handle
69576965
- name
@@ -7003,6 +7011,83 @@ components:
70037011
type: string
70047012
x-enum-varnames:
70057013
- RUM_APPLICATION_CREATE
7014+
RUMApplicationList:
7015+
description: RUM application list.
7016+
properties:
7017+
attributes:
7018+
$ref: '#/components/schemas/RUMApplicationListAttributes'
7019+
type:
7020+
$ref: '#/components/schemas/RUMApplicationListType'
7021+
required:
7022+
- attributes
7023+
- type
7024+
type: object
7025+
RUMApplicationListAttributes:
7026+
description: RUM application list attributes.
7027+
properties:
7028+
application_id:
7029+
description: ID of the RUM application.
7030+
example: abcd1234-0000-0000-abcd-1234abcd5678
7031+
type: string
7032+
created_at:
7033+
description: Timestamp in ms of the creation date.
7034+
example: 1659479836169
7035+
format: int64
7036+
type: integer
7037+
created_by_handle:
7038+
description: Handle of the creator user.
7039+
example: john.doe
7040+
type: string
7041+
hash:
7042+
description: Hash of the RUM application. Optional.
7043+
type: string
7044+
is_active:
7045+
description: Indicates if the RUM application is active.
7046+
example: true
7047+
type: boolean
7048+
name:
7049+
description: Name of the RUM application.
7050+
example: my_rum_application
7051+
type: string
7052+
org_id:
7053+
description: Org ID of the RUM application.
7054+
example: 999
7055+
format: int32
7056+
maximum: 2147483647
7057+
type: integer
7058+
type:
7059+
description: Type of the RUM application. Supported values are `browser`,
7060+
`ios`, `android`, `react-native`, `flutter`.
7061+
example: browser
7062+
type: string
7063+
updated_at:
7064+
description: Timestamp in ms of the last update date.
7065+
example: 1659479836169
7066+
format: int64
7067+
type: integer
7068+
updated_by_handle:
7069+
description: Handle of the updater user.
7070+
example: jane.doe
7071+
type: string
7072+
required:
7073+
- application_id
7074+
- created_at
7075+
- created_by_handle
7076+
- name
7077+
- org_id
7078+
- type
7079+
- updated_at
7080+
- updated_by_handle
7081+
type: object
7082+
RUMApplicationListType:
7083+
default: rum_application
7084+
description: RUM application list type.
7085+
enum:
7086+
- rum_application
7087+
example: rum_application
7088+
type: string
7089+
x-enum-varnames:
7090+
- RUM_APPLICATION
70067091
RUMApplicationResponse:
70077092
description: RUM application response.
70087093
properties:
@@ -7069,7 +7154,7 @@ components:
70697154
data:
70707155
description: RUM applications array response.
70717156
items:
7072-
$ref: '#/components/schemas/RUMApplication'
7157+
$ref: '#/components/schemas/RUMApplicationList'
70737158
type: array
70747159
type: object
70757160
RUMBucketResponse:

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,6 +3389,27 @@ rum\_application\_create\_type
33893389
:members:
33903390
:show-inheritance:
33913391

3392+
rum\_application\_list
3393+
----------------------
3394+
3395+
.. automodule:: datadog_api_client.v2.model.rum_application_list
3396+
:members:
3397+
:show-inheritance:
3398+
3399+
rum\_application\_list\_attributes
3400+
----------------------------------
3401+
3402+
.. automodule:: datadog_api_client.v2.model.rum_application_list_attributes
3403+
:members:
3404+
:show-inheritance:
3405+
3406+
rum\_application\_list\_type
3407+
----------------------------
3408+
3409+
.. automodule:: datadog_api_client.v2.model.rum_application_list_type
3410+
:members:
3411+
:show-inheritance:
3412+
33923413
rum\_application\_response
33933414
--------------------------
33943415

src/datadog_api_client/v2/model/rum_application_attributes.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ class RUMApplicationAttributes(ModelNormal):
2424
def openapi_types(_):
2525
return {
2626
"application_id": (str,),
27+
"client_token": (str,),
2728
"created_at": (int,),
2829
"created_by_handle": (str,),
2930
"hash": (str,),
31+
"is_active": (bool,),
3032
"name": (str,),
3133
"org_id": (int,),
3234
"type": (str,),
@@ -36,9 +38,11 @@ def openapi_types(_):
3638

3739
attribute_map = {
3840
"application_id": "application_id",
41+
"client_token": "client_token",
3942
"created_at": "created_at",
4043
"created_by_handle": "created_by_handle",
4144
"hash": "hash",
45+
"is_active": "is_active",
4246
"name": "name",
4347
"org_id": "org_id",
4448
"type": "type",
@@ -49,6 +53,7 @@ def openapi_types(_):
4953
def __init__(
5054
self_,
5155
application_id: str,
56+
client_token: str,
5257
created_at: int,
5358
created_by_handle: str,
5459
name: str,
@@ -57,6 +62,7 @@ def __init__(
5762
updated_at: int,
5863
updated_by_handle: str,
5964
hash: Union[str, UnsetType] = unset,
65+
is_active: Union[bool, UnsetType] = unset,
6066
**kwargs,
6167
):
6268
"""
@@ -65,15 +71,21 @@ def __init__(
6571
:param application_id: ID of the RUM application.
6672
:type application_id: str
6773
74+
:param client_token: Client token of the RUM application.
75+
:type client_token: str
76+
6877
:param created_at: Timestamp in ms of the creation date.
6978
:type created_at: int
7079
7180
:param created_by_handle: Handle of the creator user.
7281
:type created_by_handle: str
7382
74-
:param hash: Client token of the RUM application.
83+
:param hash: Hash of the RUM application. Optional.
7584
:type hash: str, optional
7685
86+
:param is_active: Indicates if the RUM application is active.
87+
:type is_active: bool, optional
88+
7789
:param name: Name of the RUM application.
7890
:type name: str
7991
@@ -91,9 +103,12 @@ def __init__(
91103
"""
92104
if hash is not unset:
93105
kwargs["hash"] = hash
106+
if is_active is not unset:
107+
kwargs["is_active"] = is_active
94108
super().__init__(kwargs)
95109

96110
self_.application_id = application_id
111+
self_.client_token = client_token
97112
self_.created_at = created_at
98113
self_.created_by_handle = created_by_handle
99114
self_.name = name
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.rum_application_list_attributes import RUMApplicationListAttributes
16+
from datadog_api_client.v2.model.rum_application_list_type import RUMApplicationListType
17+
18+
19+
class RUMApplicationList(ModelNormal):
20+
@cached_property
21+
def openapi_types(_):
22+
from datadog_api_client.v2.model.rum_application_list_attributes import RUMApplicationListAttributes
23+
from datadog_api_client.v2.model.rum_application_list_type import RUMApplicationListType
24+
25+
return {
26+
"attributes": (RUMApplicationListAttributes,),
27+
"type": (RUMApplicationListType,),
28+
}
29+
30+
attribute_map = {
31+
"attributes": "attributes",
32+
"type": "type",
33+
}
34+
35+
def __init__(self_, attributes: RUMApplicationListAttributes, type: RUMApplicationListType, **kwargs):
36+
"""
37+
RUM application list.
38+
39+
:param attributes: RUM application list attributes.
40+
:type attributes: RUMApplicationListAttributes
41+
42+
:param type: RUM application list type.
43+
:type type: RUMApplicationListType
44+
"""
45+
super().__init__(kwargs)
46+
47+
self_.attributes = attributes
48+
self_.type = type

0 commit comments

Comments
 (0)