Skip to content

Mark resource_type attribute as required for Confluent Account #1400

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.4",
"regenerated": "2023-04-07 17:48:38.382305",
"spec_repo_commit": "e6f88173"
"regenerated": "2023-04-10 11:13:51.597147",
"spec_repo_commit": "04eeb6ee"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-07 17:48:38.394465",
"spec_repo_commit": "e6f88173"
"regenerated": "2023-04-10 11:13:51.609315",
"spec_repo_commit": "04eeb6ee"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,8 @@ components:
items:
type: string
type: array
required:
- resource_type
type: object
ConfluentAccountResponse:
description: The expected response schema when getting a Confluent account.
Expand Down Expand Up @@ -2539,6 +2541,8 @@ components:
items:
type: string
type: array
required:
- resource_type
type: object
ConfluentResourceRequestData:
description: JSON:API request for updating a Confluent resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def openapi_types(_):

def __init__(
self_,
resource_type: str,
id: Union[str, UnsetType] = unset,
resource_type: Union[str, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
**kwargs,
):
Expand All @@ -42,15 +42,15 @@ def __init__(
: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, optional
:type resource_type: str

:param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
:type tags: [str], optional
"""
if id is not unset:
kwargs["id"] = id
if resource_type is not unset:
kwargs["resource_type"] = resource_type
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)

self_.resource_type = resource_type
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,18 @@ def openapi_types(_):
"tags": "tags",
}

def __init__(
self_, resource_type: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs
):
def __init__(self_, resource_type: str, tags: Union[List[str], UnsetType] = unset, **kwargs):
"""
Attributes object for updating a Confluent resource.

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

:param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
:type tags: [str], optional
"""
if resource_type is not unset:
kwargs["resource_type"] = resource_type
if tags is not unset:
kwargs["tags"] = tags
super().__init__(kwargs)

self_.resource_type = resource_type