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.3.0 release #57

Merged
merged 2 commits into from
Sep 19, 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.3.0] - 2024-09-19

## [4.2.0] - 2024-09-02

## [4.1.2] - 2024-07-30
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.2.0
%define version 4.3.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.2.0"
version = "4.3.0"
description = "A client library for accessing OSIDB API"

authors = []
Expand Down
2 changes: 1 addition & 1 deletion osidb_bindings/bindings/python_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
from .reject import Reject
from .requires_cve_description_enum import RequiresCveDescriptionEnum
from .resolution_enum import ResolutionEnum
from .source_642_enum import Source642Enum
from .source_521_enum import Source521Enum
from .supported_products import SupportedProducts
from .token_obtain_pair import TokenObtainPair
from .token_refresh import TokenRefresh
Expand Down
20 changes: 10 additions & 10 deletions osidb_bindings/bindings/python_client/models/flaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..models.nist_cvss_validation_enum import NistCvssValidationEnum
from ..models.package import Package
from ..models.requires_cve_description_enum import RequiresCveDescriptionEnum
from ..models.source_642_enum import Source642Enum
from ..models.source_521_enum import Source521Enum
from ..types import UNSET, OSIDBModel, Unset

T = TypeVar("T", bound="Flaw")
Expand Down Expand Up @@ -55,7 +55,7 @@ class Flaw(OSIDBModel):
statement: Union[Unset, str] = UNSET
cwe_id: Union[Unset, str] = UNSET
unembargo_dt: Union[Unset, None, datetime.datetime] = UNSET
source: Union[BlankEnum, Source642Enum, Unset] = UNSET
source: Union[BlankEnum, Source521Enum, Unset] = UNSET
reported_dt: Union[Unset, None, datetime.datetime] = UNSET
mitigation: Union[Unset, str] = UNSET
major_incident_state: Union[BlankEnum, MajorIncidentStateEnum, Unset] = UNSET
Expand Down Expand Up @@ -211,11 +211,11 @@ def to_dict(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -539,11 +539,11 @@ def to_multipart(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -934,18 +934,18 @@ def _parse_requires_cve_description(
else:
unembargo_dt = isoparse(_unembargo_dt)

def _parse_source(data: object) -> Union[BlankEnum, Source642Enum, Unset]:
def _parse_source(data: object) -> Union[BlankEnum, Source521Enum, Unset]:
if isinstance(data, Unset):
return data
try:
if not isinstance(data, str):
raise TypeError()
_source_type_0 = data
source_type_0: Union[Unset, Source642Enum]
source_type_0: Union[Unset, Source521Enum]
if isinstance(_source_type_0, Unset):
source_type_0 = UNSET
else:
source_type_0 = Source642Enum(_source_type_0)
source_type_0 = Source521Enum(_source_type_0)

return source_type_0
except: # noqa: E722
Expand Down Expand Up @@ -1128,7 +1128,7 @@ def get_fields():
"statement": str,
"cwe_id": str,
"unembargo_dt": datetime.datetime,
"source": Union[BlankEnum, Source642Enum],
"source": Union[BlankEnum, Source521Enum],
"reported_dt": datetime.datetime,
"mitigation": str,
"major_incident_state": Union[BlankEnum, MajorIncidentStateEnum],
Expand Down
20 changes: 10 additions & 10 deletions osidb_bindings/bindings/python_client/models/flaw_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..models.nist_cvss_validation_enum import NistCvssValidationEnum
from ..models.package import Package
from ..models.requires_cve_description_enum import RequiresCveDescriptionEnum
from ..models.source_642_enum import Source642Enum
from ..models.source_521_enum import Source521Enum
from ..types import UNSET, OSIDBModel, Unset

T = TypeVar("T", bound="FlawPost")
Expand Down Expand Up @@ -54,7 +54,7 @@ class FlawPost(OSIDBModel):
statement: Union[Unset, str] = UNSET
cwe_id: Union[Unset, str] = UNSET
unembargo_dt: Union[Unset, None, datetime.datetime] = UNSET
source: Union[BlankEnum, Source642Enum, Unset] = UNSET
source: Union[BlankEnum, Source521Enum, Unset] = UNSET
reported_dt: Union[Unset, None, datetime.datetime] = UNSET
mitigation: Union[Unset, str] = UNSET
major_incident_state: Union[BlankEnum, MajorIncidentStateEnum, Unset] = UNSET
Expand Down Expand Up @@ -206,11 +206,11 @@ def to_dict(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -528,11 +528,11 @@ def to_multipart(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -914,18 +914,18 @@ def _parse_requires_cve_description(
else:
unembargo_dt = isoparse(_unembargo_dt)

def _parse_source(data: object) -> Union[BlankEnum, Source642Enum, Unset]:
def _parse_source(data: object) -> Union[BlankEnum, Source521Enum, Unset]:
if isinstance(data, Unset):
return data
try:
if not isinstance(data, str):
raise TypeError()
_source_type_0 = data
source_type_0: Union[Unset, Source642Enum]
source_type_0: Union[Unset, Source521Enum]
if isinstance(_source_type_0, Unset):
source_type_0 = UNSET
else:
source_type_0 = Source642Enum(_source_type_0)
source_type_0 = Source521Enum(_source_type_0)

return source_type_0
except: # noqa: E722
Expand Down Expand Up @@ -1106,7 +1106,7 @@ def get_fields():
"statement": str,
"cwe_id": str,
"unembargo_dt": datetime.datetime,
"source": Union[BlankEnum, Source642Enum],
"source": Union[BlankEnum, Source521Enum],
"reported_dt": datetime.datetime,
"mitigation": str,
"major_incident_state": Union[BlankEnum, MajorIncidentStateEnum],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class IssuerEnum(str, Enum):
CVEORG = "CVEORG"
RH = "RH"
NIST = "NIST"
OSV = "OSV"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class OsidbApiV1AffectsCvssScoresListIssuer(str, Enum):
CVEORG = "CVEORG"
NIST = "NIST"
OSV = "OSV"
RH = "RH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class OsidbApiV1AffectsListCvssScoresIssuer(str, Enum):
CVEORG = "CVEORG"
NIST = "NIST"
OSV = "OSV"
RH = "RH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class OsidbApiV1AffectsListFlawSource(str, Enum):
CORELABS = "CORELABS"
CUSTOMER = "CUSTOMER"
CVE = "CVE"
CVEORG = "CVEORG"
DAILYDAVE = "DAILYDAVE"
DEBIAN = "DEBIAN"
DISTROS = "DISTROS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ..models.nist_cvss_validation_enum import NistCvssValidationEnum
from ..models.package import Package
from ..models.requires_cve_description_enum import RequiresCveDescriptionEnum
from ..models.source_642_enum import Source642Enum
from ..models.source_521_enum import Source521Enum
from ..types import UNSET, OSIDBModel, Unset

T = TypeVar("T", bound="OsidbApiV1FlawsCreateResponse201")
Expand Down Expand Up @@ -54,7 +54,7 @@ class OsidbApiV1FlawsCreateResponse201(OSIDBModel):
statement: Union[Unset, str] = UNSET
cwe_id: Union[Unset, str] = UNSET
unembargo_dt: Union[Unset, None, datetime.datetime] = UNSET
source: Union[BlankEnum, Source642Enum, Unset] = UNSET
source: Union[BlankEnum, Source521Enum, Unset] = UNSET
reported_dt: Union[Unset, None, datetime.datetime] = UNSET
mitigation: Union[Unset, str] = UNSET
major_incident_state: Union[BlankEnum, MajorIncidentStateEnum, Unset] = UNSET
Expand Down Expand Up @@ -214,11 +214,11 @@ def to_dict(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -601,18 +601,18 @@ def _parse_requires_cve_description(
else:
unembargo_dt = isoparse(_unembargo_dt)

def _parse_source(data: object) -> Union[BlankEnum, Source642Enum, Unset]:
def _parse_source(data: object) -> Union[BlankEnum, Source521Enum, Unset]:
if isinstance(data, Unset):
return data
try:
if not isinstance(data, str):
raise TypeError()
_source_type_0 = data
source_type_0: Union[Unset, Source642Enum]
source_type_0: Union[Unset, Source521Enum]
if isinstance(_source_type_0, Unset):
source_type_0 = UNSET
else:
source_type_0 = Source642Enum(_source_type_0)
source_type_0 = Source521Enum(_source_type_0)

return source_type_0
except: # noqa: E722
Expand Down Expand Up @@ -812,7 +812,7 @@ def get_fields():
"statement": str,
"cwe_id": str,
"unembargo_dt": datetime.datetime,
"source": Union[BlankEnum, Source642Enum],
"source": Union[BlankEnum, Source521Enum],
"reported_dt": datetime.datetime,
"mitigation": str,
"major_incident_state": Union[BlankEnum, MajorIncidentStateEnum],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class OsidbApiV1FlawsCvssScoresListIssuer(str, Enum):
CVEORG = "CVEORG"
NIST = "NIST"
OSV = "OSV"
RH = "RH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


class OsidbApiV1FlawsListCvssScoresIssuer(str, Enum):
CVEORG = "CVEORG"
NIST = "NIST"
OSV = "OSV"
RH = "RH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class OsidbApiV1FlawsListSource(str, Enum):
CORELABS = "CORELABS"
CUSTOMER = "CUSTOMER"
CVE = "CVE"
CVEORG = "CVEORG"
DAILYDAVE = "DAILYDAVE"
DEBIAN = "DEBIAN"
DISTROS = "DISTROS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ..models.nist_cvss_validation_enum import NistCvssValidationEnum
from ..models.package import Package
from ..models.requires_cve_description_enum import RequiresCveDescriptionEnum
from ..models.source_642_enum import Source642Enum
from ..models.source_521_enum import Source521Enum
from ..types import UNSET, OSIDBModel, Unset

T = TypeVar("T", bound="OsidbApiV1FlawsRetrieveResponse200")
Expand Down Expand Up @@ -54,7 +54,7 @@ class OsidbApiV1FlawsRetrieveResponse200(OSIDBModel):
statement: Union[Unset, str] = UNSET
cwe_id: Union[Unset, str] = UNSET
unembargo_dt: Union[Unset, None, datetime.datetime] = UNSET
source: Union[BlankEnum, Source642Enum, Unset] = UNSET
source: Union[BlankEnum, Source521Enum, Unset] = UNSET
reported_dt: Union[Unset, None, datetime.datetime] = UNSET
mitigation: Union[Unset, str] = UNSET
major_incident_state: Union[BlankEnum, MajorIncidentStateEnum, Unset] = UNSET
Expand Down Expand Up @@ -214,11 +214,11 @@ def to_dict(self) -> Dict[str, Any]:
source: Union[Unset, str]
if isinstance(self.source, Unset):
source = UNSET
elif isinstance(self.source, Source642Enum):
elif isinstance(self.source, Source521Enum):
source = UNSET
if not isinstance(self.source, Unset):

source = Source642Enum(self.source).value
source = Source521Enum(self.source).value

else:
source = UNSET
Expand Down Expand Up @@ -601,18 +601,18 @@ def _parse_requires_cve_description(
else:
unembargo_dt = isoparse(_unembargo_dt)

def _parse_source(data: object) -> Union[BlankEnum, Source642Enum, Unset]:
def _parse_source(data: object) -> Union[BlankEnum, Source521Enum, Unset]:
if isinstance(data, Unset):
return data
try:
if not isinstance(data, str):
raise TypeError()
_source_type_0 = data
source_type_0: Union[Unset, Source642Enum]
source_type_0: Union[Unset, Source521Enum]
if isinstance(_source_type_0, Unset):
source_type_0 = UNSET
else:
source_type_0 = Source642Enum(_source_type_0)
source_type_0 = Source521Enum(_source_type_0)

return source_type_0
except: # noqa: E722
Expand Down Expand Up @@ -812,7 +812,7 @@ def get_fields():
"statement": str,
"cwe_id": str,
"unembargo_dt": datetime.datetime,
"source": Union[BlankEnum, Source642Enum],
"source": Union[BlankEnum, Source521Enum],
"reported_dt": datetime.datetime,
"mitigation": str,
"major_incident_state": Union[BlankEnum, MajorIncidentStateEnum],
Expand Down
Loading