Skip to content

Commit

Permalink
feature: update author model
Browse files Browse the repository at this point in the history
Add new fields:
- `author_id`
- `entity_id`
  • Loading branch information
gibiw committed Sep 18, 2024
1 parent 572e9a0 commit 9d3b316
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions qase-api-client/docs/Author.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**author_id** | **int** | | [optional]
**entity_type** | **str** | | [optional]
**entity_id** | **int** | | [optional]
**email** | **str** | | [optional]
**name** | **str** | | [optional]
**is_active** | **bool** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion qase-api-client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-api-client"
version = "1.1.0"
version = "1.1.1"
description = "Qase TestOps API V1 client for Python"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand Down
6 changes: 5 additions & 1 deletion qase-api-client/src/qase/api_client_v1/models/author.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ class Author(BaseModel):
Author
""" # noqa: E501
id: Optional[StrictInt] = None
author_id: Optional[StrictInt] = None
entity_type: Optional[StrictStr] = None
entity_id: Optional[StrictInt] = None
email: Optional[StrictStr] = None
name: Optional[StrictStr] = None
is_active: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["id", "entity_type", "email", "name", "is_active"]
__properties: ClassVar[List[str]] = ["id", "author_id", "entity_type", "entity_id", "email", "name", "is_active"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -86,7 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"id": obj.get("id"),
"author_id": obj.get("author_id"),
"entity_type": obj.get("entity_type"),
"entity_id": obj.get("entity_id"),
"email": obj.get("email"),
"name": obj.get("name"),
"is_active": obj.get("is_active")
Expand Down

0 comments on commit 9d3b316

Please sign in to comment.