Skip to content

Add missing id attribute for Confluent Account Response #1560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-07 15:50:05.076921",
"spec_repo_commit": "6f781b6c"
"regenerated": "2023-07-07 16:55:26.968751",
"spec_repo_commit": "64593ced"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-07 15:50:05.089843",
"spec_repo_commit": "6f781b6c"
"regenerated": "2023-07-07 16:55:26.986519",
"spec_repo_commit": "64593ced"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3316,6 +3316,10 @@ components:
extra metric tags.
example: false
type: boolean
id:
description: The ID associated with the Confluent resource.
example: resource_id_abc123
type: string
resource_type:
description: The resource type of the Resource. Can be `kafka`, `connector`,
`ksql`, or `schema_registry`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ class ConfluentResourceResponseAttributes(ModelNormal):
def openapi_types(_):
return {
"enable_custom_metrics": (bool,),
"id": (str,),
"resource_type": (str,),
"tags": ([str],),
}

attribute_map = {
"enable_custom_metrics": "enable_custom_metrics",
"id": "id",
"resource_type": "resource_type",
"tags": "tags",
}
Expand All @@ -32,6 +34,7 @@ def __init__(
self_,
resource_type: str,
enable_custom_metrics: Union[bool, UnsetType] = unset,
id: Union[str, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
Expand All @@ -41,6 +44,9 @@ def __init__(
:param enable_custom_metrics: Enable the ``custom.consumer_lag_offset`` metric, which contains extra metric tags.
:type enable_custom_metrics: bool, optional

:param id: The ID associated with the Confluent resource.
:type id: str, optional

:param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``.
:type resource_type: str

Expand All @@ -49,6 +55,8 @@ def __init__(
"""
if enable_custom_metrics is not unset:
kwargs["enable_custom_metrics"] = enable_custom_metrics
if id is not unset:
kwargs["id"] = id
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)
Expand Down