From c3ef71f732b8a7c1086202bb214eb2d4dea20939 Mon Sep 17 00:00:00 2001 From: Jakub Frejlach Date: Thu, 23 May 2024 13:06:15 +0200 Subject: [PATCH] Remove header parameters These parameters are currently being sent automatically and there is no need to supply them. --- .../api/osidb/osidb_api_v1_affects_create.py | 11 ---------- .../api/osidb/osidb_api_v1_affects_update.py | 11 ---------- .../api/osidb/osidb_api_v1_flaws_create.py | 21 ------------------- .../osidb_api_v1_flaws_promote_create.py | 11 ---------- .../osidb/osidb_api_v1_flaws_reject_create.py | 11 ---------- .../api/osidb/osidb_api_v1_flaws_update.py | 21 ------------------- .../api/osidb/osidb_api_v1_trackers_create.py | 21 ------------------- .../api/osidb/osidb_api_v1_trackers_update.py | 21 ------------------- .../templates/endpoint_macros.py.jinja | 6 ------ .../templates/endpoint_module.py.jinja | 2 -- 10 files changed, 136 deletions(-) diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_create.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_create.py index 3ad77a8..ac7749b 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_create.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_create.py @@ -19,7 +19,6 @@ def _get_kwargs( form_data: AffectPost, multipart_data: AffectPost, json_body: AffectPost, - bugzilla_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/affects".format( client.base_url, @@ -27,8 +26,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -76,14 +73,12 @@ def sync_detailed( form_data: AffectPost, multipart_data: AffectPost, json_body: AffectPost, - bugzilla_api_key: str, ) -> Response[OsidbApiV1AffectsCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) response = requests.post( @@ -103,7 +98,6 @@ def sync( form_data: AffectPost, multipart_data: AffectPost, json_body: AffectPost, - bugzilla_api_key: str, ) -> Optional[OsidbApiV1AffectsCreateResponse201]: """ """ @@ -112,7 +106,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ).parsed @@ -122,14 +115,12 @@ async def async_detailed( form_data: AffectPost, multipart_data: AffectPost, json_body: AffectPost, - bugzilla_api_key: str, ) -> Response[OsidbApiV1AffectsCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) async with client.get_async_session().post( @@ -149,7 +140,6 @@ async def async_( form_data: AffectPost, multipart_data: AffectPost, json_body: AffectPost, - bugzilla_api_key: str, ) -> Optional[OsidbApiV1AffectsCreateResponse201]: """ """ @@ -159,6 +149,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_update.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_update.py index 6af5625..73929b0 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_update.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_affects_update.py @@ -20,7 +20,6 @@ def _get_kwargs( form_data: Affect, multipart_data: Affect, json_body: Affect, - bugzilla_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/affects/{uuid}".format( client.base_url, @@ -29,8 +28,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -79,7 +76,6 @@ def sync_detailed( form_data: Affect, multipart_data: Affect, json_body: Affect, - bugzilla_api_key: str, ) -> Response[OsidbApiV1AffectsUpdateResponse200]: kwargs = _get_kwargs( uuid=uuid, @@ -87,7 +83,6 @@ def sync_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) response = requests.put( @@ -108,7 +103,6 @@ def sync( form_data: Affect, multipart_data: Affect, json_body: Affect, - bugzilla_api_key: str, ) -> Optional[OsidbApiV1AffectsUpdateResponse200]: """ """ @@ -118,7 +112,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ).parsed @@ -129,7 +122,6 @@ async def async_detailed( form_data: Affect, multipart_data: Affect, json_body: Affect, - bugzilla_api_key: str, ) -> Response[OsidbApiV1AffectsUpdateResponse200]: kwargs = _get_kwargs( uuid=uuid, @@ -137,7 +129,6 @@ async def async_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) async with client.get_async_session().put( @@ -158,7 +149,6 @@ async def async_( form_data: Affect, multipart_data: Affect, json_body: Affect, - bugzilla_api_key: str, ) -> Optional[OsidbApiV1AffectsUpdateResponse200]: """ """ @@ -169,6 +159,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_create.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_create.py index 70e4680..7b963d8 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_create.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_create.py @@ -19,8 +19,6 @@ def _get_kwargs( form_data: FlawPost, multipart_data: FlawPost, json_body: FlawPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/flaws".format( client.base_url, @@ -28,9 +26,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - headers["jira-api-key"] = jira_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -78,16 +73,12 @@ def sync_detailed( form_data: FlawPost, multipart_data: FlawPost, json_body: FlawPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) response = requests.post( @@ -107,8 +98,6 @@ def sync( form_data: FlawPost, multipart_data: FlawPost, json_body: FlawPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsCreateResponse201]: """ """ @@ -117,8 +106,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ).parsed @@ -128,16 +115,12 @@ async def async_detailed( form_data: FlawPost, multipart_data: FlawPost, json_body: FlawPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) async with client.get_async_session().post( @@ -157,8 +140,6 @@ async def async_( form_data: FlawPost, multipart_data: FlawPost, json_body: FlawPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsCreateResponse201]: """ """ @@ -168,7 +149,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_promote_create.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_promote_create.py index f19b31d..f3faf82 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_promote_create.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_promote_create.py @@ -15,7 +15,6 @@ def _get_kwargs( flaw_id: str, *, client: AuthenticatedClient, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/flaws/{flaw_id}/promote".format( client.base_url, @@ -24,8 +23,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["jira-api-key"] = jira_api_key - return { "url": url, "headers": headers, @@ -64,12 +61,10 @@ def sync_detailed( flaw_id: str, *, client: AuthenticatedClient, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsPromoteCreateResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, client=client, - jira_api_key=jira_api_key, ) response = requests.post( @@ -87,7 +82,6 @@ def sync( flaw_id: str, *, client: AuthenticatedClient, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsPromoteCreateResponse200]: """workflow promotion API endpoint @@ -97,7 +91,6 @@ def sync( return sync_detailed( flaw_id=flaw_id, client=client, - jira_api_key=jira_api_key, ).parsed @@ -105,12 +98,10 @@ async def async_detailed( flaw_id: str, *, client: AuthenticatedClient, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsPromoteCreateResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, client=client, - jira_api_key=jira_api_key, ) async with client.get_async_session().post( @@ -128,7 +119,6 @@ async def async_( flaw_id: str, *, client: AuthenticatedClient, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsPromoteCreateResponse200]: """workflow promotion API endpoint @@ -139,6 +129,5 @@ async def async_( await async_detailed( flaw_id=flaw_id, client=client, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_reject_create.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_reject_create.py index 09c2ff8..000311f 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_reject_create.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_reject_create.py @@ -20,7 +20,6 @@ def _get_kwargs( form_data: Reject, multipart_data: Reject, json_body: Reject, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/flaws/{flaw_id}/reject".format( client.base_url, @@ -29,8 +28,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["jira-api-key"] = jira_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -81,7 +78,6 @@ def sync_detailed( form_data: Reject, multipart_data: Reject, json_body: Reject, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsRejectCreateResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, @@ -89,7 +85,6 @@ def sync_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - jira_api_key=jira_api_key, ) response = requests.post( @@ -110,7 +105,6 @@ def sync( form_data: Reject, multipart_data: Reject, json_body: Reject, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsRejectCreateResponse200]: """workflow promotion API endpoint @@ -122,7 +116,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - jira_api_key=jira_api_key, ).parsed @@ -133,7 +126,6 @@ async def async_detailed( form_data: Reject, multipart_data: Reject, json_body: Reject, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsRejectCreateResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, @@ -141,7 +133,6 @@ async def async_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - jira_api_key=jira_api_key, ) async with client.get_async_session().post( @@ -162,7 +153,6 @@ async def async_( form_data: Reject, multipart_data: Reject, json_body: Reject, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsRejectCreateResponse200]: """workflow promotion API endpoint @@ -175,6 +165,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_update.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_update.py index 18d26af..c0d296a 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_update.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_update.py @@ -20,8 +20,6 @@ def _get_kwargs( form_data: Flaw, multipart_data: Flaw, json_body: Flaw, - bugzilla_api_key: str, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/flaws/{id}".format( client.base_url, @@ -30,9 +28,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - headers["jira-api-key"] = jira_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -81,8 +76,6 @@ def sync_detailed( form_data: Flaw, multipart_data: Flaw, json_body: Flaw, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsUpdateResponse200]: kwargs = _get_kwargs( id=id, @@ -90,8 +83,6 @@ def sync_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) response = requests.put( @@ -112,8 +103,6 @@ def sync( form_data: Flaw, multipart_data: Flaw, json_body: Flaw, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsUpdateResponse200]: """ """ @@ -123,8 +112,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ).parsed @@ -135,8 +122,6 @@ async def async_detailed( form_data: Flaw, multipart_data: Flaw, json_body: Flaw, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1FlawsUpdateResponse200]: kwargs = _get_kwargs( id=id, @@ -144,8 +129,6 @@ async def async_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) async with client.get_async_session().put( @@ -166,8 +149,6 @@ async def async_( form_data: Flaw, multipart_data: Flaw, json_body: Flaw, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1FlawsUpdateResponse200]: """ """ @@ -178,7 +159,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_create.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_create.py index 5e74b02..81872cc 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_create.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_create.py @@ -19,8 +19,6 @@ def _get_kwargs( form_data: TrackerPost, multipart_data: TrackerPost, json_body: TrackerPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/trackers".format( client.base_url, @@ -28,9 +26,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - headers["jira-api-key"] = jira_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -78,16 +73,12 @@ def sync_detailed( form_data: TrackerPost, multipart_data: TrackerPost, json_body: TrackerPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1TrackersCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) response = requests.post( @@ -107,8 +98,6 @@ def sync( form_data: TrackerPost, multipart_data: TrackerPost, json_body: TrackerPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1TrackersCreateResponse201]: """ """ @@ -117,8 +106,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ).parsed @@ -128,16 +115,12 @@ async def async_detailed( form_data: TrackerPost, multipart_data: TrackerPost, json_body: TrackerPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1TrackersCreateResponse201]: kwargs = _get_kwargs( client=client, form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) async with client.get_async_session().post( @@ -157,8 +140,6 @@ async def async_( form_data: TrackerPost, multipart_data: TrackerPost, json_body: TrackerPost, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1TrackersCreateResponse201]: """ """ @@ -168,7 +149,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_update.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_update.py index 4cca8d0..055f614 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_update.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_trackers_update.py @@ -20,8 +20,6 @@ def _get_kwargs( form_data: Tracker, multipart_data: Tracker, json_body: Tracker, - bugzilla_api_key: str, - jira_api_key: str, ) -> Dict[str, Any]: url = "{}/osidb/api/v1/trackers/{uuid}".format( client.base_url, @@ -30,9 +28,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - headers["bugzilla-api-key"] = bugzilla_api_key - headers["jira-api-key"] = jira_api_key - json_json_body: Dict[str, Any] = UNSET if not isinstance(json_body, Unset): json_body.to_dict() @@ -81,8 +76,6 @@ def sync_detailed( form_data: Tracker, multipart_data: Tracker, json_body: Tracker, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1TrackersUpdateResponse200]: kwargs = _get_kwargs( uuid=uuid, @@ -90,8 +83,6 @@ def sync_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) response = requests.put( @@ -112,8 +103,6 @@ def sync( form_data: Tracker, multipart_data: Tracker, json_body: Tracker, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1TrackersUpdateResponse200]: """ """ @@ -123,8 +112,6 @@ def sync( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ).parsed @@ -135,8 +122,6 @@ async def async_detailed( form_data: Tracker, multipart_data: Tracker, json_body: Tracker, - bugzilla_api_key: str, - jira_api_key: str, ) -> Response[OsidbApiV1TrackersUpdateResponse200]: kwargs = _get_kwargs( uuid=uuid, @@ -144,8 +129,6 @@ async def async_detailed( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) async with client.get_async_session().put( @@ -166,8 +149,6 @@ async def async_( form_data: Tracker, multipart_data: Tracker, json_body: Tracker, - bugzilla_api_key: str, - jira_api_key: str, ) -> Optional[OsidbApiV1TrackersUpdateResponse200]: """ """ @@ -178,7 +159,5 @@ async def async_( form_data=form_data, multipart_data=multipart_data, json_body=json_body, - bugzilla_api_key=bugzilla_api_key, - jira_api_key=jira_api_key, ) ).parsed diff --git a/osidb_bindings/templates/endpoint_macros.py.jinja b/osidb_bindings/templates/endpoint_macros.py.jinja index 0445236..756a727 100644 --- a/osidb_bindings/templates/endpoint_macros.py.jinja +++ b/osidb_bindings/templates/endpoint_macros.py.jinja @@ -115,9 +115,6 @@ json_body: {{ endpoint.json_body.get_type_string() }}, {% for parameter in endpoint.query_parameters.values() %} {{ parameter.to_string() }}, {% endfor %} -{% for parameter in endpoint.header_parameters.values() %} -{{ parameter.to_string() }}, -{% endfor %} {# cookie parameters #} {% for parameter in endpoint.cookie_parameters.values() %} {{ parameter.to_string() }}, @@ -142,9 +139,6 @@ json_body=json_body, {% for parameter in endpoint.query_parameters.values() %} {{ parameter.python_name }}={{ parameter.python_name }}, {% endfor %} -{% for parameter in endpoint.header_parameters.values() %} -{{ parameter.python_name }}={{ parameter.python_name }}, -{% endfor %} {% for parameter in endpoint.cookie_parameters.values() %} {{ parameter.python_name }}={{ parameter.python_name }}, {% endfor %} diff --git a/osidb_bindings/templates/endpoint_module.py.jinja b/osidb_bindings/templates/endpoint_module.py.jinja index 8c28390..c346a00 100644 --- a/osidb_bindings/templates/endpoint_module.py.jinja +++ b/osidb_bindings/templates/endpoint_module.py.jinja @@ -40,8 +40,6 @@ def _get_kwargs( headers: Dict[str, Any] = client.get_headers() - {{ header_params(endpoint) | indent(4) }} - {{ cookie_params(endpoint) | indent(4) }} {{ query_params(endpoint) | indent(4) }}