Skip to content

Commit a55a0a8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Document fields remote_config_read_enabled and category (#1775)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 74f2c6c commit a55a0a8

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
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.6",
7-
"regenerated": "2023-11-21 19:36:29.340936",
8-
"spec_repo_commit": "83154a77"
7+
"regenerated": "2023-11-21 20:40:58.085799",
8+
"spec_repo_commit": "be350e98"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-21 19:36:29.357035",
13-
"spec_repo_commit": "83154a77"
12+
"regenerated": "2023-11-21 20:40:58.099688",
13+
"spec_repo_commit": "be350e98"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6240,6 +6240,9 @@ components:
62406240
FullAPIKeyAttributes:
62416241
description: Attributes of a full API key.
62426242
properties:
6243+
category:
6244+
description: The category of the API key.
6245+
type: string
62436246
created_at:
62446247
description: Creation date of the API key.
62456248
example: '2020-11-23T10:00:00.000Z'
@@ -6265,6 +6268,9 @@ components:
62656268
description: Name of the API key.
62666269
example: API Key for submitting metrics
62676270
type: string
6271+
remote_config_read_enabled:
6272+
description: The remote config read enabled status.
6273+
type: boolean
62686274
type: object
62696275
FullApplicationKey:
62706276
description: Datadog application key.
@@ -11752,6 +11758,9 @@ components:
1175211758
PartialAPIKeyAttributes:
1175311759
description: Attributes of a partial API key.
1175411760
properties:
11761+
category:
11762+
description: The category of the API key.
11763+
type: string
1175511764
created_at:
1175611765
description: Creation date of the API key.
1175711766
example: '2020-11-23T10:00:00.000Z'
@@ -11773,6 +11782,9 @@ components:
1177311782
description: Name of the API key.
1177411783
example: API Key for submitting metrics
1177511784
type: string
11785+
remote_config_read_enabled:
11786+
description: The remote config read enabled status.
11787+
type: boolean
1177611788
type: object
1177711789
PartialApplicationKey:
1177811790
description: Partial Datadog application key.

src/datadog_api_client/v2/model/full_api_key_attributes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@ class FullAPIKeyAttributes(ModelNormal):
2424
@cached_property
2525
def openapi_types(_):
2626
return {
27+
"category": (str,),
2728
"created_at": (str,),
2829
"key": (str,),
2930
"last4": (str,),
3031
"modified_at": (str,),
3132
"name": (str,),
33+
"remote_config_read_enabled": (bool,),
3234
}
3335

3436
attribute_map = {
37+
"category": "category",
3538
"created_at": "created_at",
3639
"key": "key",
3740
"last4": "last4",
3841
"modified_at": "modified_at",
3942
"name": "name",
43+
"remote_config_read_enabled": "remote_config_read_enabled",
4044
}
4145
read_only_vars = {
4246
"created_at",
@@ -47,16 +51,21 @@ def openapi_types(_):
4751

4852
def __init__(
4953
self_,
54+
category: Union[str, UnsetType] = unset,
5055
created_at: Union[str, UnsetType] = unset,
5156
key: Union[str, UnsetType] = unset,
5257
last4: Union[str, UnsetType] = unset,
5358
modified_at: Union[str, UnsetType] = unset,
5459
name: Union[str, UnsetType] = unset,
60+
remote_config_read_enabled: Union[bool, UnsetType] = unset,
5561
**kwargs,
5662
):
5763
"""
5864
Attributes of a full API key.
5965
66+
:param category: The category of the API key.
67+
:type category: str, optional
68+
6069
:param created_at: Creation date of the API key.
6170
:type created_at: str, optional
6271
@@ -71,7 +80,12 @@ def __init__(
7180
7281
:param name: Name of the API key.
7382
:type name: str, optional
83+
84+
:param remote_config_read_enabled: The remote config read enabled status.
85+
:type remote_config_read_enabled: bool, optional
7486
"""
87+
if category is not unset:
88+
kwargs["category"] = category
7589
if created_at is not unset:
7690
kwargs["created_at"] = created_at
7791
if key is not unset:
@@ -82,4 +96,6 @@ def __init__(
8296
kwargs["modified_at"] = modified_at
8397
if name is not unset:
8498
kwargs["name"] = name
99+
if remote_config_read_enabled is not unset:
100+
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
85101
super().__init__(kwargs)

src/datadog_api_client/v2/model/partial_api_key_attributes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,21 @@ class PartialAPIKeyAttributes(ModelNormal):
2424
@cached_property
2525
def openapi_types(_):
2626
return {
27+
"category": (str,),
2728
"created_at": (str,),
2829
"last4": (str,),
2930
"modified_at": (str,),
3031
"name": (str,),
32+
"remote_config_read_enabled": (bool,),
3133
}
3234

3335
attribute_map = {
36+
"category": "category",
3437
"created_at": "created_at",
3538
"last4": "last4",
3639
"modified_at": "modified_at",
3740
"name": "name",
41+
"remote_config_read_enabled": "remote_config_read_enabled",
3842
}
3943
read_only_vars = {
4044
"created_at",
@@ -44,15 +48,20 @@ def openapi_types(_):
4448

4549
def __init__(
4650
self_,
51+
category: Union[str, UnsetType] = unset,
4752
created_at: Union[str, UnsetType] = unset,
4853
last4: Union[str, UnsetType] = unset,
4954
modified_at: Union[str, UnsetType] = unset,
5055
name: Union[str, UnsetType] = unset,
56+
remote_config_read_enabled: Union[bool, UnsetType] = unset,
5157
**kwargs,
5258
):
5359
"""
5460
Attributes of a partial API key.
5561
62+
:param category: The category of the API key.
63+
:type category: str, optional
64+
5665
:param created_at: Creation date of the API key.
5766
:type created_at: str, optional
5867
@@ -64,7 +73,12 @@ def __init__(
6473
6574
:param name: Name of the API key.
6675
:type name: str, optional
76+
77+
:param remote_config_read_enabled: The remote config read enabled status.
78+
:type remote_config_read_enabled: bool, optional
6779
"""
80+
if category is not unset:
81+
kwargs["category"] = category
6882
if created_at is not unset:
6983
kwargs["created_at"] = created_at
7084
if last4 is not unset:
@@ -73,4 +87,6 @@ def __init__(
7387
kwargs["modified_at"] = modified_at
7488
if name is not unset:
7589
kwargs["name"] = name
90+
if remote_config_read_enabled is not unset:
91+
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
7692
super().__init__(kwargs)

0 commit comments

Comments
 (0)