Skip to content

Commit d6ca936

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing id attribute for Confluent Account Response (#1560)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b13594b commit d6ca936

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-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.5",
7-
"regenerated": "2023-07-07 15:50:05.076921",
8-
"spec_repo_commit": "6f781b6c"
7+
"regenerated": "2023-07-07 16:55:26.968751",
8+
"spec_repo_commit": "64593ced"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-07 15:50:05.089843",
13-
"spec_repo_commit": "6f781b6c"
12+
"regenerated": "2023-07-07 16:55:26.986519",
13+
"spec_repo_commit": "64593ced"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,6 +3316,10 @@ components:
33163316
extra metric tags.
33173317
example: false
33183318
type: boolean
3319+
id:
3320+
description: The ID associated with the Confluent resource.
3321+
example: resource_id_abc123
3322+
type: string
33193323
resource_type:
33203324
description: The resource type of the Resource. Can be `kafka`, `connector`,
33213325
`ksql`, or `schema_registry`.

src/datadog_api_client/v2/model/confluent_resource_response_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ class ConfluentResourceResponseAttributes(ModelNormal):
1818
def openapi_types(_):
1919
return {
2020
"enable_custom_metrics": (bool,),
21+
"id": (str,),
2122
"resource_type": (str,),
2223
"tags": ([str],),
2324
}
2425

2526
attribute_map = {
2627
"enable_custom_metrics": "enable_custom_metrics",
28+
"id": "id",
2729
"resource_type": "resource_type",
2830
"tags": "tags",
2931
}
@@ -32,6 +34,7 @@ def __init__(
3234
self_,
3335
resource_type: str,
3436
enable_custom_metrics: Union[bool, UnsetType] = unset,
37+
id: Union[str, UnsetType] = unset,
3538
tags: Union[List[str], UnsetType] = unset,
3639
**kwargs,
3740
):
@@ -41,6 +44,9 @@ def __init__(
4144
:param enable_custom_metrics: Enable the ``custom.consumer_lag_offset`` metric, which contains extra metric tags.
4245
:type enable_custom_metrics: bool, optional
4346
47+
:param id: The ID associated with the Confluent resource.
48+
:type id: str, optional
49+
4450
:param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``.
4551
:type resource_type: str
4652
@@ -49,6 +55,8 @@ def __init__(
4955
"""
5056
if enable_custom_metrics is not unset:
5157
kwargs["enable_custom_metrics"] = enable_custom_metrics
58+
if id is not unset:
59+
kwargs["id"] = id
5260
if tags is not unset:
5361
kwargs["tags"] = tags
5462
super().__init__(kwargs)

0 commit comments

Comments
 (0)