Skip to content
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

Preparation of 4.2.0 release #56

Merged
merged 2 commits into from
Sep 2, 2024
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [4.2.0] - 2024-09-02

## [4.1.2] - 2024-07-30
### Added
- support for `promote` operation for `flaw` (OSIDB-3201)
Expand Down
2 changes: 1 addition & 1 deletion osidb_bindings.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define name osidb_bindings
%define version 4.1.2
%define version 4.2.0
%define release 0%{?dist}

Name: %{name}
Expand Down
2 changes: 1 addition & 1 deletion osidb_bindings/bindings/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bindings"
version = "4.1.2"
version = "4.2.0"
description = "A client library for accessing OSIDB API"

authors = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"order": List[OsidbApiV1FlawsListOrderItem],
"owner": str,
"owner__isempty": bool,
"query": str,
"references__created_dt": datetime.datetime,
"references__created_dt__date": datetime.date,
"references__created_dt__date__gte": datetime.date,
Expand Down Expand Up @@ -406,6 +407,7 @@ def _get_kwargs(
order: Union[Unset, None, List[OsidbApiV1FlawsListOrderItem]] = UNSET,
owner: Union[Unset, None, str] = UNSET,
owner_isempty: Union[Unset, None, bool] = UNSET,
query: Union[Unset, None, str] = UNSET,
references_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
references_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
references_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -1604,6 +1606,7 @@ def _get_kwargs(
"order": json_order,
"owner": owner,
"owner__isempty": owner_isempty,
"query": query,
"references__created_dt": json_references_created_dt,
"references__created_dt__date": json_references_created_dt_date,
"references__created_dt__date__gte": json_references_created_dt_date_gte,
Expand Down Expand Up @@ -1856,6 +1859,7 @@ def sync_detailed(
order: Union[Unset, None, List[OsidbApiV1FlawsListOrderItem]] = UNSET,
owner: Union[Unset, None, str] = UNSET,
owner_isempty: Union[Unset, None, bool] = UNSET,
query: Union[Unset, None, str] = UNSET,
references_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
references_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
references_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -2054,6 +2058,7 @@ def sync_detailed(
order=order,
owner=owner,
owner_isempty=owner_isempty,
query=query,
references_created_dt=references_created_dt,
references_created_dt_date=references_created_dt_date,
references_created_dt_date_gte=references_created_dt_date_gte,
Expand Down Expand Up @@ -2283,6 +2288,7 @@ def sync(
order: Union[Unset, None, List[OsidbApiV1FlawsListOrderItem]] = UNSET,
owner: Union[Unset, None, str] = UNSET,
owner_isempty: Union[Unset, None, bool] = UNSET,
query: Union[Unset, None, str] = UNSET,
references_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
references_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
references_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -2483,6 +2489,7 @@ def sync(
order=order,
owner=owner,
owner_isempty=owner_isempty,
query=query,
references_created_dt=references_created_dt,
references_created_dt_date=references_created_dt_date,
references_created_dt_date_gte=references_created_dt_date_gte,
Expand Down Expand Up @@ -2702,6 +2709,7 @@ async def async_detailed(
order: Union[Unset, None, List[OsidbApiV1FlawsListOrderItem]] = UNSET,
owner: Union[Unset, None, str] = UNSET,
owner_isempty: Union[Unset, None, bool] = UNSET,
query: Union[Unset, None, str] = UNSET,
references_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
references_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
references_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -2900,6 +2908,7 @@ async def async_detailed(
order=order,
owner=owner,
owner_isempty=owner_isempty,
query=query,
references_created_dt=references_created_dt,
references_created_dt_date=references_created_dt_date,
references_created_dt_date_gte=references_created_dt_date_gte,
Expand Down Expand Up @@ -3129,6 +3138,7 @@ async def async_(
order: Union[Unset, None, List[OsidbApiV1FlawsListOrderItem]] = UNSET,
owner: Union[Unset, None, str] = UNSET,
owner_isempty: Union[Unset, None, bool] = UNSET,
query: Union[Unset, None, str] = UNSET,
references_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
references_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
references_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -3330,6 +3340,7 @@ async def async_(
order=order,
owner=owner,
owner_isempty=owner_isempty,
query=query,
references_created_dt=references_created_dt,
references_created_dt_date=references_created_dt_date,
references_created_dt_date_gte=references_created_dt_date_gte,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"exclude_fields": List[str],
"include_fields": List[str],
"include_meta_attr": List[str],
"query": str,
"tracker_ids": List[str],
}

Expand All @@ -23,6 +24,7 @@ def _get_kwargs(
exclude_fields: Union[Unset, None, List[str]] = UNSET,
include_fields: Union[Unset, None, List[str]] = UNSET,
include_meta_attr: Union[Unset, None, List[str]] = UNSET,
query: Union[Unset, None, str] = UNSET,
tracker_ids: Union[Unset, None, List[str]] = UNSET,
) -> Dict[str, Any]:
url = "{}/osidb/api/v1/flaws/{id}".format(
Expand Down Expand Up @@ -64,6 +66,7 @@ def _get_kwargs(
"exclude_fields": json_exclude_fields,
"include_fields": json_include_fields,
"include_meta_attr": json_include_meta_attr,
"query": query,
"tracker_ids": json_tracker_ids,
}
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
Expand Down Expand Up @@ -108,6 +111,7 @@ def sync_detailed(
exclude_fields: Union[Unset, None, List[str]] = UNSET,
include_fields: Union[Unset, None, List[str]] = UNSET,
include_meta_attr: Union[Unset, None, List[str]] = UNSET,
query: Union[Unset, None, str] = UNSET,
tracker_ids: Union[Unset, None, List[str]] = UNSET,
) -> Response[OsidbApiV1FlawsRetrieveResponse200]:
kwargs = _get_kwargs(
Expand All @@ -116,6 +120,7 @@ def sync_detailed(
exclude_fields=exclude_fields,
include_fields=include_fields,
include_meta_attr=include_meta_attr,
query=query,
tracker_ids=tracker_ids,
)

Expand All @@ -137,6 +142,7 @@ def sync(
exclude_fields: Union[Unset, None, List[str]] = UNSET,
include_fields: Union[Unset, None, List[str]] = UNSET,
include_meta_attr: Union[Unset, None, List[str]] = UNSET,
query: Union[Unset, None, str] = UNSET,
tracker_ids: Union[Unset, None, List[str]] = UNSET,
) -> Optional[OsidbApiV1FlawsRetrieveResponse200]:
""" """
Expand All @@ -147,6 +153,7 @@ def sync(
exclude_fields=exclude_fields,
include_fields=include_fields,
include_meta_attr=include_meta_attr,
query=query,
tracker_ids=tracker_ids,
).parsed

Expand All @@ -158,6 +165,7 @@ async def async_detailed(
exclude_fields: Union[Unset, None, List[str]] = UNSET,
include_fields: Union[Unset, None, List[str]] = UNSET,
include_meta_attr: Union[Unset, None, List[str]] = UNSET,
query: Union[Unset, None, str] = UNSET,
tracker_ids: Union[Unset, None, List[str]] = UNSET,
) -> Response[OsidbApiV1FlawsRetrieveResponse200]:
kwargs = _get_kwargs(
Expand All @@ -166,6 +174,7 @@ async def async_detailed(
exclude_fields=exclude_fields,
include_fields=include_fields,
include_meta_attr=include_meta_attr,
query=query,
tracker_ids=tracker_ids,
)

Expand All @@ -187,6 +196,7 @@ async def async_(
exclude_fields: Union[Unset, None, List[str]] = UNSET,
include_fields: Union[Unset, None, List[str]] = UNSET,
include_meta_attr: Union[Unset, None, List[str]] = UNSET,
query: Union[Unset, None, str] = UNSET,
tracker_ids: Union[Unset, None, List[str]] = UNSET,
) -> Optional[OsidbApiV1FlawsRetrieveResponse200]:
""" """
Expand All @@ -198,6 +208,7 @@ async def async_(
exclude_fields=exclude_fields,
include_fields=include_fields,
include_meta_attr=include_meta_attr,
query=query,
tracker_ids=tracker_ids,
)
).parsed
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ..models.alert import Alert
from ..models.erratum import Erratum
from ..models.tracker_meta_attr import TrackerMetaAttr
from ..models.tracker_post_meta_attr import TrackerPostMetaAttr
from ..models.tracker_type import TrackerType
from ..types import UNSET, OSIDBModel, Unset

Expand All @@ -18,8 +18,8 @@ class OsidbApiV1TrackersCreateResponse201(OSIDBModel):
""" """

errata: List[Erratum]
external_system_id: str
meta_attr: TrackerMetaAttr
meta_attr: TrackerPostMetaAttr
ps_update_stream: str
status: str
resolution: str
type: TrackerType
Expand All @@ -29,7 +29,6 @@ class OsidbApiV1TrackersCreateResponse201(OSIDBModel):
created_dt: datetime.datetime
updated_dt: datetime.datetime
affects: Union[Unset, List[str]] = UNSET
ps_update_stream: Union[Unset, str] = UNSET
sync_to_bz: Union[Unset, bool] = UNSET
dt: Union[Unset, datetime.datetime] = UNSET
env: Union[Unset, str] = UNSET
Expand All @@ -48,11 +47,11 @@ def to_dict(self) -> Dict[str, Any]:

errata.append(errata_item)

external_system_id = self.external_system_id
meta_attr: Dict[str, Any] = UNSET
if not isinstance(self.meta_attr, Unset):
meta_attr = self.meta_attr.to_dict()

ps_update_stream = self.ps_update_stream
status = self.status
resolution = self.resolution
type: str = UNSET
Expand Down Expand Up @@ -84,7 +83,6 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.affects, Unset):
affects = self.affects

ps_update_stream = self.ps_update_stream
sync_to_bz = self.sync_to_bz
dt: Union[Unset, str] = UNSET
if not isinstance(self.dt, Unset):
Expand All @@ -98,10 +96,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict.update(self.additional_properties)
if not isinstance(errata, Unset):
field_dict["errata"] = errata
if not isinstance(external_system_id, Unset):
field_dict["external_system_id"] = external_system_id
if not isinstance(meta_attr, Unset):
field_dict["meta_attr"] = meta_attr
if not isinstance(ps_update_stream, Unset):
field_dict["ps_update_stream"] = ps_update_stream
if not isinstance(status, Unset):
field_dict["status"] = status
if not isinstance(resolution, Unset):
Expand All @@ -120,8 +118,6 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["updated_dt"] = updated_dt
if not isinstance(affects, Unset):
field_dict["affects"] = affects
if not isinstance(ps_update_stream, Unset):
field_dict["ps_update_stream"] = ps_update_stream
if not isinstance(sync_to_bz, Unset):
field_dict["sync_to_bz"] = sync_to_bz
if not isinstance(dt, Unset):
Expand Down Expand Up @@ -153,14 +149,14 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

errata.append(errata_item)

external_system_id = d.pop("external_system_id", UNSET)

_meta_attr = d.pop("meta_attr", UNSET)
meta_attr: TrackerMetaAttr
meta_attr: TrackerPostMetaAttr
if isinstance(_meta_attr, Unset):
meta_attr = UNSET
else:
meta_attr = TrackerMetaAttr.from_dict(_meta_attr)
meta_attr = TrackerPostMetaAttr.from_dict(_meta_attr)

ps_update_stream = d.pop("ps_update_stream", UNSET)

status = d.pop("status", UNSET)

Expand Down Expand Up @@ -208,8 +204,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

affects = cast(List[str], d.pop("affects", UNSET))

ps_update_stream = d.pop("ps_update_stream", UNSET)

sync_to_bz = d.pop("sync_to_bz", UNSET)

_dt = d.pop("dt", UNSET)
Expand All @@ -227,8 +221,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

osidb_api_v1_trackers_create_response_201 = cls(
errata=errata,
external_system_id=external_system_id,
meta_attr=meta_attr,
ps_update_stream=ps_update_stream,
status=status,
resolution=resolution,
type=type,
Expand All @@ -238,7 +232,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
created_dt=created_dt,
updated_dt=updated_dt,
affects=affects,
ps_update_stream=ps_update_stream,
sync_to_bz=sync_to_bz,
dt=dt,
env=env,
Expand All @@ -253,8 +246,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
def get_fields():
return {
"errata": List[Erratum],
"external_system_id": str,
"meta_attr": TrackerMetaAttr,
"meta_attr": TrackerPostMetaAttr,
"ps_update_stream": str,
"status": str,
"resolution": str,
"type": TrackerType,
Expand All @@ -264,7 +257,6 @@ def get_fields():
"created_dt": datetime.datetime,
"updated_dt": datetime.datetime,
"affects": List[str],
"ps_update_stream": str,
"sync_to_bz": bool,
"dt": datetime.datetime,
"env": str,
Expand Down
Loading