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 3.7.0 release #44

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

## Unreleased

## [3.7.0] - 2024-05-23
### Added
- Update and Create for Tracker entity
- JIRA_ACCESS_TOKEN environment variable

### Fixed
- Both Bugzilla API Key and Jira Access Token are now automatically fetched
from environment variables and passed as a header

## [3.6.0] - 2024-01-29

## [3.5.1] - 2023-10-17
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 = "3.6.0"
version = "3.7.0"
description = "A client library for accessing OSIDB API"

authors = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import requests

from ...client import AuthenticatedClient
from ...models.osidb_api_v1_affects_cvss_scores_destroy_response_204 import (
OsidbApiV1AffectsCvssScoresDestroyResponse204,
from ...models.osidb_api_v1_affects_cvss_scores_destroy_response_200 import (
OsidbApiV1AffectsCvssScoresDestroyResponse200,
)
from ...types import UNSET, Response, Unset

Expand Down Expand Up @@ -33,24 +33,24 @@ def _get_kwargs(

def _parse_response(
*, response: requests.Response
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
if response.status_code == 204:
_response_204 = response.json()
response_204: OsidbApiV1AffectsCvssScoresDestroyResponse204
if isinstance(_response_204, Unset):
response_204 = UNSET
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
if response.status_code == 200:
_response_200 = response.json()
response_200: OsidbApiV1AffectsCvssScoresDestroyResponse200
if isinstance(_response_200, Unset):
response_200 = UNSET
else:
response_204 = OsidbApiV1AffectsCvssScoresDestroyResponse204.from_dict(
_response_204
response_200 = OsidbApiV1AffectsCvssScoresDestroyResponse200.from_dict(
_response_200
)

return response_204
return response_200
return None


def _build_response(
*, response: requests.Response
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
return Response(
status_code=response.status_code,
content=response.content,
Expand All @@ -64,7 +64,7 @@ def sync_detailed(
id: str,
*,
client: AuthenticatedClient,
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
kwargs = _get_kwargs(
affect_id=affect_id,
id=id,
Expand All @@ -87,7 +87,7 @@ def sync(
id: str,
*,
client: AuthenticatedClient,
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
"""Destroy the instance and proxy the delete to Bugzilla."""

return sync_detailed(
Expand All @@ -102,7 +102,7 @@ async def async_detailed(
id: str,
*,
client: AuthenticatedClient,
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
) -> Response[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
kwargs = _get_kwargs(
affect_id=affect_id,
id=id,
Expand All @@ -125,7 +125,7 @@ async def async_(
id: str,
*,
client: AuthenticatedClient,
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse204]:
) -> Optional[OsidbApiV1AffectsCvssScoresDestroyResponse200]:
"""Destroy the instance and proxy the delete to Bugzilla."""

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"cvss_scores__vector": str,
"embargoed": bool,
"exclude_fields": List[str],
"flaw__component": str,
"flaw__component": List[str],
"flaw__components": List[str],
"flaw__created_dt": datetime.datetime,
"flaw__created_dt__date": datetime.date,
"flaw__created_dt__date__gte": datetime.date,
Expand Down Expand Up @@ -222,7 +223,8 @@ def _get_kwargs(
cvss_scores_vector: Union[Unset, None, str] = UNSET,
embargoed: Union[Unset, None, bool] = UNSET,
exclude_fields: Union[Unset, None, List[str]] = UNSET,
flaw_component: Union[Unset, None, str] = UNSET,
flaw_component: Union[Unset, None, List[str]] = UNSET,
flaw_components: Union[Unset, None, List[str]] = UNSET,
flaw_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
flaw_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
flaw_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -496,6 +498,20 @@ def _get_kwargs(
else:
json_exclude_fields = exclude_fields

json_flaw_component: Union[Unset, None, List[str]] = UNSET
if not isinstance(flaw_component, Unset):
if flaw_component is None:
json_flaw_component = None
else:
json_flaw_component = flaw_component

json_flaw_components: Union[Unset, None, List[str]] = UNSET
if not isinstance(flaw_components, Unset):
if flaw_components is None:
json_flaw_components = None
else:
json_flaw_components = flaw_components

json_flaw_created_dt: Union[Unset, None, str] = UNSET
if not isinstance(flaw_created_dt, Unset):
json_flaw_created_dt = flaw_created_dt.isoformat() if flaw_created_dt else None
Expand Down Expand Up @@ -903,7 +919,8 @@ def _get_kwargs(
"cvss_scores__vector": cvss_scores_vector,
"embargoed": embargoed,
"exclude_fields": json_exclude_fields,
"flaw__component": flaw_component,
"flaw__component": json_flaw_component,
"flaw__components": json_flaw_components,
"flaw__created_dt": json_flaw_created_dt,
"flaw__created_dt__date": json_flaw_created_dt_date,
"flaw__created_dt__date__gte": json_flaw_created_dt_date_gte,
Expand Down Expand Up @@ -1079,7 +1096,8 @@ def sync_detailed(
cvss_scores_vector: Union[Unset, None, str] = UNSET,
embargoed: Union[Unset, None, bool] = UNSET,
exclude_fields: Union[Unset, None, List[str]] = UNSET,
flaw_component: Union[Unset, None, str] = UNSET,
flaw_component: Union[Unset, None, List[str]] = UNSET,
flaw_components: Union[Unset, None, List[str]] = UNSET,
flaw_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
flaw_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
flaw_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -1218,6 +1236,7 @@ def sync_detailed(
embargoed=embargoed,
exclude_fields=exclude_fields,
flaw_component=flaw_component,
flaw_components=flaw_components,
flaw_created_dt=flaw_created_dt,
flaw_created_dt_date=flaw_created_dt_date,
flaw_created_dt_date_gte=flaw_created_dt_date_gte,
Expand Down Expand Up @@ -1370,7 +1389,8 @@ def sync(
cvss_scores_vector: Union[Unset, None, str] = UNSET,
embargoed: Union[Unset, None, bool] = UNSET,
exclude_fields: Union[Unset, None, List[str]] = UNSET,
flaw_component: Union[Unset, None, str] = UNSET,
flaw_component: Union[Unset, None, List[str]] = UNSET,
flaw_components: Union[Unset, None, List[str]] = UNSET,
flaw_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
flaw_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
flaw_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -1511,6 +1531,7 @@ def sync(
embargoed=embargoed,
exclude_fields=exclude_fields,
flaw_component=flaw_component,
flaw_components=flaw_components,
flaw_created_dt=flaw_created_dt,
flaw_created_dt_date=flaw_created_dt_date,
flaw_created_dt_date_gte=flaw_created_dt_date_gte,
Expand Down Expand Up @@ -1653,7 +1674,8 @@ async def async_detailed(
cvss_scores_vector: Union[Unset, None, str] = UNSET,
embargoed: Union[Unset, None, bool] = UNSET,
exclude_fields: Union[Unset, None, List[str]] = UNSET,
flaw_component: Union[Unset, None, str] = UNSET,
flaw_component: Union[Unset, None, List[str]] = UNSET,
flaw_components: Union[Unset, None, List[str]] = UNSET,
flaw_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
flaw_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
flaw_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -1792,6 +1814,7 @@ async def async_detailed(
embargoed=embargoed,
exclude_fields=exclude_fields,
flaw_component=flaw_component,
flaw_components=flaw_components,
flaw_created_dt=flaw_created_dt,
flaw_created_dt_date=flaw_created_dt_date,
flaw_created_dt_date_gte=flaw_created_dt_date_gte,
Expand Down Expand Up @@ -1944,7 +1967,8 @@ async def async_(
cvss_scores_vector: Union[Unset, None, str] = UNSET,
embargoed: Union[Unset, None, bool] = UNSET,
exclude_fields: Union[Unset, None, List[str]] = UNSET,
flaw_component: Union[Unset, None, str] = UNSET,
flaw_component: Union[Unset, None, List[str]] = UNSET,
flaw_components: Union[Unset, None, List[str]] = UNSET,
flaw_created_dt: Union[Unset, None, datetime.datetime] = UNSET,
flaw_created_dt_date: Union[Unset, None, datetime.date] = UNSET,
flaw_created_dt_date_gte: Union[Unset, None, datetime.date] = UNSET,
Expand Down Expand Up @@ -2086,6 +2110,7 @@ async def async_(
embargoed=embargoed,
exclude_fields=exclude_fields,
flaw_component=flaw_component,
flaw_components=flaw_components,
flaw_created_dt=flaw_created_dt,
flaw_created_dt_date=flaw_created_dt_date,
flaw_created_dt_date_gte=flaw_created_dt_date_gte,
Expand Down
Loading
Loading