From b5241a860342270a14434416a5ff92b4debad707 Mon Sep 17 00:00:00 2001 From: Jakub Frejlach Date: Wed, 28 Jun 2023 13:15:08 +0200 Subject: [PATCH] Regenerate bindings for 3.3.0 release --- .../osidb_api_v1_flaws_references_destroy.py | 14 ++++----- .../osidb_api_v1_flaws_references_retrieve.py | 14 ++++----- .../osidb_api_v1_flaws_references_update.py | 14 ++++----- .../models/flaw_reference_post.py | 11 ------- osidb_bindings/openapi_schema.yml | 31 +++++-------------- 5 files changed, 29 insertions(+), 55 deletions(-) diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_destroy.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_destroy.py index 97c2239..e417708 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_destroy.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_destroy.py @@ -13,14 +13,14 @@ def _get_kwargs( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, ) -> Dict[str, Any]: - url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{uuid}".format( + url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{id}".format( client.base_url, flaw_id=flaw_id, - uuid=uuid, + id=id, ) headers: Dict[str, Any] = client.get_headers() @@ -61,13 +61,13 @@ def _build_response( def sync_detailed( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, ) -> Response[OsidbApiV1FlawsReferencesDestroyResponse204]: kwargs = _get_kwargs( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, ) @@ -84,7 +84,7 @@ def sync_detailed( def sync( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, ) -> Optional[OsidbApiV1FlawsReferencesDestroyResponse204]: @@ -92,6 +92,6 @@ def sync( return sync_detailed( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, ).parsed diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_retrieve.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_retrieve.py index 6470717..6eceba8 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_retrieve.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_retrieve.py @@ -17,17 +17,17 @@ def _get_kwargs( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, 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, ) -> Dict[str, Any]: - url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{uuid}".format( + url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{id}".format( client.base_url, flaw_id=flaw_id, - uuid=uuid, + id=id, ) headers: Dict[str, Any] = client.get_headers() @@ -97,7 +97,7 @@ def _build_response( def sync_detailed( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, exclude_fields: Union[Unset, None, List[str]] = UNSET, @@ -106,7 +106,7 @@ def sync_detailed( ) -> Response[OsidbApiV1FlawsReferencesRetrieveResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, exclude_fields=exclude_fields, include_fields=include_fields, @@ -126,7 +126,7 @@ def sync_detailed( def sync( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, exclude_fields: Union[Unset, None, List[str]] = UNSET, @@ -137,7 +137,7 @@ def sync( return sync_detailed( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, exclude_fields=exclude_fields, include_fields=include_fields, diff --git a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_update.py b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_update.py index 94e7900..7c4c7b9 100644 --- a/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_update.py +++ b/osidb_bindings/bindings/python_client/api/osidb/osidb_api_v1_flaws_references_update.py @@ -15,17 +15,17 @@ def _get_kwargs( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, form_data: FlawReference, multipart_data: FlawReference, json_body: FlawReference, ) -> Dict[str, Any]: - url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{uuid}".format( + url = "{}/osidb/api/v1/flaws/{flaw_id}/references/{id}".format( client.base_url, flaw_id=flaw_id, - uuid=uuid, + id=id, ) headers: Dict[str, Any] = client.get_headers() @@ -75,7 +75,7 @@ def _build_response( def sync_detailed( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, form_data: FlawReference, @@ -84,7 +84,7 @@ def sync_detailed( ) -> Response[OsidbApiV1FlawsReferencesUpdateResponse200]: kwargs = _get_kwargs( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, form_data=form_data, multipart_data=multipart_data, @@ -104,7 +104,7 @@ def sync_detailed( def sync( flaw_id: str, - uuid: str, + id: str, *, client: AuthenticatedClient, form_data: FlawReference, @@ -115,7 +115,7 @@ def sync( return sync_detailed( flaw_id=flaw_id, - uuid=uuid, + id=id, client=client, form_data=form_data, multipart_data=multipart_data, diff --git a/osidb_bindings/bindings/python_client/models/flaw_reference_post.py b/osidb_bindings/bindings/python_client/models/flaw_reference_post.py index afe7e71..9032768 100644 --- a/osidb_bindings/bindings/python_client/models/flaw_reference_post.py +++ b/osidb_bindings/bindings/python_client/models/flaw_reference_post.py @@ -14,7 +14,6 @@ class FlawReferencePost(OSIDBModel): """FlawReference serializer""" - flaw: str url: str uuid: str embargoed: bool @@ -24,7 +23,6 @@ class FlawReferencePost(OSIDBModel): additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: - flaw = self.flaw url = self.url uuid = self.uuid embargoed = self.embargoed @@ -40,8 +38,6 @@ def to_dict(self) -> Dict[str, Any]: field_dict: Dict[str, Any] = {} field_dict.update(self.additional_properties) - if flaw is not UNSET: - field_dict["flaw"] = flaw if url is not UNSET: field_dict["url"] = url if uuid is not UNSET: @@ -58,7 +54,6 @@ def to_dict(self) -> Dict[str, Any]: return field_dict def to_multipart(self) -> Dict[str, Any]: - flaw = self.flaw if self.flaw is UNSET else (None, str(self.flaw), "text/plain") url = self.url if self.url is UNSET else (None, str(self.url), "text/plain") uuid = self.uuid if self.uuid is UNSET else (None, str(self.uuid), "text/plain") embargoed = ( @@ -87,8 +82,6 @@ def to_multipart(self) -> Dict[str, Any]: for key, value in self.additional_properties.items() } ) - if flaw is not UNSET: - field_dict["flaw"] = flaw if url is not UNSET: field_dict["url"] = url if uuid is not UNSET: @@ -107,8 +100,6 @@ def to_multipart(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() - flaw = d.pop("flaw", UNSET) - url = d.pop("url", UNSET) uuid = d.pop("uuid", UNSET) @@ -132,7 +123,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: type = FlawReferenceType(_type) flaw_reference_post = cls( - flaw=flaw, url=url, uuid=uuid, embargoed=embargoed, @@ -147,7 +137,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: @staticmethod def get_fields(): return { - "flaw": str, "url": str, "uuid": str, "embargoed": bool, diff --git a/osidb_bindings/openapi_schema.yml b/osidb_bindings/openapi_schema.yml index aaddd5e..516d7bc 100644 --- a/osidb_bindings/openapi_schema.yml +++ b/osidb_bindings/openapi_schema.yml @@ -2770,7 +2770,6 @@ paths: name: flaw_id schema: type: string - format: uuid required: true - in: query name: include_fields @@ -2836,7 +2835,6 @@ paths: name: flaw_id schema: type: string - format: uuid required: true tags: - osidb @@ -2873,7 +2871,7 @@ paths: version: type: string description: '' - /osidb/api/v1/flaws/{flaw_id}/references/{uuid}: + /osidb/api/v1/flaws/{flaw_id}/references/{id}: get: operationId: osidb_api_v1_flaws_references_retrieve parameters: @@ -2890,7 +2888,11 @@ paths: name: flaw_id schema: type: string - format: uuid + required: true + - in: path + name: id + schema: + type: string required: true - in: query name: include_fields @@ -2913,13 +2915,6 @@ paths: wildcards eg. `include_meta_attr=*,related_model.*` for retrieving all the keys from meta_attr. Omit this parameter to not include meta_attr fields at all. ' - - in: path - name: uuid - schema: - type: string - format: uuid - description: A UUID string identifying this flaw reference. - required: true tags: - osidb security: @@ -2951,14 +2946,11 @@ paths: name: flaw_id schema: type: string - format: uuid required: true - in: path - name: uuid + name: id schema: type: string - format: uuid - description: A UUID string identifying this flaw reference. required: true tags: - osidb @@ -3002,14 +2994,11 @@ paths: name: flaw_id schema: type: string - format: uuid required: true - in: path - name: uuid + name: id schema: type: string - format: uuid - description: A UUID string identifying this flaw reference. required: true tags: - osidb @@ -5962,9 +5951,6 @@ components: properties: description: type: string - flaw: - type: string - format: uuid type: $ref: '#/components/schemas/FlawReferenceType' url: @@ -5987,7 +5973,6 @@ components: required: - created_dt - embargoed - - flaw - url - uuid FlawReferenceType: